Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bba9532ea7 | ||
|
|
c9f3f1182e | ||
|
|
63f8b47b8d | ||
|
|
e3c9867b49 | ||
|
|
cef7d9d526 | ||
|
|
501fec720e | ||
|
|
031a93374f | ||
|
|
8fe6dfd981 | ||
|
|
0dc8a66e75 | ||
|
|
dcd246f4ed | ||
|
|
82ba7e55bb | ||
|
|
009add7f30 | ||
|
|
032fbad258 | ||
|
|
e5ca2d25d5 | ||
|
|
0a74578464 | ||
|
|
a744629799 |
53
CHANGELOG
53
CHANGELOG
@@ -1,3 +1,56 @@
|
||||
2019-10-22 Version 1.36.154
|
||||
- RunInstances support AutoSnapshotPolicyId.
|
||||
|
||||
2019-10-22 Version 1.36.153
|
||||
- Supported ExternalId IMM.
|
||||
|
||||
2019-10-21 Version 1.36.152
|
||||
- Release first version.
|
||||
|
||||
2019-10-18 Version 1.36.151
|
||||
- Generated 2019-09-10 for `DnsKnocker`.
|
||||
|
||||
2019-10-16 Version 1.36.150
|
||||
- Add ListTagResources OpenApi.
|
||||
- Add TagResources OpenApi.
|
||||
- Add UntagResources OpenApi.
|
||||
- Add ModifyDBInstanceAutoUpgradeMinorVersion OpenApi.
|
||||
|
||||
2019-10-14 Version 1.36.149
|
||||
- Support continuous pushing.
|
||||
|
||||
2019-10-09 Version 1.36.148
|
||||
- Add VideoCancelScan Api.
|
||||
|
||||
2019-10-09 Version 1.36.147
|
||||
- Support API RecognizeImageColor.
|
||||
- Support API DetectImageElements.
|
||||
- Support API RecolorImage.
|
||||
- Support API SegmentImage.
|
||||
- Support API ChangeImageSize.
|
||||
- Support API ExtendImageStyle.
|
||||
- Support API RecognizeImageStyle.
|
||||
- Support API MakeSuperResolution.
|
||||
|
||||
2019-10-08 Version 1.36.146
|
||||
- Supported Grab Frame IMM.
|
||||
|
||||
2019-10-08 Version 1.36.145
|
||||
- Supported API MassPush for Push Message or Notice.
|
||||
|
||||
2019-10-08 Version 1.36.144
|
||||
- Generated 2016-01-20 for `Kms`.
|
||||
|
||||
2019-09-26 Version 1.36.143
|
||||
- Supported RingConfig for BindAxb,BindAxn,BindAxg,BindAxnExtension.
|
||||
- Add QuerySubsId.
|
||||
|
||||
2019-09-23 Version 1.36.142
|
||||
- Add param, DescribePrice supprot ReservedInstance.
|
||||
|
||||
2019-09-19 Version 1.36.141
|
||||
- Supported Video Abstract for IMM.
|
||||
|
||||
2019-09-19 Version 1.36.140
|
||||
- Generated 2018-01-20 for `Iot`.
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ class ALIBABACLOUD_CORE_EXPORT RoaServiceRequest : public ServiceRequest {
|
||||
using ServiceRequest::setContent;
|
||||
using ServiceRequest::parameter;
|
||||
using ServiceRequest::setScheme;
|
||||
using ServiceRequest::setResourcePath;
|
||||
};
|
||||
} // namespace AlibabaCloud
|
||||
#endif // CORE_INCLUDE_ALIBABACLOUD_CORE_ROASERVICEREQUEST_H_
|
||||
|
||||
122
dnsknocker/CMakeLists.txt
Normal file
122
dnsknocker/CMakeLists.txt
Normal file
@@ -0,0 +1,122 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT 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}
|
||||
)
|
||||
126
dnsknocker/include/alibabacloud/dnsknocker/DnsKnockerClient.h
Normal file
126
dnsknocker/include/alibabacloud/dnsknocker/DnsKnockerClient.h
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_
|
||||
@@ -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_DNSKNOCKER_DNSKNOCKEREXPORT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_DNSKNOCKEREXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_DNSKNOCKER_LIBRARY)
|
||||
# define ALIBABACLOUD_DNSKNOCKER_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_DNSKNOCKER_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_DNSKNOCKER_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_DNSKNOCKEREXPORT_H_
|
||||
@@ -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_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_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHCREATERRRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHCREATERRRESULT_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 BatchCreateRrResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
BatchCreateRrResult();
|
||||
explicit BatchCreateRrResult(const std::string &payload);
|
||||
~BatchCreateRrResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
bool success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHCREATERRRESULT_H_
|
||||
@@ -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_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_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHDELETERRRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHDELETERRRESULT_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 BatchDeleteRrResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
BatchDeleteRrResult();
|
||||
explicit BatchDeleteRrResult(const std::string &payload);
|
||||
~BatchDeleteRrResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
bool success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHDELETERRRESULT_H_
|
||||
@@ -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_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_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -14,48 +14,44 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_CREATEFACESETRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATEFACESETRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateFaceSetResult : public ServiceResult
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT ChangeResourceRecordsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateFaceSetResult();
|
||||
explicit CreateFaceSetResult(const std::string &payload);
|
||||
~CreateFaceSetResult();
|
||||
std::string getStatus()const;
|
||||
long getPhotos()const;
|
||||
std::string getModifyTime()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getSetId()const;
|
||||
long getFaces()const;
|
||||
ChangeResourceRecordsResult();
|
||||
explicit ChangeResourceRecordsResult(const std::string &payload);
|
||||
~ChangeResourceRecordsResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
long photos_;
|
||||
std::string modifyTime_;
|
||||
std::string createTime_;
|
||||
std::string setId_;
|
||||
long faces_;
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
bool success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEFACESETRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDSRESULT_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -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_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_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_DELETEDOMAINRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_DELETEDOMAINRESULT_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 DeleteDomainResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteDomainResult();
|
||||
explicit DeleteDomainResult(const std::string &payload);
|
||||
~DeleteDomainResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
bool success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_DELETEDOMAINRESULT_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -14,49 +14,52 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_
|
||||
#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/imm/ImmExport.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupsResult : public ServiceResult
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT GetDomainResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct GroupsItem
|
||||
struct Data
|
||||
{
|
||||
std::string groupName;
|
||||
std::string status;
|
||||
std::string modifyTime;
|
||||
std::string createTime;
|
||||
std::string count;
|
||||
std::string groupId;
|
||||
std::string message;
|
||||
std::string domainName;
|
||||
std::string exists;
|
||||
};
|
||||
|
||||
|
||||
ListFaceSearchGroupsResult();
|
||||
explicit ListFaceSearchGroupsResult(const std::string &payload);
|
||||
~ListFaceSearchGroupsResult();
|
||||
std::vector<GroupsItem> getGroups()const;
|
||||
std::string getNextMarker()const;
|
||||
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<GroupsItem> groups_;
|
||||
std::string nextMarker_;
|
||||
std::vector<Data> domain_;
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
std::string success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_GETDOMAINRESULT_H_
|
||||
@@ -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_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_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
413
dnsknocker/src/DnsKnockerClient.cc
Normal file
413
dnsknocker/src/DnsKnockerClient.cc
Normal file
@@ -0,0 +1,413 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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();
|
||||
}
|
||||
|
||||
104
dnsknocker/src/model/BatchCreateRrRequest.cc
Normal file
104
dnsknocker/src/model/BatchCreateRrRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/BatchCreateRrResult.cc
Normal file
72
dnsknocker/src/model/BatchCreateRrResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
104
dnsknocker/src/model/BatchDeleteRrRequest.cc
Normal file
104
dnsknocker/src/model/BatchDeleteRrRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/BatchDeleteRrResult.cc
Normal file
72
dnsknocker/src/model/BatchDeleteRrResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
104
dnsknocker/src/model/ChangeResourceRecordRequest.cc
Normal file
104
dnsknocker/src/model/ChangeResourceRecordRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/ChangeResourceRecordResult.cc
Normal file
72
dnsknocker/src/model/ChangeResourceRecordResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
126
dnsknocker/src/model/ChangeResourceRecordsRequest.cc
Normal file
126
dnsknocker/src/model/ChangeResourceRecordsRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/ChangeResourceRecordsResult.cc
Normal file
72
dnsknocker/src/model/ChangeResourceRecordsResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
137
dnsknocker/src/model/CreateResourceRecordRequest.cc
Normal file
137
dnsknocker/src/model/CreateResourceRecordRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/CreateResourceRecordResult.cc
Normal file
72
dnsknocker/src/model/CreateResourceRecordResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
104
dnsknocker/src/model/DeleteDomainRequest.cc
Normal file
104
dnsknocker/src/model/DeleteDomainRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/DeleteDomainResult.cc
Normal file
72
dnsknocker/src/model/DeleteDomainResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/DeleteDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
DeleteDomainResult::DeleteDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDomainResult::DeleteDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDomainResult::~DeleteDomainResult()
|
||||
{}
|
||||
|
||||
void DeleteDomainResult::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 DeleteDomainResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteDomainResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
bool DeleteDomainResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DeleteDomainResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
137
dnsknocker/src/model/DeleteResourceRecordRequest.cc
Normal file
137
dnsknocker/src/model/DeleteResourceRecordRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/DeleteResourceRecordResult.cc
Normal file
72
dnsknocker/src/model/DeleteResourceRecordResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
115
dnsknocker/src/model/DeleteResourceRecordsRequest.cc
Normal file
115
dnsknocker/src/model/DeleteResourceRecordsRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/DeleteResourceRecordsResult.cc
Normal file
72
dnsknocker/src/model/DeleteResourceRecordsResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
82
dnsknocker/src/model/GetDomainRequest.cc
Normal file
82
dnsknocker/src/model/GetDomainRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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);
|
||||
}
|
||||
|
||||
89
dnsknocker/src/model/GetDomainResult.cc
Normal file
89
dnsknocker/src/model/GetDomainResult.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/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_;
|
||||
}
|
||||
|
||||
104
dnsknocker/src/model/GetResourceRecordsRequest.cc
Normal file
104
dnsknocker/src/model/GetResourceRecordsRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
73
dnsknocker/src/model/GetResourceRecordsResult.cc
Normal file
73
dnsknocker/src/model/GetResourceRecordsResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
142
dyplsapi/CMakeLists.txt
Normal file
142
dyplsapi/CMakeLists.txt
Normal file
@@ -0,0 +1,142 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(dyplsapi_public_header
|
||||
include/alibabacloud/dyplsapi/DyplsapiClient.h
|
||||
include/alibabacloud/dyplsapi/DyplsapiExport.h )
|
||||
|
||||
set(dyplsapi_public_header_model
|
||||
include/alibabacloud/dyplsapi/model/BindAxbRequest.h
|
||||
include/alibabacloud/dyplsapi/model/BindAxbResult.h
|
||||
include/alibabacloud/dyplsapi/model/BindAxgRequest.h
|
||||
include/alibabacloud/dyplsapi/model/BindAxgResult.h
|
||||
include/alibabacloud/dyplsapi/model/BindAxnRequest.h
|
||||
include/alibabacloud/dyplsapi/model/BindAxnResult.h
|
||||
include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h
|
||||
include/alibabacloud/dyplsapi/model/BindAxnExtensionResult.h
|
||||
include/alibabacloud/dyplsapi/model/BuySecretNoRequest.h
|
||||
include/alibabacloud/dyplsapi/model/BuySecretNoResult.h
|
||||
include/alibabacloud/dyplsapi/model/CreateAxgGroupRequest.h
|
||||
include/alibabacloud/dyplsapi/model/CreateAxgGroupResult.h
|
||||
include/alibabacloud/dyplsapi/model/OperateAxgGroupRequest.h
|
||||
include/alibabacloud/dyplsapi/model/OperateAxgGroupResult.h
|
||||
include/alibabacloud/dyplsapi/model/QueryCallStatusRequest.h
|
||||
include/alibabacloud/dyplsapi/model/QueryCallStatusResult.h
|
||||
include/alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlRequest.h
|
||||
include/alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlResult.h
|
||||
include/alibabacloud/dyplsapi/model/QuerySecretNoRemainRequest.h
|
||||
include/alibabacloud/dyplsapi/model/QuerySecretNoRemainResult.h
|
||||
include/alibabacloud/dyplsapi/model/QuerySubsIdRequest.h
|
||||
include/alibabacloud/dyplsapi/model/QuerySubsIdResult.h
|
||||
include/alibabacloud/dyplsapi/model/QuerySubscriptionDetailRequest.h
|
||||
include/alibabacloud/dyplsapi/model/QuerySubscriptionDetailResult.h
|
||||
include/alibabacloud/dyplsapi/model/ReleaseSecretNoRequest.h
|
||||
include/alibabacloud/dyplsapi/model/ReleaseSecretNoResult.h
|
||||
include/alibabacloud/dyplsapi/model/UnbindSubscriptionRequest.h
|
||||
include/alibabacloud/dyplsapi/model/UnbindSubscriptionResult.h
|
||||
include/alibabacloud/dyplsapi/model/UpdateSubscriptionRequest.h
|
||||
include/alibabacloud/dyplsapi/model/UpdateSubscriptionResult.h )
|
||||
|
||||
set(dyplsapi_src
|
||||
src/DyplsapiClient.cc
|
||||
src/model/BindAxbRequest.cc
|
||||
src/model/BindAxbResult.cc
|
||||
src/model/BindAxgRequest.cc
|
||||
src/model/BindAxgResult.cc
|
||||
src/model/BindAxnRequest.cc
|
||||
src/model/BindAxnResult.cc
|
||||
src/model/BindAxnExtensionRequest.cc
|
||||
src/model/BindAxnExtensionResult.cc
|
||||
src/model/BuySecretNoRequest.cc
|
||||
src/model/BuySecretNoResult.cc
|
||||
src/model/CreateAxgGroupRequest.cc
|
||||
src/model/CreateAxgGroupResult.cc
|
||||
src/model/OperateAxgGroupRequest.cc
|
||||
src/model/OperateAxgGroupResult.cc
|
||||
src/model/QueryCallStatusRequest.cc
|
||||
src/model/QueryCallStatusResult.cc
|
||||
src/model/QueryRecordFileDownloadUrlRequest.cc
|
||||
src/model/QueryRecordFileDownloadUrlResult.cc
|
||||
src/model/QuerySecretNoRemainRequest.cc
|
||||
src/model/QuerySecretNoRemainResult.cc
|
||||
src/model/QuerySubsIdRequest.cc
|
||||
src/model/QuerySubsIdResult.cc
|
||||
src/model/QuerySubscriptionDetailRequest.cc
|
||||
src/model/QuerySubscriptionDetailResult.cc
|
||||
src/model/ReleaseSecretNoRequest.cc
|
||||
src/model/ReleaseSecretNoResult.cc
|
||||
src/model/UnbindSubscriptionRequest.cc
|
||||
src/model/UnbindSubscriptionResult.cc
|
||||
src/model/UpdateSubscriptionRequest.cc
|
||||
src/model/UpdateSubscriptionResult.cc )
|
||||
|
||||
add_library(dyplsapi ${LIB_TYPE}
|
||||
${dyplsapi_public_header}
|
||||
${dyplsapi_public_header_model}
|
||||
${dyplsapi_src})
|
||||
|
||||
set_target_properties(dyplsapi
|
||||
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}dyplsapi
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(dyplsapi
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_DYPLSAPI_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(dyplsapi
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(dyplsapi
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(dyplsapi
|
||||
jsoncpp)
|
||||
target_include_directories(dyplsapi
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(dyplsapi
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(dyplsapi
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(dyplsapi
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(dyplsapi
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${dyplsapi_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dyplsapi)
|
||||
install(FILES ${dyplsapi_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dyplsapi/model)
|
||||
install(TARGETS dyplsapi
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
166
dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h
Normal file
166
dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h
Normal file
@@ -0,0 +1,166 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_DYPLSAPI_DYPLSAPICLIENT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_DYPLSAPICLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "DyplsapiExport.h"
|
||||
#include "model/BindAxbRequest.h"
|
||||
#include "model/BindAxbResult.h"
|
||||
#include "model/BindAxgRequest.h"
|
||||
#include "model/BindAxgResult.h"
|
||||
#include "model/BindAxnRequest.h"
|
||||
#include "model/BindAxnResult.h"
|
||||
#include "model/BindAxnExtensionRequest.h"
|
||||
#include "model/BindAxnExtensionResult.h"
|
||||
#include "model/BuySecretNoRequest.h"
|
||||
#include "model/BuySecretNoResult.h"
|
||||
#include "model/CreateAxgGroupRequest.h"
|
||||
#include "model/CreateAxgGroupResult.h"
|
||||
#include "model/OperateAxgGroupRequest.h"
|
||||
#include "model/OperateAxgGroupResult.h"
|
||||
#include "model/QueryCallStatusRequest.h"
|
||||
#include "model/QueryCallStatusResult.h"
|
||||
#include "model/QueryRecordFileDownloadUrlRequest.h"
|
||||
#include "model/QueryRecordFileDownloadUrlResult.h"
|
||||
#include "model/QuerySecretNoRemainRequest.h"
|
||||
#include "model/QuerySecretNoRemainResult.h"
|
||||
#include "model/QuerySubsIdRequest.h"
|
||||
#include "model/QuerySubsIdResult.h"
|
||||
#include "model/QuerySubscriptionDetailRequest.h"
|
||||
#include "model/QuerySubscriptionDetailResult.h"
|
||||
#include "model/ReleaseSecretNoRequest.h"
|
||||
#include "model/ReleaseSecretNoResult.h"
|
||||
#include "model/UnbindSubscriptionRequest.h"
|
||||
#include "model/UnbindSubscriptionResult.h"
|
||||
#include "model/UpdateSubscriptionRequest.h"
|
||||
#include "model/UpdateSubscriptionResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT DyplsapiClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::BindAxbResult> BindAxbOutcome;
|
||||
typedef std::future<BindAxbOutcome> BindAxbOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::BindAxbRequest&, const BindAxbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindAxbAsyncHandler;
|
||||
typedef Outcome<Error, Model::BindAxgResult> BindAxgOutcome;
|
||||
typedef std::future<BindAxgOutcome> BindAxgOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::BindAxgRequest&, const BindAxgOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindAxgAsyncHandler;
|
||||
typedef Outcome<Error, Model::BindAxnResult> BindAxnOutcome;
|
||||
typedef std::future<BindAxnOutcome> BindAxnOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::BindAxnRequest&, const BindAxnOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindAxnAsyncHandler;
|
||||
typedef Outcome<Error, Model::BindAxnExtensionResult> BindAxnExtensionOutcome;
|
||||
typedef std::future<BindAxnExtensionOutcome> BindAxnExtensionOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::BindAxnExtensionRequest&, const BindAxnExtensionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindAxnExtensionAsyncHandler;
|
||||
typedef Outcome<Error, Model::BuySecretNoResult> BuySecretNoOutcome;
|
||||
typedef std::future<BuySecretNoOutcome> BuySecretNoOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::BuySecretNoRequest&, const BuySecretNoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BuySecretNoAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAxgGroupResult> CreateAxgGroupOutcome;
|
||||
typedef std::future<CreateAxgGroupOutcome> CreateAxgGroupOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::CreateAxgGroupRequest&, const CreateAxgGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAxgGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::OperateAxgGroupResult> OperateAxgGroupOutcome;
|
||||
typedef std::future<OperateAxgGroupOutcome> OperateAxgGroupOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::OperateAxgGroupRequest&, const OperateAxgGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateAxgGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryCallStatusResult> QueryCallStatusOutcome;
|
||||
typedef std::future<QueryCallStatusOutcome> QueryCallStatusOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::QueryCallStatusRequest&, const QueryCallStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCallStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryRecordFileDownloadUrlResult> QueryRecordFileDownloadUrlOutcome;
|
||||
typedef std::future<QueryRecordFileDownloadUrlOutcome> QueryRecordFileDownloadUrlOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::QueryRecordFileDownloadUrlRequest&, const QueryRecordFileDownloadUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryRecordFileDownloadUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::QuerySecretNoRemainResult> QuerySecretNoRemainOutcome;
|
||||
typedef std::future<QuerySecretNoRemainOutcome> QuerySecretNoRemainOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::QuerySecretNoRemainRequest&, const QuerySecretNoRemainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySecretNoRemainAsyncHandler;
|
||||
typedef Outcome<Error, Model::QuerySubsIdResult> QuerySubsIdOutcome;
|
||||
typedef std::future<QuerySubsIdOutcome> QuerySubsIdOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::QuerySubsIdRequest&, const QuerySubsIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySubsIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::QuerySubscriptionDetailResult> QuerySubscriptionDetailOutcome;
|
||||
typedef std::future<QuerySubscriptionDetailOutcome> QuerySubscriptionDetailOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::QuerySubscriptionDetailRequest&, const QuerySubscriptionDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySubscriptionDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReleaseSecretNoResult> ReleaseSecretNoOutcome;
|
||||
typedef std::future<ReleaseSecretNoOutcome> ReleaseSecretNoOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::ReleaseSecretNoRequest&, const ReleaseSecretNoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseSecretNoAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnbindSubscriptionResult> UnbindSubscriptionOutcome;
|
||||
typedef std::future<UnbindSubscriptionOutcome> UnbindSubscriptionOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::UnbindSubscriptionRequest&, const UnbindSubscriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindSubscriptionAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateSubscriptionResult> UpdateSubscriptionOutcome;
|
||||
typedef std::future<UpdateSubscriptionOutcome> UpdateSubscriptionOutcomeCallable;
|
||||
typedef std::function<void(const DyplsapiClient*, const Model::UpdateSubscriptionRequest&, const UpdateSubscriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSubscriptionAsyncHandler;
|
||||
|
||||
DyplsapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
DyplsapiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
DyplsapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~DyplsapiClient();
|
||||
BindAxbOutcome bindAxb(const Model::BindAxbRequest &request)const;
|
||||
void bindAxbAsync(const Model::BindAxbRequest& request, const BindAxbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BindAxbOutcomeCallable bindAxbCallable(const Model::BindAxbRequest& request) const;
|
||||
BindAxgOutcome bindAxg(const Model::BindAxgRequest &request)const;
|
||||
void bindAxgAsync(const Model::BindAxgRequest& request, const BindAxgAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BindAxgOutcomeCallable bindAxgCallable(const Model::BindAxgRequest& request) const;
|
||||
BindAxnOutcome bindAxn(const Model::BindAxnRequest &request)const;
|
||||
void bindAxnAsync(const Model::BindAxnRequest& request, const BindAxnAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BindAxnOutcomeCallable bindAxnCallable(const Model::BindAxnRequest& request) const;
|
||||
BindAxnExtensionOutcome bindAxnExtension(const Model::BindAxnExtensionRequest &request)const;
|
||||
void bindAxnExtensionAsync(const Model::BindAxnExtensionRequest& request, const BindAxnExtensionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BindAxnExtensionOutcomeCallable bindAxnExtensionCallable(const Model::BindAxnExtensionRequest& request) const;
|
||||
BuySecretNoOutcome buySecretNo(const Model::BuySecretNoRequest &request)const;
|
||||
void buySecretNoAsync(const Model::BuySecretNoRequest& request, const BuySecretNoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BuySecretNoOutcomeCallable buySecretNoCallable(const Model::BuySecretNoRequest& request) const;
|
||||
CreateAxgGroupOutcome createAxgGroup(const Model::CreateAxgGroupRequest &request)const;
|
||||
void createAxgGroupAsync(const Model::CreateAxgGroupRequest& request, const CreateAxgGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAxgGroupOutcomeCallable createAxgGroupCallable(const Model::CreateAxgGroupRequest& request) const;
|
||||
OperateAxgGroupOutcome operateAxgGroup(const Model::OperateAxgGroupRequest &request)const;
|
||||
void operateAxgGroupAsync(const Model::OperateAxgGroupRequest& request, const OperateAxgGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OperateAxgGroupOutcomeCallable operateAxgGroupCallable(const Model::OperateAxgGroupRequest& request) const;
|
||||
QueryCallStatusOutcome queryCallStatus(const Model::QueryCallStatusRequest &request)const;
|
||||
void queryCallStatusAsync(const Model::QueryCallStatusRequest& request, const QueryCallStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCallStatusOutcomeCallable queryCallStatusCallable(const Model::QueryCallStatusRequest& request) const;
|
||||
QueryRecordFileDownloadUrlOutcome queryRecordFileDownloadUrl(const Model::QueryRecordFileDownloadUrlRequest &request)const;
|
||||
void queryRecordFileDownloadUrlAsync(const Model::QueryRecordFileDownloadUrlRequest& request, const QueryRecordFileDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryRecordFileDownloadUrlOutcomeCallable queryRecordFileDownloadUrlCallable(const Model::QueryRecordFileDownloadUrlRequest& request) const;
|
||||
QuerySecretNoRemainOutcome querySecretNoRemain(const Model::QuerySecretNoRemainRequest &request)const;
|
||||
void querySecretNoRemainAsync(const Model::QuerySecretNoRemainRequest& request, const QuerySecretNoRemainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QuerySecretNoRemainOutcomeCallable querySecretNoRemainCallable(const Model::QuerySecretNoRemainRequest& request) const;
|
||||
QuerySubsIdOutcome querySubsId(const Model::QuerySubsIdRequest &request)const;
|
||||
void querySubsIdAsync(const Model::QuerySubsIdRequest& request, const QuerySubsIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QuerySubsIdOutcomeCallable querySubsIdCallable(const Model::QuerySubsIdRequest& request) const;
|
||||
QuerySubscriptionDetailOutcome querySubscriptionDetail(const Model::QuerySubscriptionDetailRequest &request)const;
|
||||
void querySubscriptionDetailAsync(const Model::QuerySubscriptionDetailRequest& request, const QuerySubscriptionDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QuerySubscriptionDetailOutcomeCallable querySubscriptionDetailCallable(const Model::QuerySubscriptionDetailRequest& request) const;
|
||||
ReleaseSecretNoOutcome releaseSecretNo(const Model::ReleaseSecretNoRequest &request)const;
|
||||
void releaseSecretNoAsync(const Model::ReleaseSecretNoRequest& request, const ReleaseSecretNoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReleaseSecretNoOutcomeCallable releaseSecretNoCallable(const Model::ReleaseSecretNoRequest& request) const;
|
||||
UnbindSubscriptionOutcome unbindSubscription(const Model::UnbindSubscriptionRequest &request)const;
|
||||
void unbindSubscriptionAsync(const Model::UnbindSubscriptionRequest& request, const UnbindSubscriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnbindSubscriptionOutcomeCallable unbindSubscriptionCallable(const Model::UnbindSubscriptionRequest& request) const;
|
||||
UpdateSubscriptionOutcome updateSubscription(const Model::UpdateSubscriptionRequest &request)const;
|
||||
void updateSubscriptionAsync(const Model::UpdateSubscriptionRequest& request, const UpdateSubscriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateSubscriptionOutcomeCallable updateSubscriptionCallable(const Model::UpdateSubscriptionRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_DYPLSAPICLIENT_H_
|
||||
32
dyplsapi/include/alibabacloud/dyplsapi/DyplsapiExport.h
Normal file
32
dyplsapi/include/alibabacloud/dyplsapi/DyplsapiExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_DYPLSAPIEXPORT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_DYPLSAPIEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_DYPLSAPI_LIBRARY)
|
||||
# define ALIBABACLOUD_DYPLSAPI_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_DYPLSAPI_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_DYPLSAPI_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_DYPLSAPIEXPORT_H_
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXBREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxbRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BindAxbRequest();
|
||||
~BindAxbRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getCallDisplayType()const;
|
||||
void setCallDisplayType(int callDisplayType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getPhoneNoX()const;
|
||||
void setPhoneNoX(const std::string& phoneNoX);
|
||||
std::string getRingConfig()const;
|
||||
void setRingConfig(const std::string& ringConfig);
|
||||
std::string getPhoneNoB()const;
|
||||
void setPhoneNoB(const std::string& phoneNoB);
|
||||
std::string getPhoneNoA()const;
|
||||
void setPhoneNoA(const std::string& phoneNoA);
|
||||
std::string getExpectCity()const;
|
||||
void setExpectCity(const std::string& expectCity);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getOutOrderId()const;
|
||||
void setOutOrderId(const std::string& outOrderId);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
std::string getExpiration()const;
|
||||
void setExpiration(const std::string& expiration);
|
||||
bool getIsRecordingEnabled()const;
|
||||
void setIsRecordingEnabled(bool isRecordingEnabled);
|
||||
std::string getOutId()const;
|
||||
void setOutId(const std::string& outId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int callDisplayType_;
|
||||
std::string accessKeyId_;
|
||||
std::string phoneNoX_;
|
||||
std::string ringConfig_;
|
||||
std::string phoneNoB_;
|
||||
std::string phoneNoA_;
|
||||
std::string expectCity_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string outOrderId_;
|
||||
std::string poolKey_;
|
||||
std::string expiration_;
|
||||
bool isRecordingEnabled_;
|
||||
std::string outId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXBREQUEST_H_
|
||||
@@ -14,36 +14,48 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXBRESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT DeleteTagSetResult : public ServiceResult
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxbResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct SecretBindDTO
|
||||
{
|
||||
std::string extension;
|
||||
std::string secretNo;
|
||||
std::string subsId;
|
||||
};
|
||||
|
||||
|
||||
DeleteTagSetResult();
|
||||
explicit DeleteTagSetResult(const std::string &payload);
|
||||
~DeleteTagSetResult();
|
||||
BindAxbResult();
|
||||
explicit BindAxbResult(const std::string &payload);
|
||||
~BindAxbResult();
|
||||
SecretBindDTO getSecretBindDTO()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
SecretBindDTO secretBindDTO_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXBRESULT_H_
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXGREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxgRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BindAxgRequest();
|
||||
~BindAxgRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getCallDisplayType()const;
|
||||
void setCallDisplayType(int callDisplayType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getPhoneNoX()const;
|
||||
void setPhoneNoX(const std::string& phoneNoX);
|
||||
std::string getRingConfig()const;
|
||||
void setRingConfig(const std::string& ringConfig);
|
||||
std::string getPhoneNoB()const;
|
||||
void setPhoneNoB(const std::string& phoneNoB);
|
||||
std::string getPhoneNoA()const;
|
||||
void setPhoneNoA(const std::string& phoneNoA);
|
||||
std::string getExpectCity()const;
|
||||
void setExpectCity(const std::string& expectCity);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getOutOrderId()const;
|
||||
void setOutOrderId(const std::string& outOrderId);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
std::string getExpiration()const;
|
||||
void setExpiration(const std::string& expiration);
|
||||
bool getIsRecordingEnabled()const;
|
||||
void setIsRecordingEnabled(bool isRecordingEnabled);
|
||||
std::string getOutId()const;
|
||||
void setOutId(const std::string& outId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int callDisplayType_;
|
||||
std::string accessKeyId_;
|
||||
std::string phoneNoX_;
|
||||
std::string ringConfig_;
|
||||
std::string phoneNoB_;
|
||||
std::string phoneNoA_;
|
||||
std::string expectCity_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string groupId_;
|
||||
long ownerId_;
|
||||
std::string outOrderId_;
|
||||
std::string poolKey_;
|
||||
std::string expiration_;
|
||||
bool isRecordingEnabled_;
|
||||
std::string outId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXGREQUEST_H_
|
||||
@@ -14,46 +14,48 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_CREATETAGSETRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATETAGSETRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXGRESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateTagSetResult : public ServiceResult
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxgResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct SecretBindDTO
|
||||
{
|
||||
std::string extension;
|
||||
std::string secretNo;
|
||||
std::string subsId;
|
||||
};
|
||||
|
||||
|
||||
CreateTagSetResult();
|
||||
explicit CreateTagSetResult(const std::string &payload);
|
||||
~CreateTagSetResult();
|
||||
std::string getStatus()const;
|
||||
long getPhotos()const;
|
||||
std::string getModifyTime()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getSetId()const;
|
||||
BindAxgResult();
|
||||
explicit BindAxgResult(const std::string &payload);
|
||||
~BindAxgResult();
|
||||
SecretBindDTO getSecretBindDTO()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
long photos_;
|
||||
std::string modifyTime_;
|
||||
std::string createTime_;
|
||||
std::string setId_;
|
||||
SecretBindDTO secretBindDTO_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATETAGSETRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXGRESULT_H_
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNEXTENSIONREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNEXTENSIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxnExtensionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BindAxnExtensionRequest();
|
||||
~BindAxnExtensionRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getExtension()const;
|
||||
void setExtension(const std::string& extension);
|
||||
int getCallDisplayType()const;
|
||||
void setCallDisplayType(int callDisplayType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getPhoneNoX()const;
|
||||
void setPhoneNoX(const std::string& phoneNoX);
|
||||
std::string getRingConfig()const;
|
||||
void setRingConfig(const std::string& ringConfig);
|
||||
std::string getPhoneNoB()const;
|
||||
void setPhoneNoB(const std::string& phoneNoB);
|
||||
std::string getPhoneNoA()const;
|
||||
void setPhoneNoA(const std::string& phoneNoA);
|
||||
std::string getExpectCity()const;
|
||||
void setExpectCity(const std::string& expectCity);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getOutOrderId()const;
|
||||
void setOutOrderId(const std::string& outOrderId);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
std::string getExpiration()const;
|
||||
void setExpiration(const std::string& expiration);
|
||||
bool getIsRecordingEnabled()const;
|
||||
void setIsRecordingEnabled(bool isRecordingEnabled);
|
||||
std::string getOutId()const;
|
||||
void setOutId(const std::string& outId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string extension_;
|
||||
int callDisplayType_;
|
||||
std::string accessKeyId_;
|
||||
std::string phoneNoX_;
|
||||
std::string ringConfig_;
|
||||
std::string phoneNoB_;
|
||||
std::string phoneNoA_;
|
||||
std::string expectCity_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string outOrderId_;
|
||||
std::string poolKey_;
|
||||
std::string expiration_;
|
||||
bool isRecordingEnabled_;
|
||||
std::string outId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNEXTENSIONREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNEXTENSIONRESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNEXTENSIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxnExtensionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct SecretBindDTO
|
||||
{
|
||||
std::string extension;
|
||||
std::string secretNo;
|
||||
std::string subsId;
|
||||
};
|
||||
|
||||
|
||||
BindAxnExtensionResult();
|
||||
explicit BindAxnExtensionResult(const std::string &payload);
|
||||
~BindAxnExtensionResult();
|
||||
SecretBindDTO getSecretBindDTO()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
SecretBindDTO secretBindDTO_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNEXTENSIONRESULT_H_
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxnRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BindAxnRequest();
|
||||
~BindAxnRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getCallDisplayType()const;
|
||||
void setCallDisplayType(int callDisplayType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getPhoneNoX()const;
|
||||
void setPhoneNoX(const std::string& phoneNoX);
|
||||
std::string getRingConfig()const;
|
||||
void setRingConfig(const std::string& ringConfig);
|
||||
std::string getPhoneNoB()const;
|
||||
void setPhoneNoB(const std::string& phoneNoB);
|
||||
std::string getPhoneNoA()const;
|
||||
void setPhoneNoA(const std::string& phoneNoA);
|
||||
std::string getExpectCity()const;
|
||||
void setExpectCity(const std::string& expectCity);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getOutOrderId()const;
|
||||
void setOutOrderId(const std::string& outOrderId);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
std::string getExpiration()const;
|
||||
void setExpiration(const std::string& expiration);
|
||||
bool getIsRecordingEnabled()const;
|
||||
void setIsRecordingEnabled(bool isRecordingEnabled);
|
||||
std::string getOutId()const;
|
||||
void setOutId(const std::string& outId);
|
||||
std::string getNoType()const;
|
||||
void setNoType(const std::string& noType);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int callDisplayType_;
|
||||
std::string accessKeyId_;
|
||||
std::string phoneNoX_;
|
||||
std::string ringConfig_;
|
||||
std::string phoneNoB_;
|
||||
std::string phoneNoA_;
|
||||
std::string expectCity_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string outOrderId_;
|
||||
std::string poolKey_;
|
||||
std::string expiration_;
|
||||
bool isRecordingEnabled_;
|
||||
std::string outId_;
|
||||
std::string noType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNREQUEST_H_
|
||||
61
dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnResult.h
Normal file
61
dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnResult.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNRESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxnResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct SecretBindDTO
|
||||
{
|
||||
std::string extension;
|
||||
std::string secretNo;
|
||||
std::string subsId;
|
||||
};
|
||||
|
||||
|
||||
BindAxnResult();
|
||||
explicit BindAxnResult(const std::string &payload);
|
||||
~BindAxnResult();
|
||||
SecretBindDTO getSecretBindDTO()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
SecretBindDTO secretBindDTO_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BUYSECRETNOREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_BUYSECRETNOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT BuySecretNoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BuySecretNoRequest();
|
||||
~BuySecretNoRequest();
|
||||
|
||||
long getSpecId()const;
|
||||
void setSpecId(long specId);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getCity()const;
|
||||
void setCity(const std::string& city);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSecretNo()const;
|
||||
void setSecretNo(const std::string& secretNo);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
bool getDisplayPool()const;
|
||||
void setDisplayPool(bool displayPool);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
|
||||
private:
|
||||
long specId_;
|
||||
long resourceOwnerId_;
|
||||
std::string city_;
|
||||
std::string accessKeyId_;
|
||||
std::string secretNo_;
|
||||
std::string resourceOwnerAccount_;
|
||||
bool displayPool_;
|
||||
long ownerId_;
|
||||
std::string poolKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BUYSECRETNOREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BUYSECRETNORESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_BUYSECRETNORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT BuySecretNoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct SecretBuyInfoDTO
|
||||
{
|
||||
std::string secretNo;
|
||||
};
|
||||
|
||||
|
||||
BuySecretNoResult();
|
||||
explicit BuySecretNoResult(const std::string &payload);
|
||||
~BuySecretNoResult();
|
||||
std::string getMessage()const;
|
||||
SecretBuyInfoDTO getSecretBuyInfoDTO()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
SecretBuyInfoDTO secretBuyInfoDTO_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BUYSECRETNORESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_CREATEAXGGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_CREATEAXGGROUPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT CreateAxgGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateAxgGroupRequest();
|
||||
~CreateAxgGroupRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getNumbers()const;
|
||||
void setNumbers(const std::string& numbers);
|
||||
std::string getRemark()const;
|
||||
void setRemark(const std::string& remark);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string numbers_;
|
||||
std::string remark_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string poolKey_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_CREATEAXGGROUPREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_CREATEAXGGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_CREATEAXGGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT CreateAxgGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateAxgGroupResult();
|
||||
explicit CreateAxgGroupResult(const std::string &payload);
|
||||
~CreateAxgGroupResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
long getGroupId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
long groupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_CREATEAXGGROUPRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEAXGGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEAXGGROUPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT OperateAxgGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
OperateAxgGroupRequest();
|
||||
~OperateAxgGroupRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getNumbers()const;
|
||||
void setNumbers(const std::string& numbers);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getGroupId()const;
|
||||
void setGroupId(long groupId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
std::string getOperateType()const;
|
||||
void setOperateType(const std::string& operateType);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string numbers_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long groupId_;
|
||||
long ownerId_;
|
||||
std::string poolKey_;
|
||||
std::string operateType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEAXGGROUPREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEAXGGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEAXGGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT OperateAxgGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
OperateAxgGroupResult();
|
||||
explicit OperateAxgGroupResult(const std::string &payload);
|
||||
~OperateAxgGroupResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEAXGGROUPRESULT_H_
|
||||
@@ -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_DYPLSAPI_MODEL_QUERYCALLSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYCALLSTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT QueryCallStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryCallStatusRequest();
|
||||
~QueryCallStatusRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSubsId()const;
|
||||
void setSubsId(const std::string& subsId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getCallNo()const;
|
||||
void setCallNo(const std::string& callNo);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string subsId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string callNo_;
|
||||
long ownerId_;
|
||||
std::string poolKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYCALLSTATUSREQUEST_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_QUERYCALLSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYCALLSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT QueryCallStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct SecretCallStatusDTO
|
||||
{
|
||||
int status;
|
||||
std::string calledNo;
|
||||
};
|
||||
|
||||
|
||||
QueryCallStatusResult();
|
||||
explicit QueryCallStatusResult(const std::string &payload);
|
||||
~QueryCallStatusResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
SecretCallStatusDTO getSecretCallStatusDTO()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
SecretCallStatusDTO secretCallStatusDTO_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYCALLSTATUSRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_QUERYRECORDFILEDOWNLOADURLREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYRECORDFILEDOWNLOADURLREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT QueryRecordFileDownloadUrlRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryRecordFileDownloadUrlRequest();
|
||||
~QueryRecordFileDownloadUrlRequest();
|
||||
|
||||
std::string getCallId()const;
|
||||
void setCallId(const std::string& callId);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getCallTime()const;
|
||||
void setCallTime(const std::string& callTime);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
|
||||
private:
|
||||
std::string callId_;
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string productType_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string callTime_;
|
||||
std::string poolKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYRECORDFILEDOWNLOADURLREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_QUERYRECORDFILEDOWNLOADURLRESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYRECORDFILEDOWNLOADURLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT QueryRecordFileDownloadUrlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
QueryRecordFileDownloadUrlResult();
|
||||
explicit QueryRecordFileDownloadUrlResult(const std::string &payload);
|
||||
~QueryRecordFileDownloadUrlResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::string getDownloadUrl()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::string downloadUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYRECORDFILEDOWNLOADURLRESULT_H_
|
||||
@@ -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_DYPLSAPI_MODEL_QUERYSECRETNOREMAINREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNOREMAINREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySecretNoRemainRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QuerySecretNoRemainRequest();
|
||||
~QuerySecretNoRemainRequest();
|
||||
|
||||
long getSpecId()const;
|
||||
void setSpecId(long specId);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getCity()const;
|
||||
void setCity(const std::string& city);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSecretNo()const;
|
||||
void setSecretNo(const std::string& secretNo);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long specId_;
|
||||
long resourceOwnerId_;
|
||||
std::string city_;
|
||||
std::string accessKeyId_;
|
||||
std::string secretNo_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNOREMAINREQUEST_H_
|
||||
@@ -14,46 +14,53 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNOREMAINRESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNOREMAINRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreatePornBatchDetectJobResult : public ServiceResult
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySecretNoRemainResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct SecretRemainDTO
|
||||
{
|
||||
struct RemainDTO
|
||||
{
|
||||
long amount;
|
||||
std::string city;
|
||||
};
|
||||
std::vector<RemainDTO> remainDTOList;
|
||||
long amount;
|
||||
std::string city;
|
||||
};
|
||||
|
||||
|
||||
CreatePornBatchDetectJobResult();
|
||||
explicit CreatePornBatchDetectJobResult(const std::string &payload);
|
||||
~CreatePornBatchDetectJobResult();
|
||||
std::string getStatus()const;
|
||||
int getPercent()const;
|
||||
std::string getTgtLoc()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getJobId()const;
|
||||
QuerySecretNoRemainResult();
|
||||
explicit QuerySecretNoRemainResult(const std::string &payload);
|
||||
~QuerySecretNoRemainResult();
|
||||
SecretRemainDTO getSecretRemainDTO()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
int percent_;
|
||||
std::string tgtLoc_;
|
||||
std::string createTime_;
|
||||
std::string jobId_;
|
||||
SecretRemainDTO secretRemainDTO_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNOREMAINRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSIDREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSIDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySubsIdRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QuerySubsIdRequest();
|
||||
~QuerySubsIdRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
std::string getPhoneNoX()const;
|
||||
void setPhoneNoX(const std::string& phoneNoX);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string poolKey_;
|
||||
std::string phoneNoX_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSIDREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSIDRESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSIDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySubsIdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
QuerySubsIdResult();
|
||||
explicit QuerySubsIdResult(const std::string &payload);
|
||||
~QuerySubsIdResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::string getSubsId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::string subsId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSIDRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSCRIPTIONDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSCRIPTIONDETAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySubscriptionDetailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QuerySubscriptionDetailRequest();
|
||||
~QuerySubscriptionDetailRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
std::string getSubsId()const;
|
||||
void setSubsId(const std::string& subsId);
|
||||
std::string getPhoneNoX()const;
|
||||
void setPhoneNoX(const std::string& phoneNoX);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string productType_;
|
||||
std::string subsId_;
|
||||
std::string phoneNoX_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string poolKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSCRIPTIONDETAILREQUEST_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSCRIPTIONDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSCRIPTIONDETAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySubscriptionDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct SecretBindDetailDTO
|
||||
{
|
||||
std::string extension;
|
||||
long status;
|
||||
std::string callRestrict;
|
||||
std::string gmtCreate;
|
||||
std::string phoneNoX;
|
||||
std::string expireDate;
|
||||
bool needRecord;
|
||||
std::string phoneNoB;
|
||||
std::string subsId;
|
||||
std::string phoneNoA;
|
||||
long groupId;
|
||||
};
|
||||
|
||||
|
||||
QuerySubscriptionDetailResult();
|
||||
explicit QuerySubscriptionDetailResult(const std::string &payload);
|
||||
~QuerySubscriptionDetailResult();
|
||||
SecretBindDetailDTO getSecretBindDetailDTO()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
SecretBindDetailDTO secretBindDetailDTO_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSCRIPTIONDETAILRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_RELEASESECRETNOREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_RELEASESECRETNOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT ReleaseSecretNoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ReleaseSecretNoRequest();
|
||||
~ReleaseSecretNoRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
std::string getSecretNo()const;
|
||||
void setSecretNo(const std::string& secretNo);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string poolKey_;
|
||||
std::string secretNo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_RELEASESECRETNOREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_RELEASESECRETNORESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_RELEASESECRETNORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT ReleaseSecretNoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ReleaseSecretNoResult();
|
||||
explicit ReleaseSecretNoResult(const std::string &payload);
|
||||
~ReleaseSecretNoResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_RELEASESECRETNORESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_UNBINDSUBSCRIPTIONREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_UNBINDSUBSCRIPTIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT UnbindSubscriptionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UnbindSubscriptionRequest();
|
||||
~UnbindSubscriptionRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
std::string getSubsId()const;
|
||||
void setSubsId(const std::string& subsId);
|
||||
std::string getSecretNo()const;
|
||||
void setSecretNo(const std::string& secretNo);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string productType_;
|
||||
std::string subsId_;
|
||||
std::string secretNo_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string poolKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UNBINDSUBSCRIPTIONREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_UNBINDSUBSCRIPTIONRESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_UNBINDSUBSCRIPTIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT UnbindSubscriptionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UnbindSubscriptionResult();
|
||||
explicit UnbindSubscriptionResult(const std::string &payload);
|
||||
~UnbindSubscriptionResult();
|
||||
std::string getMessage()const;
|
||||
std::string getChargeId()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string chargeId_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UNBINDSUBSCRIPTIONRESULT_H_
|
||||
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_UPDATESUBSCRIPTIONREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_UPDATESUBSCRIPTIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT UpdateSubscriptionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateSubscriptionRequest();
|
||||
~UpdateSubscriptionRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getCallDisplayType()const;
|
||||
void setCallDisplayType(int callDisplayType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
std::string getSubsId()const;
|
||||
void setSubsId(const std::string& subsId);
|
||||
std::string getPhoneNoX()const;
|
||||
void setPhoneNoX(const std::string& phoneNoX);
|
||||
std::string getRingConfig()const;
|
||||
void setRingConfig(const std::string& ringConfig);
|
||||
std::string getPhoneNoB()const;
|
||||
void setPhoneNoB(const std::string& phoneNoB);
|
||||
std::string getPhoneNoA()const;
|
||||
void setPhoneNoA(const std::string& phoneNoA);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPoolKey()const;
|
||||
void setPoolKey(const std::string& poolKey);
|
||||
std::string getExpiration()const;
|
||||
void setExpiration(const std::string& expiration);
|
||||
std::string getOutId()const;
|
||||
void setOutId(const std::string& outId);
|
||||
bool getIsRecordingEnabled()const;
|
||||
void setIsRecordingEnabled(bool isRecordingEnabled);
|
||||
std::string getOperateType()const;
|
||||
void setOperateType(const std::string& operateType);
|
||||
std::string getCallRestrict()const;
|
||||
void setCallRestrict(const std::string& callRestrict);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int callDisplayType_;
|
||||
std::string accessKeyId_;
|
||||
std::string productType_;
|
||||
std::string subsId_;
|
||||
std::string phoneNoX_;
|
||||
std::string ringConfig_;
|
||||
std::string phoneNoB_;
|
||||
std::string phoneNoA_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string groupId_;
|
||||
long ownerId_;
|
||||
std::string poolKey_;
|
||||
std::string expiration_;
|
||||
std::string outId_;
|
||||
bool isRecordingEnabled_;
|
||||
std::string operateType_;
|
||||
std::string callRestrict_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UPDATESUBSCRIPTIONREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_UPDATESUBSCRIPTIONRESULT_H_
|
||||
#define ALIBABACLOUD_DYPLSAPI_MODEL_UPDATESUBSCRIPTIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dyplsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPLSAPI_EXPORT UpdateSubscriptionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateSubscriptionResult();
|
||||
explicit UpdateSubscriptionResult(const std::string &payload);
|
||||
~UpdateSubscriptionResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UPDATESUBSCRIPTIONRESULT_H_
|
||||
593
dyplsapi/src/DyplsapiClient.cc
Normal file
593
dyplsapi/src/DyplsapiClient.cc
Normal file
@@ -0,0 +1,593 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dyplsapi/DyplsapiClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Dyplsapi;
|
||||
using namespace AlibabaCloud::Dyplsapi::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Dyplsapi";
|
||||
}
|
||||
|
||||
DyplsapiClient::DyplsapiClient(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, "dypls");
|
||||
}
|
||||
|
||||
DyplsapiClient::DyplsapiClient(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, "dypls");
|
||||
}
|
||||
|
||||
DyplsapiClient::DyplsapiClient(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, "dypls");
|
||||
}
|
||||
|
||||
DyplsapiClient::~DyplsapiClient()
|
||||
{}
|
||||
|
||||
DyplsapiClient::BindAxbOutcome DyplsapiClient::bindAxb(const BindAxbRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BindAxbOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BindAxbOutcome(BindAxbResult(outcome.result()));
|
||||
else
|
||||
return BindAxbOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::bindAxbAsync(const BindAxbRequest& request, const BindAxbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bindAxb(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::BindAxbOutcomeCallable DyplsapiClient::bindAxbCallable(const BindAxbRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BindAxbOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bindAxb(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::BindAxgOutcome DyplsapiClient::bindAxg(const BindAxgRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BindAxgOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BindAxgOutcome(BindAxgResult(outcome.result()));
|
||||
else
|
||||
return BindAxgOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::bindAxgAsync(const BindAxgRequest& request, const BindAxgAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bindAxg(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::BindAxgOutcomeCallable DyplsapiClient::bindAxgCallable(const BindAxgRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BindAxgOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bindAxg(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::BindAxnOutcome DyplsapiClient::bindAxn(const BindAxnRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BindAxnOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BindAxnOutcome(BindAxnResult(outcome.result()));
|
||||
else
|
||||
return BindAxnOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::bindAxnAsync(const BindAxnRequest& request, const BindAxnAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bindAxn(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::BindAxnOutcomeCallable DyplsapiClient::bindAxnCallable(const BindAxnRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BindAxnOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bindAxn(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::BindAxnExtensionOutcome DyplsapiClient::bindAxnExtension(const BindAxnExtensionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BindAxnExtensionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BindAxnExtensionOutcome(BindAxnExtensionResult(outcome.result()));
|
||||
else
|
||||
return BindAxnExtensionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::bindAxnExtensionAsync(const BindAxnExtensionRequest& request, const BindAxnExtensionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bindAxnExtension(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::BindAxnExtensionOutcomeCallable DyplsapiClient::bindAxnExtensionCallable(const BindAxnExtensionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BindAxnExtensionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bindAxnExtension(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::BuySecretNoOutcome DyplsapiClient::buySecretNo(const BuySecretNoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BuySecretNoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BuySecretNoOutcome(BuySecretNoResult(outcome.result()));
|
||||
else
|
||||
return BuySecretNoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::buySecretNoAsync(const BuySecretNoRequest& request, const BuySecretNoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, buySecretNo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::BuySecretNoOutcomeCallable DyplsapiClient::buySecretNoCallable(const BuySecretNoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BuySecretNoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->buySecretNo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::CreateAxgGroupOutcome DyplsapiClient::createAxgGroup(const CreateAxgGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateAxgGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateAxgGroupOutcome(CreateAxgGroupResult(outcome.result()));
|
||||
else
|
||||
return CreateAxgGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::createAxgGroupAsync(const CreateAxgGroupRequest& request, const CreateAxgGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createAxgGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::CreateAxgGroupOutcomeCallable DyplsapiClient::createAxgGroupCallable(const CreateAxgGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateAxgGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createAxgGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::OperateAxgGroupOutcome DyplsapiClient::operateAxgGroup(const OperateAxgGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OperateAxgGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OperateAxgGroupOutcome(OperateAxgGroupResult(outcome.result()));
|
||||
else
|
||||
return OperateAxgGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::operateAxgGroupAsync(const OperateAxgGroupRequest& request, const OperateAxgGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, operateAxgGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::OperateAxgGroupOutcomeCallable DyplsapiClient::operateAxgGroupCallable(const OperateAxgGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OperateAxgGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->operateAxgGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::QueryCallStatusOutcome DyplsapiClient::queryCallStatus(const QueryCallStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCallStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryCallStatusOutcome(QueryCallStatusResult(outcome.result()));
|
||||
else
|
||||
return QueryCallStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::queryCallStatusAsync(const QueryCallStatusRequest& request, const QueryCallStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryCallStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::QueryCallStatusOutcomeCallable DyplsapiClient::queryCallStatusCallable(const QueryCallStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryCallStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryCallStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::QueryRecordFileDownloadUrlOutcome DyplsapiClient::queryRecordFileDownloadUrl(const QueryRecordFileDownloadUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryRecordFileDownloadUrlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryRecordFileDownloadUrlOutcome(QueryRecordFileDownloadUrlResult(outcome.result()));
|
||||
else
|
||||
return QueryRecordFileDownloadUrlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::queryRecordFileDownloadUrlAsync(const QueryRecordFileDownloadUrlRequest& request, const QueryRecordFileDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryRecordFileDownloadUrl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::QueryRecordFileDownloadUrlOutcomeCallable DyplsapiClient::queryRecordFileDownloadUrlCallable(const QueryRecordFileDownloadUrlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryRecordFileDownloadUrlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryRecordFileDownloadUrl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::QuerySecretNoRemainOutcome DyplsapiClient::querySecretNoRemain(const QuerySecretNoRemainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySecretNoRemainOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySecretNoRemainOutcome(QuerySecretNoRemainResult(outcome.result()));
|
||||
else
|
||||
return QuerySecretNoRemainOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::querySecretNoRemainAsync(const QuerySecretNoRemainRequest& request, const QuerySecretNoRemainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySecretNoRemain(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::QuerySecretNoRemainOutcomeCallable DyplsapiClient::querySecretNoRemainCallable(const QuerySecretNoRemainRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySecretNoRemainOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySecretNoRemain(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::QuerySubsIdOutcome DyplsapiClient::querySubsId(const QuerySubsIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySubsIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySubsIdOutcome(QuerySubsIdResult(outcome.result()));
|
||||
else
|
||||
return QuerySubsIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::querySubsIdAsync(const QuerySubsIdRequest& request, const QuerySubsIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySubsId(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::QuerySubsIdOutcomeCallable DyplsapiClient::querySubsIdCallable(const QuerySubsIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySubsIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySubsId(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::QuerySubscriptionDetailOutcome DyplsapiClient::querySubscriptionDetail(const QuerySubscriptionDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySubscriptionDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySubscriptionDetailOutcome(QuerySubscriptionDetailResult(outcome.result()));
|
||||
else
|
||||
return QuerySubscriptionDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::querySubscriptionDetailAsync(const QuerySubscriptionDetailRequest& request, const QuerySubscriptionDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySubscriptionDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::QuerySubscriptionDetailOutcomeCallable DyplsapiClient::querySubscriptionDetailCallable(const QuerySubscriptionDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySubscriptionDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySubscriptionDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::ReleaseSecretNoOutcome DyplsapiClient::releaseSecretNo(const ReleaseSecretNoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ReleaseSecretNoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ReleaseSecretNoOutcome(ReleaseSecretNoResult(outcome.result()));
|
||||
else
|
||||
return ReleaseSecretNoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::releaseSecretNoAsync(const ReleaseSecretNoRequest& request, const ReleaseSecretNoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, releaseSecretNo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::ReleaseSecretNoOutcomeCallable DyplsapiClient::releaseSecretNoCallable(const ReleaseSecretNoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ReleaseSecretNoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->releaseSecretNo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::UnbindSubscriptionOutcome DyplsapiClient::unbindSubscription(const UnbindSubscriptionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnbindSubscriptionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnbindSubscriptionOutcome(UnbindSubscriptionResult(outcome.result()));
|
||||
else
|
||||
return UnbindSubscriptionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::unbindSubscriptionAsync(const UnbindSubscriptionRequest& request, const UnbindSubscriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unbindSubscription(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::UnbindSubscriptionOutcomeCallable DyplsapiClient::unbindSubscriptionCallable(const UnbindSubscriptionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnbindSubscriptionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unbindSubscription(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::UpdateSubscriptionOutcome DyplsapiClient::updateSubscription(const UpdateSubscriptionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateSubscriptionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateSubscriptionOutcome(UpdateSubscriptionResult(outcome.result()));
|
||||
else
|
||||
return UpdateSubscriptionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::updateSubscriptionAsync(const UpdateSubscriptionRequest& request, const UpdateSubscriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateSubscription(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::UpdateSubscriptionOutcomeCallable DyplsapiClient::updateSubscriptionCallable(const UpdateSubscriptionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateSubscriptionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateSubscription(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
192
dyplsapi/src/model/BindAxbRequest.cc
Normal file
192
dyplsapi/src/model/BindAxbRequest.cc
Normal file
@@ -0,0 +1,192 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dyplsapi/model/BindAxbRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyplsapi::Model::BindAxbRequest;
|
||||
|
||||
BindAxbRequest::BindAxbRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxb")
|
||||
{}
|
||||
|
||||
BindAxbRequest::~BindAxbRequest()
|
||||
{}
|
||||
|
||||
long BindAxbRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int BindAxbRequest::getCallDisplayType()const
|
||||
{
|
||||
return callDisplayType_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setCallDisplayType(int callDisplayType)
|
||||
{
|
||||
callDisplayType_ = callDisplayType;
|
||||
setCoreParameter("CallDisplayType", std::to_string(callDisplayType));
|
||||
}
|
||||
|
||||
std::string BindAxbRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BindAxbRequest::getPhoneNoX()const
|
||||
{
|
||||
return phoneNoX_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setPhoneNoX(const std::string& phoneNoX)
|
||||
{
|
||||
phoneNoX_ = phoneNoX;
|
||||
setCoreParameter("PhoneNoX", phoneNoX);
|
||||
}
|
||||
|
||||
std::string BindAxbRequest::getRingConfig()const
|
||||
{
|
||||
return ringConfig_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setRingConfig(const std::string& ringConfig)
|
||||
{
|
||||
ringConfig_ = ringConfig;
|
||||
setCoreParameter("RingConfig", ringConfig);
|
||||
}
|
||||
|
||||
std::string BindAxbRequest::getPhoneNoB()const
|
||||
{
|
||||
return phoneNoB_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setPhoneNoB(const std::string& phoneNoB)
|
||||
{
|
||||
phoneNoB_ = phoneNoB;
|
||||
setCoreParameter("PhoneNoB", phoneNoB);
|
||||
}
|
||||
|
||||
std::string BindAxbRequest::getPhoneNoA()const
|
||||
{
|
||||
return phoneNoA_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setPhoneNoA(const std::string& phoneNoA)
|
||||
{
|
||||
phoneNoA_ = phoneNoA;
|
||||
setCoreParameter("PhoneNoA", phoneNoA);
|
||||
}
|
||||
|
||||
std::string BindAxbRequest::getExpectCity()const
|
||||
{
|
||||
return expectCity_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setExpectCity(const std::string& expectCity)
|
||||
{
|
||||
expectCity_ = expectCity;
|
||||
setCoreParameter("ExpectCity", expectCity);
|
||||
}
|
||||
|
||||
std::string BindAxbRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long BindAxbRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BindAxbRequest::getOutOrderId()const
|
||||
{
|
||||
return outOrderId_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setOutOrderId(const std::string& outOrderId)
|
||||
{
|
||||
outOrderId_ = outOrderId;
|
||||
setCoreParameter("OutOrderId", outOrderId);
|
||||
}
|
||||
|
||||
std::string BindAxbRequest::getPoolKey()const
|
||||
{
|
||||
return poolKey_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setPoolKey(const std::string& poolKey)
|
||||
{
|
||||
poolKey_ = poolKey;
|
||||
setCoreParameter("PoolKey", poolKey);
|
||||
}
|
||||
|
||||
std::string BindAxbRequest::getExpiration()const
|
||||
{
|
||||
return expiration_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setExpiration(const std::string& expiration)
|
||||
{
|
||||
expiration_ = expiration;
|
||||
setCoreParameter("Expiration", expiration);
|
||||
}
|
||||
|
||||
bool BindAxbRequest::getIsRecordingEnabled()const
|
||||
{
|
||||
return isRecordingEnabled_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setIsRecordingEnabled(bool isRecordingEnabled)
|
||||
{
|
||||
isRecordingEnabled_ = isRecordingEnabled;
|
||||
setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string BindAxbRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void BindAxbRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
70
dyplsapi/src/model/BindAxbResult.cc
Normal file
70
dyplsapi/src/model/BindAxbResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyplsapi/model/BindAxbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyplsapi;
|
||||
using namespace AlibabaCloud::Dyplsapi::Model;
|
||||
|
||||
BindAxbResult::BindAxbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindAxbResult::BindAxbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindAxbResult::~BindAxbResult()
|
||||
{}
|
||||
|
||||
void BindAxbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto secretBindDTONode = value["SecretBindDTO"];
|
||||
if(!secretBindDTONode["SubsId"].isNull())
|
||||
secretBindDTO_.subsId = secretBindDTONode["SubsId"].asString();
|
||||
if(!secretBindDTONode["SecretNo"].isNull())
|
||||
secretBindDTO_.secretNo = secretBindDTONode["SecretNo"].asString();
|
||||
if(!secretBindDTONode["Extension"].isNull())
|
||||
secretBindDTO_.extension = secretBindDTONode["Extension"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
BindAxbResult::SecretBindDTO BindAxbResult::getSecretBindDTO()const
|
||||
{
|
||||
return secretBindDTO_;
|
||||
}
|
||||
|
||||
std::string BindAxbResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BindAxbResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
203
dyplsapi/src/model/BindAxgRequest.cc
Normal file
203
dyplsapi/src/model/BindAxgRequest.cc
Normal file
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dyplsapi/model/BindAxgRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyplsapi::Model::BindAxgRequest;
|
||||
|
||||
BindAxgRequest::BindAxgRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxg")
|
||||
{}
|
||||
|
||||
BindAxgRequest::~BindAxgRequest()
|
||||
{}
|
||||
|
||||
long BindAxgRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int BindAxgRequest::getCallDisplayType()const
|
||||
{
|
||||
return callDisplayType_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setCallDisplayType(int callDisplayType)
|
||||
{
|
||||
callDisplayType_ = callDisplayType;
|
||||
setCoreParameter("CallDisplayType", std::to_string(callDisplayType));
|
||||
}
|
||||
|
||||
std::string BindAxgRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BindAxgRequest::getPhoneNoX()const
|
||||
{
|
||||
return phoneNoX_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setPhoneNoX(const std::string& phoneNoX)
|
||||
{
|
||||
phoneNoX_ = phoneNoX;
|
||||
setCoreParameter("PhoneNoX", phoneNoX);
|
||||
}
|
||||
|
||||
std::string BindAxgRequest::getRingConfig()const
|
||||
{
|
||||
return ringConfig_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setRingConfig(const std::string& ringConfig)
|
||||
{
|
||||
ringConfig_ = ringConfig;
|
||||
setCoreParameter("RingConfig", ringConfig);
|
||||
}
|
||||
|
||||
std::string BindAxgRequest::getPhoneNoB()const
|
||||
{
|
||||
return phoneNoB_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setPhoneNoB(const std::string& phoneNoB)
|
||||
{
|
||||
phoneNoB_ = phoneNoB;
|
||||
setCoreParameter("PhoneNoB", phoneNoB);
|
||||
}
|
||||
|
||||
std::string BindAxgRequest::getPhoneNoA()const
|
||||
{
|
||||
return phoneNoA_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setPhoneNoA(const std::string& phoneNoA)
|
||||
{
|
||||
phoneNoA_ = phoneNoA;
|
||||
setCoreParameter("PhoneNoA", phoneNoA);
|
||||
}
|
||||
|
||||
std::string BindAxgRequest::getExpectCity()const
|
||||
{
|
||||
return expectCity_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setExpectCity(const std::string& expectCity)
|
||||
{
|
||||
expectCity_ = expectCity;
|
||||
setCoreParameter("ExpectCity", expectCity);
|
||||
}
|
||||
|
||||
std::string BindAxgRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string BindAxgRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
long BindAxgRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BindAxgRequest::getOutOrderId()const
|
||||
{
|
||||
return outOrderId_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setOutOrderId(const std::string& outOrderId)
|
||||
{
|
||||
outOrderId_ = outOrderId;
|
||||
setCoreParameter("OutOrderId", outOrderId);
|
||||
}
|
||||
|
||||
std::string BindAxgRequest::getPoolKey()const
|
||||
{
|
||||
return poolKey_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setPoolKey(const std::string& poolKey)
|
||||
{
|
||||
poolKey_ = poolKey;
|
||||
setCoreParameter("PoolKey", poolKey);
|
||||
}
|
||||
|
||||
std::string BindAxgRequest::getExpiration()const
|
||||
{
|
||||
return expiration_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setExpiration(const std::string& expiration)
|
||||
{
|
||||
expiration_ = expiration;
|
||||
setCoreParameter("Expiration", expiration);
|
||||
}
|
||||
|
||||
bool BindAxgRequest::getIsRecordingEnabled()const
|
||||
{
|
||||
return isRecordingEnabled_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setIsRecordingEnabled(bool isRecordingEnabled)
|
||||
{
|
||||
isRecordingEnabled_ = isRecordingEnabled;
|
||||
setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string BindAxgRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void BindAxgRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
70
dyplsapi/src/model/BindAxgResult.cc
Normal file
70
dyplsapi/src/model/BindAxgResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyplsapi/model/BindAxgResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyplsapi;
|
||||
using namespace AlibabaCloud::Dyplsapi::Model;
|
||||
|
||||
BindAxgResult::BindAxgResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindAxgResult::BindAxgResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindAxgResult::~BindAxgResult()
|
||||
{}
|
||||
|
||||
void BindAxgResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto secretBindDTONode = value["SecretBindDTO"];
|
||||
if(!secretBindDTONode["SubsId"].isNull())
|
||||
secretBindDTO_.subsId = secretBindDTONode["SubsId"].asString();
|
||||
if(!secretBindDTONode["SecretNo"].isNull())
|
||||
secretBindDTO_.secretNo = secretBindDTONode["SecretNo"].asString();
|
||||
if(!secretBindDTONode["Extension"].isNull())
|
||||
secretBindDTO_.extension = secretBindDTONode["Extension"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
BindAxgResult::SecretBindDTO BindAxgResult::getSecretBindDTO()const
|
||||
{
|
||||
return secretBindDTO_;
|
||||
}
|
||||
|
||||
std::string BindAxgResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BindAxgResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
203
dyplsapi/src/model/BindAxnExtensionRequest.cc
Normal file
203
dyplsapi/src/model/BindAxnExtensionRequest.cc
Normal file
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dyplsapi/model/BindAxnExtensionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyplsapi::Model::BindAxnExtensionRequest;
|
||||
|
||||
BindAxnExtensionRequest::BindAxnExtensionRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxnExtension")
|
||||
{}
|
||||
|
||||
BindAxnExtensionRequest::~BindAxnExtensionRequest()
|
||||
{}
|
||||
|
||||
long BindAxnExtensionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionRequest::getExtension()const
|
||||
{
|
||||
return extension_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setExtension(const std::string& extension)
|
||||
{
|
||||
extension_ = extension;
|
||||
setCoreParameter("Extension", extension);
|
||||
}
|
||||
|
||||
int BindAxnExtensionRequest::getCallDisplayType()const
|
||||
{
|
||||
return callDisplayType_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setCallDisplayType(int callDisplayType)
|
||||
{
|
||||
callDisplayType_ = callDisplayType;
|
||||
setCoreParameter("CallDisplayType", std::to_string(callDisplayType));
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionRequest::getPhoneNoX()const
|
||||
{
|
||||
return phoneNoX_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setPhoneNoX(const std::string& phoneNoX)
|
||||
{
|
||||
phoneNoX_ = phoneNoX;
|
||||
setCoreParameter("PhoneNoX", phoneNoX);
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionRequest::getRingConfig()const
|
||||
{
|
||||
return ringConfig_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setRingConfig(const std::string& ringConfig)
|
||||
{
|
||||
ringConfig_ = ringConfig;
|
||||
setCoreParameter("RingConfig", ringConfig);
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionRequest::getPhoneNoB()const
|
||||
{
|
||||
return phoneNoB_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setPhoneNoB(const std::string& phoneNoB)
|
||||
{
|
||||
phoneNoB_ = phoneNoB;
|
||||
setCoreParameter("PhoneNoB", phoneNoB);
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionRequest::getPhoneNoA()const
|
||||
{
|
||||
return phoneNoA_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setPhoneNoA(const std::string& phoneNoA)
|
||||
{
|
||||
phoneNoA_ = phoneNoA;
|
||||
setCoreParameter("PhoneNoA", phoneNoA);
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionRequest::getExpectCity()const
|
||||
{
|
||||
return expectCity_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setExpectCity(const std::string& expectCity)
|
||||
{
|
||||
expectCity_ = expectCity;
|
||||
setCoreParameter("ExpectCity", expectCity);
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long BindAxnExtensionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionRequest::getOutOrderId()const
|
||||
{
|
||||
return outOrderId_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setOutOrderId(const std::string& outOrderId)
|
||||
{
|
||||
outOrderId_ = outOrderId;
|
||||
setCoreParameter("OutOrderId", outOrderId);
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionRequest::getPoolKey()const
|
||||
{
|
||||
return poolKey_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setPoolKey(const std::string& poolKey)
|
||||
{
|
||||
poolKey_ = poolKey;
|
||||
setCoreParameter("PoolKey", poolKey);
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionRequest::getExpiration()const
|
||||
{
|
||||
return expiration_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setExpiration(const std::string& expiration)
|
||||
{
|
||||
expiration_ = expiration;
|
||||
setCoreParameter("Expiration", expiration);
|
||||
}
|
||||
|
||||
bool BindAxnExtensionRequest::getIsRecordingEnabled()const
|
||||
{
|
||||
return isRecordingEnabled_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setIsRecordingEnabled(bool isRecordingEnabled)
|
||||
{
|
||||
isRecordingEnabled_ = isRecordingEnabled;
|
||||
setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void BindAxnExtensionRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
70
dyplsapi/src/model/BindAxnExtensionResult.cc
Normal file
70
dyplsapi/src/model/BindAxnExtensionResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyplsapi/model/BindAxnExtensionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyplsapi;
|
||||
using namespace AlibabaCloud::Dyplsapi::Model;
|
||||
|
||||
BindAxnExtensionResult::BindAxnExtensionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindAxnExtensionResult::BindAxnExtensionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindAxnExtensionResult::~BindAxnExtensionResult()
|
||||
{}
|
||||
|
||||
void BindAxnExtensionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto secretBindDTONode = value["SecretBindDTO"];
|
||||
if(!secretBindDTONode["SubsId"].isNull())
|
||||
secretBindDTO_.subsId = secretBindDTONode["SubsId"].asString();
|
||||
if(!secretBindDTONode["SecretNo"].isNull())
|
||||
secretBindDTO_.secretNo = secretBindDTONode["SecretNo"].asString();
|
||||
if(!secretBindDTONode["Extension"].isNull())
|
||||
secretBindDTO_.extension = secretBindDTONode["Extension"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
BindAxnExtensionResult::SecretBindDTO BindAxnExtensionResult::getSecretBindDTO()const
|
||||
{
|
||||
return secretBindDTO_;
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BindAxnExtensionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
203
dyplsapi/src/model/BindAxnRequest.cc
Normal file
203
dyplsapi/src/model/BindAxnRequest.cc
Normal file
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dyplsapi/model/BindAxnRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyplsapi::Model::BindAxnRequest;
|
||||
|
||||
BindAxnRequest::BindAxnRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxn")
|
||||
{}
|
||||
|
||||
BindAxnRequest::~BindAxnRequest()
|
||||
{}
|
||||
|
||||
long BindAxnRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int BindAxnRequest::getCallDisplayType()const
|
||||
{
|
||||
return callDisplayType_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setCallDisplayType(int callDisplayType)
|
||||
{
|
||||
callDisplayType_ = callDisplayType;
|
||||
setCoreParameter("CallDisplayType", std::to_string(callDisplayType));
|
||||
}
|
||||
|
||||
std::string BindAxnRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BindAxnRequest::getPhoneNoX()const
|
||||
{
|
||||
return phoneNoX_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setPhoneNoX(const std::string& phoneNoX)
|
||||
{
|
||||
phoneNoX_ = phoneNoX;
|
||||
setCoreParameter("PhoneNoX", phoneNoX);
|
||||
}
|
||||
|
||||
std::string BindAxnRequest::getRingConfig()const
|
||||
{
|
||||
return ringConfig_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setRingConfig(const std::string& ringConfig)
|
||||
{
|
||||
ringConfig_ = ringConfig;
|
||||
setCoreParameter("RingConfig", ringConfig);
|
||||
}
|
||||
|
||||
std::string BindAxnRequest::getPhoneNoB()const
|
||||
{
|
||||
return phoneNoB_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setPhoneNoB(const std::string& phoneNoB)
|
||||
{
|
||||
phoneNoB_ = phoneNoB;
|
||||
setCoreParameter("PhoneNoB", phoneNoB);
|
||||
}
|
||||
|
||||
std::string BindAxnRequest::getPhoneNoA()const
|
||||
{
|
||||
return phoneNoA_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setPhoneNoA(const std::string& phoneNoA)
|
||||
{
|
||||
phoneNoA_ = phoneNoA;
|
||||
setCoreParameter("PhoneNoA", phoneNoA);
|
||||
}
|
||||
|
||||
std::string BindAxnRequest::getExpectCity()const
|
||||
{
|
||||
return expectCity_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setExpectCity(const std::string& expectCity)
|
||||
{
|
||||
expectCity_ = expectCity;
|
||||
setCoreParameter("ExpectCity", expectCity);
|
||||
}
|
||||
|
||||
std::string BindAxnRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long BindAxnRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BindAxnRequest::getOutOrderId()const
|
||||
{
|
||||
return outOrderId_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setOutOrderId(const std::string& outOrderId)
|
||||
{
|
||||
outOrderId_ = outOrderId;
|
||||
setCoreParameter("OutOrderId", outOrderId);
|
||||
}
|
||||
|
||||
std::string BindAxnRequest::getPoolKey()const
|
||||
{
|
||||
return poolKey_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setPoolKey(const std::string& poolKey)
|
||||
{
|
||||
poolKey_ = poolKey;
|
||||
setCoreParameter("PoolKey", poolKey);
|
||||
}
|
||||
|
||||
std::string BindAxnRequest::getExpiration()const
|
||||
{
|
||||
return expiration_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setExpiration(const std::string& expiration)
|
||||
{
|
||||
expiration_ = expiration;
|
||||
setCoreParameter("Expiration", expiration);
|
||||
}
|
||||
|
||||
bool BindAxnRequest::getIsRecordingEnabled()const
|
||||
{
|
||||
return isRecordingEnabled_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setIsRecordingEnabled(bool isRecordingEnabled)
|
||||
{
|
||||
isRecordingEnabled_ = isRecordingEnabled;
|
||||
setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string BindAxnRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
std::string BindAxnRequest::getNoType()const
|
||||
{
|
||||
return noType_;
|
||||
}
|
||||
|
||||
void BindAxnRequest::setNoType(const std::string& noType)
|
||||
{
|
||||
noType_ = noType;
|
||||
setCoreParameter("NoType", noType);
|
||||
}
|
||||
|
||||
70
dyplsapi/src/model/BindAxnResult.cc
Normal file
70
dyplsapi/src/model/BindAxnResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyplsapi/model/BindAxnResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyplsapi;
|
||||
using namespace AlibabaCloud::Dyplsapi::Model;
|
||||
|
||||
BindAxnResult::BindAxnResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindAxnResult::BindAxnResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindAxnResult::~BindAxnResult()
|
||||
{}
|
||||
|
||||
void BindAxnResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto secretBindDTONode = value["SecretBindDTO"];
|
||||
if(!secretBindDTONode["SubsId"].isNull())
|
||||
secretBindDTO_.subsId = secretBindDTONode["SubsId"].asString();
|
||||
if(!secretBindDTONode["SecretNo"].isNull())
|
||||
secretBindDTO_.secretNo = secretBindDTONode["SecretNo"].asString();
|
||||
if(!secretBindDTONode["Extension"].isNull())
|
||||
secretBindDTO_.extension = secretBindDTONode["Extension"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
BindAxnResult::SecretBindDTO BindAxnResult::getSecretBindDTO()const
|
||||
{
|
||||
return secretBindDTO_;
|
||||
}
|
||||
|
||||
std::string BindAxnResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BindAxnResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
126
dyplsapi/src/model/BuySecretNoRequest.cc
Normal file
126
dyplsapi/src/model/BuySecretNoRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dyplsapi/model/BuySecretNoRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyplsapi::Model::BuySecretNoRequest;
|
||||
|
||||
BuySecretNoRequest::BuySecretNoRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "BuySecretNo")
|
||||
{}
|
||||
|
||||
BuySecretNoRequest::~BuySecretNoRequest()
|
||||
{}
|
||||
|
||||
long BuySecretNoRequest::getSpecId()const
|
||||
{
|
||||
return specId_;
|
||||
}
|
||||
|
||||
void BuySecretNoRequest::setSpecId(long specId)
|
||||
{
|
||||
specId_ = specId;
|
||||
setCoreParameter("SpecId", std::to_string(specId));
|
||||
}
|
||||
|
||||
long BuySecretNoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void BuySecretNoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string BuySecretNoRequest::getCity()const
|
||||
{
|
||||
return city_;
|
||||
}
|
||||
|
||||
void BuySecretNoRequest::setCity(const std::string& city)
|
||||
{
|
||||
city_ = city;
|
||||
setCoreParameter("City", city);
|
||||
}
|
||||
|
||||
std::string BuySecretNoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BuySecretNoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BuySecretNoRequest::getSecretNo()const
|
||||
{
|
||||
return secretNo_;
|
||||
}
|
||||
|
||||
void BuySecretNoRequest::setSecretNo(const std::string& secretNo)
|
||||
{
|
||||
secretNo_ = secretNo;
|
||||
setCoreParameter("SecretNo", secretNo);
|
||||
}
|
||||
|
||||
std::string BuySecretNoRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void BuySecretNoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
bool BuySecretNoRequest::getDisplayPool()const
|
||||
{
|
||||
return displayPool_;
|
||||
}
|
||||
|
||||
void BuySecretNoRequest::setDisplayPool(bool displayPool)
|
||||
{
|
||||
displayPool_ = displayPool;
|
||||
setCoreParameter("DisplayPool", displayPool ? "true" : "false");
|
||||
}
|
||||
|
||||
long BuySecretNoRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BuySecretNoRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BuySecretNoRequest::getPoolKey()const
|
||||
{
|
||||
return poolKey_;
|
||||
}
|
||||
|
||||
void BuySecretNoRequest::setPoolKey(const std::string& poolKey)
|
||||
{
|
||||
poolKey_ = poolKey;
|
||||
setCoreParameter("PoolKey", poolKey);
|
||||
}
|
||||
|
||||
66
dyplsapi/src/model/BuySecretNoResult.cc
Normal file
66
dyplsapi/src/model/BuySecretNoResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyplsapi/model/BuySecretNoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyplsapi;
|
||||
using namespace AlibabaCloud::Dyplsapi::Model;
|
||||
|
||||
BuySecretNoResult::BuySecretNoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BuySecretNoResult::BuySecretNoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BuySecretNoResult::~BuySecretNoResult()
|
||||
{}
|
||||
|
||||
void BuySecretNoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto secretBuyInfoDTONode = value["SecretBuyInfoDTO"];
|
||||
if(!secretBuyInfoDTONode["SecretNo"].isNull())
|
||||
secretBuyInfoDTO_.secretNo = secretBuyInfoDTONode["SecretNo"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BuySecretNoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
BuySecretNoResult::SecretBuyInfoDTO BuySecretNoResult::getSecretBuyInfoDTO()const
|
||||
{
|
||||
return secretBuyInfoDTO_;
|
||||
}
|
||||
|
||||
std::string BuySecretNoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
115
dyplsapi/src/model/CreateAxgGroupRequest.cc
Normal file
115
dyplsapi/src/model/CreateAxgGroupRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dyplsapi/model/CreateAxgGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyplsapi::Model::CreateAxgGroupRequest;
|
||||
|
||||
CreateAxgGroupRequest::CreateAxgGroupRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "CreateAxgGroup")
|
||||
{}
|
||||
|
||||
CreateAxgGroupRequest::~CreateAxgGroupRequest()
|
||||
{}
|
||||
|
||||
long CreateAxgGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateAxgGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateAxgGroupRequest::getNumbers()const
|
||||
{
|
||||
return numbers_;
|
||||
}
|
||||
|
||||
void CreateAxgGroupRequest::setNumbers(const std::string& numbers)
|
||||
{
|
||||
numbers_ = numbers;
|
||||
setCoreParameter("Numbers", numbers);
|
||||
}
|
||||
|
||||
std::string CreateAxgGroupRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void CreateAxgGroupRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string CreateAxgGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateAxgGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateAxgGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateAxgGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long CreateAxgGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateAxgGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateAxgGroupRequest::getPoolKey()const
|
||||
{
|
||||
return poolKey_;
|
||||
}
|
||||
|
||||
void CreateAxgGroupRequest::setPoolKey(const std::string& poolKey)
|
||||
{
|
||||
poolKey_ = poolKey;
|
||||
setCoreParameter("PoolKey", poolKey);
|
||||
}
|
||||
|
||||
std::string CreateAxgGroupRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateAxgGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
65
dyplsapi/src/model/CreateAxgGroupResult.cc
Normal file
65
dyplsapi/src/model/CreateAxgGroupResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyplsapi/model/CreateAxgGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyplsapi;
|
||||
using namespace AlibabaCloud::Dyplsapi::Model;
|
||||
|
||||
CreateAxgGroupResult::CreateAxgGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAxgGroupResult::CreateAxgGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAxgGroupResult::~CreateAxgGroupResult()
|
||||
{}
|
||||
|
||||
void CreateAxgGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = std::stol(value["GroupId"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAxgGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateAxgGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
long CreateAxgGroupResult::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
115
dyplsapi/src/model/OperateAxgGroupRequest.cc
Normal file
115
dyplsapi/src/model/OperateAxgGroupRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dyplsapi/model/OperateAxgGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyplsapi::Model::OperateAxgGroupRequest;
|
||||
|
||||
OperateAxgGroupRequest::OperateAxgGroupRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "OperateAxgGroup")
|
||||
{}
|
||||
|
||||
OperateAxgGroupRequest::~OperateAxgGroupRequest()
|
||||
{}
|
||||
|
||||
long OperateAxgGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void OperateAxgGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string OperateAxgGroupRequest::getNumbers()const
|
||||
{
|
||||
return numbers_;
|
||||
}
|
||||
|
||||
void OperateAxgGroupRequest::setNumbers(const std::string& numbers)
|
||||
{
|
||||
numbers_ = numbers;
|
||||
setCoreParameter("Numbers", numbers);
|
||||
}
|
||||
|
||||
std::string OperateAxgGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void OperateAxgGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string OperateAxgGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void OperateAxgGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long OperateAxgGroupRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void OperateAxgGroupRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
long OperateAxgGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void OperateAxgGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string OperateAxgGroupRequest::getPoolKey()const
|
||||
{
|
||||
return poolKey_;
|
||||
}
|
||||
|
||||
void OperateAxgGroupRequest::setPoolKey(const std::string& poolKey)
|
||||
{
|
||||
poolKey_ = poolKey;
|
||||
setCoreParameter("PoolKey", poolKey);
|
||||
}
|
||||
|
||||
std::string OperateAxgGroupRequest::getOperateType()const
|
||||
{
|
||||
return operateType_;
|
||||
}
|
||||
|
||||
void OperateAxgGroupRequest::setOperateType(const std::string& operateType)
|
||||
{
|
||||
operateType_ = operateType;
|
||||
setCoreParameter("OperateType", operateType);
|
||||
}
|
||||
|
||||
58
dyplsapi/src/model/OperateAxgGroupResult.cc
Normal file
58
dyplsapi/src/model/OperateAxgGroupResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyplsapi/model/OperateAxgGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyplsapi;
|
||||
using namespace AlibabaCloud::Dyplsapi::Model;
|
||||
|
||||
OperateAxgGroupResult::OperateAxgGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OperateAxgGroupResult::OperateAxgGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OperateAxgGroupResult::~OperateAxgGroupResult()
|
||||
{}
|
||||
|
||||
void OperateAxgGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string OperateAxgGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string OperateAxgGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
104
dyplsapi/src/model/QueryCallStatusRequest.cc
Normal file
104
dyplsapi/src/model/QueryCallStatusRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dyplsapi/model/QueryCallStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyplsapi::Model::QueryCallStatusRequest;
|
||||
|
||||
QueryCallStatusRequest::QueryCallStatusRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "QueryCallStatus")
|
||||
{}
|
||||
|
||||
QueryCallStatusRequest::~QueryCallStatusRequest()
|
||||
{}
|
||||
|
||||
long QueryCallStatusRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QueryCallStatusRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryCallStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryCallStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryCallStatusRequest::getSubsId()const
|
||||
{
|
||||
return subsId_;
|
||||
}
|
||||
|
||||
void QueryCallStatusRequest::setSubsId(const std::string& subsId)
|
||||
{
|
||||
subsId_ = subsId;
|
||||
setCoreParameter("SubsId", subsId);
|
||||
}
|
||||
|
||||
std::string QueryCallStatusRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryCallStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string QueryCallStatusRequest::getCallNo()const
|
||||
{
|
||||
return callNo_;
|
||||
}
|
||||
|
||||
void QueryCallStatusRequest::setCallNo(const std::string& callNo)
|
||||
{
|
||||
callNo_ = callNo;
|
||||
setCoreParameter("CallNo", callNo);
|
||||
}
|
||||
|
||||
long QueryCallStatusRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryCallStatusRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryCallStatusRequest::getPoolKey()const
|
||||
{
|
||||
return poolKey_;
|
||||
}
|
||||
|
||||
void QueryCallStatusRequest::setPoolKey(const std::string& poolKey)
|
||||
{
|
||||
poolKey_ = poolKey;
|
||||
setCoreParameter("PoolKey", poolKey);
|
||||
}
|
||||
|
||||
68
dyplsapi/src/model/QueryCallStatusResult.cc
Normal file
68
dyplsapi/src/model/QueryCallStatusResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyplsapi/model/QueryCallStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyplsapi;
|
||||
using namespace AlibabaCloud::Dyplsapi::Model;
|
||||
|
||||
QueryCallStatusResult::QueryCallStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryCallStatusResult::QueryCallStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryCallStatusResult::~QueryCallStatusResult()
|
||||
{}
|
||||
|
||||
void QueryCallStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto secretCallStatusDTONode = value["SecretCallStatusDTO"];
|
||||
if(!secretCallStatusDTONode["Status"].isNull())
|
||||
secretCallStatusDTO_.status = std::stoi(secretCallStatusDTONode["Status"].asString());
|
||||
if(!secretCallStatusDTONode["CalledNo"].isNull())
|
||||
secretCallStatusDTO_.calledNo = secretCallStatusDTONode["CalledNo"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryCallStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryCallStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
QueryCallStatusResult::SecretCallStatusDTO QueryCallStatusResult::getSecretCallStatusDTO()const
|
||||
{
|
||||
return secretCallStatusDTO_;
|
||||
}
|
||||
|
||||
115
dyplsapi/src/model/QueryRecordFileDownloadUrlRequest.cc
Normal file
115
dyplsapi/src/model/QueryRecordFileDownloadUrlRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dyplsapi/model/QueryRecordFileDownloadUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyplsapi::Model::QueryRecordFileDownloadUrlRequest;
|
||||
|
||||
QueryRecordFileDownloadUrlRequest::QueryRecordFileDownloadUrlRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "QueryRecordFileDownloadUrl")
|
||||
{}
|
||||
|
||||
QueryRecordFileDownloadUrlRequest::~QueryRecordFileDownloadUrlRequest()
|
||||
{}
|
||||
|
||||
std::string QueryRecordFileDownloadUrlRequest::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
}
|
||||
|
||||
void QueryRecordFileDownloadUrlRequest::setCallId(const std::string& callId)
|
||||
{
|
||||
callId_ = callId;
|
||||
setCoreParameter("CallId", callId);
|
||||
}
|
||||
|
||||
long QueryRecordFileDownloadUrlRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QueryRecordFileDownloadUrlRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryRecordFileDownloadUrlRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryRecordFileDownloadUrlRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryRecordFileDownloadUrlRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void QueryRecordFileDownloadUrlRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string QueryRecordFileDownloadUrlRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryRecordFileDownloadUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long QueryRecordFileDownloadUrlRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryRecordFileDownloadUrlRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryRecordFileDownloadUrlRequest::getCallTime()const
|
||||
{
|
||||
return callTime_;
|
||||
}
|
||||
|
||||
void QueryRecordFileDownloadUrlRequest::setCallTime(const std::string& callTime)
|
||||
{
|
||||
callTime_ = callTime;
|
||||
setCoreParameter("CallTime", callTime);
|
||||
}
|
||||
|
||||
std::string QueryRecordFileDownloadUrlRequest::getPoolKey()const
|
||||
{
|
||||
return poolKey_;
|
||||
}
|
||||
|
||||
void QueryRecordFileDownloadUrlRequest::setPoolKey(const std::string& poolKey)
|
||||
{
|
||||
poolKey_ = poolKey;
|
||||
setCoreParameter("PoolKey", poolKey);
|
||||
}
|
||||
|
||||
65
dyplsapi/src/model/QueryRecordFileDownloadUrlResult.cc
Normal file
65
dyplsapi/src/model/QueryRecordFileDownloadUrlResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyplsapi;
|
||||
using namespace AlibabaCloud::Dyplsapi::Model;
|
||||
|
||||
QueryRecordFileDownloadUrlResult::QueryRecordFileDownloadUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryRecordFileDownloadUrlResult::QueryRecordFileDownloadUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryRecordFileDownloadUrlResult::~QueryRecordFileDownloadUrlResult()
|
||||
{}
|
||||
|
||||
void QueryRecordFileDownloadUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DownloadUrl"].isNull())
|
||||
downloadUrl_ = value["DownloadUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryRecordFileDownloadUrlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryRecordFileDownloadUrlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string QueryRecordFileDownloadUrlResult::getDownloadUrl()const
|
||||
{
|
||||
return downloadUrl_;
|
||||
}
|
||||
|
||||
104
dyplsapi/src/model/QuerySecretNoRemainRequest.cc
Normal file
104
dyplsapi/src/model/QuerySecretNoRemainRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dyplsapi/model/QuerySecretNoRemainRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyplsapi::Model::QuerySecretNoRemainRequest;
|
||||
|
||||
QuerySecretNoRemainRequest::QuerySecretNoRemainRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySecretNoRemain")
|
||||
{}
|
||||
|
||||
QuerySecretNoRemainRequest::~QuerySecretNoRemainRequest()
|
||||
{}
|
||||
|
||||
long QuerySecretNoRemainRequest::getSpecId()const
|
||||
{
|
||||
return specId_;
|
||||
}
|
||||
|
||||
void QuerySecretNoRemainRequest::setSpecId(long specId)
|
||||
{
|
||||
specId_ = specId;
|
||||
setCoreParameter("SpecId", std::to_string(specId));
|
||||
}
|
||||
|
||||
long QuerySecretNoRemainRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QuerySecretNoRemainRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QuerySecretNoRemainRequest::getCity()const
|
||||
{
|
||||
return city_;
|
||||
}
|
||||
|
||||
void QuerySecretNoRemainRequest::setCity(const std::string& city)
|
||||
{
|
||||
city_ = city;
|
||||
setCoreParameter("City", city);
|
||||
}
|
||||
|
||||
std::string QuerySecretNoRemainRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QuerySecretNoRemainRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QuerySecretNoRemainRequest::getSecretNo()const
|
||||
{
|
||||
return secretNo_;
|
||||
}
|
||||
|
||||
void QuerySecretNoRemainRequest::setSecretNo(const std::string& secretNo)
|
||||
{
|
||||
secretNo_ = secretNo;
|
||||
setCoreParameter("SecretNo", secretNo);
|
||||
}
|
||||
|
||||
std::string QuerySecretNoRemainRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QuerySecretNoRemainRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long QuerySecretNoRemainRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QuerySecretNoRemainRequest::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