Compare commits

...

29 Commits

Author SHA1 Message Date
sdk-team
c6effd8aaa Support cloud_essd disk category for API CreateDisk, CreateInstance and RunInstances, and support configurating PerformanceLevel when choose cloud_essd. 2019-07-01 14:54:13 +08:00
sdk-team
015b2ed1d2 Added setting of crop_mode parameter. 2019-06-27 18:09:12 +08:00
sdk-team
e7043d157a Add some new apis to manage VoD domain, such as AddVodDomain, UpdateVodDomain, DeleteVodDomain, BatchStartVodDomain, BatchStopVodDomain, DescribeVodUserDomains, DescribeVodDomainDetail. 2019-06-24 11:53:40 +08:00
sdk-team
cec12f8e0e Add some new apis to manage VoD domain, such as AddVodDomain, UpdateVodDomain, DeleteVodDomain, BatchStartVodDomain, BatchStopVodDomain, DescribeVodUserDomains, DescribeVodDomainDetail. 2019-06-24 11:30:52 +08:00
sdk-team
a587859196 1. Supported the related recommend. 2019-06-18 12:24:25 +08:00
sdk-team
ff57895e48 companyreg release 2019-06-17 14:41:40 +08:00
sdk-team
8cdf451859 1, fixed DescribeAvailableResource OpenApi AvailableZones value problem. 2019-06-13 20:03:16 +08:00
sdk-team
5996d35d87 Generated 2015-01-01 for R-kvstore 2019-06-13 19:59:59 +08:00
sdk-team
e7cdb2e8d1 Add Network Assistant openapi sdk 2019-06-13 14:07:38 +08:00
sdk-team
f66472a0a1 1, Add RenewBackupPlan DBS interface. 2019-06-12 18:30:02 +08:00
sdk-team
c69537b970 1.Fix bug 2019-06-12 15:47:46 +08:00
sdk-team
4b7328cd62 1, Add InvokeDataAPIService interface, support invoke service of data api to get sql query result. 2019-06-12 13:48:09 +08:00
sdk-team
3369d7ef9d SDDP SDK Auto Released By pingzhun,Version:1.36.43
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-06-05 13:21:33 +08:00
sdk-team
67e0beb4b2 LIVE SDK Auto Released By wb-czb515173,Version:1.36.42
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-06-04 18:35:43 +08:00
sdk-team
9accac447f SMARTAG SDK Auto Released By jijun.jj,Version:1.36.41
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-06-03 20:08:06 +08:00
sdk-team
cab1294e1a ARMS SDK Auto Released By shichun.fsc,Version:1.36.40
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-05-31 14:38:45 +08:00
sdk-team
f3144309f2 CLOUDAUTH SDK Auto Released By gongpei.gp,Version:1.36.39
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-05-31 10:51:42 +08:00
sdk-team
74dce9533b update Smartag 2019-05-29 16:54:38 +08:00
sdk-team
e4f9772459 update product 2019-05-29 15:22:25 +08:00
sdk-team
d5eca473f1 RDS SDK Auto Released By tangtai,Version:1.36.36
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-05-29 15:06:33 +08:00
sdk-team
67bc9aa0c6 RDS SDK Auto Released By tangtai,Version:1.36.35
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-05-28 11:57:53 +08:00
sdk-team
769d0b4573 IMM SDK Auto Released By zhengrui.lj,Version:1.36.34
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-05-27 22:16:31 +08:00
sdk-team
b149df91f7 SDDP SDK Auto Released By zuochao,Version:1.36.33
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-05-27 14:55:29 +08:00
sdk-team
de0a72b9c7 ECS SDK Auto Released By shaoyi.qusy,Version:1.36.32
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-05-22 16:13:42 +08:00
sdk-team
ddd7183cb1 TRADEMARK SDK Auto Released By jim.xj,Version:1.36.31
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-05-20 13:42:23 +08:00
sdk-team
164b701c97 YUNDUN-DS SDK Auto Released By pingzhun,Version:1.36.30
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-05-20 11:28:58 +08:00
sdk-team
f032a433f2 VOD SDK Auto Released By guzhaoyuan,Version:1.36.29
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-05-16 15:47:21 +08:00
sdk-team
150db4c6af ECS SDK Auto Released By corey.ql,Version:1.36.28
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-05-15 15:57:03 +08:00
sdk-team
d2fe63b527 IMM SDK Auto Released By zhengrui.lj,Version:1.36.27
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
2019-05-14 17:19:53 +08:00
2636 changed files with 171715 additions and 95002 deletions

108
CHANGELOG
View File

@@ -1,3 +1,111 @@
2019-07-01 Version 1.36.55
- Support cloud_essd disk category for API CreateDisk, CreateInstance and RunInstances, and support configurating PerformanceLevel when choose cloud_essd.
- Add ModifyDiskSpec API to support cloud_essd PerformanceLevel modification.
- Add AutoProvisioningGroup interfaces, provide AutoProvisioningGroup function.
- Add RetentionDays to snapshot creating.
2019-06-27 Version 1.36.54
- Added setting of crop_mode parameter.
2019-06-24 Version 1.36.53
- Add some new apis to manage VoD domain, such as AddVodDomain, UpdateVodDomain, DeleteVodDomain, BatchStartVodDomain, BatchStopVodDomain, DescribeVodUserDomains, DescribeVodDomainDetail.
- Add some new apis to manage VoD domain config, such as BatchSetVodDomainConfigs, DescribeVodDomainConfigs, DeleteVodSpecificConfig, SetVodDomainCertificate, DescribeVodCertificateList, DescribeVodDomainCertificateInfo.
- Add a new field named AppId to some apis supporting the VoD App feature, such as AddWorkFlow, GetWorkFlow, ListWorkFlow, AddVodTemplate, GetVodTemplate, ListVodTemplate, AddTranscodeTemplateGroup, GetTranscodeTemplateGroup, ListTranscodeTemplateGroup, AddWatermark, GetWatermark, ListWatermark, UploadMediaByURL.
- Add a new field named UserData to SubmitTranscodeJobs api request to support user-defined extension fields, which can be used for transparent return when callbacks.
2019-06-24 Version 1.36.52
- Add some new apis to manage VoD domain, such as AddVodDomain, UpdateVodDomain, DeleteVodDomain, BatchStartVodDomain, BatchStopVodDomain, DescribeVodUserDomains, DescribeVodDomainDetail.
- Add some new apis to manage VoD domain config, such as BatchSetVodDomainConfigs, DescribeVodDomainConfigs, DeleteVodSpecificConfig, SetVodDomainCertificate, DescribeVodCertificateList, DescribeVodDomainCertificateInfo.
- Add a new field named AppId to some apis supporting the VoD App feature, such as AddWorkFlow, GetWorkFlow, ListWorkFlow, AddVodTemplate, GetVodTemplate, ListVodTemplate, AddTranscodeTemplateGroup, GetTranscodeTemplateGroup, ListTranscodeTemplateGroup, AddWatermark, GetWatermark, ListWatermark, UploadMediaByURL.
- Add a new field named UserData to SubmitTranscodeJobs api request to support user-defined extension fields, which can be used for transparent return when callbacks.
2019-06-18 Version 1.36.51
1. Supported the related recommend.
2. Supported exposure time controll and exposure filter by scene.
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
2019-05-29 Version 1.36.37
update product
2019-05-29 Version: 1.36.36
1, Fix ServiceCode typo in request
2019-05-28 Version: 1.36.35
1, CreateDBInstance now support autoRenew
2019-05-27 Version: 1.36.34
1, Support video transcode.
2019-05-27 Version: 1.36.33
1, Initial release of api, including data management api, rule configuration api and system configuration api.
2019-05-22 Version: 1.36.32
1, Add EndTime parameter to api ModifyPrepayInstanceSpec
2, Add RebootTime parameter to api ModifyPrepayInstanceSpec
2019-05-20 Version: 1.36.31
1, Add both api, ListNotaryInfos
2019-05-20 Version: 1.36.30
1, Initial release of api, including data management api, rule configuration api and system configuration api.
2019-05-16 Version: 1.36.29
1, Add some new apis to fetch the usage data from VoD, such as DescribeVodDomainUsageData, DescribeVodStorageData, DescribeVodTranscodeData, DescribeVodAIData.
2, Add a new api named GetUploadDetails to describe the upload detail, such as uploading time and uploading source.
3, Add a new api named GetAIVideoTagResult to describe the result of AI tag.
4, Add new field Icon and OnlineStatus to some apis to manage short video materials, such as SearchMedia, GetAttachedMediaInfo, CreateUploadAttachedMedia.
5, Add a new field RegionId to the response of GetAttachedMediaInfo and GetImageInfo.
6, Add the field named UserData to SubmitSnapshotJob api request.
2019-05-15 Version: 1.36.28
1, Add InstanceId parameter to api CreateDisk
2, Add parameter Affinity and Tenancy in ECS instance DedicatedHost related apis.
3, Add SecurityGroupIds parameter to Instance creation apis.
2019-05-14 Version: 1.36.27
1, support body detect
2019-05-14 Version: 1.36.26
1, Support body detect.

View File

@@ -121,4 +121,7 @@ add_subdirectory(sas)
add_subdirectory(dbs)
add_subdirectory(r-kvstore)
add_subdirectory(dds)
add_subdirectory(dds)
add_subdirectory(yundun-ds)
add_subdirectory(trademark)
add_subdirectory(sddp)

View File

@@ -1 +1 @@
1.36.26
1.36.55

View File

@@ -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}
)

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View 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_

View 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_

View 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_

View 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_

View 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_

View 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_

View 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_

View 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_

View 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_

View 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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View 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_

View 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_

View File

@@ -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();
}

View File

@@ -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);
}
}

View File

@@ -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_;

View 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);
}

View 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_;
}

View 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));
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View File

@@ -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);
}

View File

@@ -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_;

View 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));
}

View 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_;
}

View 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));
}

View 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_;
}

View File

@@ -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}
)

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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();
}

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -150,6 +150,8 @@
#include "model/ModifyDedicatedHostAttributeResult.h"
#include "model/CreateRouteEntryRequest.h"
#include "model/CreateRouteEntryResult.h"
#include "model/ModifyFleetRequest.h"
#include "model/ModifyFleetResult.h"
#include "model/AttachKeyPairRequest.h"
#include "model/AttachKeyPairResult.h"
#include "model/DescribeInvocationsRequest.h"
@@ -174,6 +176,8 @@
#include "model/ModifyDiskAttributeResult.h"
#include "model/CreateVSwitchRequest.h"
#include "model/CreateVSwitchResult.h"
#include "model/DescribeFleetsRequest.h"
#include "model/DescribeFleetsResult.h"
#include "model/DescribeBandwidthLimitationRequest.h"
#include "model/DescribeBandwidthLimitationResult.h"
#include "model/ModifyEipAddressAttributeRequest.h"
@@ -204,6 +208,8 @@
#include "model/DescribeInstancesFullStatusResult.h"
#include "model/DescribeDedicatedHostsRequest.h"
#include "model/DescribeDedicatedHostsResult.h"
#include "model/DescribeFleetInstancesRequest.h"
#include "model/DescribeFleetInstancesResult.h"
#include "model/ReleaseEipAddressRequest.h"
#include "model/ReleaseEipAddressResult.h"
#include "model/DetachClassicLinkVpcRequest.h"
@@ -274,6 +280,8 @@
#include "model/DescribeCommandsResult.h"
#include "model/DeleteImageRequest.h"
#include "model/DeleteImageResult.h"
#include "model/CreateFleetRequest.h"
#include "model/CreateFleetResult.h"
#include "model/DescribeNetworkInterfacePermissionsRequest.h"
#include "model/DescribeNetworkInterfacePermissionsResult.h"
#include "model/DescribeDisksRequest.h"
@@ -374,8 +382,12 @@
#include "model/ResetDiskResult.h"
#include "model/ModifyDiskChargeTypeRequest.h"
#include "model/ModifyDiskChargeTypeResult.h"
#include "model/DeleteFleetRequest.h"
#include "model/DeleteFleetResult.h"
#include "model/DescribeBandwidthPackagesRequest.h"
#include "model/DescribeBandwidthPackagesResult.h"
#include "model/DescribeFleetHistoryRequest.h"
#include "model/DescribeFleetHistoryResult.h"
#include "model/ApplyAutoSnapshotPolicyRequest.h"
#include "model/ApplyAutoSnapshotPolicyResult.h"
#include "model/CreateSecurityGroupRequest.h"
@@ -424,6 +436,8 @@
#include "model/EipNotifyPaidResult.h"
#include "model/ReleasePublicIpAddressRequest.h"
#include "model/ReleasePublicIpAddressResult.h"
#include "model/ReportInstancesStatusRequest.h"
#include "model/ReportInstancesStatusResult.h"
#include "model/CreateVirtualBorderRouterRequest.h"
#include "model/CreateVirtualBorderRouterResult.h"
#include "model/DescribeAccountAttributesRequest.h"
@@ -729,6 +743,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateRouteEntryResult> CreateRouteEntryOutcome;
typedef std::future<CreateRouteEntryOutcome> CreateRouteEntryOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateRouteEntryRequest&, const CreateRouteEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRouteEntryAsyncHandler;
typedef Outcome<Error, Model::ModifyFleetResult> ModifyFleetOutcome;
typedef std::future<ModifyFleetOutcome> ModifyFleetOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyFleetRequest&, const ModifyFleetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyFleetAsyncHandler;
typedef Outcome<Error, Model::AttachKeyPairResult> AttachKeyPairOutcome;
typedef std::future<AttachKeyPairOutcome> AttachKeyPairOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::AttachKeyPairRequest&, const AttachKeyPairOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachKeyPairAsyncHandler;
@@ -765,6 +782,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateVSwitchResult> CreateVSwitchOutcome;
typedef std::future<CreateVSwitchOutcome> CreateVSwitchOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateVSwitchRequest&, const CreateVSwitchOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVSwitchAsyncHandler;
typedef Outcome<Error, Model::DescribeFleetsResult> DescribeFleetsOutcome;
typedef std::future<DescribeFleetsOutcome> DescribeFleetsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeFleetsRequest&, const DescribeFleetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFleetsAsyncHandler;
typedef Outcome<Error, Model::DescribeBandwidthLimitationResult> DescribeBandwidthLimitationOutcome;
typedef std::future<DescribeBandwidthLimitationOutcome> DescribeBandwidthLimitationOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeBandwidthLimitationRequest&, const DescribeBandwidthLimitationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBandwidthLimitationAsyncHandler;
@@ -810,6 +830,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDedicatedHostsResult> DescribeDedicatedHostsOutcome;
typedef std::future<DescribeDedicatedHostsOutcome> DescribeDedicatedHostsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeDedicatedHostsRequest&, const DescribeDedicatedHostsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDedicatedHostsAsyncHandler;
typedef Outcome<Error, Model::DescribeFleetInstancesResult> DescribeFleetInstancesOutcome;
typedef std::future<DescribeFleetInstancesOutcome> DescribeFleetInstancesOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeFleetInstancesRequest&, const DescribeFleetInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFleetInstancesAsyncHandler;
typedef Outcome<Error, Model::ReleaseEipAddressResult> ReleaseEipAddressOutcome;
typedef std::future<ReleaseEipAddressOutcome> ReleaseEipAddressOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ReleaseEipAddressRequest&, const ReleaseEipAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseEipAddressAsyncHandler;
@@ -915,6 +938,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteImageResult> DeleteImageOutcome;
typedef std::future<DeleteImageOutcome> DeleteImageOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteImageRequest&, const DeleteImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteImageAsyncHandler;
typedef Outcome<Error, Model::CreateFleetResult> CreateFleetOutcome;
typedef std::future<CreateFleetOutcome> CreateFleetOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateFleetRequest&, const CreateFleetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFleetAsyncHandler;
typedef Outcome<Error, Model::DescribeNetworkInterfacePermissionsResult> DescribeNetworkInterfacePermissionsOutcome;
typedef std::future<DescribeNetworkInterfacePermissionsOutcome> DescribeNetworkInterfacePermissionsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeNetworkInterfacePermissionsRequest&, const DescribeNetworkInterfacePermissionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNetworkInterfacePermissionsAsyncHandler;
@@ -1065,9 +1091,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyDiskChargeTypeResult> ModifyDiskChargeTypeOutcome;
typedef std::future<ModifyDiskChargeTypeOutcome> ModifyDiskChargeTypeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyDiskChargeTypeRequest&, const ModifyDiskChargeTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDiskChargeTypeAsyncHandler;
typedef Outcome<Error, Model::DeleteFleetResult> DeleteFleetOutcome;
typedef std::future<DeleteFleetOutcome> DeleteFleetOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteFleetRequest&, const DeleteFleetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFleetAsyncHandler;
typedef Outcome<Error, Model::DescribeBandwidthPackagesResult> DescribeBandwidthPackagesOutcome;
typedef std::future<DescribeBandwidthPackagesOutcome> DescribeBandwidthPackagesOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeBandwidthPackagesRequest&, const DescribeBandwidthPackagesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBandwidthPackagesAsyncHandler;
typedef Outcome<Error, Model::DescribeFleetHistoryResult> DescribeFleetHistoryOutcome;
typedef std::future<DescribeFleetHistoryOutcome> DescribeFleetHistoryOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeFleetHistoryRequest&, const DescribeFleetHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFleetHistoryAsyncHandler;
typedef Outcome<Error, Model::ApplyAutoSnapshotPolicyResult> ApplyAutoSnapshotPolicyOutcome;
typedef std::future<ApplyAutoSnapshotPolicyOutcome> ApplyAutoSnapshotPolicyOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ApplyAutoSnapshotPolicyRequest&, const ApplyAutoSnapshotPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyAutoSnapshotPolicyAsyncHandler;
@@ -1140,6 +1172,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ReleasePublicIpAddressResult> ReleasePublicIpAddressOutcome;
typedef std::future<ReleasePublicIpAddressOutcome> ReleasePublicIpAddressOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ReleasePublicIpAddressRequest&, const ReleasePublicIpAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleasePublicIpAddressAsyncHandler;
typedef Outcome<Error, Model::ReportInstancesStatusResult> ReportInstancesStatusOutcome;
typedef std::future<ReportInstancesStatusOutcome> ReportInstancesStatusOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ReportInstancesStatusRequest&, const ReportInstancesStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReportInstancesStatusAsyncHandler;
typedef Outcome<Error, Model::CreateVirtualBorderRouterResult> CreateVirtualBorderRouterOutcome;
typedef std::future<CreateVirtualBorderRouterOutcome> CreateVirtualBorderRouterOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateVirtualBorderRouterRequest&, const CreateVirtualBorderRouterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVirtualBorderRouterAsyncHandler;
@@ -1493,6 +1528,9 @@ namespace AlibabaCloud
CreateRouteEntryOutcome createRouteEntry(const Model::CreateRouteEntryRequest &request)const;
void createRouteEntryAsync(const Model::CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRouteEntryOutcomeCallable createRouteEntryCallable(const Model::CreateRouteEntryRequest& request) const;
ModifyFleetOutcome modifyFleet(const Model::ModifyFleetRequest &request)const;
void modifyFleetAsync(const Model::ModifyFleetRequest& request, const ModifyFleetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyFleetOutcomeCallable modifyFleetCallable(const Model::ModifyFleetRequest& request) const;
AttachKeyPairOutcome attachKeyPair(const Model::AttachKeyPairRequest &request)const;
void attachKeyPairAsync(const Model::AttachKeyPairRequest& request, const AttachKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AttachKeyPairOutcomeCallable attachKeyPairCallable(const Model::AttachKeyPairRequest& request) const;
@@ -1529,6 +1567,9 @@ namespace AlibabaCloud
CreateVSwitchOutcome createVSwitch(const Model::CreateVSwitchRequest &request)const;
void createVSwitchAsync(const Model::CreateVSwitchRequest& request, const CreateVSwitchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateVSwitchOutcomeCallable createVSwitchCallable(const Model::CreateVSwitchRequest& request) const;
DescribeFleetsOutcome describeFleets(const Model::DescribeFleetsRequest &request)const;
void describeFleetsAsync(const Model::DescribeFleetsRequest& request, const DescribeFleetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFleetsOutcomeCallable describeFleetsCallable(const Model::DescribeFleetsRequest& request) const;
DescribeBandwidthLimitationOutcome describeBandwidthLimitation(const Model::DescribeBandwidthLimitationRequest &request)const;
void describeBandwidthLimitationAsync(const Model::DescribeBandwidthLimitationRequest& request, const DescribeBandwidthLimitationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeBandwidthLimitationOutcomeCallable describeBandwidthLimitationCallable(const Model::DescribeBandwidthLimitationRequest& request) const;
@@ -1574,6 +1615,9 @@ namespace AlibabaCloud
DescribeDedicatedHostsOutcome describeDedicatedHosts(const Model::DescribeDedicatedHostsRequest &request)const;
void describeDedicatedHostsAsync(const Model::DescribeDedicatedHostsRequest& request, const DescribeDedicatedHostsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDedicatedHostsOutcomeCallable describeDedicatedHostsCallable(const Model::DescribeDedicatedHostsRequest& request) const;
DescribeFleetInstancesOutcome describeFleetInstances(const Model::DescribeFleetInstancesRequest &request)const;
void describeFleetInstancesAsync(const Model::DescribeFleetInstancesRequest& request, const DescribeFleetInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFleetInstancesOutcomeCallable describeFleetInstancesCallable(const Model::DescribeFleetInstancesRequest& request) const;
ReleaseEipAddressOutcome releaseEipAddress(const Model::ReleaseEipAddressRequest &request)const;
void releaseEipAddressAsync(const Model::ReleaseEipAddressRequest& request, const ReleaseEipAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReleaseEipAddressOutcomeCallable releaseEipAddressCallable(const Model::ReleaseEipAddressRequest& request) const;
@@ -1679,6 +1723,9 @@ namespace AlibabaCloud
DeleteImageOutcome deleteImage(const Model::DeleteImageRequest &request)const;
void deleteImageAsync(const Model::DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteImageOutcomeCallable deleteImageCallable(const Model::DeleteImageRequest& request) const;
CreateFleetOutcome createFleet(const Model::CreateFleetRequest &request)const;
void createFleetAsync(const Model::CreateFleetRequest& request, const CreateFleetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFleetOutcomeCallable createFleetCallable(const Model::CreateFleetRequest& request) const;
DescribeNetworkInterfacePermissionsOutcome describeNetworkInterfacePermissions(const Model::DescribeNetworkInterfacePermissionsRequest &request)const;
void describeNetworkInterfacePermissionsAsync(const Model::DescribeNetworkInterfacePermissionsRequest& request, const DescribeNetworkInterfacePermissionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeNetworkInterfacePermissionsOutcomeCallable describeNetworkInterfacePermissionsCallable(const Model::DescribeNetworkInterfacePermissionsRequest& request) const;
@@ -1829,9 +1876,15 @@ namespace AlibabaCloud
ModifyDiskChargeTypeOutcome modifyDiskChargeType(const Model::ModifyDiskChargeTypeRequest &request)const;
void modifyDiskChargeTypeAsync(const Model::ModifyDiskChargeTypeRequest& request, const ModifyDiskChargeTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDiskChargeTypeOutcomeCallable modifyDiskChargeTypeCallable(const Model::ModifyDiskChargeTypeRequest& request) const;
DeleteFleetOutcome deleteFleet(const Model::DeleteFleetRequest &request)const;
void deleteFleetAsync(const Model::DeleteFleetRequest& request, const DeleteFleetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteFleetOutcomeCallable deleteFleetCallable(const Model::DeleteFleetRequest& request) const;
DescribeBandwidthPackagesOutcome describeBandwidthPackages(const Model::DescribeBandwidthPackagesRequest &request)const;
void describeBandwidthPackagesAsync(const Model::DescribeBandwidthPackagesRequest& request, const DescribeBandwidthPackagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeBandwidthPackagesOutcomeCallable describeBandwidthPackagesCallable(const Model::DescribeBandwidthPackagesRequest& request) const;
DescribeFleetHistoryOutcome describeFleetHistory(const Model::DescribeFleetHistoryRequest &request)const;
void describeFleetHistoryAsync(const Model::DescribeFleetHistoryRequest& request, const DescribeFleetHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFleetHistoryOutcomeCallable describeFleetHistoryCallable(const Model::DescribeFleetHistoryRequest& request) const;
ApplyAutoSnapshotPolicyOutcome applyAutoSnapshotPolicy(const Model::ApplyAutoSnapshotPolicyRequest &request)const;
void applyAutoSnapshotPolicyAsync(const Model::ApplyAutoSnapshotPolicyRequest& request, const ApplyAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ApplyAutoSnapshotPolicyOutcomeCallable applyAutoSnapshotPolicyCallable(const Model::ApplyAutoSnapshotPolicyRequest& request) const;
@@ -1904,6 +1957,9 @@ namespace AlibabaCloud
ReleasePublicIpAddressOutcome releasePublicIpAddress(const Model::ReleasePublicIpAddressRequest &request)const;
void releasePublicIpAddressAsync(const Model::ReleasePublicIpAddressRequest& request, const ReleasePublicIpAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReleasePublicIpAddressOutcomeCallable releasePublicIpAddressCallable(const Model::ReleasePublicIpAddressRequest& request) const;
ReportInstancesStatusOutcome reportInstancesStatus(const Model::ReportInstancesStatusRequest &request)const;
void reportInstancesStatusAsync(const Model::ReportInstancesStatusRequest& request, const ReportInstancesStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReportInstancesStatusOutcomeCallable reportInstancesStatusCallable(const Model::ReportInstancesStatusRequest& request) const;
CreateVirtualBorderRouterOutcome createVirtualBorderRouter(const Model::CreateVirtualBorderRouterRequest &request)const;
void createVirtualBorderRouterAsync(const Model::CreateVirtualBorderRouterRequest& request, const CreateVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateVirtualBorderRouterOutcomeCallable createVirtualBorderRouterCallable(const Model::CreateVirtualBorderRouterRequest& request) const;

View File

@@ -66,6 +66,8 @@ namespace AlibabaCloud
void setDiskName(const std::string& diskName);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
int getSize()const;
void setSize(int size);
bool getEncrypted()const;
@@ -96,6 +98,7 @@ namespace AlibabaCloud
std::string sourceRegionId_;
std::string diskName_;
std::string resourceGroupId_;
std::string instanceId_;
int size_;
bool encrypted_;
std::string regionId_;

View File

@@ -0,0 +1,185 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_ECS_MODEL_CREATEFLEETREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEFLEETREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT CreateFleetRequest : public RpcServiceRequest
{
struct LaunchTemplateConfig
{
std::string instanceType;
Double maxPrice;
std::string vSwitchId;
Double weightedCapacity;
int priority;
};
public:
CreateFleetRequest();
~CreateFleetRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getFleetType()const;
void setFleetType(const std::string& fleetType);
long getCallerParentId()const;
void setCallerParentId(long callerParentId);
bool getProxy_original_security_transport()const;
void setProxy_original_security_transport(bool proxy_original_security_transport);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getProxy_original_source_ip()const;
void setProxy_original_source_ip(const std::string& proxy_original_source_ip);
bool getTerminateInstancesWithExpiration()const;
void setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration);
std::string getOnDemandTargetCapacity()const;
void setOnDemandTargetCapacity(const std::string& onDemandTargetCapacity);
std::string getOwnerIdLoginEmail()const;
void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail);
std::string getCallerType()const;
void setCallerType(const std::string& callerType);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getFleetName()const;
void setFleetName(const std::string& fleetName);
std::string getSpotAllocationStrategy()const;
void setSpotAllocationStrategy(const std::string& spotAllocationStrategy);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
bool getEnable()const;
void setEnable(bool enable);
std::string getRequestContent()const;
void setRequestContent(const std::string& requestContent);
bool getTerminateInstances()const;
void setTerminateInstances(bool terminateInstances);
std::string getCallerBidEmail()const;
void setCallerBidEmail(const std::string& callerBidEmail);
std::string getDefaultTargetCapacityType()const;
void setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType);
std::string getExcessCapacityTerminationPolicy()const;
void setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy);
std::vector<LaunchTemplateConfig> getLaunchTemplateConfig()const;
void setLaunchTemplateConfig(const std::vector<LaunchTemplateConfig>& launchTemplateConfig);
std::string getValidUntil()const;
void setValidUntil(const std::string& validUntil);
std::string getCallerUidEmail()const;
void setCallerUidEmail(const std::string& callerUidEmail);
long getCallerUid()const;
void setCallerUid(long callerUid);
std::string getFillGapWithOnDemand()const;
void setFillGapWithOnDemand(const std::string& fillGapWithOnDemand);
std::string getApp_ip()const;
void setApp_ip(const std::string& app_ip);
std::string getSpotInstanceInterruptionBehavior()const;
void setSpotInstanceInterruptionBehavior(const std::string& spotInstanceInterruptionBehavior);
std::string getLaunchTemplateId()const;
void setLaunchTemplateId(const std::string& launchTemplateId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
int getSpotInstancePoolsToUseCount()const;
void setSpotInstancePoolsToUseCount(int spotInstancePoolsToUseCount);
std::string getCallerBid()const;
void setCallerBid(const std::string& callerBid);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getLaunchTemplateVersion()const;
void setLaunchTemplateVersion(const std::string& launchTemplateVersion);
bool getProxy_trust_transport_info()const;
void setProxy_trust_transport_info(bool proxy_trust_transport_info);
bool getAk_mfa_present()const;
void setAk_mfa_present(bool ak_mfa_present);
bool getSecurity_transport()const;
void setSecurity_transport(bool security_transport);
std::string getRequestId()const;
void setRequestId(const std::string& requestId);
std::string getTotalTargetCapacity()const;
void setTotalTargetCapacity(const std::string& totalTargetCapacity);
std::string getOnDemandAllocationStrategy()const;
void setOnDemandAllocationStrategy(const std::string& onDemandAllocationStrategy);
std::string getSpotTargetCapacity()const;
void setSpotTargetCapacity(const std::string& spotTargetCapacity);
std::string getValidFrom()const;
void setValidFrom(const std::string& validFrom);
float getMaxSpotPrice()const;
void setMaxSpotPrice(float maxSpotPrice);
private:
long resourceOwnerId_;
std::string fleetType_;
long callerParentId_;
bool proxy_original_security_transport_;
std::string description_;
std::string proxy_original_source_ip_;
bool terminateInstancesWithExpiration_;
std::string onDemandTargetCapacity_;
std::string ownerIdLoginEmail_;
std::string callerType_;
std::string accessKeyId_;
std::string fleetName_;
std::string spotAllocationStrategy_;
std::string securityToken_;
std::string regionId_;
bool enable_;
std::string requestContent_;
bool terminateInstances_;
std::string callerBidEmail_;
std::string defaultTargetCapacityType_;
std::string excessCapacityTerminationPolicy_;
std::vector<LaunchTemplateConfig> launchTemplateConfig_;
std::string validUntil_;
std::string callerUidEmail_;
long callerUid_;
std::string fillGapWithOnDemand_;
std::string app_ip_;
std::string spotInstanceInterruptionBehavior_;
std::string launchTemplateId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
int spotInstancePoolsToUseCount_;
std::string callerBid_;
long ownerId_;
std::string launchTemplateVersion_;
bool proxy_trust_transport_info_;
bool ak_mfa_present_;
bool security_transport_;
std::string requestId_;
std::string totalTargetCapacity_;
std::string onDemandAllocationStrategy_;
std::string spotTargetCapacity_;
std::string validFrom_;
float maxSpotPrice_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEFLEETREQUEST_H_

View 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_ECS_MODEL_CREATEFLEETRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEFLEETRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT CreateFleetResult : public ServiceResult
{
public:
CreateFleetResult();
explicit CreateFleetResult(const std::string &payload);
~CreateFleetResult();
std::string getFleetId()const;
protected:
void parse(const std::string &payload);
private:
std::string fleetId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEFLEETRESULT_H_

View File

@@ -112,6 +112,8 @@ namespace AlibabaCloud
void setInternetMaxBandwidthIn(int internetMaxBandwidthIn);
bool getUseAdditionalService()const;
void setUseAdditionalService(bool useAdditionalService);
std::string getAffinity()const;
void setAffinity(const std::string& affinity);
std::string getImageId()const;
void setImageId(const std::string& imageId);
std::string getClientToken()const;
@@ -152,6 +154,8 @@ namespace AlibabaCloud
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getTenancy()const;
void setTenancy(const std::string& tenancy);
std::string getSystemDiskDiskName()const;
void setSystemDiskDiskName(const std::string& systemDiskDiskName);
std::string getRamRoleName()const;
@@ -197,6 +201,7 @@ namespace AlibabaCloud
std::string zoneId_;
int internetMaxBandwidthIn_;
bool useAdditionalService_;
std::string affinity_;
std::string imageId_;
std::string clientToken_;
std::string vlanId_;
@@ -217,6 +222,7 @@ namespace AlibabaCloud
std::string innerIpAddress_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string tenancy_;
std::string systemDiskDiskName_;
std::string ramRoleName_;
std::string dedicatedHostId_;

Some files were not shown because too many files have changed in this diff Show More