Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6462c32f5f | ||
|
|
3550cece5c | ||
|
|
755c0bdc5d | ||
|
|
175996b239 | ||
|
|
895d40a767 | ||
|
|
3a1833173e | ||
|
|
e8d24adda6 | ||
|
|
9bad4d5db8 | ||
|
|
c94e372ec7 | ||
|
|
90f78851fa |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -13,3 +13,4 @@ test/httpserver/package-lock.json
|
||||
test/httpserver/nohup.out
|
||||
.idea
|
||||
build/
|
||||
cmake-build-debug/
|
||||
|
||||
26
CHANGELOG
26
CHANGELOG
@@ -1,3 +1,29 @@
|
||||
2019-12-19 Version 1.36.217
|
||||
- Generated 2019-09-28 for `reid`.
|
||||
|
||||
2019-12-19 Version 1.36.216
|
||||
- DescribeNetworkInterfaces Supports NextToken.
|
||||
|
||||
2019-12-16 Version 1.36.215
|
||||
- DescribeTransferDomains add query param, TargetUserId, FromUserId, DomainName.
|
||||
|
||||
2019-12-14 Version 1.36.214
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
|
||||
2019-12-14 Version 1.36.213
|
||||
- Update DescribeAvailableResource.
|
||||
|
||||
2019-12-14 Version 1.36.212
|
||||
- Update DescribeAvailableResource.
|
||||
|
||||
2019-12-12 Version 1.36.211
|
||||
- Generated 2019-06-10 for `et-industry-openapi`.
|
||||
|
||||
2019-12-11 Version 1.36.210
|
||||
- Supported Sync predict for Image.
|
||||
- Supported Set Frame Frequency for Stream Predict.
|
||||
- Fixed Errore Code For APIs.
|
||||
|
||||
2019-12-11 Version 1.36.209
|
||||
- Add tag API.
|
||||
- Add group process monitoring API.
|
||||
|
||||
@@ -65,7 +65,6 @@ add_subdirectory(teslamaxcompute)
|
||||
add_subdirectory(push)
|
||||
add_subdirectory(csb)
|
||||
add_subdirectory(domain)
|
||||
add_subdirectory(green)
|
||||
add_subdirectory(hsm)
|
||||
add_subdirectory(dcdn)
|
||||
add_subdirectory(pvtz)
|
||||
@@ -98,30 +97,30 @@ add_subdirectory(cr)
|
||||
add_subdirectory(openanalytics)
|
||||
add_subdirectory(snsuapi)
|
||||
add_subdirectory(ubsms)
|
||||
add_subdirectory(yundun)
|
||||
add_subdirectory(arms4finance)
|
||||
add_subdirectory(imagesearch)
|
||||
add_subdirectory(cas)
|
||||
add_subdirectory(cloudwf)
|
||||
add_subdirectory(alidns)
|
||||
add_subdirectory(yundun)
|
||||
add_subdirectory(arms4finance)
|
||||
add_subdirectory(imagesearch)
|
||||
add_subdirectory(cas)
|
||||
add_subdirectory(cloudwf)
|
||||
add_subdirectory(alidns)
|
||||
add_subdirectory(httpdns)
|
||||
|
||||
add_subdirectory(crm)
|
||||
add_subdirectory(kms)
|
||||
add_subdirectory(sas-api)
|
||||
add_subdirectory(jarvis-public)
|
||||
add_subdirectory(mts)
|
||||
add_subdirectory(dysmsapi)
|
||||
add_subdirectory(ons)
|
||||
add_subdirectory(ivision)
|
||||
add_subdirectory(imm)
|
||||
|
||||
add_subdirectory(crm)
|
||||
add_subdirectory(kms)
|
||||
add_subdirectory(sas-api)
|
||||
add_subdirectory(jarvis-public)
|
||||
add_subdirectory(mts)
|
||||
add_subdirectory(dysmsapi)
|
||||
add_subdirectory(ons)
|
||||
add_subdirectory(ivision)
|
||||
add_subdirectory(imm)
|
||||
add_subdirectory(bssopenapi)
|
||||
|
||||
|
||||
add_subdirectory(sas)
|
||||
|
||||
add_subdirectory(dbs)
|
||||
add_subdirectory(r-kvstore)
|
||||
add_subdirectory(dds)
|
||||
add_subdirectory(yundun-ds)
|
||||
add_subdirectory(trademark)
|
||||
|
||||
add_subdirectory(dbs)
|
||||
add_subdirectory(r-kvstore)
|
||||
add_subdirectory(dds)
|
||||
add_subdirectory(yundun-ds)
|
||||
add_subdirectory(trademark)
|
||||
add_subdirectory(sddp)
|
||||
@@ -35,23 +35,32 @@ namespace AlibabaCloud
|
||||
DescribeTransferDomainsRequest();
|
||||
~DescribeTransferDomainsRequest();
|
||||
|
||||
long getFromUserId()const;
|
||||
void setFromUserId(long fromUserId);
|
||||
long getPageNumber()const;
|
||||
void setPageNumber(long pageNumber);
|
||||
std::string getTransferType()const;
|
||||
void setTransferType(const std::string& transferType);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
long getTargetUserId()const;
|
||||
void setTargetUserId(long targetUserId);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getTransferType()const;
|
||||
void setTransferType(const std::string& transferType);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
|
||||
private:
|
||||
long fromUserId_;
|
||||
long pageNumber_;
|
||||
std::string transferType_;
|
||||
std::string userClientIp_;
|
||||
long targetUserId_;
|
||||
long pageSize_;
|
||||
std::string lang_;
|
||||
std::string domainName_;
|
||||
std::string transferType_;
|
||||
std::string userClientIp_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeTransferDomainsRequest::DescribeTransferDomainsRequest() :
|
||||
DescribeTransferDomainsRequest::~DescribeTransferDomainsRequest()
|
||||
{}
|
||||
|
||||
long DescribeTransferDomainsRequest::getFromUserId()const
|
||||
{
|
||||
return fromUserId_;
|
||||
}
|
||||
|
||||
void DescribeTransferDomainsRequest::setFromUserId(long fromUserId)
|
||||
{
|
||||
fromUserId_ = fromUserId;
|
||||
setCoreParameter("FromUserId", std::to_string(fromUserId));
|
||||
}
|
||||
|
||||
long DescribeTransferDomainsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -38,26 +49,15 @@ void DescribeTransferDomainsRequest::setPageNumber(long pageNumber)
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeTransferDomainsRequest::getTransferType()const
|
||||
long DescribeTransferDomainsRequest::getTargetUserId()const
|
||||
{
|
||||
return transferType_;
|
||||
return targetUserId_;
|
||||
}
|
||||
|
||||
void DescribeTransferDomainsRequest::setTransferType(const std::string& transferType)
|
||||
void DescribeTransferDomainsRequest::setTargetUserId(long targetUserId)
|
||||
{
|
||||
transferType_ = transferType;
|
||||
setCoreParameter("TransferType", transferType);
|
||||
}
|
||||
|
||||
std::string DescribeTransferDomainsRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void DescribeTransferDomainsRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setCoreParameter("UserClientIp", userClientIp);
|
||||
targetUserId_ = targetUserId;
|
||||
setCoreParameter("TargetUserId", std::to_string(targetUserId));
|
||||
}
|
||||
|
||||
long DescribeTransferDomainsRequest::getPageSize()const
|
||||
@@ -82,3 +82,36 @@ void DescribeTransferDomainsRequest::setLang(const std::string& lang)
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeTransferDomainsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeTransferDomainsRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeTransferDomainsRequest::getTransferType()const
|
||||
{
|
||||
return transferType_;
|
||||
}
|
||||
|
||||
void DescribeTransferDomainsRequest::setTransferType(const std::string& transferType)
|
||||
{
|
||||
transferType_ = transferType;
|
||||
setCoreParameter("TransferType", transferType);
|
||||
}
|
||||
|
||||
std::string DescribeTransferDomainsRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void DescribeTransferDomainsRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setCoreParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,10 @@ public:
|
||||
void setConnectTimeout(const long connectTimeout);
|
||||
void setReadTimeout(const long readTimeout);
|
||||
void setMethod(const HttpRequest::Method method);
|
||||
void setHeader(const ParameterNameType &name, const ParameterValueType &value);
|
||||
ParameterValueType getHeader(const ParameterNameType &name);
|
||||
void removeHeader(const ParameterNameType &name);
|
||||
ParameterCollection headers() const;
|
||||
|
||||
protected:
|
||||
ServiceRequest(const std::string &product, const std::string &version);
|
||||
@@ -77,6 +81,7 @@ private:
|
||||
char *content_;
|
||||
size_t contentSize_;
|
||||
ParameterCollection params_;
|
||||
ParameterCollection headers_;
|
||||
std::string product_;
|
||||
std::string resourcePath_;
|
||||
std::string version_;
|
||||
|
||||
@@ -102,6 +102,12 @@ HttpRequest RoaServiceClient::buildHttpRequest(const std::string & endpoint,
|
||||
request.setReadTimeout(configuration().readTimeout());
|
||||
}
|
||||
|
||||
for(const auto &h : msg.headers()){
|
||||
if(!h.second.empty()){
|
||||
request.setHeader(h.first, h.second);
|
||||
}
|
||||
}
|
||||
|
||||
if (msg.parameter("Accept").empty()) {
|
||||
request.setHeader("Accept", "application/json");
|
||||
} else {
|
||||
|
||||
@@ -119,6 +119,14 @@ HttpRequest RpcServiceClient::buildHttpRequest(const std::string & endpoint,
|
||||
request.setConnectTimeout(configuration().connectTimeout());
|
||||
}
|
||||
|
||||
for (const auto &h : msg.headers())
|
||||
{
|
||||
if (!h.second.empty())
|
||||
{
|
||||
request.setHeader(h.first, h.second);
|
||||
}
|
||||
}
|
||||
|
||||
if (msg.readTimeout() != kInvalidTimeout) {
|
||||
request.setReadTimeout(msg.readTimeout());
|
||||
} else {
|
||||
|
||||
@@ -235,4 +235,25 @@ void ServiceRequest::setMethod(const HttpRequest::Method method)
|
||||
method_ = method;
|
||||
}
|
||||
|
||||
void ServiceRequest::setHeader(const ServiceRequest::ParameterNameType &name,
|
||||
const ServiceRequest::ParameterValueType &value)
|
||||
{
|
||||
headers_[name] = value;
|
||||
}
|
||||
|
||||
ServiceRequest::ParameterValueType ServiceRequest::getHeader(const ServiceRequest::ParameterNameType &name)
|
||||
{
|
||||
return headers_[name];
|
||||
}
|
||||
|
||||
void ServiceRequest::removeHeader(const ServiceRequest::ParameterNameType &name)
|
||||
{
|
||||
headers_.erase(name);
|
||||
}
|
||||
|
||||
ServiceRequest::ParameterCollection ServiceRequest::headers() const
|
||||
{
|
||||
return headers_;
|
||||
}
|
||||
|
||||
} // namespace AlibabaCloud
|
||||
|
||||
@@ -1,122 +0,0 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(dnsknocker_public_header
|
||||
include/alibabacloud/dnsknocker/DnsKnockerClient.h
|
||||
include/alibabacloud/dnsknocker/DnsKnockerExport.h )
|
||||
|
||||
set(dnsknocker_public_header_model
|
||||
include/alibabacloud/dnsknocker/model/BatchCreateRrRequest.h
|
||||
include/alibabacloud/dnsknocker/model/BatchCreateRrResult.h
|
||||
include/alibabacloud/dnsknocker/model/BatchDeleteRrRequest.h
|
||||
include/alibabacloud/dnsknocker/model/BatchDeleteRrResult.h
|
||||
include/alibabacloud/dnsknocker/model/ChangeResourceRecordRequest.h
|
||||
include/alibabacloud/dnsknocker/model/ChangeResourceRecordResult.h
|
||||
include/alibabacloud/dnsknocker/model/ChangeResourceRecordsRequest.h
|
||||
include/alibabacloud/dnsknocker/model/ChangeResourceRecordsResult.h
|
||||
include/alibabacloud/dnsknocker/model/CreateResourceRecordRequest.h
|
||||
include/alibabacloud/dnsknocker/model/CreateResourceRecordResult.h
|
||||
include/alibabacloud/dnsknocker/model/DeleteDomainRequest.h
|
||||
include/alibabacloud/dnsknocker/model/DeleteDomainResult.h
|
||||
include/alibabacloud/dnsknocker/model/DeleteResourceRecordRequest.h
|
||||
include/alibabacloud/dnsknocker/model/DeleteResourceRecordResult.h
|
||||
include/alibabacloud/dnsknocker/model/DeleteResourceRecordsRequest.h
|
||||
include/alibabacloud/dnsknocker/model/DeleteResourceRecordsResult.h
|
||||
include/alibabacloud/dnsknocker/model/GetDomainRequest.h
|
||||
include/alibabacloud/dnsknocker/model/GetDomainResult.h
|
||||
include/alibabacloud/dnsknocker/model/GetResourceRecordsRequest.h
|
||||
include/alibabacloud/dnsknocker/model/GetResourceRecordsResult.h )
|
||||
|
||||
set(dnsknocker_src
|
||||
src/DnsKnockerClient.cc
|
||||
src/model/BatchCreateRrRequest.cc
|
||||
src/model/BatchCreateRrResult.cc
|
||||
src/model/BatchDeleteRrRequest.cc
|
||||
src/model/BatchDeleteRrResult.cc
|
||||
src/model/ChangeResourceRecordRequest.cc
|
||||
src/model/ChangeResourceRecordResult.cc
|
||||
src/model/ChangeResourceRecordsRequest.cc
|
||||
src/model/ChangeResourceRecordsResult.cc
|
||||
src/model/CreateResourceRecordRequest.cc
|
||||
src/model/CreateResourceRecordResult.cc
|
||||
src/model/DeleteDomainRequest.cc
|
||||
src/model/DeleteDomainResult.cc
|
||||
src/model/DeleteResourceRecordRequest.cc
|
||||
src/model/DeleteResourceRecordResult.cc
|
||||
src/model/DeleteResourceRecordsRequest.cc
|
||||
src/model/DeleteResourceRecordsResult.cc
|
||||
src/model/GetDomainRequest.cc
|
||||
src/model/GetDomainResult.cc
|
||||
src/model/GetResourceRecordsRequest.cc
|
||||
src/model/GetResourceRecordsResult.cc )
|
||||
|
||||
add_library(dnsknocker ${LIB_TYPE}
|
||||
${dnsknocker_public_header}
|
||||
${dnsknocker_public_header_model}
|
||||
${dnsknocker_src})
|
||||
|
||||
set_target_properties(dnsknocker
|
||||
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}dnsknocker
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(dnsknocker
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_DNSKNOCKER_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(dnsknocker
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(dnsknocker
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(dnsknocker
|
||||
jsoncpp)
|
||||
target_include_directories(dnsknocker
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(dnsknocker
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(dnsknocker
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(dnsknocker
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(dnsknocker
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${dnsknocker_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dnsknocker)
|
||||
install(FILES ${dnsknocker_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dnsknocker/model)
|
||||
install(TARGETS dnsknocker
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
@@ -1,126 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_DNSKNOCKERCLIENT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_DNSKNOCKERCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "DnsKnockerExport.h"
|
||||
#include "model/BatchCreateRrRequest.h"
|
||||
#include "model/BatchCreateRrResult.h"
|
||||
#include "model/BatchDeleteRrRequest.h"
|
||||
#include "model/BatchDeleteRrResult.h"
|
||||
#include "model/ChangeResourceRecordRequest.h"
|
||||
#include "model/ChangeResourceRecordResult.h"
|
||||
#include "model/ChangeResourceRecordsRequest.h"
|
||||
#include "model/ChangeResourceRecordsResult.h"
|
||||
#include "model/CreateResourceRecordRequest.h"
|
||||
#include "model/CreateResourceRecordResult.h"
|
||||
#include "model/DeleteDomainRequest.h"
|
||||
#include "model/DeleteDomainResult.h"
|
||||
#include "model/DeleteResourceRecordRequest.h"
|
||||
#include "model/DeleteResourceRecordResult.h"
|
||||
#include "model/DeleteResourceRecordsRequest.h"
|
||||
#include "model/DeleteResourceRecordsResult.h"
|
||||
#include "model/GetDomainRequest.h"
|
||||
#include "model/GetDomainResult.h"
|
||||
#include "model/GetResourceRecordsRequest.h"
|
||||
#include "model/GetResourceRecordsResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT DnsKnockerClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::BatchCreateRrResult> BatchCreateRrOutcome;
|
||||
typedef std::future<BatchCreateRrOutcome> BatchCreateRrOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::BatchCreateRrRequest&, const BatchCreateRrOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchCreateRrAsyncHandler;
|
||||
typedef Outcome<Error, Model::BatchDeleteRrResult> BatchDeleteRrOutcome;
|
||||
typedef std::future<BatchDeleteRrOutcome> BatchDeleteRrOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::BatchDeleteRrRequest&, const BatchDeleteRrOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchDeleteRrAsyncHandler;
|
||||
typedef Outcome<Error, Model::ChangeResourceRecordResult> ChangeResourceRecordOutcome;
|
||||
typedef std::future<ChangeResourceRecordOutcome> ChangeResourceRecordOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::ChangeResourceRecordRequest&, const ChangeResourceRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeResourceRecordAsyncHandler;
|
||||
typedef Outcome<Error, Model::ChangeResourceRecordsResult> ChangeResourceRecordsOutcome;
|
||||
typedef std::future<ChangeResourceRecordsOutcome> ChangeResourceRecordsOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::ChangeResourceRecordsRequest&, const ChangeResourceRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeResourceRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateResourceRecordResult> CreateResourceRecordOutcome;
|
||||
typedef std::future<CreateResourceRecordOutcome> CreateResourceRecordOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::CreateResourceRecordRequest&, const CreateResourceRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateResourceRecordAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDomainResult> DeleteDomainOutcome;
|
||||
typedef std::future<DeleteDomainOutcome> DeleteDomainOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::DeleteDomainRequest&, const DeleteDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteResourceRecordResult> DeleteResourceRecordOutcome;
|
||||
typedef std::future<DeleteResourceRecordOutcome> DeleteResourceRecordOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::DeleteResourceRecordRequest&, const DeleteResourceRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteResourceRecordAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteResourceRecordsResult> DeleteResourceRecordsOutcome;
|
||||
typedef std::future<DeleteResourceRecordsOutcome> DeleteResourceRecordsOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::DeleteResourceRecordsRequest&, const DeleteResourceRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteResourceRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDomainResult> GetDomainOutcome;
|
||||
typedef std::future<GetDomainOutcome> GetDomainOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::GetDomainRequest&, const GetDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetResourceRecordsResult> GetResourceRecordsOutcome;
|
||||
typedef std::future<GetResourceRecordsOutcome> GetResourceRecordsOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::GetResourceRecordsRequest&, const GetResourceRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceRecordsAsyncHandler;
|
||||
|
||||
DnsKnockerClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
DnsKnockerClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
DnsKnockerClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~DnsKnockerClient();
|
||||
BatchCreateRrOutcome batchCreateRr(const Model::BatchCreateRrRequest &request)const;
|
||||
void batchCreateRrAsync(const Model::BatchCreateRrRequest& request, const BatchCreateRrAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BatchCreateRrOutcomeCallable batchCreateRrCallable(const Model::BatchCreateRrRequest& request) const;
|
||||
BatchDeleteRrOutcome batchDeleteRr(const Model::BatchDeleteRrRequest &request)const;
|
||||
void batchDeleteRrAsync(const Model::BatchDeleteRrRequest& request, const BatchDeleteRrAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BatchDeleteRrOutcomeCallable batchDeleteRrCallable(const Model::BatchDeleteRrRequest& request) const;
|
||||
ChangeResourceRecordOutcome changeResourceRecord(const Model::ChangeResourceRecordRequest &request)const;
|
||||
void changeResourceRecordAsync(const Model::ChangeResourceRecordRequest& request, const ChangeResourceRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChangeResourceRecordOutcomeCallable changeResourceRecordCallable(const Model::ChangeResourceRecordRequest& request) const;
|
||||
ChangeResourceRecordsOutcome changeResourceRecords(const Model::ChangeResourceRecordsRequest &request)const;
|
||||
void changeResourceRecordsAsync(const Model::ChangeResourceRecordsRequest& request, const ChangeResourceRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChangeResourceRecordsOutcomeCallable changeResourceRecordsCallable(const Model::ChangeResourceRecordsRequest& request) const;
|
||||
CreateResourceRecordOutcome createResourceRecord(const Model::CreateResourceRecordRequest &request)const;
|
||||
void createResourceRecordAsync(const Model::CreateResourceRecordRequest& request, const CreateResourceRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateResourceRecordOutcomeCallable createResourceRecordCallable(const Model::CreateResourceRecordRequest& request) const;
|
||||
DeleteDomainOutcome deleteDomain(const Model::DeleteDomainRequest &request)const;
|
||||
void deleteDomainAsync(const Model::DeleteDomainRequest& request, const DeleteDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDomainOutcomeCallable deleteDomainCallable(const Model::DeleteDomainRequest& request) const;
|
||||
DeleteResourceRecordOutcome deleteResourceRecord(const Model::DeleteResourceRecordRequest &request)const;
|
||||
void deleteResourceRecordAsync(const Model::DeleteResourceRecordRequest& request, const DeleteResourceRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteResourceRecordOutcomeCallable deleteResourceRecordCallable(const Model::DeleteResourceRecordRequest& request) const;
|
||||
DeleteResourceRecordsOutcome deleteResourceRecords(const Model::DeleteResourceRecordsRequest &request)const;
|
||||
void deleteResourceRecordsAsync(const Model::DeleteResourceRecordsRequest& request, const DeleteResourceRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteResourceRecordsOutcomeCallable deleteResourceRecordsCallable(const Model::DeleteResourceRecordsRequest& request) const;
|
||||
GetDomainOutcome getDomain(const Model::GetDomainRequest &request)const;
|
||||
void getDomainAsync(const Model::GetDomainRequest& request, const GetDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDomainOutcomeCallable getDomainCallable(const Model::GetDomainRequest& request) const;
|
||||
GetResourceRecordsOutcome getResourceRecords(const Model::GetResourceRecordsRequest &request)const;
|
||||
void getResourceRecordsAsync(const Model::GetResourceRecordsRequest& request, const GetResourceRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetResourceRecordsOutcomeCallable getResourceRecordsCallable(const Model::GetResourceRecordsRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_DNSKNOCKERCLIENT_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHCREATERRREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHCREATERRREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT BatchCreateRrRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BatchCreateRrRequest();
|
||||
~BatchCreateRrRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getResourceRecords()const;
|
||||
void setResourceRecords(const std::string& resourceRecords);
|
||||
std::string getLine()const;
|
||||
void setLine(const std::string& line);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string resourceRecords_;
|
||||
std::string line_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHCREATERRREQUEST_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHDELETERRREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHDELETERRREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT BatchDeleteRrRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BatchDeleteRrRequest();
|
||||
~BatchDeleteRrRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getResourceRecords()const;
|
||||
void setResourceRecords(const std::string& resourceRecords);
|
||||
std::string getLine()const;
|
||||
void setLine(const std::string& line);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string resourceRecords_;
|
||||
std::string line_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHDELETERRREQUEST_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT ChangeResourceRecordRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ChangeResourceRecordRequest();
|
||||
~ChangeResourceRecordRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getNewRRInfo()const;
|
||||
void setNewRRInfo(const std::string& newRRInfo);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getOldRRInfo()const;
|
||||
void setOldRRInfo(const std::string& oldRRInfo);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string newRRInfo_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
std::string oldRRInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDREQUEST_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT ChangeResourceRecordResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ChangeResourceRecordResult();
|
||||
explicit ChangeResourceRecordResult(const std::string &payload);
|
||||
~ChangeResourceRecordResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
std::string getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
std::string success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDRESULT_H_
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDSREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT ChangeResourceRecordsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ChangeResourceRecordsRequest();
|
||||
~ChangeResourceRecordsRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getTypes()const;
|
||||
void setTypes(const std::string& types);
|
||||
std::string getResourceRecords()const;
|
||||
void setResourceRecords(const std::string& resourceRecords);
|
||||
std::string getLine()const;
|
||||
void setLine(const std::string& line);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string types_;
|
||||
std::string resourceRecords_;
|
||||
std::string line_;
|
||||
std::string domainName_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDSREQUEST_H_
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_CREATERESOURCERECORDREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_CREATERESOURCERECORDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT CreateResourceRecordRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateResourceRecordRequest();
|
||||
~CreateResourceRecordRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getRrTTL()const;
|
||||
void setRrTTL(const std::string& rrTTL);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getRrLine()const;
|
||||
void setRrLine(const std::string& rrLine);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getRrValue()const;
|
||||
void setRrValue(const std::string& rrValue);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getRrType()const;
|
||||
void setRrType(const std::string& rrType);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string rrTTL_;
|
||||
std::string accessSecret_;
|
||||
std::string rrLine_;
|
||||
std::string domainName_;
|
||||
std::string rrValue_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
std::string rrType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_CREATERESOURCERECORDREQUEST_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_CREATERESOURCERECORDRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_CREATERESOURCERECORDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT CreateResourceRecordResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateResourceRecordResult();
|
||||
explicit CreateResourceRecordResult(const std::string &payload);
|
||||
~CreateResourceRecordResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
std::string getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
std::string success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_CREATERESOURCERECORDRESULT_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_DELETEDOMAINREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_DELETEDOMAINREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT DeleteDomainRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDomainRequest();
|
||||
~DeleteDomainRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getLine()const;
|
||||
void setLine(const std::string& line);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string line_;
|
||||
std::string domainName_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_DELETEDOMAINREQUEST_H_
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT DeleteResourceRecordRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteResourceRecordRequest();
|
||||
~DeleteResourceRecordRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getRRTTL()const;
|
||||
void setRRTTL(const std::string& rRTTL);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getRRLine()const;
|
||||
void setRRLine(const std::string& rRLine);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getRRValue()const;
|
||||
void setRRValue(const std::string& rRValue);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getRRType()const;
|
||||
void setRRType(const std::string& rRType);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string rRTTL_;
|
||||
std::string accessSecret_;
|
||||
std::string rRLine_;
|
||||
std::string domainName_;
|
||||
std::string rRValue_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
std::string rRType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDREQUEST_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT DeleteResourceRecordResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteResourceRecordResult();
|
||||
explicit DeleteResourceRecordResult(const std::string &payload);
|
||||
~DeleteResourceRecordResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
std::string getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
std::string success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDRESULT_H_
|
||||
@@ -1,69 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDSREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT DeleteResourceRecordsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteResourceRecordsRequest();
|
||||
~DeleteResourceRecordsRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getTypeList()const;
|
||||
void setTypeList(const std::string& typeList);
|
||||
std::string getLine()const;
|
||||
void setLine(const std::string& line);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string typeList_;
|
||||
std::string line_;
|
||||
std::string domainName_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDSREQUEST_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT DeleteResourceRecordsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteResourceRecordsResult();
|
||||
explicit DeleteResourceRecordsResult(const std::string &payload);
|
||||
~DeleteResourceRecordsResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
std::string getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
std::string success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDSRESULT_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_GETDOMAINREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_GETDOMAINREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT GetDomainRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetDomainRequest();
|
||||
~GetDomainRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getDomainLine()const;
|
||||
void setDomainLine(const std::string& domainLine);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string domainName_;
|
||||
std::string domainLine_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_GETDOMAINREQUEST_H_
|
||||
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_GETDOMAINRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_GETDOMAINRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT GetDomainResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string message;
|
||||
std::string domainName;
|
||||
std::string exists;
|
||||
};
|
||||
|
||||
|
||||
GetDomainResult();
|
||||
explicit GetDomainResult(const std::string &payload);
|
||||
~GetDomainResult();
|
||||
std::vector<Data> getDomain()const;
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
std::string getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Data> domain_;
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
std::string success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_GETDOMAINRESULT_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_GETRESOURCERECORDSREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_GETRESOURCERECORDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT GetResourceRecordsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetResourceRecordsRequest();
|
||||
~GetResourceRecordsRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getZone()const;
|
||||
void setZone(const std::string& zone);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getDomainLine()const;
|
||||
void setDomainLine(const std::string& domainLine);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string zone_;
|
||||
std::string domainName_;
|
||||
std::string transactionId_;
|
||||
std::string domainLine_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_GETRESOURCERECORDSREQUEST_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_GETRESOURCERECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_GETRESOURCERECORDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT GetResourceRecordsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetResourceRecordsResult();
|
||||
explicit GetResourceRecordsResult(const std::string &payload);
|
||||
~GetResourceRecordsResult();
|
||||
std::vector<std::string> getResourceRecordSet()const;
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> resourceRecordSet_;
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_GETRESOURCERECORDSRESULT_H_
|
||||
@@ -1,413 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "DnsKnocker";
|
||||
}
|
||||
|
||||
DnsKnockerClient::DnsKnockerClient(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, "dns_knocker");
|
||||
}
|
||||
|
||||
DnsKnockerClient::DnsKnockerClient(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, "dns_knocker");
|
||||
}
|
||||
|
||||
DnsKnockerClient::DnsKnockerClient(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, "dns_knocker");
|
||||
}
|
||||
|
||||
DnsKnockerClient::~DnsKnockerClient()
|
||||
{}
|
||||
|
||||
DnsKnockerClient::BatchCreateRrOutcome DnsKnockerClient::batchCreateRr(const BatchCreateRrRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BatchCreateRrOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BatchCreateRrOutcome(BatchCreateRrResult(outcome.result()));
|
||||
else
|
||||
return BatchCreateRrOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::batchCreateRrAsync(const BatchCreateRrRequest& request, const BatchCreateRrAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, batchCreateRr(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::BatchCreateRrOutcomeCallable DnsKnockerClient::batchCreateRrCallable(const BatchCreateRrRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BatchCreateRrOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->batchCreateRr(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::BatchDeleteRrOutcome DnsKnockerClient::batchDeleteRr(const BatchDeleteRrRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BatchDeleteRrOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BatchDeleteRrOutcome(BatchDeleteRrResult(outcome.result()));
|
||||
else
|
||||
return BatchDeleteRrOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::batchDeleteRrAsync(const BatchDeleteRrRequest& request, const BatchDeleteRrAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, batchDeleteRr(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::BatchDeleteRrOutcomeCallable DnsKnockerClient::batchDeleteRrCallable(const BatchDeleteRrRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BatchDeleteRrOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->batchDeleteRr(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::ChangeResourceRecordOutcome DnsKnockerClient::changeResourceRecord(const ChangeResourceRecordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ChangeResourceRecordOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ChangeResourceRecordOutcome(ChangeResourceRecordResult(outcome.result()));
|
||||
else
|
||||
return ChangeResourceRecordOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::changeResourceRecordAsync(const ChangeResourceRecordRequest& request, const ChangeResourceRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, changeResourceRecord(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::ChangeResourceRecordOutcomeCallable DnsKnockerClient::changeResourceRecordCallable(const ChangeResourceRecordRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ChangeResourceRecordOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->changeResourceRecord(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::ChangeResourceRecordsOutcome DnsKnockerClient::changeResourceRecords(const ChangeResourceRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ChangeResourceRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ChangeResourceRecordsOutcome(ChangeResourceRecordsResult(outcome.result()));
|
||||
else
|
||||
return ChangeResourceRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::changeResourceRecordsAsync(const ChangeResourceRecordsRequest& request, const ChangeResourceRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, changeResourceRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::ChangeResourceRecordsOutcomeCallable DnsKnockerClient::changeResourceRecordsCallable(const ChangeResourceRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ChangeResourceRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->changeResourceRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::CreateResourceRecordOutcome DnsKnockerClient::createResourceRecord(const CreateResourceRecordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateResourceRecordOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateResourceRecordOutcome(CreateResourceRecordResult(outcome.result()));
|
||||
else
|
||||
return CreateResourceRecordOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::createResourceRecordAsync(const CreateResourceRecordRequest& request, const CreateResourceRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createResourceRecord(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::CreateResourceRecordOutcomeCallable DnsKnockerClient::createResourceRecordCallable(const CreateResourceRecordRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateResourceRecordOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createResourceRecord(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::DeleteDomainOutcome DnsKnockerClient::deleteDomain(const DeleteDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteDomainOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteDomainOutcome(DeleteDomainResult(outcome.result()));
|
||||
else
|
||||
return DeleteDomainOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::deleteDomainAsync(const DeleteDomainRequest& request, const DeleteDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteDomain(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::DeleteDomainOutcomeCallable DnsKnockerClient::deleteDomainCallable(const DeleteDomainRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteDomainOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteDomain(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::DeleteResourceRecordOutcome DnsKnockerClient::deleteResourceRecord(const DeleteResourceRecordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteResourceRecordOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteResourceRecordOutcome(DeleteResourceRecordResult(outcome.result()));
|
||||
else
|
||||
return DeleteResourceRecordOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::deleteResourceRecordAsync(const DeleteResourceRecordRequest& request, const DeleteResourceRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteResourceRecord(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::DeleteResourceRecordOutcomeCallable DnsKnockerClient::deleteResourceRecordCallable(const DeleteResourceRecordRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteResourceRecordOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteResourceRecord(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::DeleteResourceRecordsOutcome DnsKnockerClient::deleteResourceRecords(const DeleteResourceRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteResourceRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteResourceRecordsOutcome(DeleteResourceRecordsResult(outcome.result()));
|
||||
else
|
||||
return DeleteResourceRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::deleteResourceRecordsAsync(const DeleteResourceRecordsRequest& request, const DeleteResourceRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteResourceRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::DeleteResourceRecordsOutcomeCallable DnsKnockerClient::deleteResourceRecordsCallable(const DeleteResourceRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteResourceRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteResourceRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::GetDomainOutcome DnsKnockerClient::getDomain(const GetDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDomainOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDomainOutcome(GetDomainResult(outcome.result()));
|
||||
else
|
||||
return GetDomainOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::getDomainAsync(const GetDomainRequest& request, const GetDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDomain(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::GetDomainOutcomeCallable DnsKnockerClient::getDomainCallable(const GetDomainRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDomainOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDomain(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::GetResourceRecordsOutcome DnsKnockerClient::getResourceRecords(const GetResourceRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetResourceRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetResourceRecordsOutcome(GetResourceRecordsResult(outcome.result()));
|
||||
else
|
||||
return GetResourceRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::getResourceRecordsAsync(const GetResourceRecordsRequest& request, const GetResourceRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getResourceRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::GetResourceRecordsOutcomeCallable DnsKnockerClient::getResourceRecordsCallable(const GetResourceRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetResourceRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getResourceRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/BatchCreateRrRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::BatchCreateRrRequest;
|
||||
|
||||
BatchCreateRrRequest::BatchCreateRrRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "BatchCreateRr")
|
||||
{}
|
||||
|
||||
BatchCreateRrRequest::~BatchCreateRrRequest()
|
||||
{}
|
||||
|
||||
std::string BatchCreateRrRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string BatchCreateRrRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string BatchCreateRrRequest::getResourceRecords()const
|
||||
{
|
||||
return resourceRecords_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setResourceRecords(const std::string& resourceRecords)
|
||||
{
|
||||
resourceRecords_ = resourceRecords;
|
||||
setCoreParameter("ResourceRecords", resourceRecords);
|
||||
}
|
||||
|
||||
std::string BatchCreateRrRequest::getLine()const
|
||||
{
|
||||
return line_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setLine(const std::string& line)
|
||||
{
|
||||
line_ = line;
|
||||
setCoreParameter("Line", line);
|
||||
}
|
||||
|
||||
std::string BatchCreateRrRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string BatchCreateRrRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string BatchCreateRrRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/BatchCreateRrResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
BatchCreateRrResult::BatchCreateRrResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchCreateRrResult::BatchCreateRrResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchCreateRrResult::~BatchCreateRrResult()
|
||||
{}
|
||||
|
||||
void BatchCreateRrResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchCreateRrResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string BatchCreateRrResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
bool BatchCreateRrResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string BatchCreateRrResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/BatchDeleteRrRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::BatchDeleteRrRequest;
|
||||
|
||||
BatchDeleteRrRequest::BatchDeleteRrRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "BatchDeleteRr")
|
||||
{}
|
||||
|
||||
BatchDeleteRrRequest::~BatchDeleteRrRequest()
|
||||
{}
|
||||
|
||||
std::string BatchDeleteRrRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrRequest::getResourceRecords()const
|
||||
{
|
||||
return resourceRecords_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setResourceRecords(const std::string& resourceRecords)
|
||||
{
|
||||
resourceRecords_ = resourceRecords;
|
||||
setCoreParameter("ResourceRecords", resourceRecords);
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrRequest::getLine()const
|
||||
{
|
||||
return line_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setLine(const std::string& line)
|
||||
{
|
||||
line_ = line;
|
||||
setCoreParameter("Line", line);
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/BatchDeleteRrResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
BatchDeleteRrResult::BatchDeleteRrResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchDeleteRrResult::BatchDeleteRrResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchDeleteRrResult::~BatchDeleteRrResult()
|
||||
{}
|
||||
|
||||
void BatchDeleteRrResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
bool BatchDeleteRrResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/ChangeResourceRecordRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::ChangeResourceRecordRequest;
|
||||
|
||||
ChangeResourceRecordRequest::ChangeResourceRecordRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "ChangeResourceRecord")
|
||||
{}
|
||||
|
||||
ChangeResourceRecordRequest::~ChangeResourceRecordRequest()
|
||||
{}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getNewRRInfo()const
|
||||
{
|
||||
return newRRInfo_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setNewRRInfo(const std::string& newRRInfo)
|
||||
{
|
||||
newRRInfo_ = newRRInfo;
|
||||
setCoreParameter("NewRRInfo", newRRInfo);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getOldRRInfo()const
|
||||
{
|
||||
return oldRRInfo_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setOldRRInfo(const std::string& oldRRInfo)
|
||||
{
|
||||
oldRRInfo_ = oldRRInfo;
|
||||
setCoreParameter("OldRRInfo", oldRRInfo);
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/ChangeResourceRecordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
ChangeResourceRecordResult::ChangeResourceRecordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeResourceRecordResult::ChangeResourceRecordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeResourceRecordResult::~ChangeResourceRecordResult()
|
||||
{}
|
||||
|
||||
void ChangeResourceRecordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
@@ -1,126 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/ChangeResourceRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::ChangeResourceRecordsRequest;
|
||||
|
||||
ChangeResourceRecordsRequest::ChangeResourceRecordsRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "ChangeResourceRecords")
|
||||
{}
|
||||
|
||||
ChangeResourceRecordsRequest::~ChangeResourceRecordsRequest()
|
||||
{}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getTypes()const
|
||||
{
|
||||
return types_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setTypes(const std::string& types)
|
||||
{
|
||||
types_ = types;
|
||||
setCoreParameter("Types", types);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getResourceRecords()const
|
||||
{
|
||||
return resourceRecords_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setResourceRecords(const std::string& resourceRecords)
|
||||
{
|
||||
resourceRecords_ = resourceRecords;
|
||||
setCoreParameter("ResourceRecords", resourceRecords);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getLine()const
|
||||
{
|
||||
return line_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setLine(const std::string& line)
|
||||
{
|
||||
line_ = line;
|
||||
setCoreParameter("Line", line);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/ChangeResourceRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
ChangeResourceRecordsResult::ChangeResourceRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeResourceRecordsResult::ChangeResourceRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeResourceRecordsResult::~ChangeResourceRecordsResult()
|
||||
{}
|
||||
|
||||
void ChangeResourceRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
bool ChangeResourceRecordsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
@@ -1,137 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/CreateResourceRecordRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::CreateResourceRecordRequest;
|
||||
|
||||
CreateResourceRecordRequest::CreateResourceRecordRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "CreateResourceRecord")
|
||||
{}
|
||||
|
||||
CreateResourceRecordRequest::~CreateResourceRecordRequest()
|
||||
{}
|
||||
|
||||
std::string CreateResourceRecordRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getRrTTL()const
|
||||
{
|
||||
return rrTTL_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setRrTTL(const std::string& rrTTL)
|
||||
{
|
||||
rrTTL_ = rrTTL;
|
||||
setCoreParameter("RrTTL", rrTTL);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getRrLine()const
|
||||
{
|
||||
return rrLine_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setRrLine(const std::string& rrLine)
|
||||
{
|
||||
rrLine_ = rrLine;
|
||||
setCoreParameter("RrLine", rrLine);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getRrValue()const
|
||||
{
|
||||
return rrValue_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setRrValue(const std::string& rrValue)
|
||||
{
|
||||
rrValue_ = rrValue;
|
||||
setCoreParameter("RrValue", rrValue);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getRrType()const
|
||||
{
|
||||
return rrType_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setRrType(const std::string& rrType)
|
||||
{
|
||||
rrType_ = rrType;
|
||||
setCoreParameter("RrType", rrType);
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/CreateResourceRecordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
CreateResourceRecordResult::CreateResourceRecordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateResourceRecordResult::CreateResourceRecordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateResourceRecordResult::~CreateResourceRecordResult()
|
||||
{}
|
||||
|
||||
void CreateResourceRecordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/DeleteDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::DeleteDomainRequest;
|
||||
|
||||
DeleteDomainRequest::DeleteDomainRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "DeleteDomain")
|
||||
{}
|
||||
|
||||
DeleteDomainRequest::~DeleteDomainRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDomainRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getLine()const
|
||||
{
|
||||
return line_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setLine(const std::string& line)
|
||||
{
|
||||
line_ = line;
|
||||
setCoreParameter("Line", line);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
@@ -1,137 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/DeleteResourceRecordRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::DeleteResourceRecordRequest;
|
||||
|
||||
DeleteResourceRecordRequest::DeleteResourceRecordRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "DeleteResourceRecord")
|
||||
{}
|
||||
|
||||
DeleteResourceRecordRequest::~DeleteResourceRecordRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getRRTTL()const
|
||||
{
|
||||
return rRTTL_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setRRTTL(const std::string& rRTTL)
|
||||
{
|
||||
rRTTL_ = rRTTL;
|
||||
setCoreParameter("RRTTL", rRTTL);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getRRLine()const
|
||||
{
|
||||
return rRLine_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setRRLine(const std::string& rRLine)
|
||||
{
|
||||
rRLine_ = rRLine;
|
||||
setCoreParameter("RRLine", rRLine);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getRRValue()const
|
||||
{
|
||||
return rRValue_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setRRValue(const std::string& rRValue)
|
||||
{
|
||||
rRValue_ = rRValue;
|
||||
setCoreParameter("RRValue", rRValue);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getRRType()const
|
||||
{
|
||||
return rRType_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setRRType(const std::string& rRType)
|
||||
{
|
||||
rRType_ = rRType;
|
||||
setCoreParameter("RRType", rRType);
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/DeleteResourceRecordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
DeleteResourceRecordResult::DeleteResourceRecordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteResourceRecordResult::DeleteResourceRecordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteResourceRecordResult::~DeleteResourceRecordResult()
|
||||
{}
|
||||
|
||||
void DeleteResourceRecordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
@@ -1,115 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/DeleteResourceRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::DeleteResourceRecordsRequest;
|
||||
|
||||
DeleteResourceRecordsRequest::DeleteResourceRecordsRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "DeleteResourceRecords")
|
||||
{}
|
||||
|
||||
DeleteResourceRecordsRequest::~DeleteResourceRecordsRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getTypeList()const
|
||||
{
|
||||
return typeList_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setTypeList(const std::string& typeList)
|
||||
{
|
||||
typeList_ = typeList;
|
||||
setCoreParameter("TypeList", typeList);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getLine()const
|
||||
{
|
||||
return line_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setLine(const std::string& line)
|
||||
{
|
||||
line_ = line;
|
||||
setCoreParameter("Line", line);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/DeleteResourceRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
DeleteResourceRecordsResult::DeleteResourceRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteResourceRecordsResult::DeleteResourceRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteResourceRecordsResult::~DeleteResourceRecordsResult()
|
||||
{}
|
||||
|
||||
void DeleteResourceRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/GetDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::GetDomainRequest;
|
||||
|
||||
GetDomainRequest::GetDomainRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "GetDomain")
|
||||
{}
|
||||
|
||||
GetDomainRequest::~GetDomainRequest()
|
||||
{}
|
||||
|
||||
std::string GetDomainRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void GetDomainRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string GetDomainRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void GetDomainRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string GetDomainRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void GetDomainRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string GetDomainRequest::getDomainLine()const
|
||||
{
|
||||
return domainLine_;
|
||||
}
|
||||
|
||||
void GetDomainRequest::setDomainLine(const std::string& domainLine)
|
||||
{
|
||||
domainLine_ = domainLine;
|
||||
setCoreParameter("DomainLine", domainLine);
|
||||
}
|
||||
|
||||
std::string GetDomainRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void GetDomainRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
@@ -1,89 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/GetDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
GetDomainResult::GetDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDomainResult::GetDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDomainResult::~GetDomainResult()
|
||||
{}
|
||||
|
||||
void GetDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainNode = value["Domain"]["Data"];
|
||||
for (auto valueDomainData : allDomainNode)
|
||||
{
|
||||
Data domainObject;
|
||||
if(!valueDomainData["DomainName"].isNull())
|
||||
domainObject.domainName = valueDomainData["DomainName"].asString();
|
||||
if(!valueDomainData["Exists"].isNull())
|
||||
domainObject.exists = valueDomainData["Exists"].asString();
|
||||
if(!valueDomainData["Message"].isNull())
|
||||
domainObject.message = valueDomainData["Message"].asString();
|
||||
domain_.push_back(domainObject);
|
||||
}
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetDomainResult::Data> GetDomainResult::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
std::string GetDomainResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string GetDomainResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
std::string GetDomainResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string GetDomainResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/GetResourceRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::GetResourceRecordsRequest;
|
||||
|
||||
GetResourceRecordsRequest::GetResourceRecordsRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "GetResourceRecords")
|
||||
{}
|
||||
|
||||
GetResourceRecordsRequest::~GetResourceRecordsRequest()
|
||||
{}
|
||||
|
||||
std::string GetResourceRecordsRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsRequest::getZone()const
|
||||
{
|
||||
return zone_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setZone(const std::string& zone)
|
||||
{
|
||||
zone_ = zone;
|
||||
setCoreParameter("Zone", zone);
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsRequest::getDomainLine()const
|
||||
{
|
||||
return domainLine_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setDomainLine(const std::string& domainLine)
|
||||
{
|
||||
domainLine_ = domainLine;
|
||||
setCoreParameter("DomainLine", domainLine);
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/GetResourceRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
GetResourceRecordsResult::GetResourceRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetResourceRecordsResult::GetResourceRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetResourceRecordsResult::~GetResourceRecordsResult()
|
||||
{}
|
||||
|
||||
void GetResourceRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResourceRecordSet = value["ResourceRecordSet"]["Data"];
|
||||
for (const auto &item : allResourceRecordSet)
|
||||
resourceRecordSet_.push_back(item.asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> GetResourceRecordsResult::getResourceRecordSet()const
|
||||
{
|
||||
return resourceRecordSet_;
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
bool GetResourceRecordsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -37,6 +37,12 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getKeyPairName()const;
|
||||
void setKeyPairName(const std::string& keyPairName);
|
||||
bool getBootable()const;
|
||||
void setBootable(bool bootable);
|
||||
std::string getPassword()const;
|
||||
void setPassword(const std::string& password);
|
||||
std::string getDiskId()const;
|
||||
void setDiskId(const std::string& diskId);
|
||||
bool getDeleteWithInstance()const;
|
||||
@@ -54,6 +60,9 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string keyPairName_;
|
||||
bool bootable_;
|
||||
std::string password_;
|
||||
std::string diskId_;
|
||||
bool deleteWithInstance_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
std::string keyPairFingerPrint;
|
||||
std::string keyPairName;
|
||||
std::string resourceGroupId;
|
||||
std::string creationTime;
|
||||
std::vector<KeyPair::Tag> tags;
|
||||
};
|
||||
|
||||
|
||||
@@ -54,6 +54,8 @@ namespace AlibabaCloud
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::vector<Tag> getTag()const;
|
||||
@@ -76,6 +78,8 @@ namespace AlibabaCloud
|
||||
void setVpcId(const std::string& vpcId);
|
||||
std::string getPrimaryIpAddress()const;
|
||||
void setPrimaryIpAddress(const std::string& primaryIpAddress);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::vector<std::string> getNetworkInterfaceId()const;
|
||||
void setNetworkInterfaceId(const std::vector<std::string>& networkInterfaceId);
|
||||
|
||||
@@ -87,6 +91,7 @@ namespace AlibabaCloud
|
||||
int pageNumber_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
int pageSize_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string networkInterfaceName_;
|
||||
@@ -98,6 +103,7 @@ namespace AlibabaCloud
|
||||
std::string instanceId_;
|
||||
std::string vpcId_;
|
||||
std::string primaryIpAddress_;
|
||||
int maxResults_;
|
||||
std::vector<std::string> networkInterfaceId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -87,6 +87,7 @@ namespace AlibabaCloud
|
||||
~DescribeNetworkInterfacesResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
std::string getNextToken()const;
|
||||
int getPageNumber()const;
|
||||
std::vector<NetworkInterfaceSet> getNetworkInterfaceSets()const;
|
||||
|
||||
@@ -95,6 +96,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
std::string nextToken_;
|
||||
int pageNumber_;
|
||||
std::vector<NetworkInterfaceSet> networkInterfaceSets_;
|
||||
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getDiskId()const;
|
||||
void setDiskId(const std::string& diskId);
|
||||
bool getDeleteWithInstance()const;
|
||||
void setDeleteWithInstance(bool deleteWithInstance);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
@@ -51,6 +53,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string diskId_;
|
||||
bool deleteWithInstance_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getInstanceType()const;
|
||||
void setInstanceType(const std::string& instanceType);
|
||||
std::string getDeploymentSetId()const;
|
||||
void setDeploymentSetId(const std::string& deploymentSetId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -63,6 +65,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string instanceType_;
|
||||
std::string deploymentSetId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
|
||||
@@ -38,6 +38,39 @@ void AttachDiskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AttachDiskRequest::getKeyPairName()const
|
||||
{
|
||||
return keyPairName_;
|
||||
}
|
||||
|
||||
void AttachDiskRequest::setKeyPairName(const std::string& keyPairName)
|
||||
{
|
||||
keyPairName_ = keyPairName;
|
||||
setCoreParameter("KeyPairName", keyPairName);
|
||||
}
|
||||
|
||||
bool AttachDiskRequest::getBootable()const
|
||||
{
|
||||
return bootable_;
|
||||
}
|
||||
|
||||
void AttachDiskRequest::setBootable(bool bootable)
|
||||
{
|
||||
bootable_ = bootable;
|
||||
setCoreParameter("Bootable", bootable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AttachDiskRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void AttachDiskRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setCoreParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string AttachDiskRequest::getDiskId()const
|
||||
{
|
||||
return diskId_;
|
||||
|
||||
@@ -47,6 +47,8 @@ void DescribeKeyPairsResult::parse(const std::string &payload)
|
||||
keyPairsObject.keyPairName = valueKeyPairsKeyPair["KeyPairName"].asString();
|
||||
if(!valueKeyPairsKeyPair["KeyPairFingerPrint"].isNull())
|
||||
keyPairsObject.keyPairFingerPrint = valueKeyPairsKeyPair["KeyPairFingerPrint"].asString();
|
||||
if(!valueKeyPairsKeyPair["CreationTime"].isNull())
|
||||
keyPairsObject.creationTime = valueKeyPairsKeyPair["CreationTime"].asString();
|
||||
if(!valueKeyPairsKeyPair["ResourceGroupId"].isNull())
|
||||
keyPairsObject.resourceGroupId = valueKeyPairsKeyPair["ResourceGroupId"].asString();
|
||||
auto allTagsNode = allKeyPairsNode["Tags"]["Tag"];
|
||||
|
||||
@@ -104,6 +104,17 @@ void DescribeNetworkInterfacesRequest::setRegionId(const std::string& regionId)
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeNetworkInterfacesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeNetworkInterfacesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setCoreParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int DescribeNetworkInterfacesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
@@ -232,6 +243,17 @@ void DescribeNetworkInterfacesRequest::setPrimaryIpAddress(const std::string& pr
|
||||
setCoreParameter("PrimaryIpAddress", primaryIpAddress);
|
||||
}
|
||||
|
||||
int DescribeNetworkInterfacesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeNetworkInterfacesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setCoreParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeNetworkInterfacesRequest::getNetworkInterfaceId()const
|
||||
{
|
||||
return networkInterfaceId_;
|
||||
|
||||
@@ -122,6 +122,8 @@ void DescribeNetworkInterfacesResult::parse(const std::string &payload)
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -135,6 +137,11 @@ int DescribeNetworkInterfacesResult::getPageSize()const
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeNetworkInterfacesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int DescribeNetworkInterfacesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void DetachDiskRequest::setDiskId(const std::string& diskId)
|
||||
setCoreParameter("DiskId", diskId);
|
||||
}
|
||||
|
||||
bool DetachDiskRequest::getDeleteWithInstance()const
|
||||
{
|
||||
return deleteWithInstance_;
|
||||
}
|
||||
|
||||
void DetachDiskRequest::setDeleteWithInstance(bool deleteWithInstance)
|
||||
{
|
||||
deleteWithInstance_ = deleteWithInstance;
|
||||
setCoreParameter("DeleteWithInstance", deleteWithInstance ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DetachDiskRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void ModifyInstanceDeploymentRequest::setRegionId(const std::string& regionId)
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceDeploymentRequest::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void ModifyInstanceDeploymentRequest::setInstanceType(const std::string& instanceType)
|
||||
{
|
||||
instanceType_ = instanceType;
|
||||
setCoreParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceDeploymentRequest::getDeploymentSetId()const
|
||||
{
|
||||
return deploymentSetId_;
|
||||
|
||||
86
et-industry-openapi/CMakeLists.txt
Normal file
86
et-industry-openapi/CMakeLists.txt
Normal file
@@ -0,0 +1,86 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(et-industry-openapi_public_header
|
||||
include/alibabacloud/et-industry-openapi/Et_industry_openapiClient.h
|
||||
include/alibabacloud/et-industry-openapi/Et_industry_openapiExport.h )
|
||||
|
||||
set(et-industry-openapi_public_header_model
|
||||
include/alibabacloud/et-industry-openapi/model/UploadDeviceDataRequest.h
|
||||
include/alibabacloud/et-industry-openapi/model/UploadDeviceDataResult.h )
|
||||
|
||||
set(et-industry-openapi_src
|
||||
src/Et-industry-openapiClient.cc
|
||||
src/model/UploadDeviceDataRequest.cc
|
||||
src/model/UploadDeviceDataResult.cc )
|
||||
|
||||
add_library(et-industry-openapi ${LIB_TYPE}
|
||||
${et-industry-openapi_public_header}
|
||||
${et-industry-openapi_public_header_model}
|
||||
${et-industry-openapi_src})
|
||||
|
||||
set_target_properties(et-industry-openapi
|
||||
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}et-industry-openapi
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(et-industry-openapi
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ET_INDUSTRY_OPENAPI_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(et-industry-openapi
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(et-industry-openapi
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(et-industry-openapi
|
||||
jsoncpp)
|
||||
target_include_directories(et-industry-openapi
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(et-industry-openapi
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(et-industry-openapi
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(et-industry-openapi
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(et-industry-openapi
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${et-industry-openapi_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/et-industry-openapi)
|
||||
install(FILES ${et-industry-openapi_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/et-industry-openapi/model)
|
||||
install(TARGETS et-industry-openapi
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
@@ -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_ET_INDUSTRY_OPENAPI_ET_INDUSTRY_OPENAPICLIENT_H_
|
||||
#define ALIBABACLOUD_ET_INDUSTRY_OPENAPI_ET_INDUSTRY_OPENAPICLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RoaServiceClient.h>
|
||||
#include "Et_industry_openapiExport.h"
|
||||
#include "model/UploadDeviceDataRequest.h"
|
||||
#include "model/UploadDeviceDataResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Et_industry_openapi
|
||||
{
|
||||
class ALIBABACLOUD_ET_INDUSTRY_OPENAPI_EXPORT Et_industry_openapiClient : public RoaServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::UploadDeviceDataResult> UploadDeviceDataOutcome;
|
||||
typedef std::future<UploadDeviceDataOutcome> UploadDeviceDataOutcomeCallable;
|
||||
typedef std::function<void(const Et_industry_openapiClient*, const Model::UploadDeviceDataRequest&, const UploadDeviceDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadDeviceDataAsyncHandler;
|
||||
|
||||
Et_industry_openapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Et_industry_openapiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Et_industry_openapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Et_industry_openapiClient();
|
||||
UploadDeviceDataOutcome uploadDeviceData(const Model::UploadDeviceDataRequest &request)const;
|
||||
void uploadDeviceDataAsync(const Model::UploadDeviceDataRequest& request, const UploadDeviceDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UploadDeviceDataOutcomeCallable uploadDeviceDataCallable(const Model::UploadDeviceDataRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ET_INDUSTRY_OPENAPI_ET_INDUSTRY_OPENAPICLIENT_H_
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ET_INDUSTRY_OPENAPI_ET_INDUSTRY_OPENAPIEXPORT_H_
|
||||
#define ALIBABACLOUD_ET_INDUSTRY_OPENAPI_ET_INDUSTRY_OPENAPIEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ET_INDUSTRY_OPENAPI_LIBRARY)
|
||||
# define ALIBABACLOUD_ET_INDUSTRY_OPENAPI_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ET_INDUSTRY_OPENAPI_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ET_INDUSTRY_OPENAPI_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ET_INDUSTRY_OPENAPI_ET_INDUSTRY_OPENAPIEXPORT_H_
|
||||
@@ -14,36 +14,32 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_RESETACCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_R_KVSTORE_MODEL_RESETACCOUNTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ET_INDUSTRY_OPENAPI_MODEL_UPLOADDEVICEDATAREQUEST_H_
|
||||
#define ALIBABACLOUD_ET_INDUSTRY_OPENAPI_MODEL_UPLOADDEVICEDATAREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/et-industry-openapi/Et_industry_openapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace R_kvstore
|
||||
namespace Et_industry_openapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_R_KVSTORE_EXPORT ResetAccountResult : public ServiceResult
|
||||
class ALIBABACLOUD_ET_INDUSTRY_OPENAPI_EXPORT UploadDeviceDataRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UploadDeviceDataRequest();
|
||||
~UploadDeviceDataRequest();
|
||||
|
||||
|
||||
ResetAccountResult();
|
||||
explicit ResetAccountResult(const std::string &payload);
|
||||
~ResetAccountResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_RESETACCOUNTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ET_INDUSTRY_OPENAPI_MODEL_UPLOADDEVICEDATAREQUEST_H_
|
||||
@@ -14,36 +14,42 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_DELETETEMPINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_R_KVSTORE_MODEL_DELETETEMPINSTANCERESULT_H_
|
||||
#ifndef ALIBABACLOUD_ET_INDUSTRY_OPENAPI_MODEL_UPLOADDEVICEDATARESULT_H_
|
||||
#define ALIBABACLOUD_ET_INDUSTRY_OPENAPI_MODEL_UPLOADDEVICEDATARESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
|
||||
#include <alibabacloud/et-industry-openapi/Et_industry_openapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace R_kvstore
|
||||
namespace Et_industry_openapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_R_KVSTORE_EXPORT DeleteTempInstanceResult : public ServiceResult
|
||||
class ALIBABACLOUD_ET_INDUSTRY_OPENAPI_EXPORT UploadDeviceDataResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteTempInstanceResult();
|
||||
explicit DeleteTempInstanceResult(const std::string &payload);
|
||||
~DeleteTempInstanceResult();
|
||||
UploadDeviceDataResult();
|
||||
explicit UploadDeviceDataResult(const std::string &payload);
|
||||
~UploadDeviceDataResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DELETETEMPINSTANCERESULT_H_
|
||||
#endif // !ALIBABACLOUD_ET_INDUSTRY_OPENAPI_MODEL_UPLOADDEVICEDATARESULT_H_
|
||||
89
et-industry-openapi/src/Et-industry-openapiClient.cc
Normal file
89
et-industry-openapi/src/Et-industry-openapiClient.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/et-industry-openapi/Et_industry_openapiClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Et_industry_openapi;
|
||||
using namespace AlibabaCloud::Et_industry_openapi::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "et-industry-openapi";
|
||||
}
|
||||
|
||||
Et_industry_openapiClient::Et_industry_openapiClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RoaServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
Et_industry_openapiClient::Et_industry_openapiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
Et_industry_openapiClient::Et_industry_openapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
Et_industry_openapiClient::~Et_industry_openapiClient()
|
||||
{}
|
||||
|
||||
Et_industry_openapiClient::UploadDeviceDataOutcome Et_industry_openapiClient::uploadDeviceData(const UploadDeviceDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UploadDeviceDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UploadDeviceDataOutcome(UploadDeviceDataResult(outcome.result()));
|
||||
else
|
||||
return UploadDeviceDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Et_industry_openapiClient::uploadDeviceDataAsync(const UploadDeviceDataRequest& request, const UploadDeviceDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, uploadDeviceData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Et_industry_openapiClient::UploadDeviceDataOutcomeCallable Et_industry_openapiClient::uploadDeviceDataCallable(const UploadDeviceDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UploadDeviceDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->uploadDeviceData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
30
et-industry-openapi/src/model/UploadDeviceDataRequest.cc
Normal file
30
et-industry-openapi/src/model/UploadDeviceDataRequest.cc
Normal file
@@ -0,0 +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/et-industry-openapi/model/UploadDeviceDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Et_industry_openapi::Model::UploadDeviceDataRequest;
|
||||
|
||||
UploadDeviceDataRequest::UploadDeviceDataRequest() :
|
||||
RoaServiceRequest("et-industry-openapi", "2019-06-10")
|
||||
{
|
||||
setResourcePath("/openapi/batch/data/up");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UploadDeviceDataRequest::~UploadDeviceDataRequest()
|
||||
{}
|
||||
|
||||
@@ -14,45 +14,52 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/QueryTaskResult.h>
|
||||
#include <alibabacloud/et-industry-openapi/model/UploadDeviceDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
using namespace AlibabaCloud::Et_industry_openapi;
|
||||
using namespace AlibabaCloud::Et_industry_openapi::Model;
|
||||
|
||||
QueryTaskResult::QueryTaskResult() :
|
||||
UploadDeviceDataResult::UploadDeviceDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryTaskResult::QueryTaskResult(const std::string &payload) :
|
||||
UploadDeviceDataResult::UploadDeviceDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryTaskResult::~QueryTaskResult()
|
||||
UploadDeviceDataResult::~UploadDeviceDataResult()
|
||||
{}
|
||||
|
||||
void QueryTaskResult::parse(const std::string &payload)
|
||||
void UploadDeviceDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Action"].isNull())
|
||||
action_ = value["Action"].asString();
|
||||
if(!value["Progress"].isNull())
|
||||
progress_ = std::stoi(value["Progress"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryTaskResult::getAction()const
|
||||
std::string UploadDeviceDataResult::getMessage()const
|
||||
{
|
||||
return action_;
|
||||
return message_;
|
||||
}
|
||||
|
||||
int QueryTaskResult::getProgress()const
|
||||
std::string UploadDeviceDataResult::getData()const
|
||||
{
|
||||
return progress_;
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UploadDeviceDataResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,9 @@ set(ivision_public_header_model
|
||||
include/alibabacloud/ivision/model/StopStreamPredictRequest.h
|
||||
include/alibabacloud/ivision/model/StopStreamPredictResult.h
|
||||
include/alibabacloud/ivision/model/UnregisterFaceRequest.h
|
||||
include/alibabacloud/ivision/model/UnregisterFaceResult.h )
|
||||
include/alibabacloud/ivision/model/UnregisterFaceResult.h
|
||||
include/alibabacloud/ivision/model/VideoPredictRequest.h
|
||||
include/alibabacloud/ivision/model/VideoPredictResult.h )
|
||||
|
||||
set(ivision_src
|
||||
src/IvisionClient.cc
|
||||
@@ -75,7 +77,9 @@ set(ivision_src
|
||||
src/model/StopStreamPredictRequest.cc
|
||||
src/model/StopStreamPredictResult.cc
|
||||
src/model/UnregisterFaceRequest.cc
|
||||
src/model/UnregisterFaceResult.cc )
|
||||
src/model/UnregisterFaceResult.cc
|
||||
src/model/VideoPredictRequest.cc
|
||||
src/model/VideoPredictResult.cc )
|
||||
|
||||
add_library(ivision ${LIB_TYPE}
|
||||
${ivision_public_header}
|
||||
|
||||
@@ -22,32 +22,34 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "IvisionExport.h"
|
||||
#include "model/CreateFaceGroupRequest.h"
|
||||
#include "model/CreateFaceGroupResult.h"
|
||||
#include "model/CreateStreamPredictRequest.h"
|
||||
#include "model/CreateStreamPredictResult.h"
|
||||
#include "model/DeleteFaceGroupRequest.h"
|
||||
#include "model/DeleteFaceGroupResult.h"
|
||||
#include "model/DeleteStreamPredictRequest.h"
|
||||
#include "model/DeleteStreamPredictResult.h"
|
||||
#include "model/DescribeFaceGroupsRequest.h"
|
||||
#include "model/DescribeFaceGroupsResult.h"
|
||||
#include "model/DescribeStreamPredictResultRequest.h"
|
||||
#include "model/DescribeStreamPredictResultResult.h"
|
||||
#include "model/DescribeStreamPredictsRequest.h"
|
||||
#include "model/DescribeStreamPredictsResult.h"
|
||||
#include "model/ImagePredictRequest.h"
|
||||
#include "model/ImagePredictResult.h"
|
||||
#include "model/RegisterFaceRequest.h"
|
||||
#include "model/RegisterFaceResult.h"
|
||||
#include "model/SearchFaceRequest.h"
|
||||
#include "model/SearchFaceResult.h"
|
||||
#include "model/StartStreamPredictRequest.h"
|
||||
#include "model/StartStreamPredictResult.h"
|
||||
#include "model/StopStreamPredictRequest.h"
|
||||
#include "model/StopStreamPredictResult.h"
|
||||
#include "model/UnregisterFaceRequest.h"
|
||||
#include "model/UnregisterFaceResult.h"
|
||||
#include "model/CreateFaceGroupRequest.h"
|
||||
#include "model/CreateFaceGroupResult.h"
|
||||
#include "model/CreateStreamPredictRequest.h"
|
||||
#include "model/CreateStreamPredictResult.h"
|
||||
#include "model/DeleteFaceGroupRequest.h"
|
||||
#include "model/DeleteFaceGroupResult.h"
|
||||
#include "model/DeleteStreamPredictRequest.h"
|
||||
#include "model/DeleteStreamPredictResult.h"
|
||||
#include "model/DescribeFaceGroupsRequest.h"
|
||||
#include "model/DescribeFaceGroupsResult.h"
|
||||
#include "model/DescribeStreamPredictResultRequest.h"
|
||||
#include "model/DescribeStreamPredictResultResult.h"
|
||||
#include "model/DescribeStreamPredictsRequest.h"
|
||||
#include "model/DescribeStreamPredictsResult.h"
|
||||
#include "model/ImagePredictRequest.h"
|
||||
#include "model/ImagePredictResult.h"
|
||||
#include "model/RegisterFaceRequest.h"
|
||||
#include "model/RegisterFaceResult.h"
|
||||
#include "model/SearchFaceRequest.h"
|
||||
#include "model/SearchFaceResult.h"
|
||||
#include "model/StartStreamPredictRequest.h"
|
||||
#include "model/StartStreamPredictResult.h"
|
||||
#include "model/StopStreamPredictRequest.h"
|
||||
#include "model/StopStreamPredictResult.h"
|
||||
#include "model/UnregisterFaceRequest.h"
|
||||
#include "model/UnregisterFaceResult.h"
|
||||
#include "model/VideoPredictRequest.h"
|
||||
#include "model/VideoPredictResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -59,43 +61,46 @@ namespace AlibabaCloud
|
||||
public:
|
||||
typedef Outcome<Error, Model::CreateFaceGroupResult> CreateFaceGroupOutcome;
|
||||
typedef std::future<CreateFaceGroupOutcome> CreateFaceGroupOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::CreateFaceGroupRequest&, const CreateFaceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFaceGroupAsyncHandler;
|
||||
typedef std::function<void(const IvisionClient*, const Model::CreateFaceGroupRequest&, const CreateFaceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFaceGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateStreamPredictResult> CreateStreamPredictOutcome;
|
||||
typedef std::future<CreateStreamPredictOutcome> CreateStreamPredictOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::CreateStreamPredictRequest&, const CreateStreamPredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateStreamPredictAsyncHandler;
|
||||
typedef std::function<void(const IvisionClient*, const Model::CreateStreamPredictRequest&, const CreateStreamPredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateStreamPredictAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteFaceGroupResult> DeleteFaceGroupOutcome;
|
||||
typedef std::future<DeleteFaceGroupOutcome> DeleteFaceGroupOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::DeleteFaceGroupRequest&, const DeleteFaceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFaceGroupAsyncHandler;
|
||||
typedef std::function<void(const IvisionClient*, const Model::DeleteFaceGroupRequest&, const DeleteFaceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFaceGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteStreamPredictResult> DeleteStreamPredictOutcome;
|
||||
typedef std::future<DeleteStreamPredictOutcome> DeleteStreamPredictOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::DeleteStreamPredictRequest&, const DeleteStreamPredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteStreamPredictAsyncHandler;
|
||||
typedef std::function<void(const IvisionClient*, const Model::DeleteStreamPredictRequest&, const DeleteStreamPredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteStreamPredictAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFaceGroupsResult> DescribeFaceGroupsOutcome;
|
||||
typedef std::future<DescribeFaceGroupsOutcome> DescribeFaceGroupsOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::DescribeFaceGroupsRequest&, const DescribeFaceGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceGroupsAsyncHandler;
|
||||
typedef std::function<void(const IvisionClient*, const Model::DescribeFaceGroupsRequest&, const DescribeFaceGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeStreamPredictResultResult> DescribeStreamPredictResultOutcome;
|
||||
typedef std::future<DescribeStreamPredictResultOutcome> DescribeStreamPredictResultOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::DescribeStreamPredictResultRequest&, const DescribeStreamPredictResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStreamPredictResultAsyncHandler;
|
||||
typedef std::function<void(const IvisionClient*, const Model::DescribeStreamPredictResultRequest&, const DescribeStreamPredictResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStreamPredictResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeStreamPredictsResult> DescribeStreamPredictsOutcome;
|
||||
typedef std::future<DescribeStreamPredictsOutcome> DescribeStreamPredictsOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::DescribeStreamPredictsRequest&, const DescribeStreamPredictsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStreamPredictsAsyncHandler;
|
||||
typedef std::function<void(const IvisionClient*, const Model::DescribeStreamPredictsRequest&, const DescribeStreamPredictsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStreamPredictsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ImagePredictResult> ImagePredictOutcome;
|
||||
typedef std::future<ImagePredictOutcome> ImagePredictOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::ImagePredictRequest&, const ImagePredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImagePredictAsyncHandler;
|
||||
typedef std::function<void(const IvisionClient*, const Model::ImagePredictRequest&, const ImagePredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImagePredictAsyncHandler;
|
||||
typedef Outcome<Error, Model::RegisterFaceResult> RegisterFaceOutcome;
|
||||
typedef std::future<RegisterFaceOutcome> RegisterFaceOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::RegisterFaceRequest&, const RegisterFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterFaceAsyncHandler;
|
||||
typedef std::function<void(const IvisionClient*, const Model::RegisterFaceRequest&, const RegisterFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterFaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchFaceResult> SearchFaceOutcome;
|
||||
typedef std::future<SearchFaceOutcome> SearchFaceOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::SearchFaceRequest&, const SearchFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchFaceAsyncHandler;
|
||||
typedef std::function<void(const IvisionClient*, const Model::SearchFaceRequest&, const SearchFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchFaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartStreamPredictResult> StartStreamPredictOutcome;
|
||||
typedef std::future<StartStreamPredictOutcome> StartStreamPredictOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::StartStreamPredictRequest&, const StartStreamPredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartStreamPredictAsyncHandler;
|
||||
typedef std::function<void(const IvisionClient*, const Model::StartStreamPredictRequest&, const StartStreamPredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartStreamPredictAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopStreamPredictResult> StopStreamPredictOutcome;
|
||||
typedef std::future<StopStreamPredictOutcome> StopStreamPredictOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::StopStreamPredictRequest&, const StopStreamPredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopStreamPredictAsyncHandler;
|
||||
typedef std::function<void(const IvisionClient*, const Model::StopStreamPredictRequest&, const StopStreamPredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopStreamPredictAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnregisterFaceResult> UnregisterFaceOutcome;
|
||||
typedef std::future<UnregisterFaceOutcome> UnregisterFaceOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::UnregisterFaceRequest&, const UnregisterFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnregisterFaceAsyncHandler;
|
||||
typedef std::function<void(const IvisionClient*, const Model::UnregisterFaceRequest&, const UnregisterFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnregisterFaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::VideoPredictResult> VideoPredictOutcome;
|
||||
typedef std::future<VideoPredictOutcome> VideoPredictOutcomeCallable;
|
||||
typedef std::function<void(const IvisionClient*, const Model::VideoPredictRequest&, const VideoPredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VideoPredictAsyncHandler;
|
||||
|
||||
IvisionClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
IvisionClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -103,43 +108,46 @@ namespace AlibabaCloud
|
||||
~IvisionClient();
|
||||
CreateFaceGroupOutcome createFaceGroup(const Model::CreateFaceGroupRequest &request)const;
|
||||
void createFaceGroupAsync(const Model::CreateFaceGroupRequest& request, const CreateFaceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateFaceGroupOutcomeCallable createFaceGroupCallable(const Model::CreateFaceGroupRequest& request) const;
|
||||
CreateFaceGroupOutcomeCallable createFaceGroupCallable(const Model::CreateFaceGroupRequest& request) const;
|
||||
CreateStreamPredictOutcome createStreamPredict(const Model::CreateStreamPredictRequest &request)const;
|
||||
void createStreamPredictAsync(const Model::CreateStreamPredictRequest& request, const CreateStreamPredictAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateStreamPredictOutcomeCallable createStreamPredictCallable(const Model::CreateStreamPredictRequest& request) const;
|
||||
CreateStreamPredictOutcomeCallable createStreamPredictCallable(const Model::CreateStreamPredictRequest& request) const;
|
||||
DeleteFaceGroupOutcome deleteFaceGroup(const Model::DeleteFaceGroupRequest &request)const;
|
||||
void deleteFaceGroupAsync(const Model::DeleteFaceGroupRequest& request, const DeleteFaceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFaceGroupOutcomeCallable deleteFaceGroupCallable(const Model::DeleteFaceGroupRequest& request) const;
|
||||
DeleteFaceGroupOutcomeCallable deleteFaceGroupCallable(const Model::DeleteFaceGroupRequest& request) const;
|
||||
DeleteStreamPredictOutcome deleteStreamPredict(const Model::DeleteStreamPredictRequest &request)const;
|
||||
void deleteStreamPredictAsync(const Model::DeleteStreamPredictRequest& request, const DeleteStreamPredictAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteStreamPredictOutcomeCallable deleteStreamPredictCallable(const Model::DeleteStreamPredictRequest& request) const;
|
||||
DeleteStreamPredictOutcomeCallable deleteStreamPredictCallable(const Model::DeleteStreamPredictRequest& request) const;
|
||||
DescribeFaceGroupsOutcome describeFaceGroups(const Model::DescribeFaceGroupsRequest &request)const;
|
||||
void describeFaceGroupsAsync(const Model::DescribeFaceGroupsRequest& request, const DescribeFaceGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFaceGroupsOutcomeCallable describeFaceGroupsCallable(const Model::DescribeFaceGroupsRequest& request) const;
|
||||
DescribeFaceGroupsOutcomeCallable describeFaceGroupsCallable(const Model::DescribeFaceGroupsRequest& request) const;
|
||||
DescribeStreamPredictResultOutcome describeStreamPredictResult(const Model::DescribeStreamPredictResultRequest &request)const;
|
||||
void describeStreamPredictResultAsync(const Model::DescribeStreamPredictResultRequest& request, const DescribeStreamPredictResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeStreamPredictResultOutcomeCallable describeStreamPredictResultCallable(const Model::DescribeStreamPredictResultRequest& request) const;
|
||||
DescribeStreamPredictResultOutcomeCallable describeStreamPredictResultCallable(const Model::DescribeStreamPredictResultRequest& request) const;
|
||||
DescribeStreamPredictsOutcome describeStreamPredicts(const Model::DescribeStreamPredictsRequest &request)const;
|
||||
void describeStreamPredictsAsync(const Model::DescribeStreamPredictsRequest& request, const DescribeStreamPredictsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeStreamPredictsOutcomeCallable describeStreamPredictsCallable(const Model::DescribeStreamPredictsRequest& request) const;
|
||||
DescribeStreamPredictsOutcomeCallable describeStreamPredictsCallable(const Model::DescribeStreamPredictsRequest& request) const;
|
||||
ImagePredictOutcome imagePredict(const Model::ImagePredictRequest &request)const;
|
||||
void imagePredictAsync(const Model::ImagePredictRequest& request, const ImagePredictAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ImagePredictOutcomeCallable imagePredictCallable(const Model::ImagePredictRequest& request) const;
|
||||
ImagePredictOutcomeCallable imagePredictCallable(const Model::ImagePredictRequest& request) const;
|
||||
RegisterFaceOutcome registerFace(const Model::RegisterFaceRequest &request)const;
|
||||
void registerFaceAsync(const Model::RegisterFaceRequest& request, const RegisterFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterFaceOutcomeCallable registerFaceCallable(const Model::RegisterFaceRequest& request) const;
|
||||
RegisterFaceOutcomeCallable registerFaceCallable(const Model::RegisterFaceRequest& request) const;
|
||||
SearchFaceOutcome searchFace(const Model::SearchFaceRequest &request)const;
|
||||
void searchFaceAsync(const Model::SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchFaceOutcomeCallable searchFaceCallable(const Model::SearchFaceRequest& request) const;
|
||||
SearchFaceOutcomeCallable searchFaceCallable(const Model::SearchFaceRequest& request) const;
|
||||
StartStreamPredictOutcome startStreamPredict(const Model::StartStreamPredictRequest &request)const;
|
||||
void startStreamPredictAsync(const Model::StartStreamPredictRequest& request, const StartStreamPredictAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartStreamPredictOutcomeCallable startStreamPredictCallable(const Model::StartStreamPredictRequest& request) const;
|
||||
StartStreamPredictOutcomeCallable startStreamPredictCallable(const Model::StartStreamPredictRequest& request) const;
|
||||
StopStreamPredictOutcome stopStreamPredict(const Model::StopStreamPredictRequest &request)const;
|
||||
void stopStreamPredictAsync(const Model::StopStreamPredictRequest& request, const StopStreamPredictAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopStreamPredictOutcomeCallable stopStreamPredictCallable(const Model::StopStreamPredictRequest& request) const;
|
||||
StopStreamPredictOutcomeCallable stopStreamPredictCallable(const Model::StopStreamPredictRequest& request) const;
|
||||
UnregisterFaceOutcome unregisterFace(const Model::UnregisterFaceRequest &request)const;
|
||||
void unregisterFaceAsync(const Model::UnregisterFaceRequest& request, const UnregisterFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnregisterFaceOutcomeCallable unregisterFaceCallable(const Model::UnregisterFaceRequest& request) const;
|
||||
UnregisterFaceOutcomeCallable unregisterFaceCallable(const Model::UnregisterFaceRequest& request) const;
|
||||
VideoPredictOutcome videoPredict(const Model::VideoPredictRequest &request)const;
|
||||
void videoPredictAsync(const Model::VideoPredictRequest& request, const VideoPredictAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VideoPredictOutcomeCallable videoPredictCallable(const Model::VideoPredictRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -35,17 +35,17 @@ namespace AlibabaCloud
|
||||
CreateFaceGroupRequest();
|
||||
~CreateFaceGroupRequest();
|
||||
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
std::string name_;
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,47 +35,47 @@ namespace AlibabaCloud
|
||||
CreateStreamPredictRequest();
|
||||
~CreateStreamPredictRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getAutoStart()const;
|
||||
void setAutoStart(const std::string& autoStart);
|
||||
std::string getNotify()const;
|
||||
void setNotify(const std::string& notify);
|
||||
std::string getOutput()const;
|
||||
void setOutput(const std::string& output);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getStreamType()const;
|
||||
void setStreamType(const std::string& streamType);
|
||||
std::string getFaceGroupId()const;
|
||||
void setFaceGroupId(const std::string& faceGroupId);
|
||||
std::string getStreamId()const;
|
||||
void setStreamId(const std::string& streamId);
|
||||
std::string getDetectIntervals()const;
|
||||
void setDetectIntervals(const std::string& detectIntervals);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getProbabilityThresholds()const;
|
||||
void setProbabilityThresholds(const std::string& probabilityThresholds);
|
||||
std::string getModelIds()const;
|
||||
void setModelIds(const std::string& modelIds);
|
||||
std::string getModelUserData()const;
|
||||
void setModelUserData(const std::string& modelUserData);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getAutoStart()const;
|
||||
void setAutoStart(const std::string& autoStart);
|
||||
std::string getNotify()const;
|
||||
void setNotify(const std::string& notify);
|
||||
std::string getOutput()const;
|
||||
void setOutput(const std::string& output);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getStreamType()const;
|
||||
void setStreamType(const std::string& streamType);
|
||||
std::string getFaceGroupId()const;
|
||||
void setFaceGroupId(const std::string& faceGroupId);
|
||||
std::string getStreamId()const;
|
||||
void setStreamId(const std::string& streamId);
|
||||
std::string getDetectIntervals()const;
|
||||
void setDetectIntervals(const std::string& detectIntervals);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getProbabilityThresholds()const;
|
||||
void setProbabilityThresholds(const std::string& probabilityThresholds);
|
||||
std::string getModelIds()const;
|
||||
void setModelIds(const std::string& modelIds);
|
||||
std::string getModelUserData()const;
|
||||
void setModelUserData(const std::string& modelUserData);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string autoStart_;
|
||||
std::string notify_;
|
||||
std::string output_;
|
||||
std::string showLog_;
|
||||
std::string streamType_;
|
||||
std::string faceGroupId_;
|
||||
std::string streamId_;
|
||||
std::string detectIntervals_;
|
||||
long ownerId_;
|
||||
std::string probabilityThresholds_;
|
||||
std::string modelIds_;
|
||||
std::string modelUserData_;
|
||||
std::string clientToken_;
|
||||
std::string autoStart_;
|
||||
std::string notify_;
|
||||
std::string output_;
|
||||
std::string showLog_;
|
||||
std::string streamType_;
|
||||
std::string faceGroupId_;
|
||||
std::string streamId_;
|
||||
std::string detectIntervals_;
|
||||
long ownerId_;
|
||||
std::string probabilityThresholds_;
|
||||
std::string modelIds_;
|
||||
std::string modelUserData_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,17 +35,17 @@ namespace AlibabaCloud
|
||||
DeleteFaceGroupRequest();
|
||||
~DeleteFaceGroupRequest();
|
||||
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string showLog_;
|
||||
std::string groupId_;
|
||||
long ownerId_;
|
||||
std::string showLog_;
|
||||
std::string groupId_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,17 +35,17 @@ namespace AlibabaCloud
|
||||
DeleteStreamPredictRequest();
|
||||
~DeleteStreamPredictRequest();
|
||||
|
||||
std::string getPredictId()const;
|
||||
void setPredictId(const std::string& predictId);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPredictId()const;
|
||||
void setPredictId(const std::string& predictId);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string predictId_;
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
std::string predictId_;
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,23 +35,23 @@ namespace AlibabaCloud
|
||||
DescribeFaceGroupsRequest();
|
||||
~DescribeFaceGroupsRequest();
|
||||
|
||||
std::string getNextPageToken()const;
|
||||
void setNextPageToken(const std::string& nextPageToken);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getCurrentPage()const;
|
||||
void setCurrentPage(long currentPage);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getNextPageToken()const;
|
||||
void setNextPageToken(const std::string& nextPageToken);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getCurrentPage()const;
|
||||
void setCurrentPage(long currentPage);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string nextPageToken_;
|
||||
long pageSize_;
|
||||
std::string showLog_;
|
||||
long currentPage_;
|
||||
long ownerId_;
|
||||
std::string nextPageToken_;
|
||||
long pageSize_;
|
||||
std::string showLog_;
|
||||
long currentPage_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,38 +35,38 @@ namespace AlibabaCloud
|
||||
DescribeStreamPredictResultRequest();
|
||||
~DescribeStreamPredictResultRequest();
|
||||
|
||||
std::string getNextPageToken()const;
|
||||
void setNextPageToken(const std::string& nextPageToken);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getPredictId()const;
|
||||
void setPredictId(const std::string& predictId);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getProbabilityThreshold()const;
|
||||
void setProbabilityThreshold(const std::string& probabilityThreshold);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getModelId()const;
|
||||
void setModelId(const std::string& modelId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getCurrentPage()const;
|
||||
void setCurrentPage(long currentPage);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getNextPageToken()const;
|
||||
void setNextPageToken(const std::string& nextPageToken);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getPredictId()const;
|
||||
void setPredictId(const std::string& predictId);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getProbabilityThreshold()const;
|
||||
void setProbabilityThreshold(const std::string& probabilityThreshold);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getModelId()const;
|
||||
void setModelId(const std::string& modelId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getCurrentPage()const;
|
||||
void setCurrentPage(long currentPage);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string nextPageToken_;
|
||||
std::string startTime_;
|
||||
std::string predictId_;
|
||||
long pageSize_;
|
||||
std::string probabilityThreshold_;
|
||||
std::string showLog_;
|
||||
std::string modelId_;
|
||||
std::string endTime_;
|
||||
long currentPage_;
|
||||
long ownerId_;
|
||||
std::string nextPageToken_;
|
||||
std::string startTime_;
|
||||
std::string predictId_;
|
||||
long pageSize_;
|
||||
std::string probabilityThreshold_;
|
||||
std::string showLog_;
|
||||
std::string modelId_;
|
||||
std::string endTime_;
|
||||
long currentPage_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,26 +35,26 @@ namespace AlibabaCloud
|
||||
DescribeStreamPredictsRequest();
|
||||
~DescribeStreamPredictsRequest();
|
||||
|
||||
std::string getNextPageToken()const;
|
||||
void setNextPageToken(const std::string& nextPageToken);
|
||||
std::string getPredictIds()const;
|
||||
void setPredictIds(const std::string& predictIds);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getCurrentPage()const;
|
||||
void setCurrentPage(long currentPage);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getNextPageToken()const;
|
||||
void setNextPageToken(const std::string& nextPageToken);
|
||||
std::string getPredictIds()const;
|
||||
void setPredictIds(const std::string& predictIds);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getCurrentPage()const;
|
||||
void setCurrentPage(long currentPage);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string nextPageToken_;
|
||||
std::string predictIds_;
|
||||
long pageSize_;
|
||||
std::string showLog_;
|
||||
long currentPage_;
|
||||
long ownerId_;
|
||||
std::string nextPageToken_;
|
||||
std::string predictIds_;
|
||||
long pageSize_;
|
||||
std::string showLog_;
|
||||
long currentPage_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,20 +35,20 @@ namespace AlibabaCloud
|
||||
ImagePredictRequest();
|
||||
~ImagePredictRequest();
|
||||
|
||||
std::string getDataUrl()const;
|
||||
void setDataUrl(const std::string& dataUrl);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getModelId()const;
|
||||
void setModelId(const std::string& modelId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getDataUrl()const;
|
||||
void setDataUrl(const std::string& dataUrl);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getModelId()const;
|
||||
void setModelId(const std::string& modelId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string dataUrl_;
|
||||
std::string showLog_;
|
||||
std::string modelId_;
|
||||
long ownerId_;
|
||||
std::string dataUrl_;
|
||||
std::string showLog_;
|
||||
std::string modelId_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,23 +35,23 @@ namespace AlibabaCloud
|
||||
RegisterFaceRequest();
|
||||
~RegisterFaceRequest();
|
||||
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getDataType()const;
|
||||
void setDataType(const std::string& dataType);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getDataType()const;
|
||||
void setDataType(const std::string& dataType);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string content_;
|
||||
std::string dataType_;
|
||||
std::string showLog_;
|
||||
std::string groupId_;
|
||||
long ownerId_;
|
||||
std::string content_;
|
||||
std::string dataType_;
|
||||
std::string showLog_;
|
||||
std::string groupId_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,29 +35,29 @@ namespace AlibabaCloud
|
||||
SearchFaceRequest();
|
||||
~SearchFaceRequest();
|
||||
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getDataType()const;
|
||||
void setDataType(const std::string& dataType);
|
||||
float getProbabilityThreshold()const;
|
||||
void setProbabilityThreshold(float probabilityThreshold);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
int getCount()const;
|
||||
void setCount(int count);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getDataType()const;
|
||||
void setDataType(const std::string& dataType);
|
||||
float getProbabilityThreshold()const;
|
||||
void setProbabilityThreshold(float probabilityThreshold);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
int getCount()const;
|
||||
void setCount(int count);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string content_;
|
||||
std::string dataType_;
|
||||
float probabilityThreshold_;
|
||||
std::string showLog_;
|
||||
std::string groupId_;
|
||||
int count_;
|
||||
long ownerId_;
|
||||
std::string content_;
|
||||
std::string dataType_;
|
||||
float probabilityThreshold_;
|
||||
std::string showLog_;
|
||||
std::string groupId_;
|
||||
int count_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,17 +35,17 @@ namespace AlibabaCloud
|
||||
StartStreamPredictRequest();
|
||||
~StartStreamPredictRequest();
|
||||
|
||||
std::string getPredictId()const;
|
||||
void setPredictId(const std::string& predictId);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPredictId()const;
|
||||
void setPredictId(const std::string& predictId);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string predictId_;
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
std::string predictId_;
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,17 +35,17 @@ namespace AlibabaCloud
|
||||
StopStreamPredictRequest();
|
||||
~StopStreamPredictRequest();
|
||||
|
||||
std::string getPredictId()const;
|
||||
void setPredictId(const std::string& predictId);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPredictId()const;
|
||||
void setPredictId(const std::string& predictId);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string predictId_;
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
std::string predictId_;
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,20 +35,20 @@ namespace AlibabaCloud
|
||||
UnregisterFaceRequest();
|
||||
~UnregisterFaceRequest();
|
||||
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getFaceToken()const;
|
||||
void setFaceToken(const std::string& faceToken);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getFaceToken()const;
|
||||
void setFaceToken(const std::string& faceToken);
|
||||
|
||||
private:
|
||||
std::string showLog_;
|
||||
std::string groupId_;
|
||||
long ownerId_;
|
||||
std::string faceToken_;
|
||||
std::string showLog_;
|
||||
std::string groupId_;
|
||||
long ownerId_;
|
||||
std::string faceToken_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IVISION_MODEL_VIDEOPREDICTREQUEST_H_
|
||||
#define ALIBABACLOUD_IVISION_MODEL_VIDEOPREDICTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ivision/IvisionExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ivision
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IVISION_EXPORT VideoPredictRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
VideoPredictRequest();
|
||||
~VideoPredictRequest();
|
||||
|
||||
std::string getDataUrl()const;
|
||||
void setDataUrl(const std::string& dataUrl);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getNotify()const;
|
||||
void setNotify(const std::string& notify);
|
||||
std::string getOutput()const;
|
||||
void setOutput(const std::string& output);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getModels()const;
|
||||
void setModels(const std::string& models);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string dataUrl_;
|
||||
std::string clientToken_;
|
||||
std::string notify_;
|
||||
std::string output_;
|
||||
std::string showLog_;
|
||||
std::string models_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IVISION_MODEL_VIDEOPREDICTREQUEST_H_
|
||||
@@ -14,36 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_DELETESNAPSHOTRESULT_H_
|
||||
#define ALIBABACLOUD_R_KVSTORE_MODEL_DELETESNAPSHOTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_IVISION_MODEL_VIDEOPREDICTRESULT_H_
|
||||
#define ALIBABACLOUD_IVISION_MODEL_VIDEOPREDICTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
|
||||
#include <alibabacloud/ivision/IvisionExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace R_kvstore
|
||||
namespace Ivision
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_R_KVSTORE_EXPORT DeleteSnapshotResult : public ServiceResult
|
||||
class ALIBABACLOUD_IVISION_EXPORT VideoPredictResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteSnapshotResult();
|
||||
explicit DeleteSnapshotResult(const std::string &payload);
|
||||
~DeleteSnapshotResult();
|
||||
VideoPredictResult();
|
||||
explicit VideoPredictResult(const std::string &payload);
|
||||
~VideoPredictResult();
|
||||
std::string getPredictId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string predictId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DELETESNAPSHOTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_IVISION_MODEL_VIDEOPREDICTRESULT_H_
|
||||
@@ -86,7 +86,7 @@ IvisionClient::CreateFaceGroupOutcomeCallable IvisionClient::createFaceGroupCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
IvisionClient::CreateStreamPredictOutcome IvisionClient::createStreamPredict(const CreateStreamPredictRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -122,7 +122,7 @@ IvisionClient::CreateStreamPredictOutcomeCallable IvisionClient::createStreamPre
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
IvisionClient::DeleteFaceGroupOutcome IvisionClient::deleteFaceGroup(const DeleteFaceGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -158,7 +158,7 @@ IvisionClient::DeleteFaceGroupOutcomeCallable IvisionClient::deleteFaceGroupCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
IvisionClient::DeleteStreamPredictOutcome IvisionClient::deleteStreamPredict(const DeleteStreamPredictRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -194,7 +194,7 @@ IvisionClient::DeleteStreamPredictOutcomeCallable IvisionClient::deleteStreamPre
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
IvisionClient::DescribeFaceGroupsOutcome IvisionClient::describeFaceGroups(const DescribeFaceGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -230,7 +230,7 @@ IvisionClient::DescribeFaceGroupsOutcomeCallable IvisionClient::describeFaceGrou
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
IvisionClient::DescribeStreamPredictResultOutcome IvisionClient::describeStreamPredictResult(const DescribeStreamPredictResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -266,7 +266,7 @@ IvisionClient::DescribeStreamPredictResultOutcomeCallable IvisionClient::describ
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
IvisionClient::DescribeStreamPredictsOutcome IvisionClient::describeStreamPredicts(const DescribeStreamPredictsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -302,7 +302,7 @@ IvisionClient::DescribeStreamPredictsOutcomeCallable IvisionClient::describeStre
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
IvisionClient::ImagePredictOutcome IvisionClient::imagePredict(const ImagePredictRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -338,7 +338,7 @@ IvisionClient::ImagePredictOutcomeCallable IvisionClient::imagePredictCallable(c
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
IvisionClient::RegisterFaceOutcome IvisionClient::registerFace(const RegisterFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -374,7 +374,7 @@ IvisionClient::RegisterFaceOutcomeCallable IvisionClient::registerFaceCallable(c
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
IvisionClient::SearchFaceOutcome IvisionClient::searchFace(const SearchFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -410,7 +410,7 @@ IvisionClient::SearchFaceOutcomeCallable IvisionClient::searchFaceCallable(const
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
IvisionClient::StartStreamPredictOutcome IvisionClient::startStreamPredict(const StartStreamPredictRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -446,7 +446,7 @@ IvisionClient::StartStreamPredictOutcomeCallable IvisionClient::startStreamPredi
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
IvisionClient::StopStreamPredictOutcome IvisionClient::stopStreamPredict(const StopStreamPredictRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -482,7 +482,7 @@ IvisionClient::StopStreamPredictOutcomeCallable IvisionClient::stopStreamPredict
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
IvisionClient::UnregisterFaceOutcome IvisionClient::unregisterFace(const UnregisterFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -518,4 +518,40 @@ IvisionClient::UnregisterFaceOutcomeCallable IvisionClient::unregisterFaceCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IvisionClient::VideoPredictOutcome IvisionClient::videoPredict(const VideoPredictRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return VideoPredictOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return VideoPredictOutcome(VideoPredictResult(outcome.result()));
|
||||
else
|
||||
return VideoPredictOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IvisionClient::videoPredictAsync(const VideoPredictRequest& request, const VideoPredictAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, videoPredict(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IvisionClient::VideoPredictOutcomeCallable IvisionClient::videoPredictCallable(const VideoPredictRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<VideoPredictOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->videoPredict(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -20,43 +20,43 @@ using AlibabaCloud::Ivision::Model::CreateFaceGroupRequest;
|
||||
|
||||
CreateFaceGroupRequest::CreateFaceGroupRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "CreateFaceGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CreateFaceGroupRequest::~CreateFaceGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateFaceGroupRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateFaceGroupRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long CreateFaceGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateFaceGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateFaceGroupRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateFaceGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateFaceGroupRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateFaceGroupRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long CreateFaceGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateFaceGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateFaceGroupRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateFaceGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,153 +20,153 @@ using AlibabaCloud::Ivision::Model::CreateStreamPredictRequest;
|
||||
|
||||
CreateStreamPredictRequest::CreateStreamPredictRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "CreateStreamPredict")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateStreamPredictRequest::~CreateStreamPredictRequest()
|
||||
{}
|
||||
|
||||
std::string CreateStreamPredictRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getAutoStart()const
|
||||
{
|
||||
return autoStart_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setAutoStart(const std::string& autoStart)
|
||||
{
|
||||
autoStart_ = autoStart;
|
||||
setCoreParameter("AutoStart", autoStart);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getNotify()const
|
||||
{
|
||||
return notify_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setNotify(const std::string& notify)
|
||||
{
|
||||
notify_ = notify;
|
||||
setCoreParameter("Notify", notify);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getOutput()const
|
||||
{
|
||||
return output_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setOutput(const std::string& output)
|
||||
{
|
||||
output_ = output;
|
||||
setCoreParameter("Output", output);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getStreamType()const
|
||||
{
|
||||
return streamType_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setStreamType(const std::string& streamType)
|
||||
{
|
||||
streamType_ = streamType;
|
||||
setCoreParameter("StreamType", streamType);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getFaceGroupId()const
|
||||
{
|
||||
return faceGroupId_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setFaceGroupId(const std::string& faceGroupId)
|
||||
{
|
||||
faceGroupId_ = faceGroupId;
|
||||
setCoreParameter("FaceGroupId", faceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getStreamId()const
|
||||
{
|
||||
return streamId_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setStreamId(const std::string& streamId)
|
||||
{
|
||||
streamId_ = streamId;
|
||||
setCoreParameter("StreamId", streamId);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getDetectIntervals()const
|
||||
{
|
||||
return detectIntervals_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setDetectIntervals(const std::string& detectIntervals)
|
||||
{
|
||||
detectIntervals_ = detectIntervals;
|
||||
setCoreParameter("DetectIntervals", detectIntervals);
|
||||
}
|
||||
|
||||
long CreateStreamPredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getProbabilityThresholds()const
|
||||
{
|
||||
return probabilityThresholds_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setProbabilityThresholds(const std::string& probabilityThresholds)
|
||||
{
|
||||
probabilityThresholds_ = probabilityThresholds;
|
||||
setCoreParameter("ProbabilityThresholds", probabilityThresholds);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getModelIds()const
|
||||
{
|
||||
return modelIds_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setModelIds(const std::string& modelIds)
|
||||
{
|
||||
modelIds_ = modelIds;
|
||||
setCoreParameter("ModelIds", modelIds);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getModelUserData()const
|
||||
{
|
||||
return modelUserData_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setModelUserData(const std::string& modelUserData)
|
||||
{
|
||||
modelUserData_ = modelUserData;
|
||||
setCoreParameter("ModelUserData", modelUserData);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getAutoStart()const
|
||||
{
|
||||
return autoStart_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setAutoStart(const std::string& autoStart)
|
||||
{
|
||||
autoStart_ = autoStart;
|
||||
setCoreParameter("AutoStart", autoStart);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getNotify()const
|
||||
{
|
||||
return notify_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setNotify(const std::string& notify)
|
||||
{
|
||||
notify_ = notify;
|
||||
setCoreParameter("Notify", notify);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getOutput()const
|
||||
{
|
||||
return output_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setOutput(const std::string& output)
|
||||
{
|
||||
output_ = output;
|
||||
setCoreParameter("Output", output);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getStreamType()const
|
||||
{
|
||||
return streamType_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setStreamType(const std::string& streamType)
|
||||
{
|
||||
streamType_ = streamType;
|
||||
setCoreParameter("StreamType", streamType);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getFaceGroupId()const
|
||||
{
|
||||
return faceGroupId_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setFaceGroupId(const std::string& faceGroupId)
|
||||
{
|
||||
faceGroupId_ = faceGroupId;
|
||||
setCoreParameter("FaceGroupId", faceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getStreamId()const
|
||||
{
|
||||
return streamId_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setStreamId(const std::string& streamId)
|
||||
{
|
||||
streamId_ = streamId;
|
||||
setCoreParameter("StreamId", streamId);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getDetectIntervals()const
|
||||
{
|
||||
return detectIntervals_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setDetectIntervals(const std::string& detectIntervals)
|
||||
{
|
||||
detectIntervals_ = detectIntervals;
|
||||
setCoreParameter("DetectIntervals", detectIntervals);
|
||||
}
|
||||
|
||||
long CreateStreamPredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getProbabilityThresholds()const
|
||||
{
|
||||
return probabilityThresholds_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setProbabilityThresholds(const std::string& probabilityThresholds)
|
||||
{
|
||||
probabilityThresholds_ = probabilityThresholds;
|
||||
setCoreParameter("ProbabilityThresholds", probabilityThresholds);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getModelIds()const
|
||||
{
|
||||
return modelIds_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setModelIds(const std::string& modelIds)
|
||||
{
|
||||
modelIds_ = modelIds;
|
||||
setCoreParameter("ModelIds", modelIds);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getModelUserData()const
|
||||
{
|
||||
return modelUserData_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setModelUserData(const std::string& modelUserData)
|
||||
{
|
||||
modelUserData_ = modelUserData;
|
||||
setCoreParameter("ModelUserData", modelUserData);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,43 +20,43 @@ using AlibabaCloud::Ivision::Model::DeleteFaceGroupRequest;
|
||||
|
||||
DeleteFaceGroupRequest::DeleteFaceGroupRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DeleteFaceGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DeleteFaceGroupRequest::~DeleteFaceGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteFaceGroupRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteFaceGroupRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DeleteFaceGroupRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DeleteFaceGroupRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
long DeleteFaceGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteFaceGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteFaceGroupRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteFaceGroupRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DeleteFaceGroupRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DeleteFaceGroupRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
long DeleteFaceGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteFaceGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,43 +20,43 @@ using AlibabaCloud::Ivision::Model::DeleteStreamPredictRequest;
|
||||
|
||||
DeleteStreamPredictRequest::DeleteStreamPredictRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DeleteStreamPredict")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteStreamPredictRequest::~DeleteStreamPredictRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setPredictId(const std::string& predictId)
|
||||
{
|
||||
predictId_ = predictId;
|
||||
setCoreParameter("PredictId", predictId);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DeleteStreamPredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setPredictId(const std::string& predictId)
|
||||
{
|
||||
predictId_ = predictId;
|
||||
setCoreParameter("PredictId", predictId);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DeleteStreamPredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,65 +20,65 @@ using AlibabaCloud::Ivision::Model::DescribeFaceGroupsRequest;
|
||||
|
||||
DescribeFaceGroupsRequest::DescribeFaceGroupsRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DescribeFaceGroups")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeFaceGroupsRequest::~DescribeFaceGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeFaceGroupsRequest::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
void DescribeFaceGroupsRequest::setNextPageToken(const std::string& nextPageToken)
|
||||
{
|
||||
nextPageToken_ = nextPageToken;
|
||||
setCoreParameter("NextPageToken", nextPageToken);
|
||||
}
|
||||
|
||||
long DescribeFaceGroupsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeFaceGroupsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeFaceGroupsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeFaceGroupsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeFaceGroupsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeFaceGroupsRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeFaceGroupsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeFaceGroupsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeFaceGroupsRequest::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
void DescribeFaceGroupsRequest::setNextPageToken(const std::string& nextPageToken)
|
||||
{
|
||||
nextPageToken_ = nextPageToken;
|
||||
setCoreParameter("NextPageToken", nextPageToken);
|
||||
}
|
||||
|
||||
long DescribeFaceGroupsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeFaceGroupsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeFaceGroupsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeFaceGroupsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeFaceGroupsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeFaceGroupsRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeFaceGroupsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeFaceGroupsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,120 +20,120 @@ using AlibabaCloud::Ivision::Model::DescribeStreamPredictResultRequest;
|
||||
|
||||
DescribeStreamPredictResultRequest::DescribeStreamPredictResultRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DescribeStreamPredictResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeStreamPredictResultRequest::~DescribeStreamPredictResultRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setNextPageToken(const std::string& nextPageToken)
|
||||
{
|
||||
nextPageToken_ = nextPageToken;
|
||||
setCoreParameter("NextPageToken", nextPageToken);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setPredictId(const std::string& predictId)
|
||||
{
|
||||
predictId_ = predictId;
|
||||
setCoreParameter("PredictId", predictId);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getProbabilityThreshold()const
|
||||
{
|
||||
return probabilityThreshold_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setProbabilityThreshold(const std::string& probabilityThreshold)
|
||||
{
|
||||
probabilityThreshold_ = probabilityThreshold;
|
||||
setCoreParameter("ProbabilityThreshold", probabilityThreshold);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getModelId()const
|
||||
{
|
||||
return modelId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setModelId(const std::string& modelId)
|
||||
{
|
||||
modelId_ = modelId;
|
||||
setCoreParameter("ModelId", modelId);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setNextPageToken(const std::string& nextPageToken)
|
||||
{
|
||||
nextPageToken_ = nextPageToken;
|
||||
setCoreParameter("NextPageToken", nextPageToken);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setPredictId(const std::string& predictId)
|
||||
{
|
||||
predictId_ = predictId;
|
||||
setCoreParameter("PredictId", predictId);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getProbabilityThreshold()const
|
||||
{
|
||||
return probabilityThreshold_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setProbabilityThreshold(const std::string& probabilityThreshold)
|
||||
{
|
||||
probabilityThreshold_ = probabilityThreshold;
|
||||
setCoreParameter("ProbabilityThreshold", probabilityThreshold);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getModelId()const
|
||||
{
|
||||
return modelId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setModelId(const std::string& modelId)
|
||||
{
|
||||
modelId_ = modelId;
|
||||
setCoreParameter("ModelId", modelId);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,76 +20,76 @@ using AlibabaCloud::Ivision::Model::DescribeStreamPredictsRequest;
|
||||
|
||||
DescribeStreamPredictsRequest::DescribeStreamPredictsRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DescribeStreamPredicts")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeStreamPredictsRequest::~DescribeStreamPredictsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setNextPageToken(const std::string& nextPageToken)
|
||||
{
|
||||
nextPageToken_ = nextPageToken;
|
||||
setCoreParameter("NextPageToken", nextPageToken);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getPredictIds()const
|
||||
{
|
||||
return predictIds_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setPredictIds(const std::string& predictIds)
|
||||
{
|
||||
predictIds_ = predictIds;
|
||||
setCoreParameter("PredictIds", predictIds);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setNextPageToken(const std::string& nextPageToken)
|
||||
{
|
||||
nextPageToken_ = nextPageToken;
|
||||
setCoreParameter("NextPageToken", nextPageToken);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getPredictIds()const
|
||||
{
|
||||
return predictIds_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setPredictIds(const std::string& predictIds)
|
||||
{
|
||||
predictIds_ = predictIds;
|
||||
setCoreParameter("PredictIds", predictIds);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,54 +20,54 @@ using AlibabaCloud::Ivision::Model::ImagePredictRequest;
|
||||
|
||||
ImagePredictRequest::ImagePredictRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "ImagePredict")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ImagePredictRequest::~ImagePredictRequest()
|
||||
{}
|
||||
|
||||
std::string ImagePredictRequest::getDataUrl()const
|
||||
{
|
||||
return dataUrl_;
|
||||
}
|
||||
|
||||
void ImagePredictRequest::setDataUrl(const std::string& dataUrl)
|
||||
{
|
||||
dataUrl_ = dataUrl;
|
||||
setCoreParameter("DataUrl", dataUrl);
|
||||
}
|
||||
|
||||
std::string ImagePredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void ImagePredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string ImagePredictRequest::getModelId()const
|
||||
{
|
||||
return modelId_;
|
||||
}
|
||||
|
||||
void ImagePredictRequest::setModelId(const std::string& modelId)
|
||||
{
|
||||
modelId_ = modelId;
|
||||
setCoreParameter("ModelId", modelId);
|
||||
}
|
||||
|
||||
long ImagePredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ImagePredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ImagePredictRequest::getDataUrl()const
|
||||
{
|
||||
return dataUrl_;
|
||||
}
|
||||
|
||||
void ImagePredictRequest::setDataUrl(const std::string& dataUrl)
|
||||
{
|
||||
dataUrl_ = dataUrl;
|
||||
setCoreParameter("DataUrl", dataUrl);
|
||||
}
|
||||
|
||||
std::string ImagePredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void ImagePredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string ImagePredictRequest::getModelId()const
|
||||
{
|
||||
return modelId_;
|
||||
}
|
||||
|
||||
void ImagePredictRequest::setModelId(const std::string& modelId)
|
||||
{
|
||||
modelId_ = modelId;
|
||||
setCoreParameter("ModelId", modelId);
|
||||
}
|
||||
|
||||
long ImagePredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ImagePredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,65 +20,65 @@ using AlibabaCloud::Ivision::Model::RegisterFaceRequest;
|
||||
|
||||
RegisterFaceRequest::RegisterFaceRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "RegisterFace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
RegisterFaceRequest::~RegisterFaceRequest()
|
||||
{}
|
||||
|
||||
std::string RegisterFaceRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void RegisterFaceRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string RegisterFaceRequest::getDataType()const
|
||||
{
|
||||
return dataType_;
|
||||
}
|
||||
|
||||
void RegisterFaceRequest::setDataType(const std::string& dataType)
|
||||
{
|
||||
dataType_ = dataType;
|
||||
setCoreParameter("DataType", dataType);
|
||||
}
|
||||
|
||||
std::string RegisterFaceRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void RegisterFaceRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string RegisterFaceRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void RegisterFaceRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
long RegisterFaceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RegisterFaceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string RegisterFaceRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void RegisterFaceRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string RegisterFaceRequest::getDataType()const
|
||||
{
|
||||
return dataType_;
|
||||
}
|
||||
|
||||
void RegisterFaceRequest::setDataType(const std::string& dataType)
|
||||
{
|
||||
dataType_ = dataType;
|
||||
setCoreParameter("DataType", dataType);
|
||||
}
|
||||
|
||||
std::string RegisterFaceRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void RegisterFaceRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string RegisterFaceRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void RegisterFaceRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
long RegisterFaceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RegisterFaceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,87 +20,87 @@ using AlibabaCloud::Ivision::Model::SearchFaceRequest;
|
||||
|
||||
SearchFaceRequest::SearchFaceRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "SearchFace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
SearchFaceRequest::~SearchFaceRequest()
|
||||
{}
|
||||
|
||||
std::string SearchFaceRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string SearchFaceRequest::getDataType()const
|
||||
{
|
||||
return dataType_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setDataType(const std::string& dataType)
|
||||
{
|
||||
dataType_ = dataType;
|
||||
setCoreParameter("DataType", dataType);
|
||||
}
|
||||
|
||||
float SearchFaceRequest::getProbabilityThreshold()const
|
||||
{
|
||||
return probabilityThreshold_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setProbabilityThreshold(float probabilityThreshold)
|
||||
{
|
||||
probabilityThreshold_ = probabilityThreshold;
|
||||
setCoreParameter("ProbabilityThreshold", std::to_string(probabilityThreshold));
|
||||
}
|
||||
|
||||
std::string SearchFaceRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string SearchFaceRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
int SearchFaceRequest::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setCount(int count)
|
||||
{
|
||||
count_ = count;
|
||||
setCoreParameter("Count", std::to_string(count));
|
||||
}
|
||||
|
||||
long SearchFaceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SearchFaceRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string SearchFaceRequest::getDataType()const
|
||||
{
|
||||
return dataType_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setDataType(const std::string& dataType)
|
||||
{
|
||||
dataType_ = dataType;
|
||||
setCoreParameter("DataType", dataType);
|
||||
}
|
||||
|
||||
float SearchFaceRequest::getProbabilityThreshold()const
|
||||
{
|
||||
return probabilityThreshold_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setProbabilityThreshold(float probabilityThreshold)
|
||||
{
|
||||
probabilityThreshold_ = probabilityThreshold;
|
||||
setCoreParameter("ProbabilityThreshold", std::to_string(probabilityThreshold));
|
||||
}
|
||||
|
||||
std::string SearchFaceRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string SearchFaceRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
int SearchFaceRequest::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setCount(int count)
|
||||
{
|
||||
count_ = count;
|
||||
setCoreParameter("Count", std::to_string(count));
|
||||
}
|
||||
|
||||
long SearchFaceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SearchFaceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,43 +20,43 @@ using AlibabaCloud::Ivision::Model::StartStreamPredictRequest;
|
||||
|
||||
StartStreamPredictRequest::StartStreamPredictRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "StartStreamPredict")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartStreamPredictRequest::~StartStreamPredictRequest()
|
||||
{}
|
||||
|
||||
std::string StartStreamPredictRequest::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setPredictId(const std::string& predictId)
|
||||
{
|
||||
predictId_ = predictId;
|
||||
setCoreParameter("PredictId", predictId);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long StartStreamPredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setPredictId(const std::string& predictId)
|
||||
{
|
||||
predictId_ = predictId;
|
||||
setCoreParameter("PredictId", predictId);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long StartStreamPredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,43 +20,43 @@ using AlibabaCloud::Ivision::Model::StopStreamPredictRequest;
|
||||
|
||||
StopStreamPredictRequest::StopStreamPredictRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "StopStreamPredict")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopStreamPredictRequest::~StopStreamPredictRequest()
|
||||
{}
|
||||
|
||||
std::string StopStreamPredictRequest::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setPredictId(const std::string& predictId)
|
||||
{
|
||||
predictId_ = predictId;
|
||||
setCoreParameter("PredictId", predictId);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long StopStreamPredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setPredictId(const std::string& predictId)
|
||||
{
|
||||
predictId_ = predictId;
|
||||
setCoreParameter("PredictId", predictId);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long StopStreamPredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,54 +20,54 @@ using AlibabaCloud::Ivision::Model::UnregisterFaceRequest;
|
||||
|
||||
UnregisterFaceRequest::UnregisterFaceRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "UnregisterFace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
UnregisterFaceRequest::~UnregisterFaceRequest()
|
||||
{}
|
||||
|
||||
std::string UnregisterFaceRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void UnregisterFaceRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string UnregisterFaceRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void UnregisterFaceRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
long UnregisterFaceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UnregisterFaceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UnregisterFaceRequest::getFaceToken()const
|
||||
{
|
||||
return faceToken_;
|
||||
}
|
||||
|
||||
void UnregisterFaceRequest::setFaceToken(const std::string& faceToken)
|
||||
{
|
||||
faceToken_ = faceToken;
|
||||
setCoreParameter("FaceToken", faceToken);
|
||||
}
|
||||
|
||||
std::string UnregisterFaceRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void UnregisterFaceRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string UnregisterFaceRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void UnregisterFaceRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
long UnregisterFaceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UnregisterFaceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UnregisterFaceRequest::getFaceToken()const
|
||||
{
|
||||
return faceToken_;
|
||||
}
|
||||
|
||||
void UnregisterFaceRequest::setFaceToken(const std::string& faceToken)
|
||||
{
|
||||
faceToken_ = faceToken;
|
||||
setCoreParameter("FaceToken", faceToken);
|
||||
}
|
||||
|
||||
|
||||
106
ivision/src/model/VideoPredictRequest.cc
Normal file
106
ivision/src/model/VideoPredictRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/ivision/model/VideoPredictRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::VideoPredictRequest;
|
||||
|
||||
VideoPredictRequest::VideoPredictRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "VideoPredict")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
VideoPredictRequest::~VideoPredictRequest()
|
||||
{}
|
||||
|
||||
std::string VideoPredictRequest::getDataUrl()const
|
||||
{
|
||||
return dataUrl_;
|
||||
}
|
||||
|
||||
void VideoPredictRequest::setDataUrl(const std::string& dataUrl)
|
||||
{
|
||||
dataUrl_ = dataUrl;
|
||||
setCoreParameter("DataUrl", dataUrl);
|
||||
}
|
||||
|
||||
std::string VideoPredictRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void VideoPredictRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string VideoPredictRequest::getNotify()const
|
||||
{
|
||||
return notify_;
|
||||
}
|
||||
|
||||
void VideoPredictRequest::setNotify(const std::string& notify)
|
||||
{
|
||||
notify_ = notify;
|
||||
setCoreParameter("Notify", notify);
|
||||
}
|
||||
|
||||
std::string VideoPredictRequest::getOutput()const
|
||||
{
|
||||
return output_;
|
||||
}
|
||||
|
||||
void VideoPredictRequest::setOutput(const std::string& output)
|
||||
{
|
||||
output_ = output;
|
||||
setCoreParameter("Output", output);
|
||||
}
|
||||
|
||||
std::string VideoPredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void VideoPredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setCoreParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string VideoPredictRequest::getModels()const
|
||||
{
|
||||
return models_;
|
||||
}
|
||||
|
||||
void VideoPredictRequest::setModels(const std::string& models)
|
||||
{
|
||||
models_ = models;
|
||||
setCoreParameter("Models", models);
|
||||
}
|
||||
|
||||
long VideoPredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void VideoPredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user