Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff57895e48 | ||
|
|
8cdf451859 | ||
|
|
5996d35d87 | ||
|
|
e7cdb2e8d1 | ||
|
|
f66472a0a1 | ||
|
|
c69537b970 | ||
|
|
4b7328cd62 | ||
|
|
3369d7ef9d | ||
|
|
67e0beb4b2 | ||
|
|
9accac447f | ||
|
|
cab1294e1a | ||
|
|
f3144309f2 |
39
CHANGELOG
39
CHANGELOG
@@ -1,3 +1,42 @@
|
||||
2019-06-17 Version 1.36.50
|
||||
companyreg release
|
||||
|
||||
2019-06-13 Version 1.36.49
|
||||
1, fixed DescribeAvailableResource OpenApi AvailableZones value problem.
|
||||
|
||||
2019-06-13 Version 1.36.48
|
||||
- Generated 2015-01-01 for `R-kvstore`
|
||||
|
||||
2019-06-13 Version 1.36.47
|
||||
Add Network Assistant openapi sdk
|
||||
|
||||
2019-06-12 Version 1.36.46
|
||||
1, Add RenewBackupPlan DBS interface.
|
||||
|
||||
2019-06-12 Version 1.36.45
|
||||
1.Fix bug
|
||||
|
||||
2019-06-12 Version 1.36.44
|
||||
1, Add InvokeDataAPIService interface, support invoke service of data api to get sql query result.
|
||||
2, Add GetDataAPIServiceDetail interface, support get data api's detail information.
|
||||
3, Add CreateDataAPIService interface, support create data api with sql statement.
|
||||
|
||||
2019-06-05 Version: 1.36.43
|
||||
1, Update DescribeDataLimitDetail interface, add password for response
|
||||
|
||||
2019-06-04 Version: 1.36.42
|
||||
1, Add new API: UpdateLivePullStreamInfoConfig
|
||||
|
||||
2019-06-03 Version: 1.36.41
|
||||
1, Add openapi of ACL.
|
||||
|
||||
2019-05-31 Version: 1.36.40
|
||||
1, add api 'search traces count'
|
||||
2, add page index for api 'searchTraces'
|
||||
|
||||
2019-05-31 Version: 1.36.39
|
||||
1, Add authority in GetMaterials API.
|
||||
|
||||
2019-05-29 Version 1.36.38
|
||||
update Smartag
|
||||
|
||||
|
||||
@@ -1,90 +1,82 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
#
|
||||
# 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(arms_public_header
|
||||
include/alibabacloud/arms/ARMSClient.h
|
||||
include/alibabacloud/arms/ARMSExport.h )
|
||||
|
||||
set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/ARMSQueryDataSetRequest.h
|
||||
include/alibabacloud/arms/model/ARMSQueryDataSetResult.h
|
||||
include/alibabacloud/arms/model/MetricQueryRequest.h
|
||||
include/alibabacloud/arms/model/MetricQueryResult.h )
|
||||
|
||||
include/alibabacloud/arms/ARMSExport.h )
|
||||
|
||||
set(arms_public_header_model )
|
||||
|
||||
set(arms_src
|
||||
src/ARMSClient.cc
|
||||
src/model/ARMSQueryDataSetRequest.cc
|
||||
src/model/ARMSQueryDataSetResult.cc
|
||||
src/model/MetricQueryRequest.cc
|
||||
src/model/MetricQueryResult.cc )
|
||||
|
||||
add_library(arms ${LIB_TYPE}
|
||||
${arms_public_header}
|
||||
${arms_public_header_model}
|
||||
${arms_src})
|
||||
|
||||
set_target_properties(arms
|
||||
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}arms
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(arms
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ARMS_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(arms
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(arms
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(arms
|
||||
jsoncpp)
|
||||
target_include_directories(arms
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(arms
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(arms
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(arms
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(arms
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${arms_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/arms)
|
||||
install(FILES ${arms_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/arms/model)
|
||||
install(TARGETS arms
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
src/ARMSClient.cc )
|
||||
|
||||
add_library(arms ${LIB_TYPE}
|
||||
${arms_public_header}
|
||||
${arms_public_header_model}
|
||||
${arms_src})
|
||||
|
||||
set_target_properties(arms
|
||||
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}arms
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(arms
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ARMS_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(arms
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(arms
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(arms
|
||||
jsoncpp)
|
||||
target_include_directories(arms
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(arms
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(arms
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(arms
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(arms
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${arms_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/arms)
|
||||
install(FILES ${arms_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/arms/model)
|
||||
install(TARGETS arms
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
@@ -1,62 +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_ARMS_ARMSCLIENT_H_
|
||||
#define ALIBABACLOUD_ARMS_ARMSCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ARMSExport.h"
|
||||
/*
|
||||
* 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_ARMS_ARMSCLIENT_H_
|
||||
#define ALIBABACLOUD_ARMS_ARMSCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ARMSExport.h"
|
||||
#include "model/GetTraceRequest.h"
|
||||
#include "model/GetTraceResult.h"
|
||||
#include "model/SearchTracesRequest.h"
|
||||
#include "model/SearchTracesResult.h"
|
||||
#include "model/SearchTraceCountRequest.h"
|
||||
#include "model/SearchTraceCountResult.h"
|
||||
#include "model/GetTagKeyRequest.h"
|
||||
#include "model/GetTagKeyResult.h"
|
||||
#include "model/ARMSQueryDataSetRequest.h"
|
||||
#include "model/ARMSQueryDataSetResult.h"
|
||||
#include "model/GetSpanNamesRequest.h"
|
||||
#include "model/GetSpanNamesResult.h"
|
||||
#include "model/GetServicesRequest.h"
|
||||
#include "model/GetServicesResult.h"
|
||||
#include "model/MetricQueryRequest.h"
|
||||
#include "model/MetricQueryResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::ARMSQueryDataSetResult> ARMSQueryDataSetOutcome;
|
||||
typedef std::future<ARMSQueryDataSetOutcome> ARMSQueryDataSetOutcomeCallable;
|
||||
#include "model/GetTagValRequest.h"
|
||||
#include "model/GetTagValResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::GetTraceResult> GetTraceOutcome;
|
||||
typedef std::future<GetTraceOutcome> GetTraceOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetTraceRequest&, const GetTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTraceAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchTracesResult> SearchTracesOutcome;
|
||||
typedef std::future<SearchTracesOutcome> SearchTracesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchTracesRequest&, const SearchTracesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchTracesAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchTraceCountResult> SearchTraceCountOutcome;
|
||||
typedef std::future<SearchTraceCountOutcome> SearchTraceCountOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchTraceCountRequest&, const SearchTraceCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchTraceCountAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTagKeyResult> GetTagKeyOutcome;
|
||||
typedef std::future<GetTagKeyOutcome> GetTagKeyOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetTagKeyRequest&, const GetTagKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTagKeyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ARMSQueryDataSetResult> ARMSQueryDataSetOutcome;
|
||||
typedef std::future<ARMSQueryDataSetOutcome> ARMSQueryDataSetOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ARMSQueryDataSetRequest&, const ARMSQueryDataSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ARMSQueryDataSetAsyncHandler;
|
||||
typedef Outcome<Error, Model::MetricQueryResult> MetricQueryOutcome;
|
||||
typedef std::future<MetricQueryOutcome> MetricQueryOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetSpanNamesResult> GetSpanNamesOutcome;
|
||||
typedef std::future<GetSpanNamesOutcome> GetSpanNamesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetSpanNamesRequest&, const GetSpanNamesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSpanNamesAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetServicesResult> GetServicesOutcome;
|
||||
typedef std::future<GetServicesOutcome> GetServicesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetServicesRequest&, const GetServicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServicesAsyncHandler;
|
||||
typedef Outcome<Error, Model::MetricQueryResult> MetricQueryOutcome;
|
||||
typedef std::future<MetricQueryOutcome> MetricQueryOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::MetricQueryRequest&, const MetricQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MetricQueryAsyncHandler;
|
||||
|
||||
ARMSClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ARMSClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ARMSClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ARMSClient();
|
||||
ARMSQueryDataSetOutcome aRMSQueryDataSet(const Model::ARMSQueryDataSetRequest &request)const;
|
||||
void aRMSQueryDataSetAsync(const Model::ARMSQueryDataSetRequest& request, const ARMSQueryDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
typedef Outcome<Error, Model::GetTagValResult> GetTagValOutcome;
|
||||
typedef std::future<GetTagValOutcome> GetTagValOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetTagValRequest&, const GetTagValOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTagValAsyncHandler;
|
||||
|
||||
ARMSClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ARMSClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ARMSClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ARMSClient();
|
||||
GetTraceOutcome getTrace(const Model::GetTraceRequest &request)const;
|
||||
void getTraceAsync(const Model::GetTraceRequest& request, const GetTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTraceOutcomeCallable getTraceCallable(const Model::GetTraceRequest& request) const;
|
||||
SearchTracesOutcome searchTraces(const Model::SearchTracesRequest &request)const;
|
||||
void searchTracesAsync(const Model::SearchTracesRequest& request, const SearchTracesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchTracesOutcomeCallable searchTracesCallable(const Model::SearchTracesRequest& request) const;
|
||||
SearchTraceCountOutcome searchTraceCount(const Model::SearchTraceCountRequest &request)const;
|
||||
void searchTraceCountAsync(const Model::SearchTraceCountRequest& request, const SearchTraceCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchTraceCountOutcomeCallable searchTraceCountCallable(const Model::SearchTraceCountRequest& request) const;
|
||||
GetTagKeyOutcome getTagKey(const Model::GetTagKeyRequest &request)const;
|
||||
void getTagKeyAsync(const Model::GetTagKeyRequest& request, const GetTagKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTagKeyOutcomeCallable getTagKeyCallable(const Model::GetTagKeyRequest& request) const;
|
||||
ARMSQueryDataSetOutcome aRMSQueryDataSet(const Model::ARMSQueryDataSetRequest &request)const;
|
||||
void aRMSQueryDataSetAsync(const Model::ARMSQueryDataSetRequest& request, const ARMSQueryDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ARMSQueryDataSetOutcomeCallable aRMSQueryDataSetCallable(const Model::ARMSQueryDataSetRequest& request) const;
|
||||
MetricQueryOutcome metricQuery(const Model::MetricQueryRequest &request)const;
|
||||
void metricQueryAsync(const Model::MetricQueryRequest& request, const MetricQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSpanNamesOutcome getSpanNames(const Model::GetSpanNamesRequest &request)const;
|
||||
void getSpanNamesAsync(const Model::GetSpanNamesRequest& request, const GetSpanNamesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSpanNamesOutcomeCallable getSpanNamesCallable(const Model::GetSpanNamesRequest& request) const;
|
||||
GetServicesOutcome getServices(const Model::GetServicesRequest &request)const;
|
||||
void getServicesAsync(const Model::GetServicesRequest& request, const GetServicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetServicesOutcomeCallable getServicesCallable(const Model::GetServicesRequest& request) const;
|
||||
MetricQueryOutcome metricQuery(const Model::MetricQueryRequest &request)const;
|
||||
void metricQueryAsync(const Model::MetricQueryRequest& request, const MetricQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MetricQueryOutcomeCallable metricQueryCallable(const Model::MetricQueryRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ARMS_ARMSCLIENT_H_
|
||||
GetTagValOutcome getTagVal(const Model::GetTagValRequest &request)const;
|
||||
void getTagValAsync(const Model::GetTagValRequest& request, const GetTagValAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTagValOutcomeCallable getTagValCallable(const Model::GetTagValRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ARMS_ARMSCLIENT_H_
|
||||
|
||||
@@ -1,32 +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_ARMS_ARMSEXPORT_H_
|
||||
#define ALIBABACLOUD_ARMS_ARMSEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ARMS_LIBRARY)
|
||||
# define ALIBABACLOUD_ARMS_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ARMS_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ARMS_EXPORT
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 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_ARMS_ARMSEXPORT_H_
|
||||
#define ALIBABACLOUD_ARMS_ARMSEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ARMS_LIBRARY)
|
||||
# define ALIBABACLOUD_ARMS_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ARMS_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ARMS_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ARMS_ARMSEXPORT_H_
|
||||
@@ -1,35 +1,35 @@
|
||||
/*
|
||||
* 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_ARMS_MODEL_ARMSQUERYDATASETREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSQueryDataSetRequest : public RpcServiceRequest
|
||||
{
|
||||
/*
|
||||
* 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_ARMS_MODEL_ARMSQUERYDATASETREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSQueryDataSetRequest : public RpcServiceRequest
|
||||
{
|
||||
struct OptionalDims
|
||||
{
|
||||
std::string type;
|
||||
@@ -48,11 +48,11 @@ namespace AlibabaCloud
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
ARMSQueryDataSetRequest();
|
||||
~ARMSQueryDataSetRequest();
|
||||
|
||||
|
||||
public:
|
||||
ARMSQueryDataSetRequest();
|
||||
~ARMSQueryDataSetRequest();
|
||||
|
||||
std::string getDateStr()const;
|
||||
void setDateStr(const std::string& dateStr);
|
||||
long getMinTime()const;
|
||||
@@ -87,8 +87,8 @@ namespace AlibabaCloud
|
||||
void setDatasetId(long datasetId);
|
||||
std::vector<Dimensions> getDimensions()const;
|
||||
void setDimensions(const std::vector<Dimensions>& dimensions);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string dateStr_;
|
||||
long minTime_;
|
||||
bool reduceTail_;
|
||||
@@ -106,9 +106,9 @@ namespace AlibabaCloud
|
||||
std::vector<RequiredDims> requiredDims_;
|
||||
long datasetId_;
|
||||
std::vector<Dimensions> dimensions_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETREQUEST_H_
|
||||
@@ -1,51 +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_ARMS_MODEL_ARMSQUERYDATASETRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSQueryDataSetResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ARMSQueryDataSetResult();
|
||||
explicit ARMSQueryDataSetResult(const std::string &payload);
|
||||
~ARMSQueryDataSetResult();
|
||||
/*
|
||||
* 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_ARMS_MODEL_ARMSQUERYDATASETRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSQueryDataSetResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ARMSQueryDataSetResult();
|
||||
explicit ARMSQueryDataSetResult(const std::string &payload);
|
||||
~ARMSQueryDataSetResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETRESULT_H_
|
||||
51
arms/include/alibabacloud/arms/model/GetServicesRequest.h
Normal file
51
arms/include/alibabacloud/arms/model/GetServicesRequest.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETSERVICESREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETSERVICESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetServicesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetServicesRequest();
|
||||
~GetServicesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string appType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETSERVICESREQUEST_H_
|
||||
62
arms/include/alibabacloud/arms/model/GetServicesResult.h
Normal file
62
arms/include/alibabacloud/arms/model/GetServicesResult.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETSERVICESRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETSERVICESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetServicesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct DetailsItem
|
||||
{
|
||||
std::string serviceName;
|
||||
std::string pid;
|
||||
std::string regionId;
|
||||
};
|
||||
std::vector<std::string> services;
|
||||
std::vector<DetailsItem> details;
|
||||
};
|
||||
|
||||
|
||||
GetServicesResult();
|
||||
explicit GetServicesResult(const std::string &payload);
|
||||
~GetServicesResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETSERVICESRESULT_H_
|
||||
57
arms/include/alibabacloud/arms/model/GetSpanNamesRequest.h
Normal file
57
arms/include/alibabacloud/arms/model/GetSpanNamesRequest.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETSPANNAMESREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETSPANNAMESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetSpanNamesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetSpanNamesRequest();
|
||||
~GetSpanNamesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
long endTime_;
|
||||
std::string serviceName_;
|
||||
long startTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETSPANNAMESREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/GetSpanNamesResult.h
Normal file
51
arms/include/alibabacloud/arms/model/GetSpanNamesResult.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETSPANNAMESRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETSPANNAMESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetSpanNamesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetSpanNamesResult();
|
||||
explicit GetSpanNamesResult(const std::string &payload);
|
||||
~GetSpanNamesResult();
|
||||
std::vector<std::string> getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETSPANNAMESRESULT_H_
|
||||
60
arms/include/alibabacloud/arms/model/GetTagKeyRequest.h
Normal file
60
arms/include/alibabacloud/arms/model/GetTagKeyRequest.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETTAGKEYREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETTAGKEYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetTagKeyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTagKeyRequest();
|
||||
~GetTagKeyRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getSpanName()const;
|
||||
void setSpanName(const std::string& spanName);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
long endTime_;
|
||||
std::string serviceName_;
|
||||
long startTime_;
|
||||
std::string spanName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETTAGKEYREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/GetTagKeyResult.h
Normal file
51
arms/include/alibabacloud/arms/model/GetTagKeyResult.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETTAGKEYRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETTAGKEYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetTagKeyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetTagKeyResult();
|
||||
explicit GetTagKeyResult(const std::string &payload);
|
||||
~GetTagKeyResult();
|
||||
std::vector<std::string> getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETTAGKEYRESULT_H_
|
||||
63
arms/include/alibabacloud/arms/model/GetTagValRequest.h
Normal file
63
arms/include/alibabacloud/arms/model/GetTagValRequest.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETTAGVALREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETTAGVALREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetTagValRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTagValRequest();
|
||||
~GetTagValRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getTagKey()const;
|
||||
void setTagKey(const std::string& tagKey);
|
||||
std::string getSpanName()const;
|
||||
void setSpanName(const std::string& spanName);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
long endTime_;
|
||||
std::string serviceName_;
|
||||
long startTime_;
|
||||
std::string tagKey_;
|
||||
std::string spanName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETTAGVALREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/GetTagValResult.h
Normal file
51
arms/include/alibabacloud/arms/model/GetTagValResult.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETTAGVALRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETTAGVALRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetTagValResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetTagValResult();
|
||||
explicit GetTagValResult(const std::string &payload);
|
||||
~GetTagValResult();
|
||||
std::vector<std::string> getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETTAGVALRESULT_H_
|
||||
54
arms/include/alibabacloud/arms/model/GetTraceRequest.h
Normal file
54
arms/include/alibabacloud/arms/model/GetTraceRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETTRACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETTRACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetTraceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTraceRequest();
|
||||
~GetTraceRequest();
|
||||
|
||||
std::string getTraceID()const;
|
||||
void setTraceID(const std::string& traceID);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
|
||||
private:
|
||||
std::string traceID_;
|
||||
std::string regionId_;
|
||||
std::string appType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETTRACEREQUEST_H_
|
||||
80
arms/include/alibabacloud/arms/model/GetTraceResult.h
Normal file
80
arms/include/alibabacloud/arms/model/GetTraceResult.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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_ARMS_MODEL_GETTRACERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETTRACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetTraceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct CallChainInfo
|
||||
{
|
||||
struct TagEntry
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct LogEvent
|
||||
{
|
||||
struct TagEntry2
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::vector<LogEvent::TagEntry2> tagEntryList1;
|
||||
long timestamp;
|
||||
};
|
||||
bool haveStack;
|
||||
std::string serviceIp;
|
||||
std::vector<CallChainInfo::LogEvent> logEventList;
|
||||
std::string operationName;
|
||||
std::string serviceName;
|
||||
std::string rpcId;
|
||||
std::string traceID;
|
||||
long duration;
|
||||
std::vector<CallChainInfo::TagEntry> tagEntryList;
|
||||
long timestamp;
|
||||
std::string resultCode;
|
||||
};
|
||||
|
||||
|
||||
GetTraceResult();
|
||||
explicit GetTraceResult(const std::string &payload);
|
||||
~GetTraceResult();
|
||||
std::vector<CallChainInfo> getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<CallChainInfo> data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETTRACERESULT_H_
|
||||
@@ -1,45 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_METRICQUERYREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_METRICQUERYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT MetricQueryRequest : public RpcServiceRequest
|
||||
{
|
||||
/*
|
||||
* 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_ARMS_MODEL_METRICQUERYREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_METRICQUERYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT MetricQueryRequest : public RpcServiceRequest
|
||||
{
|
||||
struct Filters
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
MetricQueryRequest();
|
||||
~MetricQueryRequest();
|
||||
|
||||
|
||||
public:
|
||||
MetricQueryRequest();
|
||||
~MetricQueryRequest();
|
||||
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getOrderBy()const;
|
||||
void setOrderBy(const std::string& orderBy);
|
||||
std::vector<Filters> getFilters()const;
|
||||
void setFilters(const std::vector<Filters>& filters);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
int getIintervalInSec()const;
|
||||
void setIintervalInSec(int iintervalInSec);
|
||||
std::vector<std::string> getMeasures()const;
|
||||
@@ -48,39 +58,32 @@ namespace AlibabaCloud
|
||||
void setMetric(const std::string& metric);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getLimit()const;
|
||||
void setLimit(int limit);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getOrderBy()const;
|
||||
void setOrderBy(const std::string& orderBy);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::vector<Filters> getFilters()const;
|
||||
void setFilters(const std::vector<Filters>& filters);
|
||||
std::vector<std::string> getDimensions()const;
|
||||
void setDimensions(const std::vector<std::string>& dimensions);
|
||||
std::string getOrder()const;
|
||||
void setOrder(const std::string& order);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
long endTime_;
|
||||
std::string orderBy_;
|
||||
std::vector<Filters> filters_;
|
||||
long startTime_;
|
||||
std::string accessKeyId_;
|
||||
int iintervalInSec_;
|
||||
std::vector<std::string> measures_;
|
||||
std::string metric_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
int limit_;
|
||||
long endTime_;
|
||||
std::string orderBy_;
|
||||
long startTime_;
|
||||
std::vector<Filters> filters_;
|
||||
std::vector<std::string> dimensions_;
|
||||
std::string order_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_METRICQUERYREQUEST_H_
|
||||
@@ -1,51 +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_ARMS_MODEL_METRICQUERYRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_METRICQUERYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT MetricQueryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
MetricQueryResult();
|
||||
explicit MetricQueryResult(const std::string &payload);
|
||||
~MetricQueryResult();
|
||||
/*
|
||||
* 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_ARMS_MODEL_METRICQUERYRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_METRICQUERYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT MetricQueryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
MetricQueryResult();
|
||||
explicit MetricQueryResult(const std::string &payload);
|
||||
~MetricQueryResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_METRICQUERYRESULT_H_
|
||||
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACECOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACECOUNTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SearchTraceCountRequest : public RpcServiceRequest
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
SearchTraceCountRequest();
|
||||
~SearchTraceCountRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getOperationName()const;
|
||||
void setOperationName(const std::string& operationName);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
long getMinDuration()const;
|
||||
void setMinDuration(long minDuration);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
std::string operationName_;
|
||||
std::string appType_;
|
||||
long endTime_;
|
||||
std::string serviceName_;
|
||||
long startTime_;
|
||||
std::vector<Tag> tag_;
|
||||
long minDuration_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACECOUNTREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACECOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACECOUNTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SearchTraceCountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
long count;
|
||||
};
|
||||
|
||||
|
||||
SearchTraceCountResult();
|
||||
explicit SearchTraceCountResult(const std::string &payload);
|
||||
~SearchTraceCountResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACECOUNTRESULT_H_
|
||||
86
arms/include/alibabacloud/arms/model/SearchTracesRequest.h
Normal file
86
arms/include/alibabacloud/arms/model/SearchTracesRequest.h
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SearchTracesRequest : public RpcServiceRequest
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
SearchTracesRequest();
|
||||
~SearchTracesRequest();
|
||||
|
||||
std::string getServiceIp()const;
|
||||
void setServiceIp(const std::string& serviceIp);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getOperationName()const;
|
||||
void setOperationName(const std::string& operationName);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
int getPageIndex()const;
|
||||
void setPageIndex(int pageIndex);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
bool getReverse()const;
|
||||
void setReverse(bool reverse);
|
||||
long getMinDuration()const;
|
||||
void setMinDuration(long minDuration);
|
||||
|
||||
private:
|
||||
std::string serviceIp_;
|
||||
std::string regionId_;
|
||||
std::string operationName_;
|
||||
std::string appType_;
|
||||
int pageSize_;
|
||||
long endTime_;
|
||||
std::string serviceName_;
|
||||
int pageIndex_;
|
||||
long startTime_;
|
||||
std::vector<Tag> tag_;
|
||||
bool reverse_;
|
||||
long minDuration_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESREQUEST_H_
|
||||
60
arms/include/alibabacloud/arms/model/SearchTracesResult.h
Normal file
60
arms/include/alibabacloud/arms/model/SearchTracesResult.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SearchTracesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TraceInfo
|
||||
{
|
||||
std::string serviceIp;
|
||||
std::string operationName;
|
||||
std::string serviceName;
|
||||
std::string traceID;
|
||||
int duration;
|
||||
long timestamp;
|
||||
};
|
||||
|
||||
|
||||
SearchTracesResult();
|
||||
explicit SearchTracesResult(const std::string &payload);
|
||||
~SearchTracesResult();
|
||||
std::vector<TraceInfo> getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<TraceInfo> data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESRESULT_H_
|
||||
@@ -1,125 +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/arms/ARMSClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "ARMS";
|
||||
}
|
||||
|
||||
ARMSClient::ARMSClient(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, "");
|
||||
}
|
||||
|
||||
ARMSClient::ARMSClient(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, "");
|
||||
}
|
||||
|
||||
ARMSClient::ARMSClient(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, "");
|
||||
}
|
||||
|
||||
ARMSClient::~ARMSClient()
|
||||
{}
|
||||
|
||||
ARMSClient::ARMSQueryDataSetOutcome ARMSClient::aRMSQueryDataSet(const ARMSQueryDataSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ARMSQueryDataSetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ARMSQueryDataSetOutcome(ARMSQueryDataSetResult(outcome.result()));
|
||||
else
|
||||
return ARMSQueryDataSetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::aRMSQueryDataSetAsync(const ARMSQueryDataSetRequest& request, const ARMSQueryDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, aRMSQueryDataSet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ARMSQueryDataSetOutcomeCallable ARMSClient::aRMSQueryDataSetCallable(const ARMSQueryDataSetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ARMSQueryDataSetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->aRMSQueryDataSet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
ARMSClient::MetricQueryOutcome ARMSClient::metricQuery(const MetricQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MetricQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MetricQueryOutcome(MetricQueryResult(outcome.result()));
|
||||
else
|
||||
return MetricQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::metricQueryAsync(const MetricQueryRequest& request, const MetricQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, metricQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::MetricQueryOutcomeCallable ARMSClient::metricQueryCallable(const MetricQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MetricQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->metricQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
#include <alibabacloud/arms/ARMSClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "ARMS";
|
||||
}
|
||||
|
||||
ARMSClient::ARMSClient(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, "");
|
||||
}
|
||||
|
||||
ARMSClient::ARMSClient(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, "");
|
||||
}
|
||||
|
||||
ARMSClient::ARMSClient(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, "");
|
||||
}
|
||||
|
||||
ARMSClient::~ARMSClient()
|
||||
{}
|
||||
|
||||
ARMSClient::GetTraceOutcome ARMSClient::getTrace(const GetTraceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTraceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTraceOutcome(GetTraceResult(outcome.result()));
|
||||
else
|
||||
return GetTraceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getTraceAsync(const GetTraceRequest& request, const GetTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTrace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetTraceOutcomeCallable ARMSClient::getTraceCallable(const GetTraceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTraceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTrace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SearchTracesOutcome ARMSClient::searchTraces(const SearchTracesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchTracesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchTracesOutcome(SearchTracesResult(outcome.result()));
|
||||
else
|
||||
return SearchTracesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::searchTracesAsync(const SearchTracesRequest& request, const SearchTracesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchTraces(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::SearchTracesOutcomeCallable ARMSClient::searchTracesCallable(const SearchTracesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchTracesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchTraces(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SearchTraceCountOutcome ARMSClient::searchTraceCount(const SearchTraceCountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchTraceCountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchTraceCountOutcome(SearchTraceCountResult(outcome.result()));
|
||||
else
|
||||
return SearchTraceCountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::searchTraceCountAsync(const SearchTraceCountRequest& request, const SearchTraceCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchTraceCount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::SearchTraceCountOutcomeCallable ARMSClient::searchTraceCountCallable(const SearchTraceCountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchTraceCountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchTraceCount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetTagKeyOutcome ARMSClient::getTagKey(const GetTagKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTagKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTagKeyOutcome(GetTagKeyResult(outcome.result()));
|
||||
else
|
||||
return GetTagKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getTagKeyAsync(const GetTagKeyRequest& request, const GetTagKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTagKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetTagKeyOutcomeCallable ARMSClient::getTagKeyCallable(const GetTagKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTagKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTagKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ARMSQueryDataSetOutcome ARMSClient::aRMSQueryDataSet(const ARMSQueryDataSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ARMSQueryDataSetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ARMSQueryDataSetOutcome(ARMSQueryDataSetResult(outcome.result()));
|
||||
else
|
||||
return ARMSQueryDataSetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::aRMSQueryDataSetAsync(const ARMSQueryDataSetRequest& request, const ARMSQueryDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, aRMSQueryDataSet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ARMSQueryDataSetOutcomeCallable ARMSClient::aRMSQueryDataSetCallable(const ARMSQueryDataSetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ARMSQueryDataSetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->aRMSQueryDataSet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetSpanNamesOutcome ARMSClient::getSpanNames(const GetSpanNamesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetSpanNamesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetSpanNamesOutcome(GetSpanNamesResult(outcome.result()));
|
||||
else
|
||||
return GetSpanNamesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getSpanNamesAsync(const GetSpanNamesRequest& request, const GetSpanNamesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getSpanNames(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetSpanNamesOutcomeCallable ARMSClient::getSpanNamesCallable(const GetSpanNamesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetSpanNamesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getSpanNames(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetServicesOutcome ARMSClient::getServices(const GetServicesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetServicesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetServicesOutcome(GetServicesResult(outcome.result()));
|
||||
else
|
||||
return GetServicesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getServicesAsync(const GetServicesRequest& request, const GetServicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getServices(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetServicesOutcomeCallable ARMSClient::getServicesCallable(const GetServicesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetServicesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getServices(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::MetricQueryOutcome ARMSClient::metricQuery(const MetricQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MetricQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MetricQueryOutcome(MetricQueryResult(outcome.result()));
|
||||
else
|
||||
return MetricQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::metricQueryAsync(const MetricQueryRequest& request, const MetricQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, metricQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::MetricQueryOutcomeCallable ARMSClient::metricQueryCallable(const MetricQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MetricQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->metricQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetTagValOutcome ARMSClient::getTagVal(const GetTagValRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTagValOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTagValOutcome(GetTagValResult(outcome.result()));
|
||||
else
|
||||
return GetTagValOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getTagValAsync(const GetTagValRequest& request, const GetTagValAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTagVal(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetTagValOutcomeCallable ARMSClient::getTagValCallable(const GetTagValRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTagValOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTagVal(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/arms/model/ARMSQueryDataSetRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ARMSQueryDataSetRequest;
|
||||
|
||||
ARMSQueryDataSetRequest::ARMSQueryDataSetRequest() :
|
||||
RpcServiceRequest("arms", "2018-10-15", "ARMSQueryDataSet")
|
||||
{}
|
||||
|
||||
ARMSQueryDataSetRequest::~ARMSQueryDataSetRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/arms/model/ARMSQueryDataSetRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ARMSQueryDataSetRequest;
|
||||
|
||||
ARMSQueryDataSetRequest::ARMSQueryDataSetRequest() :
|
||||
RpcServiceRequest("arms", "2019-02-19", "ARMSQueryDataSet")
|
||||
{}
|
||||
|
||||
ARMSQueryDataSetRequest::~ARMSQueryDataSetRequest()
|
||||
{}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getDateStr()const
|
||||
{
|
||||
return dateStr_;
|
||||
@@ -33,7 +33,7 @@ std::string ARMSQueryDataSetRequest::getDateStr()const
|
||||
void ARMSQueryDataSetRequest::setDateStr(const std::string& dateStr)
|
||||
{
|
||||
dateStr_ = dateStr;
|
||||
setParameter("DateStr", dateStr);
|
||||
setCoreParameter("DateStr", dateStr);
|
||||
}
|
||||
|
||||
long ARMSQueryDataSetRequest::getMinTime()const
|
||||
@@ -44,7 +44,7 @@ long ARMSQueryDataSetRequest::getMinTime()const
|
||||
void ARMSQueryDataSetRequest::setMinTime(long minTime)
|
||||
{
|
||||
minTime_ = minTime;
|
||||
setParameter("MinTime", std::to_string(minTime));
|
||||
setCoreParameter("MinTime", std::to_string(minTime));
|
||||
}
|
||||
|
||||
bool ARMSQueryDataSetRequest::getReduceTail()const
|
||||
@@ -55,7 +55,7 @@ bool ARMSQueryDataSetRequest::getReduceTail()const
|
||||
void ARMSQueryDataSetRequest::setReduceTail(bool reduceTail)
|
||||
{
|
||||
reduceTail_ = reduceTail;
|
||||
setParameter("ReduceTail", std::to_string(reduceTail));
|
||||
setCoreParameter("ReduceTail", reduceTail ? "true" : "false");
|
||||
}
|
||||
|
||||
long ARMSQueryDataSetRequest::getMaxTime()const
|
||||
@@ -66,7 +66,7 @@ long ARMSQueryDataSetRequest::getMaxTime()const
|
||||
void ARMSQueryDataSetRequest::setMaxTime(long maxTime)
|
||||
{
|
||||
maxTime_ = maxTime;
|
||||
setParameter("MaxTime", std::to_string(maxTime));
|
||||
setCoreParameter("MaxTime", std::to_string(maxTime));
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getAccessKeyId()const
|
||||
@@ -77,7 +77,7 @@ std::string ARMSQueryDataSetRequest::getAccessKeyId()const
|
||||
void ARMSQueryDataSetRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<ARMSQueryDataSetRequest::OptionalDims> ARMSQueryDataSetRequest::getOptionalDims()const
|
||||
@@ -92,9 +92,9 @@ void ARMSQueryDataSetRequest::setOptionalDims(const std::vector<OptionalDims>& o
|
||||
for(int i = 0; i!= optionalDims.size(); i++) {
|
||||
auto obj = optionalDims.at(i);
|
||||
std::string str ="OptionalDims."+ std::to_string(i);
|
||||
setParameter(str + ".Type", obj.type);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
setCoreParameter(str + ".Type", obj.type);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ void ARMSQueryDataSetRequest::setMeasures(const std::vector<std::string>& measur
|
||||
{
|
||||
measures_ = measures;
|
||||
for(int i = 0; i!= measures.size(); i++)
|
||||
setParameter("Measures."+ std::to_string(i), measures.at(i));
|
||||
setCoreParameter("Measures."+ std::to_string(i), measures.at(i));
|
||||
}
|
||||
|
||||
int ARMSQueryDataSetRequest::getIntervalInSec()const
|
||||
@@ -118,7 +118,7 @@ int ARMSQueryDataSetRequest::getIntervalInSec()const
|
||||
void ARMSQueryDataSetRequest::setIntervalInSec(int intervalInSec)
|
||||
{
|
||||
intervalInSec_ = intervalInSec;
|
||||
setParameter("IntervalInSec", std::to_string(intervalInSec));
|
||||
setCoreParameter("IntervalInSec", std::to_string(intervalInSec));
|
||||
}
|
||||
|
||||
bool ARMSQueryDataSetRequest::getIsDrillDown()const
|
||||
@@ -129,7 +129,7 @@ bool ARMSQueryDataSetRequest::getIsDrillDown()const
|
||||
void ARMSQueryDataSetRequest::setIsDrillDown(bool isDrillDown)
|
||||
{
|
||||
isDrillDown_ = isDrillDown;
|
||||
setParameter("IsDrillDown", std::to_string(isDrillDown));
|
||||
setCoreParameter("IsDrillDown", isDrillDown ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ARMSQueryDataSetRequest::getHungryMode()const
|
||||
@@ -140,7 +140,7 @@ bool ARMSQueryDataSetRequest::getHungryMode()const
|
||||
void ARMSQueryDataSetRequest::setHungryMode(bool hungryMode)
|
||||
{
|
||||
hungryMode_ = hungryMode;
|
||||
setParameter("HungryMode", std::to_string(hungryMode));
|
||||
setCoreParameter("HungryMode", hungryMode ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getSecurityToken()const
|
||||
@@ -151,7 +151,7 @@ std::string ARMSQueryDataSetRequest::getSecurityToken()const
|
||||
void ARMSQueryDataSetRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getRegionId()const
|
||||
@@ -162,7 +162,7 @@ std::string ARMSQueryDataSetRequest::getRegionId()const
|
||||
void ARMSQueryDataSetRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getOrderByKey()const
|
||||
@@ -173,7 +173,7 @@ std::string ARMSQueryDataSetRequest::getOrderByKey()const
|
||||
void ARMSQueryDataSetRequest::setOrderByKey(const std::string& orderByKey)
|
||||
{
|
||||
orderByKey_ = orderByKey;
|
||||
setParameter("OrderByKey", orderByKey);
|
||||
setCoreParameter("OrderByKey", orderByKey);
|
||||
}
|
||||
|
||||
int ARMSQueryDataSetRequest::getLimit()const
|
||||
@@ -184,7 +184,7 @@ int ARMSQueryDataSetRequest::getLimit()const
|
||||
void ARMSQueryDataSetRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
setCoreParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
std::vector<ARMSQueryDataSetRequest::RequiredDims> ARMSQueryDataSetRequest::getRequiredDims()const
|
||||
@@ -199,9 +199,9 @@ void ARMSQueryDataSetRequest::setRequiredDims(const std::vector<RequiredDims>& r
|
||||
for(int i = 0; i!= requiredDims.size(); i++) {
|
||||
auto obj = requiredDims.at(i);
|
||||
std::string str ="RequiredDims."+ std::to_string(i);
|
||||
setParameter(str + ".Type", obj.type);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
setCoreParameter(str + ".Type", obj.type);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,7 +213,7 @@ long ARMSQueryDataSetRequest::getDatasetId()const
|
||||
void ARMSQueryDataSetRequest::setDatasetId(long datasetId)
|
||||
{
|
||||
datasetId_ = datasetId;
|
||||
setParameter("DatasetId", std::to_string(datasetId));
|
||||
setCoreParameter("DatasetId", std::to_string(datasetId));
|
||||
}
|
||||
|
||||
std::vector<ARMSQueryDataSetRequest::Dimensions> ARMSQueryDataSetRequest::getDimensions()const
|
||||
@@ -228,9 +228,9 @@ void ARMSQueryDataSetRequest::setDimensions(const std::vector<Dimensions>& dimen
|
||||
for(int i = 0; i!= dimensions.size(); i++) {
|
||||
auto obj = dimensions.at(i);
|
||||
std::string str ="Dimensions."+ std::to_string(i);
|
||||
setParameter(str + ".Type", obj.type);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
setCoreParameter(str + ".Type", obj.type);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,50 +1,50 @@
|
||||
/*
|
||||
* 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/arms/model/ARMSQueryDataSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ARMSQueryDataSetResult::ARMSQueryDataSetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ARMSQueryDataSetResult::ARMSQueryDataSetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ARMSQueryDataSetResult::~ARMSQueryDataSetResult()
|
||||
{}
|
||||
|
||||
void ARMSQueryDataSetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/arms/model/ARMSQueryDataSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ARMSQueryDataSetResult::ARMSQueryDataSetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ARMSQueryDataSetResult::ARMSQueryDataSetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ARMSQueryDataSetResult::~ARMSQueryDataSetResult()
|
||||
{}
|
||||
|
||||
void ARMSQueryDataSetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
|
||||
49
arms/src/model/GetServicesRequest.cc
Normal file
49
arms/src/model/GetServicesRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetServicesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetServicesRequest;
|
||||
|
||||
GetServicesRequest::GetServicesRequest() :
|
||||
RpcServiceRequest("arms", "2019-02-19", "GetServices")
|
||||
{}
|
||||
|
||||
GetServicesRequest::~GetServicesRequest()
|
||||
{}
|
||||
|
||||
std::string GetServicesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetServicesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetServicesRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void GetServicesRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setCoreParameter("AppType", appType);
|
||||
}
|
||||
|
||||
66
arms/src/model/GetServicesResult.cc
Normal file
66
arms/src/model/GetServicesResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetServicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetServicesResult::GetServicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServicesResult::GetServicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServicesResult::~GetServicesResult()
|
||||
{}
|
||||
|
||||
void GetServicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allDetails = value["Details"]["DetailsItem"];
|
||||
for (auto value : allDetails)
|
||||
{
|
||||
Data::DetailsItem detailsItemObject;
|
||||
if(!value["ServiceName"].isNull())
|
||||
detailsItemObject.serviceName = value["ServiceName"].asString();
|
||||
if(!value["Pid"].isNull())
|
||||
detailsItemObject.pid = value["Pid"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
detailsItemObject.regionId = value["RegionId"].asString();
|
||||
data_.details.push_back(detailsItemObject);
|
||||
}
|
||||
auto allServices = dataNode["Services"]["Services"];
|
||||
for (auto value : allServices)
|
||||
data_.services.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
GetServicesResult::Data GetServicesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
71
arms/src/model/GetSpanNamesRequest.cc
Normal file
71
arms/src/model/GetSpanNamesRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetSpanNamesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetSpanNamesRequest;
|
||||
|
||||
GetSpanNamesRequest::GetSpanNamesRequest() :
|
||||
RpcServiceRequest("arms", "2019-02-19", "GetSpanNames")
|
||||
{}
|
||||
|
||||
GetSpanNamesRequest::~GetSpanNamesRequest()
|
||||
{}
|
||||
|
||||
std::string GetSpanNamesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetSpanNamesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long GetSpanNamesRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetSpanNamesRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GetSpanNamesRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void GetSpanNamesRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long GetSpanNamesRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetSpanNamesRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
53
arms/src/model/GetSpanNamesResult.cc
Normal file
53
arms/src/model/GetSpanNamesResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetSpanNamesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetSpanNamesResult::GetSpanNamesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSpanNamesResult::GetSpanNamesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSpanNamesResult::~GetSpanNamesResult()
|
||||
{}
|
||||
|
||||
void GetSpanNamesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["Data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> GetSpanNamesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
82
arms/src/model/GetTagKeyRequest.cc
Normal file
82
arms/src/model/GetTagKeyRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetTagKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetTagKeyRequest;
|
||||
|
||||
GetTagKeyRequest::GetTagKeyRequest() :
|
||||
RpcServiceRequest("arms", "2019-02-19", "GetTagKey")
|
||||
{}
|
||||
|
||||
GetTagKeyRequest::~GetTagKeyRequest()
|
||||
{}
|
||||
|
||||
std::string GetTagKeyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetTagKeyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long GetTagKeyRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetTagKeyRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GetTagKeyRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void GetTagKeyRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long GetTagKeyRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetTagKeyRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetTagKeyRequest::getSpanName()const
|
||||
{
|
||||
return spanName_;
|
||||
}
|
||||
|
||||
void GetTagKeyRequest::setSpanName(const std::string& spanName)
|
||||
{
|
||||
spanName_ = spanName;
|
||||
setCoreParameter("SpanName", spanName);
|
||||
}
|
||||
|
||||
53
arms/src/model/GetTagKeyResult.cc
Normal file
53
arms/src/model/GetTagKeyResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetTagKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetTagKeyResult::GetTagKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTagKeyResult::GetTagKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTagKeyResult::~GetTagKeyResult()
|
||||
{}
|
||||
|
||||
void GetTagKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["Data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> GetTagKeyResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
93
arms/src/model/GetTagValRequest.cc
Normal file
93
arms/src/model/GetTagValRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetTagValRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetTagValRequest;
|
||||
|
||||
GetTagValRequest::GetTagValRequest() :
|
||||
RpcServiceRequest("arms", "2019-02-19", "GetTagVal")
|
||||
{}
|
||||
|
||||
GetTagValRequest::~GetTagValRequest()
|
||||
{}
|
||||
|
||||
std::string GetTagValRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetTagValRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long GetTagValRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetTagValRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GetTagValRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void GetTagValRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long GetTagValRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetTagValRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetTagValRequest::getTagKey()const
|
||||
{
|
||||
return tagKey_;
|
||||
}
|
||||
|
||||
void GetTagValRequest::setTagKey(const std::string& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
setCoreParameter("TagKey", tagKey);
|
||||
}
|
||||
|
||||
std::string GetTagValRequest::getSpanName()const
|
||||
{
|
||||
return spanName_;
|
||||
}
|
||||
|
||||
void GetTagValRequest::setSpanName(const std::string& spanName)
|
||||
{
|
||||
spanName_ = spanName;
|
||||
setCoreParameter("SpanName", spanName);
|
||||
}
|
||||
|
||||
53
arms/src/model/GetTagValResult.cc
Normal file
53
arms/src/model/GetTagValResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetTagValResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetTagValResult::GetTagValResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTagValResult::GetTagValResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTagValResult::~GetTagValResult()
|
||||
{}
|
||||
|
||||
void GetTagValResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["Data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> GetTagValResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
60
arms/src/model/GetTraceRequest.cc
Normal file
60
arms/src/model/GetTraceRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetTraceRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetTraceRequest;
|
||||
|
||||
GetTraceRequest::GetTraceRequest() :
|
||||
RpcServiceRequest("arms", "2019-02-19", "GetTrace")
|
||||
{}
|
||||
|
||||
GetTraceRequest::~GetTraceRequest()
|
||||
{}
|
||||
|
||||
std::string GetTraceRequest::getTraceID()const
|
||||
{
|
||||
return traceID_;
|
||||
}
|
||||
|
||||
void GetTraceRequest::setTraceID(const std::string& traceID)
|
||||
{
|
||||
traceID_ = traceID;
|
||||
setCoreParameter("TraceID", traceID);
|
||||
}
|
||||
|
||||
std::string GetTraceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetTraceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetTraceRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void GetTraceRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setCoreParameter("AppType", appType);
|
||||
}
|
||||
|
||||
102
arms/src/model/GetTraceResult.cc
Normal file
102
arms/src/model/GetTraceResult.cc
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetTraceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetTraceResult::GetTraceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTraceResult::GetTraceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTraceResult::~GetTraceResult()
|
||||
{}
|
||||
|
||||
void GetTraceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["CallChainInfo"];
|
||||
for (auto value : allData)
|
||||
{
|
||||
CallChainInfo dataObject;
|
||||
if(!value["TraceID"].isNull())
|
||||
dataObject.traceID = value["TraceID"].asString();
|
||||
if(!value["OperationName"].isNull())
|
||||
dataObject.operationName = value["OperationName"].asString();
|
||||
if(!value["Duration"].isNull())
|
||||
dataObject.duration = std::stol(value["Duration"].asString());
|
||||
if(!value["ServiceName"].isNull())
|
||||
dataObject.serviceName = value["ServiceName"].asString();
|
||||
if(!value["ServiceIp"].isNull())
|
||||
dataObject.serviceIp = value["ServiceIp"].asString();
|
||||
if(!value["Timestamp"].isNull())
|
||||
dataObject.timestamp = std::stol(value["Timestamp"].asString());
|
||||
if(!value["RpcId"].isNull())
|
||||
dataObject.rpcId = value["RpcId"].asString();
|
||||
if(!value["ResultCode"].isNull())
|
||||
dataObject.resultCode = value["ResultCode"].asString();
|
||||
if(!value["HaveStack"].isNull())
|
||||
dataObject.haveStack = value["HaveStack"].asString() == "true";
|
||||
auto allTagEntryList = value["TagEntryList"]["TagEntry"];
|
||||
for (auto value : allTagEntryList)
|
||||
{
|
||||
CallChainInfo::TagEntry tagEntryListObject;
|
||||
if(!value["Key"].isNull())
|
||||
tagEntryListObject.key = value["Key"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
tagEntryListObject.value = value["Value"].asString();
|
||||
dataObject.tagEntryList.push_back(tagEntryListObject);
|
||||
}
|
||||
auto allLogEventList = value["LogEventList"]["LogEvent"];
|
||||
for (auto value : allLogEventList)
|
||||
{
|
||||
CallChainInfo::LogEvent logEventListObject;
|
||||
if(!value["Timestamp"].isNull())
|
||||
logEventListObject.timestamp = std::stol(value["Timestamp"].asString());
|
||||
auto allTagEntryList1 = value["TagEntryList"]["TagEntry"];
|
||||
for (auto value : allTagEntryList1)
|
||||
{
|
||||
CallChainInfo::LogEvent::TagEntry2 tagEntryList1Object;
|
||||
if(!value["Key"].isNull())
|
||||
tagEntryList1Object.key = value["Key"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
tagEntryList1Object.value = value["Value"].asString();
|
||||
logEventListObject.tagEntryList1.push_back(tagEntryList1Object);
|
||||
}
|
||||
dataObject.logEventList.push_back(logEventListObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetTraceResult::CallChainInfo> GetTraceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,85 +1,29 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/MetricQueryRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::MetricQueryRequest;
|
||||
|
||||
MetricQueryRequest::MetricQueryRequest() :
|
||||
RpcServiceRequest("arms", "2018-10-15", "MetricQuery")
|
||||
{}
|
||||
|
||||
MetricQueryRequest::~MetricQueryRequest()
|
||||
{}
|
||||
|
||||
int MetricQueryRequest::getIintervalInSec()const
|
||||
{
|
||||
return iintervalInSec_;
|
||||
}
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
void MetricQueryRequest::setIintervalInSec(int iintervalInSec)
|
||||
{
|
||||
iintervalInSec_ = iintervalInSec;
|
||||
setParameter("IintervalInSec", std::to_string(iintervalInSec));
|
||||
}
|
||||
#include <alibabacloud/arms/model/MetricQueryRequest.h>
|
||||
|
||||
std::vector<std::string> MetricQueryRequest::getMeasures()const
|
||||
{
|
||||
return measures_;
|
||||
}
|
||||
using AlibabaCloud::ARMS::Model::MetricQueryRequest;
|
||||
|
||||
void MetricQueryRequest::setMeasures(const std::vector<std::string>& measures)
|
||||
{
|
||||
measures_ = measures;
|
||||
for(int i = 0; i!= measures.size(); i++)
|
||||
setParameter("Measures."+ std::to_string(i), measures.at(i));
|
||||
}
|
||||
MetricQueryRequest::MetricQueryRequest() :
|
||||
RpcServiceRequest("arms", "2019-02-19", "MetricQuery")
|
||||
{}
|
||||
|
||||
std::string MetricQueryRequest::getMetric()const
|
||||
{
|
||||
return metric_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setMetric(const std::string& metric)
|
||||
{
|
||||
metric_ = metric;
|
||||
setParameter("Metric", metric);
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
int MetricQueryRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
MetricQueryRequest::~MetricQueryRequest()
|
||||
{}
|
||||
|
||||
long MetricQueryRequest::getEndTime()const
|
||||
{
|
||||
@@ -89,7 +33,7 @@ long MetricQueryRequest::getEndTime()const
|
||||
void MetricQueryRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getOrderBy()const
|
||||
@@ -100,18 +44,7 @@ std::string MetricQueryRequest::getOrderBy()const
|
||||
void MetricQueryRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
long MetricQueryRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
setCoreParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
std::vector<MetricQueryRequest::Filters> MetricQueryRequest::getFilters()const
|
||||
@@ -126,11 +59,100 @@ void MetricQueryRequest::setFilters(const std::vector<Filters>& filters)
|
||||
for(int i = 0; i!= filters.size(); i++) {
|
||||
auto obj = filters.at(i);
|
||||
std::string str ="Filters."+ std::to_string(i);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
long MetricQueryRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int MetricQueryRequest::getIintervalInSec()const
|
||||
{
|
||||
return iintervalInSec_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setIintervalInSec(int iintervalInSec)
|
||||
{
|
||||
iintervalInSec_ = iintervalInSec;
|
||||
setCoreParameter("IintervalInSec", std::to_string(iintervalInSec));
|
||||
}
|
||||
|
||||
std::vector<std::string> MetricQueryRequest::getMeasures()const
|
||||
{
|
||||
return measures_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setMeasures(const std::vector<std::string>& measures)
|
||||
{
|
||||
measures_ = measures;
|
||||
for(int i = 0; i!= measures.size(); i++)
|
||||
setCoreParameter("Measures."+ std::to_string(i), measures.at(i));
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getMetric()const
|
||||
{
|
||||
return metric_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setMetric(const std::string& metric)
|
||||
{
|
||||
metric_ = metric;
|
||||
setCoreParameter("Metric", metric);
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int MetricQueryRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setCoreParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
std::vector<std::string> MetricQueryRequest::getDimensions()const
|
||||
{
|
||||
return dimensions_;
|
||||
@@ -140,7 +162,7 @@ void MetricQueryRequest::setDimensions(const std::vector<std::string>& dimension
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
for(int i = 0; i!= dimensions.size(); i++)
|
||||
setParameter("Dimensions."+ std::to_string(i), dimensions.at(i));
|
||||
setCoreParameter("Dimensions."+ std::to_string(i), dimensions.at(i));
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getOrder()const
|
||||
@@ -151,17 +173,6 @@ std::string MetricQueryRequest::getOrder()const
|
||||
void MetricQueryRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setParameter("Order", order);
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("Order", order);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,50 +1,50 @@
|
||||
/*
|
||||
* 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/arms/model/MetricQueryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
MetricQueryResult::MetricQueryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
MetricQueryResult::MetricQueryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
MetricQueryResult::~MetricQueryResult()
|
||||
{}
|
||||
|
||||
void MetricQueryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/arms/model/MetricQueryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
MetricQueryResult::MetricQueryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
MetricQueryResult::MetricQueryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
MetricQueryResult::~MetricQueryResult()
|
||||
{}
|
||||
|
||||
void MetricQueryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string MetricQueryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
|
||||
132
arms/src/model/SearchTraceCountRequest.cc
Normal file
132
arms/src/model/SearchTraceCountRequest.cc
Normal file
@@ -0,0 +1,132 @@
|
||||
/*
|
||||
* 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/arms/model/SearchTraceCountRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::SearchTraceCountRequest;
|
||||
|
||||
SearchTraceCountRequest::SearchTraceCountRequest() :
|
||||
RpcServiceRequest("arms", "2019-02-19", "SearchTraceCount")
|
||||
{}
|
||||
|
||||
SearchTraceCountRequest::~SearchTraceCountRequest()
|
||||
{}
|
||||
|
||||
std::string SearchTraceCountRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void SearchTraceCountRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string SearchTraceCountRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SearchTraceCountRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SearchTraceCountRequest::getOperationName()const
|
||||
{
|
||||
return operationName_;
|
||||
}
|
||||
|
||||
void SearchTraceCountRequest::setOperationName(const std::string& operationName)
|
||||
{
|
||||
operationName_ = operationName;
|
||||
setCoreParameter("OperationName", operationName);
|
||||
}
|
||||
|
||||
std::string SearchTraceCountRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void SearchTraceCountRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setCoreParameter("AppType", appType);
|
||||
}
|
||||
|
||||
long SearchTraceCountRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void SearchTraceCountRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string SearchTraceCountRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void SearchTraceCountRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long SearchTraceCountRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void SearchTraceCountRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::vector<SearchTraceCountRequest::Tag> SearchTraceCountRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void SearchTraceCountRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= tag.size(); i++) {
|
||||
auto obj = tag.at(i);
|
||||
std::string str ="Tag."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
long SearchTraceCountRequest::getMinDuration()const
|
||||
{
|
||||
return minDuration_;
|
||||
}
|
||||
|
||||
void SearchTraceCountRequest::setMinDuration(long minDuration)
|
||||
{
|
||||
minDuration_ = minDuration;
|
||||
setCoreParameter("MinDuration", std::to_string(minDuration));
|
||||
}
|
||||
|
||||
53
arms/src/model/SearchTraceCountResult.cc
Normal file
53
arms/src/model/SearchTraceCountResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/SearchTraceCountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
SearchTraceCountResult::SearchTraceCountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchTraceCountResult::SearchTraceCountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchTraceCountResult::~SearchTraceCountResult()
|
||||
{}
|
||||
|
||||
void SearchTraceCountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Count"].isNull())
|
||||
data_.count = std::stol(dataNode["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
SearchTraceCountResult::Data SearchTraceCountResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
165
arms/src/model/SearchTracesRequest.cc
Normal file
165
arms/src/model/SearchTracesRequest.cc
Normal file
@@ -0,0 +1,165 @@
|
||||
/*
|
||||
* 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/arms/model/SearchTracesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::SearchTracesRequest;
|
||||
|
||||
SearchTracesRequest::SearchTracesRequest() :
|
||||
RpcServiceRequest("arms", "2019-02-19", "SearchTraces")
|
||||
{}
|
||||
|
||||
SearchTracesRequest::~SearchTracesRequest()
|
||||
{}
|
||||
|
||||
std::string SearchTracesRequest::getServiceIp()const
|
||||
{
|
||||
return serviceIp_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setServiceIp(const std::string& serviceIp)
|
||||
{
|
||||
serviceIp_ = serviceIp;
|
||||
setCoreParameter("ServiceIp", serviceIp);
|
||||
}
|
||||
|
||||
std::string SearchTracesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SearchTracesRequest::getOperationName()const
|
||||
{
|
||||
return operationName_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setOperationName(const std::string& operationName)
|
||||
{
|
||||
operationName_ = operationName;
|
||||
setCoreParameter("OperationName", operationName);
|
||||
}
|
||||
|
||||
std::string SearchTracesRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setCoreParameter("AppType", appType);
|
||||
}
|
||||
|
||||
int SearchTracesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long SearchTracesRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string SearchTracesRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
int SearchTracesRequest::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setPageIndex(int pageIndex)
|
||||
{
|
||||
pageIndex_ = pageIndex;
|
||||
setCoreParameter("PageIndex", std::to_string(pageIndex));
|
||||
}
|
||||
|
||||
long SearchTracesRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::vector<SearchTracesRequest::Tag> SearchTracesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= tag.size(); i++) {
|
||||
auto obj = tag.at(i);
|
||||
std::string str ="Tag."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
bool SearchTracesRequest::getReverse()const
|
||||
{
|
||||
return reverse_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setReverse(bool reverse)
|
||||
{
|
||||
reverse_ = reverse;
|
||||
setCoreParameter("Reverse", reverse ? "true" : "false");
|
||||
}
|
||||
|
||||
long SearchTracesRequest::getMinDuration()const
|
||||
{
|
||||
return minDuration_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setMinDuration(long minDuration)
|
||||
{
|
||||
minDuration_ = minDuration;
|
||||
setCoreParameter("MinDuration", std::to_string(minDuration));
|
||||
}
|
||||
|
||||
68
arms/src/model/SearchTracesResult.cc
Normal file
68
arms/src/model/SearchTracesResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/SearchTracesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
SearchTracesResult::SearchTracesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchTracesResult::SearchTracesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchTracesResult::~SearchTracesResult()
|
||||
{}
|
||||
|
||||
void SearchTracesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["TraceInfo"];
|
||||
for (auto value : allData)
|
||||
{
|
||||
TraceInfo dataObject;
|
||||
if(!value["TraceID"].isNull())
|
||||
dataObject.traceID = value["TraceID"].asString();
|
||||
if(!value["OperationName"].isNull())
|
||||
dataObject.operationName = value["OperationName"].asString();
|
||||
if(!value["Duration"].isNull())
|
||||
dataObject.duration = std::stoi(value["Duration"].asString());
|
||||
if(!value["ServiceName"].isNull())
|
||||
dataObject.serviceName = value["ServiceName"].asString();
|
||||
if(!value["ServiceIp"].isNull())
|
||||
dataObject.serviceIp = value["ServiceIp"].asString();
|
||||
if(!value["Timestamp"].isNull())
|
||||
dataObject.timestamp = std::stol(value["Timestamp"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<SearchTracesResult::TraceInfo> SearchTracesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,130 +1,82 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
#
|
||||
# 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(cloudauth_public_header
|
||||
include/alibabacloud/cloudauth/CloudauthClient.h
|
||||
include/alibabacloud/cloudauth/CloudauthExport.h )
|
||||
|
||||
set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/GetMaterialsRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetMaterialsResult.h
|
||||
include/alibabacloud/cloudauth/model/GetVerifyTokenRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetVerifyTokenResult.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h
|
||||
include/alibabacloud/cloudauth/model/CompareFacesRequest.h
|
||||
include/alibabacloud/cloudauth/model/CompareFacesResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h
|
||||
include/alibabacloud/cloudauth/model/SubmitMaterialsRequest.h
|
||||
include/alibabacloud/cloudauth/model/SubmitMaterialsResult.h
|
||||
include/alibabacloud/cloudauth/model/SubmitVerificationRequest.h
|
||||
include/alibabacloud/cloudauth/model/SubmitVerificationResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySDKRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySDKResult.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifySDKResult.h
|
||||
include/alibabacloud/cloudauth/model/GetStatusRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetStatusResult.h )
|
||||
|
||||
include/alibabacloud/cloudauth/CloudauthExport.h )
|
||||
|
||||
set(cloudauth_public_header_model )
|
||||
|
||||
set(cloudauth_src
|
||||
src/CloudauthClient.cc
|
||||
src/model/DescribeDeviceInfoRequest.cc
|
||||
src/model/DescribeDeviceInfoResult.cc
|
||||
src/model/GetMaterialsRequest.cc
|
||||
src/model/GetMaterialsResult.cc
|
||||
src/model/GetVerifyTokenRequest.cc
|
||||
src/model/GetVerifyTokenResult.cc
|
||||
src/model/DetectFaceAttributesRequest.cc
|
||||
src/model/DetectFaceAttributesResult.cc
|
||||
src/model/CompareFacesRequest.cc
|
||||
src/model/CompareFacesResult.cc
|
||||
src/model/CreateAuthKeyRequest.cc
|
||||
src/model/CreateAuthKeyResult.cc
|
||||
src/model/SubmitMaterialsRequest.cc
|
||||
src/model/SubmitMaterialsResult.cc
|
||||
src/model/SubmitVerificationRequest.cc
|
||||
src/model/SubmitVerificationResult.cc
|
||||
src/model/CreateVerifySDKRequest.cc
|
||||
src/model/CreateVerifySDKResult.cc
|
||||
src/model/ModifyDeviceInfoRequest.cc
|
||||
src/model/ModifyDeviceInfoResult.cc
|
||||
src/model/DescribeVerifySDKRequest.cc
|
||||
src/model/DescribeVerifySDKResult.cc
|
||||
src/model/GetStatusRequest.cc
|
||||
src/model/GetStatusResult.cc )
|
||||
|
||||
add_library(cloudauth ${LIB_TYPE}
|
||||
${cloudauth_public_header}
|
||||
${cloudauth_public_header_model}
|
||||
${cloudauth_src})
|
||||
|
||||
set_target_properties(cloudauth
|
||||
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}cloudauth
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(cloudauth
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_CLOUDAUTH_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(cloudauth
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(cloudauth
|
||||
jsoncpp)
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(cloudauth
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(cloudauth
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(cloudauth
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${cloudauth_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth)
|
||||
install(FILES ${cloudauth_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth/model)
|
||||
install(TARGETS cloudauth
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
src/CloudauthClient.cc )
|
||||
|
||||
add_library(cloudauth ${LIB_TYPE}
|
||||
${cloudauth_public_header}
|
||||
${cloudauth_public_header_model}
|
||||
${cloudauth_src})
|
||||
|
||||
set_target_properties(cloudauth
|
||||
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}cloudauth
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(cloudauth
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_CLOUDAUTH_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(cloudauth
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(cloudauth
|
||||
jsoncpp)
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(cloudauth
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(cloudauth
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(cloudauth
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${cloudauth_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth)
|
||||
install(FILES ${cloudauth_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth/model)
|
||||
install(TARGETS cloudauth
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
@@ -1,27 +1,27 @@
|
||||
/*
|
||||
* 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_CLOUDAUTHCLIENT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CloudauthExport.h"
|
||||
/*
|
||||
* 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_CLOUDAUTHCLIENT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CloudauthExport.h"
|
||||
#include "model/DescribeDeviceInfoRequest.h"
|
||||
#include "model/DescribeDeviceInfoResult.h"
|
||||
#include "model/GetMaterialsRequest.h"
|
||||
@@ -46,97 +46,97 @@
|
||||
#include "model/DescribeVerifySDKResult.h"
|
||||
#include "model/GetStatusRequest.h"
|
||||
#include "model/GetStatusResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CloudauthClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DescribeDeviceInfoResult> DescribeDeviceInfoOutcome;
|
||||
typedef std::future<DescribeDeviceInfoOutcome> DescribeDeviceInfoOutcomeCallable;
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CloudauthClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DescribeDeviceInfoResult> DescribeDeviceInfoOutcome;
|
||||
typedef std::future<DescribeDeviceInfoOutcome> DescribeDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeDeviceInfoRequest&, const DescribeDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeviceInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMaterialsResult> GetMaterialsOutcome;
|
||||
typedef std::future<GetMaterialsOutcome> GetMaterialsOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetMaterialsResult> GetMaterialsOutcome;
|
||||
typedef std::future<GetMaterialsOutcome> GetMaterialsOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetMaterialsRequest&, const GetMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMaterialsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetVerifyTokenResult> GetVerifyTokenOutcome;
|
||||
typedef std::future<GetVerifyTokenOutcome> GetVerifyTokenOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetVerifyTokenResult> GetVerifyTokenOutcome;
|
||||
typedef std::future<GetVerifyTokenOutcome> GetVerifyTokenOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetVerifyTokenRequest&, const GetVerifyTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVerifyTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
|
||||
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
|
||||
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
|
||||
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DetectFaceAttributesRequest&, const DetectFaceAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAttributesAsyncHandler;
|
||||
typedef Outcome<Error, Model::CompareFacesResult> CompareFacesOutcome;
|
||||
typedef std::future<CompareFacesOutcome> CompareFacesOutcomeCallable;
|
||||
typedef Outcome<Error, Model::CompareFacesResult> CompareFacesOutcome;
|
||||
typedef std::future<CompareFacesOutcome> CompareFacesOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CompareFacesRequest&, const CompareFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompareFacesAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAuthKeyResult> CreateAuthKeyOutcome;
|
||||
typedef std::future<CreateAuthKeyOutcome> CreateAuthKeyOutcomeCallable;
|
||||
typedef Outcome<Error, Model::CreateAuthKeyResult> CreateAuthKeyOutcome;
|
||||
typedef std::future<CreateAuthKeyOutcome> CreateAuthKeyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateAuthKeyRequest&, const CreateAuthKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuthKeyAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitMaterialsResult> SubmitMaterialsOutcome;
|
||||
typedef std::future<SubmitMaterialsOutcome> SubmitMaterialsOutcomeCallable;
|
||||
typedef Outcome<Error, Model::SubmitMaterialsResult> SubmitMaterialsOutcome;
|
||||
typedef std::future<SubmitMaterialsOutcome> SubmitMaterialsOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::SubmitMaterialsRequest&, const SubmitMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitMaterialsAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitVerificationResult> SubmitVerificationOutcome;
|
||||
typedef std::future<SubmitVerificationOutcome> SubmitVerificationOutcomeCallable;
|
||||
typedef Outcome<Error, Model::SubmitVerificationResult> SubmitVerificationOutcome;
|
||||
typedef std::future<SubmitVerificationOutcome> SubmitVerificationOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::SubmitVerificationRequest&, const SubmitVerificationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitVerificationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateVerifySDKResult> CreateVerifySDKOutcome;
|
||||
typedef std::future<CreateVerifySDKOutcome> CreateVerifySDKOutcomeCallable;
|
||||
typedef Outcome<Error, Model::CreateVerifySDKResult> CreateVerifySDKOutcome;
|
||||
typedef std::future<CreateVerifySDKOutcome> CreateVerifySDKOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateVerifySDKRequest&, const CreateVerifySDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVerifySDKAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
|
||||
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
|
||||
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::ModifyDeviceInfoRequest&, const ModifyDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVerifySDKResult> DescribeVerifySDKOutcome;
|
||||
typedef std::future<DescribeVerifySDKOutcome> DescribeVerifySDKOutcomeCallable;
|
||||
typedef Outcome<Error, Model::DescribeVerifySDKResult> DescribeVerifySDKOutcome;
|
||||
typedef std::future<DescribeVerifySDKOutcome> DescribeVerifySDKOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifySDKRequest&, const DescribeVerifySDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifySDKAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetStatusResult> GetStatusOutcome;
|
||||
typedef std::future<GetStatusOutcome> GetStatusOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetStatusResult> GetStatusOutcome;
|
||||
typedef std::future<GetStatusOutcome> GetStatusOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetStatusRequest&, const GetStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetStatusAsyncHandler;
|
||||
|
||||
CloudauthClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CloudauthClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CloudauthClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CloudauthClient();
|
||||
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;
|
||||
|
||||
CloudauthClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CloudauthClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CloudauthClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CloudauthClient();
|
||||
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;
|
||||
DescribeDeviceInfoOutcomeCallable describeDeviceInfoCallable(const Model::DescribeDeviceInfoRequest& 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;
|
||||
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;
|
||||
GetMaterialsOutcomeCallable getMaterialsCallable(const Model::GetMaterialsRequest& request) const;
|
||||
GetVerifyTokenOutcome getVerifyToken(const Model::GetVerifyTokenRequest &request)const;
|
||||
void getVerifyTokenAsync(const Model::GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetVerifyTokenOutcome getVerifyToken(const Model::GetVerifyTokenRequest &request)const;
|
||||
void getVerifyTokenAsync(const Model::GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetVerifyTokenOutcomeCallable getVerifyTokenCallable(const Model::GetVerifyTokenRequest& 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;
|
||||
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;
|
||||
DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const;
|
||||
CompareFacesOutcome compareFaces(const Model::CompareFacesRequest &request)const;
|
||||
void compareFacesAsync(const Model::CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CompareFacesOutcome compareFaces(const Model::CompareFacesRequest &request)const;
|
||||
void compareFacesAsync(const Model::CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CompareFacesOutcomeCallable compareFacesCallable(const Model::CompareFacesRequest& 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;
|
||||
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;
|
||||
CreateAuthKeyOutcomeCallable createAuthKeyCallable(const Model::CreateAuthKeyRequest& request) const;
|
||||
SubmitMaterialsOutcome submitMaterials(const Model::SubmitMaterialsRequest &request)const;
|
||||
void submitMaterialsAsync(const Model::SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitMaterialsOutcome submitMaterials(const Model::SubmitMaterialsRequest &request)const;
|
||||
void submitMaterialsAsync(const Model::SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitMaterialsOutcomeCallable submitMaterialsCallable(const Model::SubmitMaterialsRequest& request) const;
|
||||
SubmitVerificationOutcome submitVerification(const Model::SubmitVerificationRequest &request)const;
|
||||
void submitVerificationAsync(const Model::SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitVerificationOutcome submitVerification(const Model::SubmitVerificationRequest &request)const;
|
||||
void submitVerificationAsync(const Model::SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitVerificationOutcomeCallable submitVerificationCallable(const Model::SubmitVerificationRequest& request) const;
|
||||
CreateVerifySDKOutcome createVerifySDK(const Model::CreateVerifySDKRequest &request)const;
|
||||
void createVerifySDKAsync(const Model::CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVerifySDKOutcome createVerifySDK(const Model::CreateVerifySDKRequest &request)const;
|
||||
void createVerifySDKAsync(const Model::CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVerifySDKOutcomeCallable createVerifySDKCallable(const Model::CreateVerifySDKRequest& request) const;
|
||||
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
|
||||
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
|
||||
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& request) const;
|
||||
DescribeVerifySDKOutcome describeVerifySDK(const Model::DescribeVerifySDKRequest &request)const;
|
||||
void describeVerifySDKAsync(const Model::DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifySDKOutcome describeVerifySDK(const Model::DescribeVerifySDKRequest &request)const;
|
||||
void describeVerifySDKAsync(const Model::DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifySDKOutcomeCallable describeVerifySDKCallable(const Model::DescribeVerifySDKRequest& request) const;
|
||||
GetStatusOutcome getStatus(const Model::GetStatusRequest &request)const;
|
||||
void getStatusAsync(const Model::GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetStatusOutcome getStatus(const Model::GetStatusRequest &request)const;
|
||||
void getStatusAsync(const Model::GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetStatusOutcomeCallable getStatusCallable(const Model::GetStatusRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_
|
||||
|
||||
@@ -1,32 +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_CLOUDAUTH_CLOUDAUTHEXPORT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_CLOUDAUTH_LIBRARY)
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 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_CLOUDAUTHEXPORT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_CLOUDAUTH_LIBRARY)
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_
|
||||
@@ -1,40 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_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 CompareFacesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CompareFacesRequest();
|
||||
~CompareFacesRequest();
|
||||
|
||||
/*
|
||||
* 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_COMPAREFACESREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_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 CompareFacesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CompareFacesRequest();
|
||||
~CompareFacesRequest();
|
||||
|
||||
std::string getSourceImageType()const;
|
||||
void setSourceImageType(const std::string& sourceImageType);
|
||||
long getResourceOwnerId()const;
|
||||
@@ -47,17 +47,17 @@ namespace AlibabaCloud
|
||||
void setSourceImageValue(const std::string& sourceImageValue);
|
||||
std::string getTargetImageValue()const;
|
||||
void setTargetImageValue(const std::string& targetImageValue);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string sourceImageType_;
|
||||
long resourceOwnerId_;
|
||||
std::string sourceIp_;
|
||||
std::string targetImageType_;
|
||||
std::string sourceImageValue_;
|
||||
std::string targetImageValue_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_
|
||||
@@ -1,62 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_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 CompareFacesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* 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_COMPAREFACESRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_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 CompareFacesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string confidenceThresholds;
|
||||
float similarityScore;
|
||||
};
|
||||
|
||||
|
||||
CompareFacesResult();
|
||||
explicit CompareFacesResult(const std::string &payload);
|
||||
~CompareFacesResult();
|
||||
|
||||
|
||||
CompareFacesResult();
|
||||
explicit CompareFacesResult(const std::string &payload);
|
||||
~CompareFacesResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_
|
||||
@@ -1,40 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_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 CreateAuthKeyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateAuthKeyRequest();
|
||||
~CreateAuthKeyRequest();
|
||||
|
||||
/*
|
||||
* 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_CREATEAUTHKEYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_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 CreateAuthKeyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateAuthKeyRequest();
|
||||
~CreateAuthKeyRequest();
|
||||
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getUserDeviceId()const;
|
||||
@@ -47,17 +47,17 @@ namespace AlibabaCloud
|
||||
void setAuthYears(int authYears);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string bizType_;
|
||||
std::string userDeviceId_;
|
||||
std::string sourceIp_;
|
||||
bool test_;
|
||||
int authYears_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_
|
||||
@@ -1,51 +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_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_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 CreateAuthKeyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateAuthKeyResult();
|
||||
explicit CreateAuthKeyResult(const std::string &payload);
|
||||
~CreateAuthKeyResult();
|
||||
/*
|
||||
* 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_CREATEAUTHKEYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_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 CreateAuthKeyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateAuthKeyResult();
|
||||
explicit CreateAuthKeyResult(const std::string &payload);
|
||||
~CreateAuthKeyResult();
|
||||
std::string getAuthKey()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string authKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_
|
||||
@@ -1,40 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_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 CreateVerifySDKRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateVerifySDKRequest();
|
||||
~CreateVerifySDKRequest();
|
||||
|
||||
/*
|
||||
* 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_CREATEVERIFYSDKREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_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 CreateVerifySDKRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateVerifySDKRequest();
|
||||
~CreateVerifySDKRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getAppUrl()const;
|
||||
@@ -43,15 +43,15 @@ namespace AlibabaCloud
|
||||
void setLang(const std::string& lang);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string appUrl_;
|
||||
std::string lang_;
|
||||
std::string platform_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
|
||||
@@ -1,51 +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_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_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 CreateVerifySDKResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateVerifySDKResult();
|
||||
explicit CreateVerifySDKResult(const std::string &payload);
|
||||
~CreateVerifySDKResult();
|
||||
/*
|
||||
* 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_CREATEVERIFYSDKRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_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 CreateVerifySDKResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateVerifySDKResult();
|
||||
explicit CreateVerifySDKResult(const std::string &payload);
|
||||
~CreateVerifySDKResult();
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_
|
||||
@@ -1,40 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_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 DescribeDeviceInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDeviceInfoRequest();
|
||||
~DescribeDeviceInfoRequest();
|
||||
|
||||
/*
|
||||
* 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_DESCRIBEDEVICEINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_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 DescribeDeviceInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDeviceInfoRequest();
|
||||
~DescribeDeviceInfoRequest();
|
||||
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getUserDeviceId()const;
|
||||
@@ -55,8 +55,8 @@ namespace AlibabaCloud
|
||||
void setDeviceId(const std::string& deviceId);
|
||||
std::string getExpiredStartDay()const;
|
||||
void setExpiredStartDay(const std::string& expiredStartDay);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string bizType_;
|
||||
std::string userDeviceId_;
|
||||
int totalCount_;
|
||||
@@ -67,9 +67,9 @@ namespace AlibabaCloud
|
||||
std::string expiredEndDay_;
|
||||
std::string deviceId_;
|
||||
std::string expiredStartDay_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* 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_DESCRIBEDEVICEINFORESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_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 DescribeDeviceInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* 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_DESCRIBEDEVICEINFORESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_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 DescribeDeviceInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DeviceInfo
|
||||
{
|
||||
std::string expiredDay;
|
||||
@@ -40,26 +40,26 @@ namespace AlibabaCloud
|
||||
std::string bizType;
|
||||
std::string userDeviceId;
|
||||
};
|
||||
|
||||
|
||||
DescribeDeviceInfoResult();
|
||||
explicit DescribeDeviceInfoResult(const std::string &payload);
|
||||
~DescribeDeviceInfoResult();
|
||||
|
||||
|
||||
DescribeDeviceInfoResult();
|
||||
explicit DescribeDeviceInfoResult(const std::string &payload);
|
||||
~DescribeDeviceInfoResult();
|
||||
std::vector<DeviceInfo> getDeviceInfoList()const;
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getCurrentPage()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DeviceInfo> deviceInfoList_;
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_
|
||||
@@ -1,54 +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_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_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 DescribeVerifySDKRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeVerifySDKRequest();
|
||||
~DescribeVerifySDKRequest();
|
||||
|
||||
/*
|
||||
* 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_DESCRIBEVERIFYSDKREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_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 DescribeVerifySDKRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeVerifySDKRequest();
|
||||
~DescribeVerifySDKRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_
|
||||
@@ -1,51 +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_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_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 DescribeVerifySDKResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeVerifySDKResult();
|
||||
explicit DescribeVerifySDKResult(const std::string &payload);
|
||||
~DescribeVerifySDKResult();
|
||||
/*
|
||||
* 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_DESCRIBEVERIFYSDKRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_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 DescribeVerifySDKResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeVerifySDKResult();
|
||||
explicit DescribeVerifySDKResult(const std::string &payload);
|
||||
~DescribeVerifySDKResult();
|
||||
std::string getSdkUrl()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string sdkUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_
|
||||
@@ -1,40 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_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 DetectFaceAttributesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DetectFaceAttributesRequest();
|
||||
~DetectFaceAttributesRequest();
|
||||
|
||||
/*
|
||||
* 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_DETECTFACEATTRIBUTESREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_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 DetectFaceAttributesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DetectFaceAttributesRequest();
|
||||
~DetectFaceAttributesRequest();
|
||||
|
||||
int getMaxNumPhotosPerCategory()const;
|
||||
void setMaxNumPhotosPerCategory(int maxNumPhotosPerCategory);
|
||||
int getMaxFaceNum()const;
|
||||
@@ -51,8 +51,8 @@ namespace AlibabaCloud
|
||||
void setDontSaveDB(bool dontSaveDB);
|
||||
std::string getClientTag()const;
|
||||
void setClientTag(const std::string& clientTag);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
int maxNumPhotosPerCategory_;
|
||||
int maxFaceNum_;
|
||||
long resourceOwnerId_;
|
||||
@@ -61,9 +61,9 @@ namespace AlibabaCloud
|
||||
std::string materialValue_;
|
||||
bool dontSaveDB_;
|
||||
std::string clientTag_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* 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_DETECTFACEATTRIBUTESRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_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 DetectFaceAttributesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* 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_DETECTFACEATTRIBUTESRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_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 DetectFaceAttributesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct FaceAttributesDetectInfo
|
||||
@@ -77,26 +77,26 @@ namespace AlibabaCloud
|
||||
int imgHeight;
|
||||
std::vector<FaceAttributesDetectInfo> faceInfos;
|
||||
};
|
||||
|
||||
|
||||
DetectFaceAttributesResult();
|
||||
explicit DetectFaceAttributesResult(const std::string &payload);
|
||||
~DetectFaceAttributesResult();
|
||||
|
||||
|
||||
DetectFaceAttributesResult();
|
||||
explicit DetectFaceAttributesResult(const std::string &payload);
|
||||
~DetectFaceAttributesResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_
|
||||
@@ -1,40 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_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 GetMaterialsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMaterialsRequest();
|
||||
~GetMaterialsRequest();
|
||||
|
||||
/*
|
||||
* 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_GETMATERIALSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_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 GetMaterialsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMaterialsRequest();
|
||||
~GetMaterialsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getBiz()const;
|
||||
@@ -43,15 +43,15 @@ namespace AlibabaCloud
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string biz_;
|
||||
std::string sourceIp_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* 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_GETMATERIALSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_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 GetMaterialsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* 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_GETMATERIALSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_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 GetMaterialsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string facePic;
|
||||
@@ -40,32 +40,33 @@ namespace AlibabaCloud
|
||||
std::string address;
|
||||
std::string idCardFrontPic;
|
||||
std::string ethnicGroup;
|
||||
std::string authority;
|
||||
std::string sex;
|
||||
std::string idCardExpiry;
|
||||
std::string idCardType;
|
||||
std::string idCardBackPic;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetMaterialsResult();
|
||||
explicit GetMaterialsResult(const std::string &payload);
|
||||
~GetMaterialsResult();
|
||||
|
||||
|
||||
GetMaterialsResult();
|
||||
explicit GetMaterialsResult(const std::string &payload);
|
||||
~GetMaterialsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_
|
||||
@@ -1,40 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_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 GetStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetStatusRequest();
|
||||
~GetStatusRequest();
|
||||
|
||||
/*
|
||||
* 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_GETSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_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 GetStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetStatusRequest();
|
||||
~GetStatusRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getBiz()const;
|
||||
@@ -43,15 +43,15 @@ namespace AlibabaCloud
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string biz_;
|
||||
std::string sourceIp_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* 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_GETSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_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 GetStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* 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_GETSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_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 GetStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string auditConclusions;
|
||||
@@ -40,26 +40,26 @@ namespace AlibabaCloud
|
||||
float similarityScore;
|
||||
int statusCode;
|
||||
};
|
||||
|
||||
|
||||
GetStatusResult();
|
||||
explicit GetStatusResult(const std::string &payload);
|
||||
~GetStatusResult();
|
||||
|
||||
|
||||
GetStatusResult();
|
||||
explicit GetStatusResult(const std::string &payload);
|
||||
~GetStatusResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_
|
||||
@@ -1,40 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_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 GetVerifyTokenRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetVerifyTokenRequest();
|
||||
~GetVerifyTokenRequest();
|
||||
|
||||
/*
|
||||
* 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_GETVERIFYTOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_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 GetVerifyTokenRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetVerifyTokenRequest();
|
||||
~GetVerifyTokenRequest();
|
||||
|
||||
std::string getUserData()const;
|
||||
void setUserData(const std::string& userData);
|
||||
long getResourceOwnerId()const;
|
||||
@@ -49,8 +49,8 @@ namespace AlibabaCloud
|
||||
void setVerifyConfigs(const std::string& verifyConfigs);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string userData_;
|
||||
long resourceOwnerId_;
|
||||
std::string biz_;
|
||||
@@ -58,9 +58,9 @@ namespace AlibabaCloud
|
||||
std::string binding_;
|
||||
std::string verifyConfigs_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* 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_GETVERIFYTOKENRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_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 GetVerifyTokenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* 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_GETVERIFYTOKENRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_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 GetVerifyTokenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct VerifyToken
|
||||
@@ -53,26 +53,26 @@ namespace AlibabaCloud
|
||||
std::string cloudauthPageUrl;
|
||||
VerifyToken verifyToken;
|
||||
};
|
||||
|
||||
|
||||
GetVerifyTokenResult();
|
||||
explicit GetVerifyTokenResult(const std::string &payload);
|
||||
~GetVerifyTokenResult();
|
||||
|
||||
|
||||
GetVerifyTokenResult();
|
||||
explicit GetVerifyTokenResult(const std::string &payload);
|
||||
~GetVerifyTokenResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_
|
||||
@@ -1,40 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_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 ModifyDeviceInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDeviceInfoRequest();
|
||||
~ModifyDeviceInfoRequest();
|
||||
|
||||
/*
|
||||
* 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_MODIFYDEVICEINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_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 ModifyDeviceInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDeviceInfoRequest();
|
||||
~ModifyDeviceInfoRequest();
|
||||
|
||||
std::string getUserDeviceId()const;
|
||||
void setUserDeviceId(const std::string& userDeviceId);
|
||||
std::string getBizType()const;
|
||||
@@ -49,8 +49,8 @@ namespace AlibabaCloud
|
||||
void setLang(const std::string& lang);
|
||||
std::string getDeviceId()const;
|
||||
void setDeviceId(const std::string& deviceId);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string userDeviceId_;
|
||||
std::string bizType_;
|
||||
std::string duration_;
|
||||
@@ -58,9 +58,9 @@ namespace AlibabaCloud
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
std::string deviceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_
|
||||
@@ -1,59 +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_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_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 ModifyDeviceInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDeviceInfoResult();
|
||||
explicit ModifyDeviceInfoResult(const std::string &payload);
|
||||
~ModifyDeviceInfoResult();
|
||||
/*
|
||||
* 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_MODIFYDEVICEINFORESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_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 ModifyDeviceInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDeviceInfoResult();
|
||||
explicit ModifyDeviceInfoResult(const std::string &payload);
|
||||
~ModifyDeviceInfoResult();
|
||||
std::string getExpiredDay()const;
|
||||
std::string getBeginDay()const;
|
||||
std::string getDeviceId()const;
|
||||
std::string getBizType()const;
|
||||
std::string getUserDeviceId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string expiredDay_;
|
||||
std::string beginDay_;
|
||||
std::string deviceId_;
|
||||
std::string bizType_;
|
||||
std::string userDeviceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_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 SubmitMaterialsRequest : public RpcServiceRequest
|
||||
{
|
||||
/*
|
||||
* 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_SUBMITMATERIALSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_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 SubmitMaterialsRequest : public RpcServiceRequest
|
||||
{
|
||||
struct Material
|
||||
{
|
||||
std::string materialType;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
public:
|
||||
SubmitMaterialsRequest();
|
||||
~SubmitMaterialsRequest();
|
||||
|
||||
|
||||
public:
|
||||
SubmitMaterialsRequest();
|
||||
~SubmitMaterialsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getSourceIp()const;
|
||||
@@ -48,15 +48,15 @@ namespace AlibabaCloud
|
||||
void setMaterial(const std::vector<Material>& material);
|
||||
std::string getVerifyToken()const;
|
||||
void setVerifyToken(const std::string& verifyToken);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string sourceIp_;
|
||||
std::vector<Material> material_;
|
||||
std::string verifyToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* 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_SUBMITMATERIALSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_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 SubmitMaterialsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* 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_SUBMITMATERIALSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_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 SubmitMaterialsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct VerifyStatus
|
||||
@@ -44,26 +44,26 @@ namespace AlibabaCloud
|
||||
};
|
||||
VerifyStatus verifyStatus;
|
||||
};
|
||||
|
||||
|
||||
SubmitMaterialsResult();
|
||||
explicit SubmitMaterialsResult(const std::string &payload);
|
||||
~SubmitMaterialsResult();
|
||||
|
||||
|
||||
SubmitMaterialsResult();
|
||||
explicit SubmitMaterialsResult(const std::string &payload);
|
||||
~SubmitMaterialsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_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 SubmitVerificationRequest : public RpcServiceRequest
|
||||
{
|
||||
/*
|
||||
* 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_SUBMITVERIFICATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_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 SubmitVerificationRequest : public RpcServiceRequest
|
||||
{
|
||||
struct Material
|
||||
{
|
||||
std::string materialType;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
public:
|
||||
SubmitVerificationRequest();
|
||||
~SubmitVerificationRequest();
|
||||
|
||||
|
||||
public:
|
||||
SubmitVerificationRequest();
|
||||
~SubmitVerificationRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getBiz()const;
|
||||
@@ -50,16 +50,16 @@ namespace AlibabaCloud
|
||||
void setMaterial(const std::vector<Material>& material);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string biz_;
|
||||
std::string sourceIp_;
|
||||
std::vector<Material> material_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* 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_SUBMITVERIFICATIONRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_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 SubmitVerificationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* 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_SUBMITVERIFICATIONRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_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 SubmitVerificationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct VerifyStatus
|
||||
@@ -44,26 +44,26 @@ namespace AlibabaCloud
|
||||
};
|
||||
VerifyStatus verifyStatus;
|
||||
};
|
||||
|
||||
|
||||
SubmitVerificationResult();
|
||||
explicit SubmitVerificationResult(const std::string &payload);
|
||||
~SubmitVerificationResult();
|
||||
|
||||
|
||||
SubmitVerificationResult();
|
||||
explicit SubmitVerificationResult(const std::string &payload);
|
||||
~SubmitVerificationResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_
|
||||
@@ -1,485 +1,485 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/CloudauthClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Cloudauth";
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(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, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(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, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(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, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::~CloudauthClient()
|
||||
{}
|
||||
|
||||
CloudauthClient::DescribeDeviceInfoOutcome CloudauthClient::describeDeviceInfo(const DescribeDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDeviceInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDeviceInfoOutcome(DescribeDeviceInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribeDeviceInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeDeviceInfoAsync(const DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDeviceInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeDeviceInfoOutcomeCallable CloudauthClient::describeDeviceInfoCallable(const DescribeDeviceInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDeviceInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDeviceInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMaterialsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMaterialsOutcome(GetMaterialsResult(outcome.result()));
|
||||
else
|
||||
return GetMaterialsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getMaterialsAsync(const GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMaterials(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetMaterialsOutcomeCallable CloudauthClient::getMaterialsCallable(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMaterialsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMaterials(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
#include <alibabacloud/cloudauth/CloudauthClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
CloudauthClient::GetVerifyTokenOutcome CloudauthClient::getVerifyToken(const GetVerifyTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetVerifyTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetVerifyTokenOutcome(GetVerifyTokenResult(outcome.result()));
|
||||
else
|
||||
return GetVerifyTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getVerifyTokenAsync(const GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getVerifyToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetVerifyTokenOutcomeCallable CloudauthClient::getVerifyTokenCallable(const GetVerifyTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetVerifyTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getVerifyToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CloudauthClient::DetectFaceAttributesOutcome CloudauthClient::detectFaceAttributes(const DetectFaceAttributesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectFaceAttributesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectFaceAttributesOutcome(DetectFaceAttributesResult(outcome.result()));
|
||||
else
|
||||
return DetectFaceAttributesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::detectFaceAttributesAsync(const DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectFaceAttributes(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFaceAttributesCallable(const DetectFaceAttributesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectFaceAttributesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectFaceAttributes(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Cloudauth";
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFacesOutcome CloudauthClient::compareFaces(const CompareFacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CompareFacesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CompareFacesOutcome(CompareFacesResult(outcome.result()));
|
||||
else
|
||||
return CompareFacesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::compareFacesAsync(const CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, compareFaces(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFacesOutcomeCallable CloudauthClient::compareFacesCallable(const CompareFacesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CompareFacesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->compareFaces(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
CloudauthClient::CloudauthClient(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, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::CreateAuthKeyOutcome CloudauthClient::createAuthKey(const CreateAuthKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateAuthKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateAuthKeyOutcome(CreateAuthKeyResult(outcome.result()));
|
||||
else
|
||||
return CreateAuthKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createAuthKeyAsync(const CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createAuthKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateAuthKeyOutcomeCallable CloudauthClient::createAuthKeyCallable(const CreateAuthKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateAuthKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createAuthKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
CloudauthClient::CloudauthClient(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, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitMaterialsOutcome CloudauthClient::submitMaterials(const SubmitMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitMaterialsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitMaterialsOutcome(SubmitMaterialsResult(outcome.result()));
|
||||
else
|
||||
return SubmitMaterialsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::submitMaterialsAsync(const SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitMaterials(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitMaterialsOutcomeCallable CloudauthClient::submitMaterialsCallable(const SubmitMaterialsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitMaterialsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitMaterials(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
CloudauthClient::CloudauthClient(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, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitVerificationOutcome CloudauthClient::submitVerification(const SubmitVerificationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitVerificationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitVerificationOutcome(SubmitVerificationResult(outcome.result()));
|
||||
else
|
||||
return SubmitVerificationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::submitVerificationAsync(const SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitVerification(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitVerificationOutcomeCallable CloudauthClient::submitVerificationCallable(const SubmitVerificationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitVerificationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitVerification(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
CloudauthClient::~CloudauthClient()
|
||||
{}
|
||||
|
||||
CloudauthClient::CreateVerifySDKOutcome CloudauthClient::createVerifySDK(const CreateVerifySDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateVerifySDKOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateVerifySDKOutcome(CreateVerifySDKResult(outcome.result()));
|
||||
else
|
||||
return CreateVerifySDKOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createVerifySDKAsync(const CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createVerifySDK(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateVerifySDKOutcomeCallable CloudauthClient::createVerifySDKCallable(const CreateVerifySDKRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateVerifySDKOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createVerifySDK(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
CloudauthClient::DescribeDeviceInfoOutcome CloudauthClient::describeDeviceInfo(const DescribeDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDeviceInfoOutcome(endpointOutcome.error());
|
||||
|
||||
CloudauthClient::ModifyDeviceInfoOutcome CloudauthClient::modifyDeviceInfo(const ModifyDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDeviceInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDeviceInfoOutcome(ModifyDeviceInfoResult(outcome.result()));
|
||||
else
|
||||
return ModifyDeviceInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::modifyDeviceInfoAsync(const ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDeviceInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceInfoCallable(const ModifyDeviceInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDeviceInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDeviceInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
CloudauthClient::DescribeVerifySDKOutcome CloudauthClient::describeVerifySDK(const DescribeVerifySDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVerifySDKOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVerifySDKOutcome(DescribeVerifySDKResult(outcome.result()));
|
||||
else
|
||||
return DescribeVerifySDKOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeVerifySDKAsync(const DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVerifySDK(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifySDKOutcomeCallable CloudauthClient::describeVerifySDKCallable(const DescribeVerifySDKRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVerifySDKOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVerifySDK(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDeviceInfoOutcome(DescribeDeviceInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribeDeviceInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
CloudauthClient::GetStatusOutcome CloudauthClient::getStatus(const GetStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetStatusOutcome(GetStatusResult(outcome.result()));
|
||||
else
|
||||
return GetStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getStatusAsync(const GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetStatusOutcomeCallable CloudauthClient::getStatusCallable(const GetStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
void CloudauthClient::describeDeviceInfoAsync(const DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDeviceInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeDeviceInfoOutcomeCallable CloudauthClient::describeDeviceInfoCallable(const DescribeDeviceInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDeviceInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDeviceInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMaterialsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMaterialsOutcome(GetMaterialsResult(outcome.result()));
|
||||
else
|
||||
return GetMaterialsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getMaterialsAsync(const GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMaterials(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetMaterialsOutcomeCallable CloudauthClient::getMaterialsCallable(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMaterialsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMaterials(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetVerifyTokenOutcome CloudauthClient::getVerifyToken(const GetVerifyTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetVerifyTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetVerifyTokenOutcome(GetVerifyTokenResult(outcome.result()));
|
||||
else
|
||||
return GetVerifyTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getVerifyTokenAsync(const GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getVerifyToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetVerifyTokenOutcomeCallable CloudauthClient::getVerifyTokenCallable(const GetVerifyTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetVerifyTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getVerifyToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DetectFaceAttributesOutcome CloudauthClient::detectFaceAttributes(const DetectFaceAttributesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectFaceAttributesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectFaceAttributesOutcome(DetectFaceAttributesResult(outcome.result()));
|
||||
else
|
||||
return DetectFaceAttributesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::detectFaceAttributesAsync(const DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectFaceAttributes(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFaceAttributesCallable(const DetectFaceAttributesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectFaceAttributesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectFaceAttributes(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFacesOutcome CloudauthClient::compareFaces(const CompareFacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CompareFacesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CompareFacesOutcome(CompareFacesResult(outcome.result()));
|
||||
else
|
||||
return CompareFacesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::compareFacesAsync(const CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, compareFaces(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFacesOutcomeCallable CloudauthClient::compareFacesCallable(const CompareFacesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CompareFacesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->compareFaces(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateAuthKeyOutcome CloudauthClient::createAuthKey(const CreateAuthKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateAuthKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateAuthKeyOutcome(CreateAuthKeyResult(outcome.result()));
|
||||
else
|
||||
return CreateAuthKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createAuthKeyAsync(const CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createAuthKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateAuthKeyOutcomeCallable CloudauthClient::createAuthKeyCallable(const CreateAuthKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateAuthKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createAuthKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitMaterialsOutcome CloudauthClient::submitMaterials(const SubmitMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitMaterialsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitMaterialsOutcome(SubmitMaterialsResult(outcome.result()));
|
||||
else
|
||||
return SubmitMaterialsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::submitMaterialsAsync(const SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitMaterials(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitMaterialsOutcomeCallable CloudauthClient::submitMaterialsCallable(const SubmitMaterialsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitMaterialsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitMaterials(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitVerificationOutcome CloudauthClient::submitVerification(const SubmitVerificationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitVerificationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitVerificationOutcome(SubmitVerificationResult(outcome.result()));
|
||||
else
|
||||
return SubmitVerificationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::submitVerificationAsync(const SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitVerification(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitVerificationOutcomeCallable CloudauthClient::submitVerificationCallable(const SubmitVerificationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitVerificationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitVerification(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateVerifySDKOutcome CloudauthClient::createVerifySDK(const CreateVerifySDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateVerifySDKOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateVerifySDKOutcome(CreateVerifySDKResult(outcome.result()));
|
||||
else
|
||||
return CreateVerifySDKOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createVerifySDKAsync(const CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createVerifySDK(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateVerifySDKOutcomeCallable CloudauthClient::createVerifySDKCallable(const CreateVerifySDKRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateVerifySDKOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createVerifySDK(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::ModifyDeviceInfoOutcome CloudauthClient::modifyDeviceInfo(const ModifyDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDeviceInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDeviceInfoOutcome(ModifyDeviceInfoResult(outcome.result()));
|
||||
else
|
||||
return ModifyDeviceInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::modifyDeviceInfoAsync(const ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDeviceInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceInfoCallable(const ModifyDeviceInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDeviceInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDeviceInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifySDKOutcome CloudauthClient::describeVerifySDK(const DescribeVerifySDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVerifySDKOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVerifySDKOutcome(DescribeVerifySDKResult(outcome.result()));
|
||||
else
|
||||
return DescribeVerifySDKOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeVerifySDKAsync(const DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVerifySDK(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifySDKOutcomeCallable CloudauthClient::describeVerifySDKCallable(const DescribeVerifySDKRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVerifySDKOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVerifySDK(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetStatusOutcome CloudauthClient::getStatus(const GetStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetStatusOutcome(GetStatusResult(outcome.result()));
|
||||
else
|
||||
return GetStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getStatusAsync(const GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetStatusOutcomeCallable CloudauthClient::getStatusCallable(const GetStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/CompareFacesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CompareFacesRequest;
|
||||
|
||||
CompareFacesRequest::CompareFacesRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "CompareFaces")
|
||||
{}
|
||||
|
||||
CompareFacesRequest::~CompareFacesRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/CompareFacesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CompareFacesRequest;
|
||||
|
||||
CompareFacesRequest::CompareFacesRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "CompareFaces")
|
||||
{}
|
||||
|
||||
CompareFacesRequest::~CompareFacesRequest()
|
||||
{}
|
||||
|
||||
std::string CompareFacesRequest::getSourceImageType()const
|
||||
{
|
||||
return sourceImageType_;
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CompareFacesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CompareFacesResult::CompareFacesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CompareFacesResult::CompareFacesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CompareFacesResult::~CompareFacesResult()
|
||||
{}
|
||||
|
||||
void CompareFacesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/CompareFacesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CompareFacesResult::CompareFacesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CompareFacesResult::CompareFacesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CompareFacesResult::~CompareFacesResult()
|
||||
{}
|
||||
|
||||
void CompareFacesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["SimilarityScore"].isNull())
|
||||
data_.similarityScore = std::stof(dataNode["SimilarityScore"].asString());
|
||||
@@ -51,9 +51,9 @@ void CompareFacesResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CompareFacesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/CreateAuthKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateAuthKeyRequest;
|
||||
|
||||
CreateAuthKeyRequest::CreateAuthKeyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "CreateAuthKey")
|
||||
{}
|
||||
|
||||
CreateAuthKeyRequest::~CreateAuthKeyRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/CreateAuthKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateAuthKeyRequest;
|
||||
|
||||
CreateAuthKeyRequest::CreateAuthKeyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "CreateAuthKey")
|
||||
{}
|
||||
|
||||
CreateAuthKeyRequest::~CreateAuthKeyRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAuthKeyRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
|
||||
@@ -1,50 +1,50 @@
|
||||
/*
|
||||
* 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/CreateAuthKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CreateAuthKeyResult::CreateAuthKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAuthKeyResult::CreateAuthKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAuthKeyResult::~CreateAuthKeyResult()
|
||||
{}
|
||||
|
||||
void CreateAuthKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/CreateAuthKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CreateAuthKeyResult::CreateAuthKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAuthKeyResult::CreateAuthKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAuthKeyResult::~CreateAuthKeyResult()
|
||||
{}
|
||||
|
||||
void CreateAuthKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AuthKey"].isNull())
|
||||
authKey_ = value["AuthKey"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAuthKeyResult::getAuthKey()const
|
||||
{
|
||||
return authKey_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/CreateVerifySDKRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateVerifySDKRequest;
|
||||
|
||||
CreateVerifySDKRequest::CreateVerifySDKRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "CreateVerifySDK")
|
||||
{}
|
||||
|
||||
CreateVerifySDKRequest::~CreateVerifySDKRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/CreateVerifySDKRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateVerifySDKRequest;
|
||||
|
||||
CreateVerifySDKRequest::CreateVerifySDKRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "CreateVerifySDK")
|
||||
{}
|
||||
|
||||
CreateVerifySDKRequest::~CreateVerifySDKRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVerifySDKRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,50 +1,50 @@
|
||||
/*
|
||||
* 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/CreateVerifySDKResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CreateVerifySDKResult::CreateVerifySDKResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVerifySDKResult::CreateVerifySDKResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVerifySDKResult::~CreateVerifySDKResult()
|
||||
{}
|
||||
|
||||
void CreateVerifySDKResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/CreateVerifySDKResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CreateVerifySDKResult::CreateVerifySDKResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVerifySDKResult::CreateVerifySDKResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVerifySDKResult::~CreateVerifySDKResult()
|
||||
{}
|
||||
|
||||
void CreateVerifySDKResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVerifySDKResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/DescribeDeviceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeDeviceInfoRequest;
|
||||
|
||||
DescribeDeviceInfoRequest::DescribeDeviceInfoRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "DescribeDeviceInfo")
|
||||
{}
|
||||
|
||||
DescribeDeviceInfoRequest::~DescribeDeviceInfoRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/DescribeDeviceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeDeviceInfoRequest;
|
||||
|
||||
DescribeDeviceInfoRequest::DescribeDeviceInfoRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "DescribeDeviceInfo")
|
||||
{}
|
||||
|
||||
DescribeDeviceInfoRequest::~DescribeDeviceInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DescribeDeviceInfoResult::DescribeDeviceInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDeviceInfoResult::DescribeDeviceInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDeviceInfoResult::~DescribeDeviceInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeDeviceInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/DescribeDeviceInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DescribeDeviceInfoResult::DescribeDeviceInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDeviceInfoResult::DescribeDeviceInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDeviceInfoResult::~DescribeDeviceInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeDeviceInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDeviceInfoList = value["DeviceInfoList"]["DeviceInfo"];
|
||||
for (auto value : allDeviceInfoList)
|
||||
{
|
||||
@@ -62,9 +62,9 @@ void DescribeDeviceInfoResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDeviceInfoResult::DeviceInfo> DescribeDeviceInfoResult::getDeviceInfoList()const
|
||||
{
|
||||
return deviceInfoList_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/DescribeVerifySDKRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeVerifySDKRequest;
|
||||
|
||||
DescribeVerifySDKRequest::DescribeVerifySDKRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "DescribeVerifySDK")
|
||||
{}
|
||||
|
||||
DescribeVerifySDKRequest::~DescribeVerifySDKRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/DescribeVerifySDKRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeVerifySDKRequest;
|
||||
|
||||
DescribeVerifySDKRequest::DescribeVerifySDKRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "DescribeVerifySDK")
|
||||
{}
|
||||
|
||||
DescribeVerifySDKRequest::~DescribeVerifySDKRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVerifySDKRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,50 +1,50 @@
|
||||
/*
|
||||
* 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/DescribeVerifySDKResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DescribeVerifySDKResult::DescribeVerifySDKResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVerifySDKResult::DescribeVerifySDKResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVerifySDKResult::~DescribeVerifySDKResult()
|
||||
{}
|
||||
|
||||
void DescribeVerifySDKResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/DescribeVerifySDKResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DescribeVerifySDKResult::DescribeVerifySDKResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVerifySDKResult::DescribeVerifySDKResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVerifySDKResult::~DescribeVerifySDKResult()
|
||||
{}
|
||||
|
||||
void DescribeVerifySDKResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SdkUrl"].isNull())
|
||||
sdkUrl_ = value["SdkUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeVerifySDKResult::getSdkUrl()const
|
||||
{
|
||||
return sdkUrl_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/DetectFaceAttributesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DetectFaceAttributesRequest;
|
||||
|
||||
DetectFaceAttributesRequest::DetectFaceAttributesRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "DetectFaceAttributes")
|
||||
{}
|
||||
|
||||
DetectFaceAttributesRequest::~DetectFaceAttributesRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/DetectFaceAttributesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DetectFaceAttributesRequest;
|
||||
|
||||
DetectFaceAttributesRequest::DetectFaceAttributesRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "DetectFaceAttributes")
|
||||
{}
|
||||
|
||||
DetectFaceAttributesRequest::~DetectFaceAttributesRequest()
|
||||
{}
|
||||
|
||||
int DetectFaceAttributesRequest::getMaxNumPhotosPerCategory()const
|
||||
{
|
||||
return maxNumPhotosPerCategory_;
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DetectFaceAttributesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DetectFaceAttributesResult::DetectFaceAttributesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetectFaceAttributesResult::DetectFaceAttributesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetectFaceAttributesResult::~DetectFaceAttributesResult()
|
||||
{}
|
||||
|
||||
void DetectFaceAttributesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/DetectFaceAttributesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DetectFaceAttributesResult::DetectFaceAttributesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetectFaceAttributesResult::DetectFaceAttributesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetectFaceAttributesResult::~DetectFaceAttributesResult()
|
||||
{}
|
||||
|
||||
void DetectFaceAttributesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ImgWidth"].isNull())
|
||||
data_.imgWidth = std::stoi(dataNode["ImgWidth"].asString());
|
||||
@@ -94,9 +94,9 @@ void DetectFaceAttributesResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/GetMaterialsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::GetMaterialsRequest;
|
||||
|
||||
GetMaterialsRequest::GetMaterialsRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "GetMaterials")
|
||||
{}
|
||||
|
||||
GetMaterialsRequest::~GetMaterialsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/GetMaterialsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::GetMaterialsRequest;
|
||||
|
||||
GetMaterialsRequest::GetMaterialsRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "GetMaterials")
|
||||
{}
|
||||
|
||||
GetMaterialsRequest::~GetMaterialsRequest()
|
||||
{}
|
||||
|
||||
long GetMaterialsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/GetMaterialsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
GetMaterialsResult::GetMaterialsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMaterialsResult::GetMaterialsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMaterialsResult::~GetMaterialsResult()
|
||||
{}
|
||||
|
||||
void GetMaterialsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/GetMaterialsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
GetMaterialsResult::GetMaterialsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMaterialsResult::GetMaterialsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMaterialsResult::~GetMaterialsResult()
|
||||
{}
|
||||
|
||||
void GetMaterialsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
@@ -63,15 +63,17 @@ void GetMaterialsResult::parse(const std::string &payload)
|
||||
data_.facePic = dataNode["FacePic"].asString();
|
||||
if(!dataNode["EthnicGroup"].isNull())
|
||||
data_.ethnicGroup = dataNode["EthnicGroup"].asString();
|
||||
if(!dataNode["Authority"].isNull())
|
||||
data_.authority = dataNode["Authority"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string GetMaterialsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/GetStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::GetStatusRequest;
|
||||
|
||||
GetStatusRequest::GetStatusRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "GetStatus")
|
||||
{}
|
||||
|
||||
GetStatusRequest::~GetStatusRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/GetStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::GetStatusRequest;
|
||||
|
||||
GetStatusRequest::GetStatusRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "GetStatus")
|
||||
{}
|
||||
|
||||
GetStatusRequest::~GetStatusRequest()
|
||||
{}
|
||||
|
||||
long GetStatusRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/GetStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
GetStatusResult::GetStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetStatusResult::GetStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetStatusResult::~GetStatusResult()
|
||||
{}
|
||||
|
||||
void GetStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/GetStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
GetStatusResult::GetStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetStatusResult::GetStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetStatusResult::~GetStatusResult()
|
||||
{}
|
||||
|
||||
void GetStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["StatusCode"].isNull())
|
||||
data_.statusCode = std::stoi(dataNode["StatusCode"].asString());
|
||||
@@ -57,9 +57,9 @@ void GetStatusResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string GetStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/GetVerifyTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::GetVerifyTokenRequest;
|
||||
|
||||
GetVerifyTokenRequest::GetVerifyTokenRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "GetVerifyToken")
|
||||
{}
|
||||
|
||||
GetVerifyTokenRequest::~GetVerifyTokenRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/GetVerifyTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::GetVerifyTokenRequest;
|
||||
|
||||
GetVerifyTokenRequest::GetVerifyTokenRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "GetVerifyToken")
|
||||
{}
|
||||
|
||||
GetVerifyTokenRequest::~GetVerifyTokenRequest()
|
||||
{}
|
||||
|
||||
std::string GetVerifyTokenRequest::getUserData()const
|
||||
{
|
||||
return userData_;
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/GetVerifyTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
GetVerifyTokenResult::GetVerifyTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetVerifyTokenResult::GetVerifyTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetVerifyTokenResult::~GetVerifyTokenResult()
|
||||
{}
|
||||
|
||||
void GetVerifyTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/GetVerifyTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
GetVerifyTokenResult::GetVerifyTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetVerifyTokenResult::GetVerifyTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetVerifyTokenResult::~GetVerifyTokenResult()
|
||||
{}
|
||||
|
||||
void GetVerifyTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CloudauthPageUrl"].isNull())
|
||||
data_.cloudauthPageUrl = dataNode["CloudauthPageUrl"].asString();
|
||||
@@ -69,9 +69,9 @@ void GetVerifyTokenResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/ModifyDeviceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::ModifyDeviceInfoRequest;
|
||||
|
||||
ModifyDeviceInfoRequest::ModifyDeviceInfoRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "ModifyDeviceInfo")
|
||||
{}
|
||||
|
||||
ModifyDeviceInfoRequest::~ModifyDeviceInfoRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/ModifyDeviceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::ModifyDeviceInfoRequest;
|
||||
|
||||
ModifyDeviceInfoRequest::ModifyDeviceInfoRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "ModifyDeviceInfo")
|
||||
{}
|
||||
|
||||
ModifyDeviceInfoRequest::~ModifyDeviceInfoRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getUserDeviceId()const
|
||||
{
|
||||
return userDeviceId_;
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
ModifyDeviceInfoResult::ModifyDeviceInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDeviceInfoResult::ModifyDeviceInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDeviceInfoResult::~ModifyDeviceInfoResult()
|
||||
{}
|
||||
|
||||
void ModifyDeviceInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/ModifyDeviceInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
ModifyDeviceInfoResult::ModifyDeviceInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDeviceInfoResult::ModifyDeviceInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDeviceInfoResult::~ModifyDeviceInfoResult()
|
||||
{}
|
||||
|
||||
void ModifyDeviceInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DeviceId"].isNull())
|
||||
deviceId_ = value["DeviceId"].asString();
|
||||
if(!value["UserDeviceId"].isNull())
|
||||
@@ -50,9 +50,9 @@ void ModifyDeviceInfoResult::parse(const std::string &payload)
|
||||
beginDay_ = value["BeginDay"].asString();
|
||||
if(!value["ExpiredDay"].isNull())
|
||||
expiredDay_ = value["ExpiredDay"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoResult::getExpiredDay()const
|
||||
{
|
||||
return expiredDay_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/SubmitMaterialsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::SubmitMaterialsRequest;
|
||||
|
||||
SubmitMaterialsRequest::SubmitMaterialsRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "SubmitMaterials")
|
||||
{}
|
||||
|
||||
SubmitMaterialsRequest::~SubmitMaterialsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/SubmitMaterialsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::SubmitMaterialsRequest;
|
||||
|
||||
SubmitMaterialsRequest::SubmitMaterialsRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "SubmitMaterials")
|
||||
{}
|
||||
|
||||
SubmitMaterialsRequest::~SubmitMaterialsRequest()
|
||||
{}
|
||||
|
||||
long SubmitMaterialsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/SubmitMaterialsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
SubmitMaterialsResult::SubmitMaterialsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitMaterialsResult::SubmitMaterialsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitMaterialsResult::~SubmitMaterialsResult()
|
||||
{}
|
||||
|
||||
void SubmitMaterialsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/SubmitMaterialsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
SubmitMaterialsResult::SubmitMaterialsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitMaterialsResult::SubmitMaterialsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitMaterialsResult::~SubmitMaterialsResult()
|
||||
{}
|
||||
|
||||
void SubmitMaterialsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto verifyStatusNode = dataNode["VerifyStatus"];
|
||||
if(!verifyStatusNode["StatusCode"].isNull())
|
||||
@@ -58,9 +58,9 @@ void SubmitMaterialsResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string SubmitMaterialsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/SubmitVerificationRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::SubmitVerificationRequest;
|
||||
|
||||
SubmitVerificationRequest::SubmitVerificationRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "SubmitVerification")
|
||||
{}
|
||||
|
||||
SubmitVerificationRequest::~SubmitVerificationRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/SubmitVerificationRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::SubmitVerificationRequest;
|
||||
|
||||
SubmitVerificationRequest::SubmitVerificationRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "SubmitVerification")
|
||||
{}
|
||||
|
||||
SubmitVerificationRequest::~SubmitVerificationRequest()
|
||||
{}
|
||||
|
||||
long SubmitVerificationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/SubmitVerificationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
SubmitVerificationResult::SubmitVerificationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitVerificationResult::SubmitVerificationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitVerificationResult::~SubmitVerificationResult()
|
||||
{}
|
||||
|
||||
void SubmitVerificationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* 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/SubmitVerificationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
SubmitVerificationResult::SubmitVerificationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitVerificationResult::SubmitVerificationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitVerificationResult::~SubmitVerificationResult()
|
||||
{}
|
||||
|
||||
void SubmitVerificationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto verifyStatusNode = dataNode["VerifyStatus"];
|
||||
if(!verifyStatusNode["StatusCode"].isNull())
|
||||
@@ -58,9 +58,9 @@ void SubmitVerificationResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string SubmitVerificationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -1,714 +1,82 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
#
|
||||
# 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(live_public_header
|
||||
include/alibabacloud/live/LiveClient.h
|
||||
include/alibabacloud/live/LiveExport.h )
|
||||
|
||||
set(live_public_header_model
|
||||
include/alibabacloud/live/model/DescribeLiveRecordNotifyConfigRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveRecordNotifyConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeRoomListRequest.h
|
||||
include/alibabacloud/live/model/DescribeRoomListResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveDetectNotifyConfigRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveDetectNotifyConfigResult.h
|
||||
include/alibabacloud/live/model/ModifyCasterComponentRequest.h
|
||||
include/alibabacloud/live/model/ModifyCasterComponentResult.h
|
||||
include/alibabacloud/live/model/UpdateLiveSnapshotDetectPornConfigRequest.h
|
||||
include/alibabacloud/live/model/UpdateLiveSnapshotDetectPornConfigResult.h
|
||||
include/alibabacloud/live/model/EffectCasterUrgentRequest.h
|
||||
include/alibabacloud/live/model/EffectCasterUrgentResult.h
|
||||
include/alibabacloud/live/model/CompleteBoardRequest.h
|
||||
include/alibabacloud/live/model/CompleteBoardResult.h
|
||||
include/alibabacloud/live/model/DescribeCasterComponentsRequest.h
|
||||
include/alibabacloud/live/model/DescribeCasterComponentsResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveMixConfigRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveMixConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeRoomStatusRequest.h
|
||||
include/alibabacloud/live/model/DescribeRoomStatusResult.h
|
||||
include/alibabacloud/live/model/CreateLiveStreamRecordIndexFilesRequest.h
|
||||
include/alibabacloud/live/model/CreateLiveStreamRecordIndexFilesResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveSpecificConfigRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveSpecificConfigResult.h
|
||||
include/alibabacloud/live/model/UpdateCasterSceneConfigRequest.h
|
||||
include/alibabacloud/live/model/UpdateCasterSceneConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamTranscodeInfoRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamTranscodeInfoResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamsOnlineListRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamsOnlineListResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveSnapshotDetectPornConfigRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveSnapshotDetectPornConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeUpBpsPeakOfLineRequest.h
|
||||
include/alibabacloud/live/model/DescribeUpBpsPeakOfLineResult.h
|
||||
include/alibabacloud/live/model/CopyCasterSceneConfigRequest.h
|
||||
include/alibabacloud/live/model/CopyCasterSceneConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainTranscodeDataRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainTranscodeDataResult.h
|
||||
include/alibabacloud/live/model/StopMixStreamsServiceRequest.h
|
||||
include/alibabacloud/live/model/StopMixStreamsServiceResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveStreamTranscodeRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveStreamTranscodeResult.h
|
||||
include/alibabacloud/live/model/DeleteCasterEpisodeRequest.h
|
||||
include/alibabacloud/live/model/DeleteCasterEpisodeResult.h
|
||||
include/alibabacloud/live/model/DescribeCasterRtcInfoRequest.h
|
||||
include/alibabacloud/live/model/DescribeCasterRtcInfoResult.h
|
||||
include/alibabacloud/live/model/SetCasterSceneConfigRequest.h
|
||||
include/alibabacloud/live/model/SetCasterSceneConfigResult.h
|
||||
include/alibabacloud/live/model/AddTrancodeSEIRequest.h
|
||||
include/alibabacloud/live/model/AddTrancodeSEIResult.h
|
||||
include/alibabacloud/live/model/DeleteBoardRequest.h
|
||||
include/alibabacloud/live/model/DeleteBoardResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamBitRateDataRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamBitRateDataResult.h
|
||||
include/alibabacloud/live/model/DeleteCasterLayoutRequest.h
|
||||
include/alibabacloud/live/model/DeleteCasterLayoutResult.h
|
||||
include/alibabacloud/live/model/DeleteCasterProgramRequest.h
|
||||
include/alibabacloud/live/model/DeleteCasterProgramResult.h
|
||||
include/alibabacloud/live/model/StartCasterSceneRequest.h
|
||||
include/alibabacloud/live/model/StartCasterSceneResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamRecordIndexFileRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamRecordIndexFileResult.h
|
||||
include/alibabacloud/live/model/AddCasterEpisodeGroupRequest.h
|
||||
include/alibabacloud/live/model/AddCasterEpisodeGroupResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowResult.h
|
||||
include/alibabacloud/live/model/AddLiveMixConfigRequest.h
|
||||
include/alibabacloud/live/model/AddLiveMixConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeCasterConfigRequest.h
|
||||
include/alibabacloud/live/model/DescribeCasterConfigResult.h
|
||||
include/alibabacloud/live/model/CopyCasterRequest.h
|
||||
include/alibabacloud/live/model/CopyCasterResult.h
|
||||
include/alibabacloud/live/model/AddCustomLiveStreamTranscodeRequest.h
|
||||
include/alibabacloud/live/model/AddCustomLiveStreamTranscodeResult.h
|
||||
include/alibabacloud/live/model/SetLiveLazyPullStreamInfoConfigRequest.h
|
||||
include/alibabacloud/live/model/SetLiveLazyPullStreamInfoConfigResult.h
|
||||
include/alibabacloud/live/model/AddCasterEpisodeRequest.h
|
||||
include/alibabacloud/live/model/AddCasterEpisodeResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainRealTimeBpsDataRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainRealTimeBpsDataResult.h
|
||||
include/alibabacloud/live/model/AllowPushStreamRequest.h
|
||||
include/alibabacloud/live/model/AllowPushStreamResult.h
|
||||
include/alibabacloud/live/model/ForbidPushStreamRequest.h
|
||||
include/alibabacloud/live/model/ForbidPushStreamResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveRecordConfigRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveRecordConfigResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveRecordNotifyConfigRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveRecordNotifyConfigResult.h
|
||||
include/alibabacloud/live/model/AddLiveRecordNotifyConfigRequest.h
|
||||
include/alibabacloud/live/model/AddLiveRecordNotifyConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeHlsLiveStreamRealTimeBpsDataRequest.h
|
||||
include/alibabacloud/live/model/DescribeHlsLiveStreamRealTimeBpsDataResult.h
|
||||
include/alibabacloud/live/model/CreateBoardRequest.h
|
||||
include/alibabacloud/live/model/CreateBoardResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveStreamsNotifyUrlConfigRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveStreamsNotifyUrlConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamOnlineUserNumRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamOnlineUserNumResult.h
|
||||
include/alibabacloud/live/model/AddCasterComponentRequest.h
|
||||
include/alibabacloud/live/model/AddCasterComponentResult.h
|
||||
include/alibabacloud/live/model/UpdateLiveMixNotifyConfigRequest.h
|
||||
include/alibabacloud/live/model/UpdateLiveMixNotifyConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainRecordDataRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainRecordDataResult.h
|
||||
include/alibabacloud/live/model/DeleteCasterVideoResourceRequest.h
|
||||
include/alibabacloud/live/model/DeleteCasterVideoResourceResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveCertificateListRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveCertificateListResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveAppSnapshotConfigRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveAppSnapshotConfigResult.h
|
||||
include/alibabacloud/live/model/UpdateCasterSceneAudioRequest.h
|
||||
include/alibabacloud/live/model/UpdateCasterSceneAudioResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamsNotifyUrlConfigRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamsNotifyUrlConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeUpBpsPeakDataRequest.h
|
||||
include/alibabacloud/live/model/DescribeUpBpsPeakDataResult.h
|
||||
include/alibabacloud/live/model/DeleteLivePullStreamInfoConfigRequest.h
|
||||
include/alibabacloud/live/model/DeleteLivePullStreamInfoConfigResult.h
|
||||
include/alibabacloud/live/model/ModifyCasterProgramRequest.h
|
||||
include/alibabacloud/live/model/ModifyCasterProgramResult.h
|
||||
include/alibabacloud/live/model/DescribeBoardEventsRequest.h
|
||||
include/alibabacloud/live/model/DescribeBoardEventsResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveCertificateDetailRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveCertificateDetailResult.h
|
||||
include/alibabacloud/live/model/StartMixStreamsServiceRequest.h
|
||||
include/alibabacloud/live/model/StartMixStreamsServiceResult.h
|
||||
include/alibabacloud/live/model/DescribeLivePullStreamConfigRequest.h
|
||||
include/alibabacloud/live/model/DescribeLivePullStreamConfigResult.h
|
||||
include/alibabacloud/live/model/SetLiveStreamsNotifyUrlConfigRequest.h
|
||||
include/alibabacloud/live/model/SetLiveStreamsNotifyUrlConfigResult.h
|
||||
include/alibabacloud/live/model/AddLivePullStreamInfoConfigRequest.h
|
||||
include/alibabacloud/live/model/AddLivePullStreamInfoConfigResult.h
|
||||
include/alibabacloud/live/model/StartLiveDomainRequest.h
|
||||
include/alibabacloud/live/model/StartLiveDomainResult.h
|
||||
include/alibabacloud/live/model/DescribeCasterSceneAudioRequest.h
|
||||
include/alibabacloud/live/model/DescribeCasterSceneAudioResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamsBlockListRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamsBlockListResult.h
|
||||
include/alibabacloud/live/model/AddLiveStreamTranscodeRequest.h
|
||||
include/alibabacloud/live/model/AddLiveStreamTranscodeResult.h
|
||||
include/alibabacloud/live/model/AddCasterVideoResourceRequest.h
|
||||
include/alibabacloud/live/model/AddCasterVideoResourceResult.h
|
||||
include/alibabacloud/live/model/DescribeRoomKickoutUserListRequest.h
|
||||
include/alibabacloud/live/model/DescribeRoomKickoutUserListResult.h
|
||||
include/alibabacloud/live/model/AddCasterEpisodeGroupContentRequest.h
|
||||
include/alibabacloud/live/model/AddCasterEpisodeGroupContentResult.h
|
||||
include/alibabacloud/live/model/UpdateLiveDetectNotifyConfigRequest.h
|
||||
include/alibabacloud/live/model/UpdateLiveDetectNotifyConfigResult.h
|
||||
include/alibabacloud/live/model/ModifyCasterVideoResourceRequest.h
|
||||
include/alibabacloud/live/model/ModifyCasterVideoResourceResult.h
|
||||
include/alibabacloud/live/model/CreateRoomRequest.h
|
||||
include/alibabacloud/live/model/CreateRoomResult.h
|
||||
include/alibabacloud/live/model/DescribeCasterStreamUrlRequest.h
|
||||
include/alibabacloud/live/model/DescribeCasterStreamUrlResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamsControlHistoryRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamsControlHistoryResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamCountRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamCountResult.h
|
||||
include/alibabacloud/live/model/StopCasterSceneRequest.h
|
||||
include/alibabacloud/live/model/StopCasterSceneResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainRealTimeTrafficDataRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainRealTimeTrafficDataResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainSnapshotDataRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainSnapshotDataResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveRecordVodConfigRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveRecordVodConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainRealTimeHttpCodeDataRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainRealTimeHttpCodeDataResult.h
|
||||
include/alibabacloud/live/model/ModifyCasterEpisodeRequest.h
|
||||
include/alibabacloud/live/model/ModifyCasterEpisodeResult.h
|
||||
include/alibabacloud/live/model/DescribeBoardsRequest.h
|
||||
include/alibabacloud/live/model/DescribeBoardsResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamSnapshotInfoRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamSnapshotInfoResult.h
|
||||
include/alibabacloud/live/model/StartMultipleStreamMixServiceRequest.h
|
||||
include/alibabacloud/live/model/StartMultipleStreamMixServiceResult.h
|
||||
include/alibabacloud/live/model/StopMultipleStreamMixServiceRequest.h
|
||||
include/alibabacloud/live/model/StopMultipleStreamMixServiceResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveMixNotifyConfigRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveMixNotifyConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.h
|
||||
include/alibabacloud/live/model/DescribeForbidPushStreamRoomListRequest.h
|
||||
include/alibabacloud/live/model/DescribeForbidPushStreamRoomListResult.h
|
||||
include/alibabacloud/live/model/CreateCasterRequest.h
|
||||
include/alibabacloud/live/model/CreateCasterResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamRecordContentRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamRecordContentResult.h
|
||||
include/alibabacloud/live/model/AddMultipleStreamMixServiceRequest.h
|
||||
include/alibabacloud/live/model/AddMultipleStreamMixServiceResult.h
|
||||
include/alibabacloud/live/model/AddLiveSnapshotDetectPornConfigRequest.h
|
||||
include/alibabacloud/live/model/AddLiveSnapshotDetectPornConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeCasterLayoutsRequest.h
|
||||
include/alibabacloud/live/model/DescribeCasterLayoutsResult.h
|
||||
include/alibabacloud/live/model/UpdateLiveRecordNotifyConfigRequest.h
|
||||
include/alibabacloud/live/model/UpdateLiveRecordNotifyConfigResult.h
|
||||
include/alibabacloud/live/model/SetCasterChannelRequest.h
|
||||
include/alibabacloud/live/model/SetCasterChannelResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveSnapshotConfigRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveSnapshotConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainTrafficDataRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainTrafficDataResult.h
|
||||
include/alibabacloud/live/model/DescribeCasterProgramRequest.h
|
||||
include/alibabacloud/live/model/DescribeCasterProgramResult.h
|
||||
include/alibabacloud/live/model/StopLiveDomainRequest.h
|
||||
include/alibabacloud/live/model/StopLiveDomainResult.h
|
||||
include/alibabacloud/live/model/ApplyBoardTokenRequest.h
|
||||
include/alibabacloud/live/model/ApplyBoardTokenResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamHistoryUserNumRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamHistoryUserNumResult.h
|
||||
include/alibabacloud/live/model/AddLiveAppRecordConfigRequest.h
|
||||
include/alibabacloud/live/model/AddLiveAppRecordConfigResult.h
|
||||
include/alibabacloud/live/model/AddLiveRecordVodConfigRequest.h
|
||||
include/alibabacloud/live/model/AddLiveRecordVodConfigResult.h
|
||||
include/alibabacloud/live/model/SendRoomUserNotificationRequest.h
|
||||
include/alibabacloud/live/model/SendRoomUserNotificationResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveDomainMappingRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveDomainMappingResult.h
|
||||
include/alibabacloud/live/model/BatchSetLiveDomainConfigsRequest.h
|
||||
include/alibabacloud/live/model/BatchSetLiveDomainConfigsResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainDetailRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainDetailResult.h
|
||||
include/alibabacloud/live/model/DescribeCasterChannelsRequest.h
|
||||
include/alibabacloud/live/model/DescribeCasterChannelsResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainConfigsRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainConfigsResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamRecordIndexFilesRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamRecordIndexFilesResult.h
|
||||
include/alibabacloud/live/model/DeleteRoomRequest.h
|
||||
include/alibabacloud/live/model/DeleteRoomResult.h
|
||||
include/alibabacloud/live/model/AddCasterProgramRequest.h
|
||||
include/alibabacloud/live/model/AddCasterProgramResult.h
|
||||
include/alibabacloud/live/model/DescribeBoardSnapshotRequest.h
|
||||
include/alibabacloud/live/model/DescribeBoardSnapshotResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveMixConfigRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveMixConfigResult.h
|
||||
include/alibabacloud/live/model/BatchDeleteLiveDomainConfigsRequest.h
|
||||
include/alibabacloud/live/model/BatchDeleteLiveDomainConfigsResult.h
|
||||
include/alibabacloud/live/model/SetLiveDomainCertificateRequest.h
|
||||
include/alibabacloud/live/model/SetLiveDomainCertificateResult.h
|
||||
include/alibabacloud/live/model/ForbidLiveStreamRequest.h
|
||||
include/alibabacloud/live/model/ForbidLiveStreamResult.h
|
||||
include/alibabacloud/live/model/DeleteCasterEpisodeGroupRequest.h
|
||||
include/alibabacloud/live/model/DeleteCasterEpisodeGroupResult.h
|
||||
include/alibabacloud/live/model/DescribeCasterVideoResourcesRequest.h
|
||||
include/alibabacloud/live/model/DescribeCasterVideoResourcesResult.h
|
||||
include/alibabacloud/live/model/UpdateLiveAppSnapshotConfigRequest.h
|
||||
include/alibabacloud/live/model/UpdateLiveAppSnapshotConfigResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveDetectNotifyConfigRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveDetectNotifyConfigResult.h
|
||||
include/alibabacloud/live/model/EffectCasterVideoResourceRequest.h
|
||||
include/alibabacloud/live/model/EffectCasterVideoResourceResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveMixNotifyConfigRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveMixNotifyConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeUpPeakPublishStreamDataRequest.h
|
||||
include/alibabacloud/live/model/DescribeUpPeakPublishStreamDataResult.h
|
||||
include/alibabacloud/live/model/AddLiveAppSnapshotConfigRequest.h
|
||||
include/alibabacloud/live/model/AddLiveAppSnapshotConfigResult.h
|
||||
include/alibabacloud/live/model/RemoveMultipleStreamMixServiceRequest.h
|
||||
include/alibabacloud/live/model/RemoveMultipleStreamMixServiceResult.h
|
||||
include/alibabacloud/live/model/DeleteCasterComponentRequest.h
|
||||
include/alibabacloud/live/model/DeleteCasterComponentResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveDomainRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveDomainResult.h
|
||||
include/alibabacloud/live/model/SetCasterConfigRequest.h
|
||||
include/alibabacloud/live/model/SetCasterConfigResult.h
|
||||
include/alibabacloud/live/model/AddLiveDomainMappingRequest.h
|
||||
include/alibabacloud/live/model/AddLiveDomainMappingResult.h
|
||||
include/alibabacloud/live/model/RealTimeRecordCommandRequest.h
|
||||
include/alibabacloud/live/model/RealTimeRecordCommandResult.h
|
||||
include/alibabacloud/live/model/StartCasterRequest.h
|
||||
include/alibabacloud/live/model/StartCasterResult.h
|
||||
include/alibabacloud/live/model/ResumeLiveStreamRequest.h
|
||||
include/alibabacloud/live/model/ResumeLiveStreamResult.h
|
||||
include/alibabacloud/live/model/AddCasterLayoutRequest.h
|
||||
include/alibabacloud/live/model/AddCasterLayoutResult.h
|
||||
include/alibabacloud/live/model/UpdateBoardRequest.h
|
||||
include/alibabacloud/live/model/UpdateBoardResult.h
|
||||
include/alibabacloud/live/model/JoinBoardRequest.h
|
||||
include/alibabacloud/live/model/JoinBoardResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveUserDomainsRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveUserDomainsResult.h
|
||||
include/alibabacloud/live/model/ModifyCasterLayoutRequest.h
|
||||
include/alibabacloud/live/model/ModifyCasterLayoutResult.h
|
||||
include/alibabacloud/live/model/StopCasterRequest.h
|
||||
include/alibabacloud/live/model/StopCasterResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamsPublishListRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveStreamsPublishListResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveSnapshotDetectPornConfigRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveSnapshotDetectPornConfigResult.h
|
||||
include/alibabacloud/live/model/DeleteCasterSceneConfigRequest.h
|
||||
include/alibabacloud/live/model/DeleteCasterSceneConfigResult.h
|
||||
include/alibabacloud/live/model/AddLiveDomainRequest.h
|
||||
include/alibabacloud/live/model/AddLiveDomainResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveAppRecordConfigRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveAppRecordConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainBpsDataRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveDomainBpsDataResult.h
|
||||
include/alibabacloud/live/model/DeleteCasterRequest.h
|
||||
include/alibabacloud/live/model/DeleteCasterResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveRecordVodConfigsRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveRecordVodConfigsResult.h
|
||||
include/alibabacloud/live/model/DescribeCastersRequest.h
|
||||
include/alibabacloud/live/model/DescribeCastersResult.h
|
||||
include/alibabacloud/live/model/AddLiveMixNotifyConfigRequest.h
|
||||
include/alibabacloud/live/model/AddLiveMixNotifyConfigResult.h
|
||||
include/alibabacloud/live/model/AddLiveDetectNotifyConfigRequest.h
|
||||
include/alibabacloud/live/model/AddLiveDetectNotifyConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveLazyPullStreamConfigRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveLazyPullStreamConfigResult.h
|
||||
include/alibabacloud/live/model/DescribeCasterScenesRequest.h
|
||||
include/alibabacloud/live/model/DescribeCasterScenesResult.h
|
||||
include/alibabacloud/live/model/SendRoomNotificationRequest.h
|
||||
include/alibabacloud/live/model/SendRoomNotificationResult.h
|
||||
include/alibabacloud/live/model/DeleteLiveLazyPullStreamInfoConfigRequest.h
|
||||
include/alibabacloud/live/model/DeleteLiveLazyPullStreamInfoConfigResult.h )
|
||||
|
||||
include/alibabacloud/live/LiveExport.h )
|
||||
|
||||
set(live_public_header_model )
|
||||
|
||||
set(live_src
|
||||
src/LiveClient.cc
|
||||
src/model/DescribeLiveRecordNotifyConfigRequest.cc
|
||||
src/model/DescribeLiveRecordNotifyConfigResult.cc
|
||||
src/model/DescribeRoomListRequest.cc
|
||||
src/model/DescribeRoomListResult.cc
|
||||
src/model/DescribeLiveDetectNotifyConfigRequest.cc
|
||||
src/model/DescribeLiveDetectNotifyConfigResult.cc
|
||||
src/model/ModifyCasterComponentRequest.cc
|
||||
src/model/ModifyCasterComponentResult.cc
|
||||
src/model/UpdateLiveSnapshotDetectPornConfigRequest.cc
|
||||
src/model/UpdateLiveSnapshotDetectPornConfigResult.cc
|
||||
src/model/EffectCasterUrgentRequest.cc
|
||||
src/model/EffectCasterUrgentResult.cc
|
||||
src/model/CompleteBoardRequest.cc
|
||||
src/model/CompleteBoardResult.cc
|
||||
src/model/DescribeCasterComponentsRequest.cc
|
||||
src/model/DescribeCasterComponentsResult.cc
|
||||
src/model/DescribeLiveMixConfigRequest.cc
|
||||
src/model/DescribeLiveMixConfigResult.cc
|
||||
src/model/DescribeRoomStatusRequest.cc
|
||||
src/model/DescribeRoomStatusResult.cc
|
||||
src/model/CreateLiveStreamRecordIndexFilesRequest.cc
|
||||
src/model/CreateLiveStreamRecordIndexFilesResult.cc
|
||||
src/model/DeleteLiveSpecificConfigRequest.cc
|
||||
src/model/DeleteLiveSpecificConfigResult.cc
|
||||
src/model/UpdateCasterSceneConfigRequest.cc
|
||||
src/model/UpdateCasterSceneConfigResult.cc
|
||||
src/model/DescribeLiveStreamTranscodeInfoRequest.cc
|
||||
src/model/DescribeLiveStreamTranscodeInfoResult.cc
|
||||
src/model/DescribeLiveStreamsOnlineListRequest.cc
|
||||
src/model/DescribeLiveStreamsOnlineListResult.cc
|
||||
src/model/DeleteLiveSnapshotDetectPornConfigRequest.cc
|
||||
src/model/DeleteLiveSnapshotDetectPornConfigResult.cc
|
||||
src/model/DescribeUpBpsPeakOfLineRequest.cc
|
||||
src/model/DescribeUpBpsPeakOfLineResult.cc
|
||||
src/model/CopyCasterSceneConfigRequest.cc
|
||||
src/model/CopyCasterSceneConfigResult.cc
|
||||
src/model/DescribeLiveDomainTranscodeDataRequest.cc
|
||||
src/model/DescribeLiveDomainTranscodeDataResult.cc
|
||||
src/model/StopMixStreamsServiceRequest.cc
|
||||
src/model/StopMixStreamsServiceResult.cc
|
||||
src/model/DeleteLiveStreamTranscodeRequest.cc
|
||||
src/model/DeleteLiveStreamTranscodeResult.cc
|
||||
src/model/DeleteCasterEpisodeRequest.cc
|
||||
src/model/DeleteCasterEpisodeResult.cc
|
||||
src/model/DescribeCasterRtcInfoRequest.cc
|
||||
src/model/DescribeCasterRtcInfoResult.cc
|
||||
src/model/SetCasterSceneConfigRequest.cc
|
||||
src/model/SetCasterSceneConfigResult.cc
|
||||
src/model/AddTrancodeSEIRequest.cc
|
||||
src/model/AddTrancodeSEIResult.cc
|
||||
src/model/DeleteBoardRequest.cc
|
||||
src/model/DeleteBoardResult.cc
|
||||
src/model/DescribeLiveStreamBitRateDataRequest.cc
|
||||
src/model/DescribeLiveStreamBitRateDataResult.cc
|
||||
src/model/DeleteCasterLayoutRequest.cc
|
||||
src/model/DeleteCasterLayoutResult.cc
|
||||
src/model/DeleteCasterProgramRequest.cc
|
||||
src/model/DeleteCasterProgramResult.cc
|
||||
src/model/StartCasterSceneRequest.cc
|
||||
src/model/StartCasterSceneResult.cc
|
||||
src/model/DescribeLiveStreamRecordIndexFileRequest.cc
|
||||
src/model/DescribeLiveStreamRecordIndexFileResult.cc
|
||||
src/model/AddCasterEpisodeGroupRequest.cc
|
||||
src/model/AddCasterEpisodeGroupResult.cc
|
||||
src/model/DescribeLiveTopDomainsByFlowRequest.cc
|
||||
src/model/DescribeLiveTopDomainsByFlowResult.cc
|
||||
src/model/AddLiveMixConfigRequest.cc
|
||||
src/model/AddLiveMixConfigResult.cc
|
||||
src/model/DescribeCasterConfigRequest.cc
|
||||
src/model/DescribeCasterConfigResult.cc
|
||||
src/model/CopyCasterRequest.cc
|
||||
src/model/CopyCasterResult.cc
|
||||
src/model/AddCustomLiveStreamTranscodeRequest.cc
|
||||
src/model/AddCustomLiveStreamTranscodeResult.cc
|
||||
src/model/SetLiveLazyPullStreamInfoConfigRequest.cc
|
||||
src/model/SetLiveLazyPullStreamInfoConfigResult.cc
|
||||
src/model/AddCasterEpisodeRequest.cc
|
||||
src/model/AddCasterEpisodeResult.cc
|
||||
src/model/DescribeLiveDomainRealTimeBpsDataRequest.cc
|
||||
src/model/DescribeLiveDomainRealTimeBpsDataResult.cc
|
||||
src/model/AllowPushStreamRequest.cc
|
||||
src/model/AllowPushStreamResult.cc
|
||||
src/model/ForbidPushStreamRequest.cc
|
||||
src/model/ForbidPushStreamResult.cc
|
||||
src/model/DescribeLiveRecordConfigRequest.cc
|
||||
src/model/DescribeLiveRecordConfigResult.cc
|
||||
src/model/DeleteLiveRecordNotifyConfigRequest.cc
|
||||
src/model/DeleteLiveRecordNotifyConfigResult.cc
|
||||
src/model/AddLiveRecordNotifyConfigRequest.cc
|
||||
src/model/AddLiveRecordNotifyConfigResult.cc
|
||||
src/model/DescribeHlsLiveStreamRealTimeBpsDataRequest.cc
|
||||
src/model/DescribeHlsLiveStreamRealTimeBpsDataResult.cc
|
||||
src/model/CreateBoardRequest.cc
|
||||
src/model/CreateBoardResult.cc
|
||||
src/model/DeleteLiveStreamsNotifyUrlConfigRequest.cc
|
||||
src/model/DeleteLiveStreamsNotifyUrlConfigResult.cc
|
||||
src/model/DescribeLiveStreamOnlineUserNumRequest.cc
|
||||
src/model/DescribeLiveStreamOnlineUserNumResult.cc
|
||||
src/model/AddCasterComponentRequest.cc
|
||||
src/model/AddCasterComponentResult.cc
|
||||
src/model/UpdateLiveMixNotifyConfigRequest.cc
|
||||
src/model/UpdateLiveMixNotifyConfigResult.cc
|
||||
src/model/DescribeLiveDomainRecordDataRequest.cc
|
||||
src/model/DescribeLiveDomainRecordDataResult.cc
|
||||
src/model/DeleteCasterVideoResourceRequest.cc
|
||||
src/model/DeleteCasterVideoResourceResult.cc
|
||||
src/model/DescribeLiveCertificateListRequest.cc
|
||||
src/model/DescribeLiveCertificateListResult.cc
|
||||
src/model/DeleteLiveAppSnapshotConfigRequest.cc
|
||||
src/model/DeleteLiveAppSnapshotConfigResult.cc
|
||||
src/model/UpdateCasterSceneAudioRequest.cc
|
||||
src/model/UpdateCasterSceneAudioResult.cc
|
||||
src/model/DescribeLiveStreamsNotifyUrlConfigRequest.cc
|
||||
src/model/DescribeLiveStreamsNotifyUrlConfigResult.cc
|
||||
src/model/DescribeUpBpsPeakDataRequest.cc
|
||||
src/model/DescribeUpBpsPeakDataResult.cc
|
||||
src/model/DeleteLivePullStreamInfoConfigRequest.cc
|
||||
src/model/DeleteLivePullStreamInfoConfigResult.cc
|
||||
src/model/ModifyCasterProgramRequest.cc
|
||||
src/model/ModifyCasterProgramResult.cc
|
||||
src/model/DescribeBoardEventsRequest.cc
|
||||
src/model/DescribeBoardEventsResult.cc
|
||||
src/model/DescribeLiveCertificateDetailRequest.cc
|
||||
src/model/DescribeLiveCertificateDetailResult.cc
|
||||
src/model/StartMixStreamsServiceRequest.cc
|
||||
src/model/StartMixStreamsServiceResult.cc
|
||||
src/model/DescribeLivePullStreamConfigRequest.cc
|
||||
src/model/DescribeLivePullStreamConfigResult.cc
|
||||
src/model/SetLiveStreamsNotifyUrlConfigRequest.cc
|
||||
src/model/SetLiveStreamsNotifyUrlConfigResult.cc
|
||||
src/model/AddLivePullStreamInfoConfigRequest.cc
|
||||
src/model/AddLivePullStreamInfoConfigResult.cc
|
||||
src/model/StartLiveDomainRequest.cc
|
||||
src/model/StartLiveDomainResult.cc
|
||||
src/model/DescribeCasterSceneAudioRequest.cc
|
||||
src/model/DescribeCasterSceneAudioResult.cc
|
||||
src/model/DescribeLiveStreamsBlockListRequest.cc
|
||||
src/model/DescribeLiveStreamsBlockListResult.cc
|
||||
src/model/AddLiveStreamTranscodeRequest.cc
|
||||
src/model/AddLiveStreamTranscodeResult.cc
|
||||
src/model/AddCasterVideoResourceRequest.cc
|
||||
src/model/AddCasterVideoResourceResult.cc
|
||||
src/model/DescribeRoomKickoutUserListRequest.cc
|
||||
src/model/DescribeRoomKickoutUserListResult.cc
|
||||
src/model/AddCasterEpisodeGroupContentRequest.cc
|
||||
src/model/AddCasterEpisodeGroupContentResult.cc
|
||||
src/model/UpdateLiveDetectNotifyConfigRequest.cc
|
||||
src/model/UpdateLiveDetectNotifyConfigResult.cc
|
||||
src/model/ModifyCasterVideoResourceRequest.cc
|
||||
src/model/ModifyCasterVideoResourceResult.cc
|
||||
src/model/CreateRoomRequest.cc
|
||||
src/model/CreateRoomResult.cc
|
||||
src/model/DescribeCasterStreamUrlRequest.cc
|
||||
src/model/DescribeCasterStreamUrlResult.cc
|
||||
src/model/DescribeLiveStreamsControlHistoryRequest.cc
|
||||
src/model/DescribeLiveStreamsControlHistoryResult.cc
|
||||
src/model/DescribeLiveStreamCountRequest.cc
|
||||
src/model/DescribeLiveStreamCountResult.cc
|
||||
src/model/StopCasterSceneRequest.cc
|
||||
src/model/StopCasterSceneResult.cc
|
||||
src/model/DescribeLiveDomainRealTimeTrafficDataRequest.cc
|
||||
src/model/DescribeLiveDomainRealTimeTrafficDataResult.cc
|
||||
src/model/DescribeLiveDomainSnapshotDataRequest.cc
|
||||
src/model/DescribeLiveDomainSnapshotDataResult.cc
|
||||
src/model/DeleteLiveRecordVodConfigRequest.cc
|
||||
src/model/DeleteLiveRecordVodConfigResult.cc
|
||||
src/model/DescribeLiveDomainRealTimeHttpCodeDataRequest.cc
|
||||
src/model/DescribeLiveDomainRealTimeHttpCodeDataResult.cc
|
||||
src/model/ModifyCasterEpisodeRequest.cc
|
||||
src/model/ModifyCasterEpisodeResult.cc
|
||||
src/model/DescribeBoardsRequest.cc
|
||||
src/model/DescribeBoardsResult.cc
|
||||
src/model/DescribeLiveStreamSnapshotInfoRequest.cc
|
||||
src/model/DescribeLiveStreamSnapshotInfoResult.cc
|
||||
src/model/StartMultipleStreamMixServiceRequest.cc
|
||||
src/model/StartMultipleStreamMixServiceResult.cc
|
||||
src/model/StopMultipleStreamMixServiceRequest.cc
|
||||
src/model/StopMultipleStreamMixServiceResult.cc
|
||||
src/model/DescribeLiveMixNotifyConfigRequest.cc
|
||||
src/model/DescribeLiveMixNotifyConfigResult.cc
|
||||
src/model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.cc
|
||||
src/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.cc
|
||||
src/model/DescribeForbidPushStreamRoomListRequest.cc
|
||||
src/model/DescribeForbidPushStreamRoomListResult.cc
|
||||
src/model/CreateCasterRequest.cc
|
||||
src/model/CreateCasterResult.cc
|
||||
src/model/DescribeLiveStreamRecordContentRequest.cc
|
||||
src/model/DescribeLiveStreamRecordContentResult.cc
|
||||
src/model/AddMultipleStreamMixServiceRequest.cc
|
||||
src/model/AddMultipleStreamMixServiceResult.cc
|
||||
src/model/AddLiveSnapshotDetectPornConfigRequest.cc
|
||||
src/model/AddLiveSnapshotDetectPornConfigResult.cc
|
||||
src/model/DescribeCasterLayoutsRequest.cc
|
||||
src/model/DescribeCasterLayoutsResult.cc
|
||||
src/model/UpdateLiveRecordNotifyConfigRequest.cc
|
||||
src/model/UpdateLiveRecordNotifyConfigResult.cc
|
||||
src/model/SetCasterChannelRequest.cc
|
||||
src/model/SetCasterChannelResult.cc
|
||||
src/model/DescribeLiveSnapshotConfigRequest.cc
|
||||
src/model/DescribeLiveSnapshotConfigResult.cc
|
||||
src/model/DescribeLiveDomainTrafficDataRequest.cc
|
||||
src/model/DescribeLiveDomainTrafficDataResult.cc
|
||||
src/model/DescribeCasterProgramRequest.cc
|
||||
src/model/DescribeCasterProgramResult.cc
|
||||
src/model/StopLiveDomainRequest.cc
|
||||
src/model/StopLiveDomainResult.cc
|
||||
src/model/ApplyBoardTokenRequest.cc
|
||||
src/model/ApplyBoardTokenResult.cc
|
||||
src/model/DescribeLiveStreamHistoryUserNumRequest.cc
|
||||
src/model/DescribeLiveStreamHistoryUserNumResult.cc
|
||||
src/model/AddLiveAppRecordConfigRequest.cc
|
||||
src/model/AddLiveAppRecordConfigResult.cc
|
||||
src/model/AddLiveRecordVodConfigRequest.cc
|
||||
src/model/AddLiveRecordVodConfigResult.cc
|
||||
src/model/SendRoomUserNotificationRequest.cc
|
||||
src/model/SendRoomUserNotificationResult.cc
|
||||
src/model/DeleteLiveDomainMappingRequest.cc
|
||||
src/model/DeleteLiveDomainMappingResult.cc
|
||||
src/model/BatchSetLiveDomainConfigsRequest.cc
|
||||
src/model/BatchSetLiveDomainConfigsResult.cc
|
||||
src/model/DescribeLiveDomainDetailRequest.cc
|
||||
src/model/DescribeLiveDomainDetailResult.cc
|
||||
src/model/DescribeCasterChannelsRequest.cc
|
||||
src/model/DescribeCasterChannelsResult.cc
|
||||
src/model/DescribeLiveDomainConfigsRequest.cc
|
||||
src/model/DescribeLiveDomainConfigsResult.cc
|
||||
src/model/DescribeLiveStreamRecordIndexFilesRequest.cc
|
||||
src/model/DescribeLiveStreamRecordIndexFilesResult.cc
|
||||
src/model/DeleteRoomRequest.cc
|
||||
src/model/DeleteRoomResult.cc
|
||||
src/model/AddCasterProgramRequest.cc
|
||||
src/model/AddCasterProgramResult.cc
|
||||
src/model/DescribeBoardSnapshotRequest.cc
|
||||
src/model/DescribeBoardSnapshotResult.cc
|
||||
src/model/DeleteLiveMixConfigRequest.cc
|
||||
src/model/DeleteLiveMixConfigResult.cc
|
||||
src/model/BatchDeleteLiveDomainConfigsRequest.cc
|
||||
src/model/BatchDeleteLiveDomainConfigsResult.cc
|
||||
src/model/SetLiveDomainCertificateRequest.cc
|
||||
src/model/SetLiveDomainCertificateResult.cc
|
||||
src/model/ForbidLiveStreamRequest.cc
|
||||
src/model/ForbidLiveStreamResult.cc
|
||||
src/model/DeleteCasterEpisodeGroupRequest.cc
|
||||
src/model/DeleteCasterEpisodeGroupResult.cc
|
||||
src/model/DescribeCasterVideoResourcesRequest.cc
|
||||
src/model/DescribeCasterVideoResourcesResult.cc
|
||||
src/model/UpdateLiveAppSnapshotConfigRequest.cc
|
||||
src/model/UpdateLiveAppSnapshotConfigResult.cc
|
||||
src/model/DeleteLiveDetectNotifyConfigRequest.cc
|
||||
src/model/DeleteLiveDetectNotifyConfigResult.cc
|
||||
src/model/EffectCasterVideoResourceRequest.cc
|
||||
src/model/EffectCasterVideoResourceResult.cc
|
||||
src/model/DeleteLiveMixNotifyConfigRequest.cc
|
||||
src/model/DeleteLiveMixNotifyConfigResult.cc
|
||||
src/model/DescribeUpPeakPublishStreamDataRequest.cc
|
||||
src/model/DescribeUpPeakPublishStreamDataResult.cc
|
||||
src/model/AddLiveAppSnapshotConfigRequest.cc
|
||||
src/model/AddLiveAppSnapshotConfigResult.cc
|
||||
src/model/RemoveMultipleStreamMixServiceRequest.cc
|
||||
src/model/RemoveMultipleStreamMixServiceResult.cc
|
||||
src/model/DeleteCasterComponentRequest.cc
|
||||
src/model/DeleteCasterComponentResult.cc
|
||||
src/model/DeleteLiveDomainRequest.cc
|
||||
src/model/DeleteLiveDomainResult.cc
|
||||
src/model/SetCasterConfigRequest.cc
|
||||
src/model/SetCasterConfigResult.cc
|
||||
src/model/AddLiveDomainMappingRequest.cc
|
||||
src/model/AddLiveDomainMappingResult.cc
|
||||
src/model/RealTimeRecordCommandRequest.cc
|
||||
src/model/RealTimeRecordCommandResult.cc
|
||||
src/model/StartCasterRequest.cc
|
||||
src/model/StartCasterResult.cc
|
||||
src/model/ResumeLiveStreamRequest.cc
|
||||
src/model/ResumeLiveStreamResult.cc
|
||||
src/model/AddCasterLayoutRequest.cc
|
||||
src/model/AddCasterLayoutResult.cc
|
||||
src/model/UpdateBoardRequest.cc
|
||||
src/model/UpdateBoardResult.cc
|
||||
src/model/JoinBoardRequest.cc
|
||||
src/model/JoinBoardResult.cc
|
||||
src/model/DescribeLiveUserDomainsRequest.cc
|
||||
src/model/DescribeLiveUserDomainsResult.cc
|
||||
src/model/ModifyCasterLayoutRequest.cc
|
||||
src/model/ModifyCasterLayoutResult.cc
|
||||
src/model/StopCasterRequest.cc
|
||||
src/model/StopCasterResult.cc
|
||||
src/model/DescribeLiveStreamsPublishListRequest.cc
|
||||
src/model/DescribeLiveStreamsPublishListResult.cc
|
||||
src/model/DescribeLiveSnapshotDetectPornConfigRequest.cc
|
||||
src/model/DescribeLiveSnapshotDetectPornConfigResult.cc
|
||||
src/model/DeleteCasterSceneConfigRequest.cc
|
||||
src/model/DeleteCasterSceneConfigResult.cc
|
||||
src/model/AddLiveDomainRequest.cc
|
||||
src/model/AddLiveDomainResult.cc
|
||||
src/model/DeleteLiveAppRecordConfigRequest.cc
|
||||
src/model/DeleteLiveAppRecordConfigResult.cc
|
||||
src/model/DescribeLiveDomainBpsDataRequest.cc
|
||||
src/model/DescribeLiveDomainBpsDataResult.cc
|
||||
src/model/DeleteCasterRequest.cc
|
||||
src/model/DeleteCasterResult.cc
|
||||
src/model/DescribeLiveRecordVodConfigsRequest.cc
|
||||
src/model/DescribeLiveRecordVodConfigsResult.cc
|
||||
src/model/DescribeCastersRequest.cc
|
||||
src/model/DescribeCastersResult.cc
|
||||
src/model/AddLiveMixNotifyConfigRequest.cc
|
||||
src/model/AddLiveMixNotifyConfigResult.cc
|
||||
src/model/AddLiveDetectNotifyConfigRequest.cc
|
||||
src/model/AddLiveDetectNotifyConfigResult.cc
|
||||
src/model/DescribeLiveLazyPullStreamConfigRequest.cc
|
||||
src/model/DescribeLiveLazyPullStreamConfigResult.cc
|
||||
src/model/DescribeCasterScenesRequest.cc
|
||||
src/model/DescribeCasterScenesResult.cc
|
||||
src/model/SendRoomNotificationRequest.cc
|
||||
src/model/SendRoomNotificationResult.cc
|
||||
src/model/DeleteLiveLazyPullStreamInfoConfigRequest.cc
|
||||
src/model/DeleteLiveLazyPullStreamInfoConfigResult.cc )
|
||||
|
||||
add_library(live ${LIB_TYPE}
|
||||
${live_public_header}
|
||||
${live_public_header_model}
|
||||
${live_src})
|
||||
|
||||
set_target_properties(live
|
||||
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}live
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(live
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_LIVE_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(live
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(live
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(live
|
||||
jsoncpp)
|
||||
target_include_directories(live
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(live
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(live
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(live
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(live
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${live_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/live)
|
||||
install(FILES ${live_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/live/model)
|
||||
install(TARGETS live
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
src/LiveClient.cc )
|
||||
|
||||
add_library(live ${LIB_TYPE}
|
||||
${live_public_header}
|
||||
${live_public_header_model}
|
||||
${live_src})
|
||||
|
||||
set_target_properties(live
|
||||
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}live
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(live
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_LIVE_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(live
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(live
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(live
|
||||
jsoncpp)
|
||||
target_include_directories(live
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(live
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(live
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(live
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(live
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${live_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/live)
|
||||
install(FILES ${live_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/live/model)
|
||||
install(TARGETS live
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,32 +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_LIVE_LIVEEXPORT_H_
|
||||
#define ALIBABACLOUD_LIVE_LIVEEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_LIVE_LIBRARY)
|
||||
# define ALIBABACLOUD_LIVE_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_LIVE_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_LIVE_EXPORT
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 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_LIVE_LIVEEXPORT_H_
|
||||
#define ALIBABACLOUD_LIVE_LIVEEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_LIVE_LIBRARY)
|
||||
# define ALIBABACLOUD_LIVE_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_LIVE_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_LIVE_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_LIVE_LIVEEXPORT_H_
|
||||
@@ -1,40 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LIVE_MODEL_ADDCASTERCOMPONENTREQUEST_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_ADDCASTERCOMPONENTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT AddCasterComponentRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddCasterComponentRequest();
|
||||
~AddCasterComponentRequest();
|
||||
|
||||
/*
|
||||
* 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_LIVE_MODEL_ADDCASTERCOMPONENTREQUEST_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_ADDCASTERCOMPONENTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT AddCasterComponentRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddCasterComponentRequest();
|
||||
~AddCasterComponentRequest();
|
||||
|
||||
std::string getComponentType()const;
|
||||
void setComponentType(const std::string& componentType);
|
||||
std::string getLocationId()const;
|
||||
@@ -55,8 +55,8 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTextLayerContent()const;
|
||||
void setTextLayerContent(const std::string& textLayerContent);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string componentType_;
|
||||
std::string locationId_;
|
||||
std::string imageLayerContent_;
|
||||
@@ -67,9 +67,9 @@ namespace AlibabaCloud
|
||||
std::string componentName_;
|
||||
long ownerId_;
|
||||
std::string textLayerContent_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_ADDCASTERCOMPONENTREQUEST_H_
|
||||
@@ -1,51 +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_LIVE_MODEL_ADDCASTERCOMPONENTRESULT_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_ADDCASTERCOMPONENTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT AddCasterComponentResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddCasterComponentResult();
|
||||
explicit AddCasterComponentResult(const std::string &payload);
|
||||
~AddCasterComponentResult();
|
||||
/*
|
||||
* 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_LIVE_MODEL_ADDCASTERCOMPONENTRESULT_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_ADDCASTERCOMPONENTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT AddCasterComponentResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddCasterComponentResult();
|
||||
explicit AddCasterComponentResult(const std::string &payload);
|
||||
~AddCasterComponentResult();
|
||||
std::string getComponentId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string componentId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_ADDCASTERCOMPONENTRESULT_H_
|
||||
@@ -1,54 +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_LIVE_MODEL_ADDCASTEREPISODEGROUPCONTENTREQUEST_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_ADDCASTEREPISODEGROUPCONTENTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT AddCasterEpisodeGroupContentRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddCasterEpisodeGroupContentRequest();
|
||||
~AddCasterEpisodeGroupContentRequest();
|
||||
|
||||
/*
|
||||
* 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_LIVE_MODEL_ADDCASTEREPISODEGROUPCONTENTREQUEST_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_ADDCASTEREPISODEGROUPCONTENTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT AddCasterEpisodeGroupContentRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddCasterEpisodeGroupContentRequest();
|
||||
~AddCasterEpisodeGroupContentRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
long ownerId_;
|
||||
std::string content_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_ADDCASTEREPISODEGROUPCONTENTREQUEST_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user