由空木发起的PVTZ SDK自动发布, 版本号:1.10.0

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2018-05-17 16:51:56 +08:00
parent 134bd61cdc
commit 62e3b9762a
79 changed files with 5814 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
2018-05-17 Version: 1.10.0
1, the first version of private dns SDK
2018-05-11 Version: 1.9.1
1, Add Function Compute interface,support Function Compute.

View File

@@ -70,4 +70,5 @@ add_subdirectory(csb)
add_subdirectory(domain)
add_subdirectory(green)
add_subdirectory(hsm)
add_subdirectory(dcdn)
add_subdirectory(dcdn)
add_subdirectory(pvtz)

View File

@@ -1 +1 @@
1.9.1
1.10.0

154
pvtz/CMakeLists.txt Normal file
View File

@@ -0,0 +1,154 @@
#
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT 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(pvtz_public_header
include/alibabacloud/pvtz/PvtzClient.h
include/alibabacloud/pvtz/PvtzExport.h )
set(pvtz_public_header_model
include/alibabacloud/pvtz/model/AddZoneRecordRequest.h
include/alibabacloud/pvtz/model/AddZoneRecordResult.h
include/alibabacloud/pvtz/model/DescribeZoneInfoRequest.h
include/alibabacloud/pvtz/model/DescribeZoneInfoResult.h
include/alibabacloud/pvtz/model/DeleteZoneRecordRequest.h
include/alibabacloud/pvtz/model/DeleteZoneRecordResult.h
include/alibabacloud/pvtz/model/UpdateZoneRemarkRequest.h
include/alibabacloud/pvtz/model/UpdateZoneRemarkResult.h
include/alibabacloud/pvtz/model/CheckZoneNameRequest.h
include/alibabacloud/pvtz/model/CheckZoneNameResult.h
include/alibabacloud/pvtz/model/UpdateZoneRecordRequest.h
include/alibabacloud/pvtz/model/UpdateZoneRecordResult.h
include/alibabacloud/pvtz/model/AddZoneRequest.h
include/alibabacloud/pvtz/model/AddZoneResult.h
include/alibabacloud/pvtz/model/BindZoneVpcRequest.h
include/alibabacloud/pvtz/model/BindZoneVpcResult.h
include/alibabacloud/pvtz/model/DescribeRequestGraphRequest.h
include/alibabacloud/pvtz/model/DescribeRequestGraphResult.h
include/alibabacloud/pvtz/model/DescribeStatisticSummaryRequest.h
include/alibabacloud/pvtz/model/DescribeStatisticSummaryResult.h
include/alibabacloud/pvtz/model/DescribeZoneVpcTreeRequest.h
include/alibabacloud/pvtz/model/DescribeZoneVpcTreeResult.h
include/alibabacloud/pvtz/model/DescribeChangeLogsRequest.h
include/alibabacloud/pvtz/model/DescribeChangeLogsResult.h
include/alibabacloud/pvtz/model/DeleteZoneRequest.h
include/alibabacloud/pvtz/model/DeleteZoneResult.h
include/alibabacloud/pvtz/model/DescribeUserServiceStatusRequest.h
include/alibabacloud/pvtz/model/DescribeUserServiceStatusResult.h
include/alibabacloud/pvtz/model/DescribeRegionsRequest.h
include/alibabacloud/pvtz/model/DescribeRegionsResult.h
include/alibabacloud/pvtz/model/DescribeZoneRecordsRequest.h
include/alibabacloud/pvtz/model/DescribeZoneRecordsResult.h
include/alibabacloud/pvtz/model/SetZoneRecordStatusRequest.h
include/alibabacloud/pvtz/model/SetZoneRecordStatusResult.h
include/alibabacloud/pvtz/model/DescribeZonesRequest.h
include/alibabacloud/pvtz/model/DescribeZonesResult.h )
set(pvtz_src
src/PvtzClient.cc
src/model/AddZoneRecordRequest.cc
src/model/AddZoneRecordResult.cc
src/model/DescribeZoneInfoRequest.cc
src/model/DescribeZoneInfoResult.cc
src/model/DeleteZoneRecordRequest.cc
src/model/DeleteZoneRecordResult.cc
src/model/UpdateZoneRemarkRequest.cc
src/model/UpdateZoneRemarkResult.cc
src/model/CheckZoneNameRequest.cc
src/model/CheckZoneNameResult.cc
src/model/UpdateZoneRecordRequest.cc
src/model/UpdateZoneRecordResult.cc
src/model/AddZoneRequest.cc
src/model/AddZoneResult.cc
src/model/BindZoneVpcRequest.cc
src/model/BindZoneVpcResult.cc
src/model/DescribeRequestGraphRequest.cc
src/model/DescribeRequestGraphResult.cc
src/model/DescribeStatisticSummaryRequest.cc
src/model/DescribeStatisticSummaryResult.cc
src/model/DescribeZoneVpcTreeRequest.cc
src/model/DescribeZoneVpcTreeResult.cc
src/model/DescribeChangeLogsRequest.cc
src/model/DescribeChangeLogsResult.cc
src/model/DeleteZoneRequest.cc
src/model/DeleteZoneResult.cc
src/model/DescribeUserServiceStatusRequest.cc
src/model/DescribeUserServiceStatusResult.cc
src/model/DescribeRegionsRequest.cc
src/model/DescribeRegionsResult.cc
src/model/DescribeZoneRecordsRequest.cc
src/model/DescribeZoneRecordsResult.cc
src/model/SetZoneRecordStatusRequest.cc
src/model/SetZoneRecordStatusResult.cc
src/model/DescribeZonesRequest.cc
src/model/DescribeZonesResult.cc )
add_library(pvtz ${LIB_TYPE}
${pvtz_public_header}
${pvtz_public_header_model}
${pvtz_src})
set_target_properties(pvtz
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}pvtz
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(pvtz
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_PVTZ_LIBRARY)
endif()
target_include_directories(pvtz
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(pvtz
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(pvtz
jsoncpp)
target_include_directories(pvtz
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(pvtz
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(pvtz
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(pvtz
PRIVATE /usr/include/jsoncpp)
target_link_libraries(pvtz
jsoncpp)
endif()
install(FILES ${pvtz_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/pvtz)
install(FILES ${pvtz_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/pvtz/model)
install(TARGETS pvtz
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -0,0 +1,190 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_PVTZCLIENT_H_
#define ALIBABACLOUD_PVTZ_PVTZCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "PvtzExport.h"
#include "model/AddZoneRecordRequest.h"
#include "model/AddZoneRecordResult.h"
#include "model/DescribeZoneInfoRequest.h"
#include "model/DescribeZoneInfoResult.h"
#include "model/DeleteZoneRecordRequest.h"
#include "model/DeleteZoneRecordResult.h"
#include "model/UpdateZoneRemarkRequest.h"
#include "model/UpdateZoneRemarkResult.h"
#include "model/CheckZoneNameRequest.h"
#include "model/CheckZoneNameResult.h"
#include "model/UpdateZoneRecordRequest.h"
#include "model/UpdateZoneRecordResult.h"
#include "model/AddZoneRequest.h"
#include "model/AddZoneResult.h"
#include "model/BindZoneVpcRequest.h"
#include "model/BindZoneVpcResult.h"
#include "model/DescribeRequestGraphRequest.h"
#include "model/DescribeRequestGraphResult.h"
#include "model/DescribeStatisticSummaryRequest.h"
#include "model/DescribeStatisticSummaryResult.h"
#include "model/DescribeZoneVpcTreeRequest.h"
#include "model/DescribeZoneVpcTreeResult.h"
#include "model/DescribeChangeLogsRequest.h"
#include "model/DescribeChangeLogsResult.h"
#include "model/DeleteZoneRequest.h"
#include "model/DeleteZoneResult.h"
#include "model/DescribeUserServiceStatusRequest.h"
#include "model/DescribeUserServiceStatusResult.h"
#include "model/DescribeRegionsRequest.h"
#include "model/DescribeRegionsResult.h"
#include "model/DescribeZoneRecordsRequest.h"
#include "model/DescribeZoneRecordsResult.h"
#include "model/SetZoneRecordStatusRequest.h"
#include "model/SetZoneRecordStatusResult.h"
#include "model/DescribeZonesRequest.h"
#include "model/DescribeZonesResult.h"
namespace AlibabaCloud
{
namespace Pvtz
{
class ALIBABACLOUD_PVTZ_EXPORT PvtzClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AddZoneRecordResult> AddZoneRecordOutcome;
typedef std::future<AddZoneRecordOutcome> AddZoneRecordOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::AddZoneRecordRequest&, const AddZoneRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddZoneRecordAsyncHandler;
typedef Outcome<Error, Model::DescribeZoneInfoResult> DescribeZoneInfoOutcome;
typedef std::future<DescribeZoneInfoOutcome> DescribeZoneInfoOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::DescribeZoneInfoRequest&, const DescribeZoneInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeZoneInfoAsyncHandler;
typedef Outcome<Error, Model::DeleteZoneRecordResult> DeleteZoneRecordOutcome;
typedef std::future<DeleteZoneRecordOutcome> DeleteZoneRecordOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::DeleteZoneRecordRequest&, const DeleteZoneRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteZoneRecordAsyncHandler;
typedef Outcome<Error, Model::UpdateZoneRemarkResult> UpdateZoneRemarkOutcome;
typedef std::future<UpdateZoneRemarkOutcome> UpdateZoneRemarkOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::UpdateZoneRemarkRequest&, const UpdateZoneRemarkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateZoneRemarkAsyncHandler;
typedef Outcome<Error, Model::CheckZoneNameResult> CheckZoneNameOutcome;
typedef std::future<CheckZoneNameOutcome> CheckZoneNameOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::CheckZoneNameRequest&, const CheckZoneNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckZoneNameAsyncHandler;
typedef Outcome<Error, Model::UpdateZoneRecordResult> UpdateZoneRecordOutcome;
typedef std::future<UpdateZoneRecordOutcome> UpdateZoneRecordOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::UpdateZoneRecordRequest&, const UpdateZoneRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateZoneRecordAsyncHandler;
typedef Outcome<Error, Model::AddZoneResult> AddZoneOutcome;
typedef std::future<AddZoneOutcome> AddZoneOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::AddZoneRequest&, const AddZoneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddZoneAsyncHandler;
typedef Outcome<Error, Model::BindZoneVpcResult> BindZoneVpcOutcome;
typedef std::future<BindZoneVpcOutcome> BindZoneVpcOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::BindZoneVpcRequest&, const BindZoneVpcOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindZoneVpcAsyncHandler;
typedef Outcome<Error, Model::DescribeRequestGraphResult> DescribeRequestGraphOutcome;
typedef std::future<DescribeRequestGraphOutcome> DescribeRequestGraphOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::DescribeRequestGraphRequest&, const DescribeRequestGraphOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRequestGraphAsyncHandler;
typedef Outcome<Error, Model::DescribeStatisticSummaryResult> DescribeStatisticSummaryOutcome;
typedef std::future<DescribeStatisticSummaryOutcome> DescribeStatisticSummaryOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::DescribeStatisticSummaryRequest&, const DescribeStatisticSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStatisticSummaryAsyncHandler;
typedef Outcome<Error, Model::DescribeZoneVpcTreeResult> DescribeZoneVpcTreeOutcome;
typedef std::future<DescribeZoneVpcTreeOutcome> DescribeZoneVpcTreeOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::DescribeZoneVpcTreeRequest&, const DescribeZoneVpcTreeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeZoneVpcTreeAsyncHandler;
typedef Outcome<Error, Model::DescribeChangeLogsResult> DescribeChangeLogsOutcome;
typedef std::future<DescribeChangeLogsOutcome> DescribeChangeLogsOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::DescribeChangeLogsRequest&, const DescribeChangeLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeChangeLogsAsyncHandler;
typedef Outcome<Error, Model::DeleteZoneResult> DeleteZoneOutcome;
typedef std::future<DeleteZoneOutcome> DeleteZoneOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::DeleteZoneRequest&, const DeleteZoneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteZoneAsyncHandler;
typedef Outcome<Error, Model::DescribeUserServiceStatusResult> DescribeUserServiceStatusOutcome;
typedef std::future<DescribeUserServiceStatusOutcome> DescribeUserServiceStatusOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::DescribeUserServiceStatusRequest&, const DescribeUserServiceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserServiceStatusAsyncHandler;
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
typedef Outcome<Error, Model::DescribeZoneRecordsResult> DescribeZoneRecordsOutcome;
typedef std::future<DescribeZoneRecordsOutcome> DescribeZoneRecordsOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::DescribeZoneRecordsRequest&, const DescribeZoneRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeZoneRecordsAsyncHandler;
typedef Outcome<Error, Model::SetZoneRecordStatusResult> SetZoneRecordStatusOutcome;
typedef std::future<SetZoneRecordStatusOutcome> SetZoneRecordStatusOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::SetZoneRecordStatusRequest&, const SetZoneRecordStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetZoneRecordStatusAsyncHandler;
typedef Outcome<Error, Model::DescribeZonesResult> DescribeZonesOutcome;
typedef std::future<DescribeZonesOutcome> DescribeZonesOutcomeCallable;
typedef std::function<void(const PvtzClient*, const Model::DescribeZonesRequest&, const DescribeZonesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeZonesAsyncHandler;
PvtzClient(const Credentials &credentials, const ClientConfiguration &configuration);
PvtzClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
PvtzClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~PvtzClient();
AddZoneRecordOutcome addZoneRecord(const Model::AddZoneRecordRequest &request)const;
void addZoneRecordAsync(const Model::AddZoneRecordRequest& request, const AddZoneRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddZoneRecordOutcomeCallable addZoneRecordCallable(const Model::AddZoneRecordRequest& request) const;
DescribeZoneInfoOutcome describeZoneInfo(const Model::DescribeZoneInfoRequest &request)const;
void describeZoneInfoAsync(const Model::DescribeZoneInfoRequest& request, const DescribeZoneInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeZoneInfoOutcomeCallable describeZoneInfoCallable(const Model::DescribeZoneInfoRequest& request) const;
DeleteZoneRecordOutcome deleteZoneRecord(const Model::DeleteZoneRecordRequest &request)const;
void deleteZoneRecordAsync(const Model::DeleteZoneRecordRequest& request, const DeleteZoneRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteZoneRecordOutcomeCallable deleteZoneRecordCallable(const Model::DeleteZoneRecordRequest& request) const;
UpdateZoneRemarkOutcome updateZoneRemark(const Model::UpdateZoneRemarkRequest &request)const;
void updateZoneRemarkAsync(const Model::UpdateZoneRemarkRequest& request, const UpdateZoneRemarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateZoneRemarkOutcomeCallable updateZoneRemarkCallable(const Model::UpdateZoneRemarkRequest& request) const;
CheckZoneNameOutcome checkZoneName(const Model::CheckZoneNameRequest &request)const;
void checkZoneNameAsync(const Model::CheckZoneNameRequest& request, const CheckZoneNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckZoneNameOutcomeCallable checkZoneNameCallable(const Model::CheckZoneNameRequest& request) const;
UpdateZoneRecordOutcome updateZoneRecord(const Model::UpdateZoneRecordRequest &request)const;
void updateZoneRecordAsync(const Model::UpdateZoneRecordRequest& request, const UpdateZoneRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateZoneRecordOutcomeCallable updateZoneRecordCallable(const Model::UpdateZoneRecordRequest& request) const;
AddZoneOutcome addZone(const Model::AddZoneRequest &request)const;
void addZoneAsync(const Model::AddZoneRequest& request, const AddZoneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddZoneOutcomeCallable addZoneCallable(const Model::AddZoneRequest& request) const;
BindZoneVpcOutcome bindZoneVpc(const Model::BindZoneVpcRequest &request)const;
void bindZoneVpcAsync(const Model::BindZoneVpcRequest& request, const BindZoneVpcAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BindZoneVpcOutcomeCallable bindZoneVpcCallable(const Model::BindZoneVpcRequest& request) const;
DescribeRequestGraphOutcome describeRequestGraph(const Model::DescribeRequestGraphRequest &request)const;
void describeRequestGraphAsync(const Model::DescribeRequestGraphRequest& request, const DescribeRequestGraphAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRequestGraphOutcomeCallable describeRequestGraphCallable(const Model::DescribeRequestGraphRequest& request) const;
DescribeStatisticSummaryOutcome describeStatisticSummary(const Model::DescribeStatisticSummaryRequest &request)const;
void describeStatisticSummaryAsync(const Model::DescribeStatisticSummaryRequest& request, const DescribeStatisticSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeStatisticSummaryOutcomeCallable describeStatisticSummaryCallable(const Model::DescribeStatisticSummaryRequest& request) const;
DescribeZoneVpcTreeOutcome describeZoneVpcTree(const Model::DescribeZoneVpcTreeRequest &request)const;
void describeZoneVpcTreeAsync(const Model::DescribeZoneVpcTreeRequest& request, const DescribeZoneVpcTreeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeZoneVpcTreeOutcomeCallable describeZoneVpcTreeCallable(const Model::DescribeZoneVpcTreeRequest& request) const;
DescribeChangeLogsOutcome describeChangeLogs(const Model::DescribeChangeLogsRequest &request)const;
void describeChangeLogsAsync(const Model::DescribeChangeLogsRequest& request, const DescribeChangeLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeChangeLogsOutcomeCallable describeChangeLogsCallable(const Model::DescribeChangeLogsRequest& request) const;
DeleteZoneOutcome deleteZone(const Model::DeleteZoneRequest &request)const;
void deleteZoneAsync(const Model::DeleteZoneRequest& request, const DeleteZoneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteZoneOutcomeCallable deleteZoneCallable(const Model::DeleteZoneRequest& request) const;
DescribeUserServiceStatusOutcome describeUserServiceStatus(const Model::DescribeUserServiceStatusRequest &request)const;
void describeUserServiceStatusAsync(const Model::DescribeUserServiceStatusRequest& request, const DescribeUserServiceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUserServiceStatusOutcomeCallable describeUserServiceStatusCallable(const Model::DescribeUserServiceStatusRequest& request) const;
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
DescribeZoneRecordsOutcome describeZoneRecords(const Model::DescribeZoneRecordsRequest &request)const;
void describeZoneRecordsAsync(const Model::DescribeZoneRecordsRequest& request, const DescribeZoneRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeZoneRecordsOutcomeCallable describeZoneRecordsCallable(const Model::DescribeZoneRecordsRequest& request) const;
SetZoneRecordStatusOutcome setZoneRecordStatus(const Model::SetZoneRecordStatusRequest &request)const;
void setZoneRecordStatusAsync(const Model::SetZoneRecordStatusRequest& request, const SetZoneRecordStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetZoneRecordStatusOutcomeCallable setZoneRecordStatusCallable(const Model::SetZoneRecordStatusRequest& request) const;
DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const;
void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_PVTZ_PVTZCLIENT_H_

View 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_PVTZ_PVTZEXPORT_H_
#define ALIBABACLOUD_PVTZ_PVTZEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_PVTZ_LIBRARY)
# define ALIBABACLOUD_PVTZ_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_PVTZ_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_PVTZ_EXPORT
#endif
#endif // !ALIBABACLOUD_PVTZ_PVTZEXPORT_H_

View File

@@ -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_PVTZ_MODEL_ADDZONERECORDREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_ADDZONERECORDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT AddZoneRecordRequest : public RpcServiceRequest
{
public:
AddZoneRecordRequest();
~AddZoneRecordRequest();
std::string getRr()const;
void setRr(const std::string& rr);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getType()const;
void setType(const std::string& type);
int getPriority()const;
void setPriority(int priority);
int getTtl()const;
void setTtl(int ttl);
std::string getValue()const;
void setValue(const std::string& value);
private:
std::string rr_;
std::string userClientIp_;
std::string zoneId_;
std::string lang_;
std::string type_;
int priority_;
int ttl_;
std::string value_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_ADDZONERECORDREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_ADDZONERECORDRESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_ADDZONERECORDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT AddZoneRecordResult : public ServiceResult
{
public:
AddZoneRecordResult();
explicit AddZoneRecordResult(const std::string &payload);
~AddZoneRecordResult();
long getRecordId()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
long recordId_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_ADDZONERECORDRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_ADDZONEREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_ADDZONEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT AddZoneRequest : public RpcServiceRequest
{
public:
AddZoneRequest();
~AddZoneRequest();
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getZoneName()const;
void setZoneName(const std::string& zoneName);
private:
std::string userClientIp_;
std::string lang_;
std::string zoneName_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_ADDZONEREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_ADDZONERESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_ADDZONERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT AddZoneResult : public ServiceResult
{
public:
AddZoneResult();
explicit AddZoneResult(const std::string &payload);
~AddZoneResult();
std::string getZoneName()const;
std::string getZoneId()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string zoneName_;
std::string zoneId_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_ADDZONERESULT_H_

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_BINDZONEVPCREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_BINDZONEVPCREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT BindZoneVpcRequest : public RpcServiceRequest
{
struct Vpcs
{
std::string regionId;
std::string vpcId;
};
public:
BindZoneVpcRequest();
~BindZoneVpcRequest();
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getLang()const;
void setLang(const std::string& lang);
std::vector<Vpcs> getVpcs()const;
void setVpcs(const std::vector<Vpcs>& vpcs);
private:
std::string userClientIp_;
std::string zoneId_;
std::string lang_;
std::vector<Vpcs> vpcs_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_BINDZONEVPCREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_BINDZONEVPCRESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_BINDZONEVPCRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT BindZoneVpcResult : public ServiceResult
{
public:
BindZoneVpcResult();
explicit BindZoneVpcResult(const std::string &payload);
~BindZoneVpcResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_BINDZONEVPCRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_CHECKZONENAMEREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_CHECKZONENAMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT CheckZoneNameRequest : public RpcServiceRequest
{
public:
CheckZoneNameRequest();
~CheckZoneNameRequest();
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getZoneName()const;
void setZoneName(const std::string& zoneName);
private:
std::string userClientIp_;
std::string lang_;
std::string zoneName_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_CHECKZONENAMEREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_CHECKZONENAMERESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_CHECKZONENAMERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT CheckZoneNameResult : public ServiceResult
{
public:
CheckZoneNameResult();
explicit CheckZoneNameResult(const std::string &payload);
~CheckZoneNameResult();
bool getCheck()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
bool check_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_CHECKZONENAMERESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DELETEZONERECORDREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_DELETEZONERECORDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DeleteZoneRecordRequest : public RpcServiceRequest
{
public:
DeleteZoneRecordRequest();
~DeleteZoneRecordRequest();
long getRecordId()const;
void setRecordId(long recordId);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
long recordId_;
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DELETEZONERECORDREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DELETEZONERECORDRESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_DELETEZONERECORDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DeleteZoneRecordResult : public ServiceResult
{
public:
DeleteZoneRecordResult();
explicit DeleteZoneRecordResult(const std::string &payload);
~DeleteZoneRecordResult();
long getRecordId()const;
protected:
void parse(const std::string &payload);
private:
long recordId_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DELETEZONERECORDRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DELETEZONEREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_DELETEZONEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DeleteZoneRequest : public RpcServiceRequest
{
public:
DeleteZoneRequest();
~DeleteZoneRequest();
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string userClientIp_;
std::string zoneId_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DELETEZONEREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DELETEZONERESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_DELETEZONERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DeleteZoneResult : public ServiceResult
{
public:
DeleteZoneResult();
explicit DeleteZoneResult(const std::string &payload);
~DeleteZoneResult();
std::string getZoneId()const;
protected:
void parse(const std::string &payload);
private:
std::string zoneId_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DELETEZONERESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBECHANGELOGSREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBECHANGELOGSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeChangeLogsRequest : public RpcServiceRequest
{
public:
DescribeChangeLogsRequest();
~DescribeChangeLogsRequest();
std::string getEntityType()const;
void setEntityType(const std::string& entityType);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getKeyword()const;
void setKeyword(const std::string& keyword);
std::string getLang()const;
void setLang(const std::string& lang);
long getStartTimestamp()const;
void setStartTimestamp(long startTimestamp);
int getPageNumber()const;
void setPageNumber(int pageNumber);
long getEndTimestamp()const;
void setEndTimestamp(long endTimestamp);
private:
std::string entityType_;
int pageSize_;
std::string userClientIp_;
std::string zoneId_;
std::string keyword_;
std::string lang_;
long startTimestamp_;
int pageNumber_;
long endTimestamp_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBECHANGELOGSREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBECHANGELOGSRESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBECHANGELOGSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeChangeLogsResult : public ServiceResult
{
public:
struct ChangeLog
{
std::string operObject;
std::string entityId;
std::string entityName;
std::string operTime;
std::string content;
long operTimestamp;
long id;
std::string operIp;
std::string operAction;
};
DescribeChangeLogsResult();
explicit DescribeChangeLogsResult(const std::string &payload);
~DescribeChangeLogsResult();
std::vector<ChangeLog> getChangeLogs()const;
int getPageSize()const;
int getPageNumber()const;
int getTotalPages()const;
int getTotalItems()const;
protected:
void parse(const std::string &payload);
private:
std::vector<ChangeLog> changeLogs_;
int pageSize_;
int pageNumber_;
int totalPages_;
int totalItems_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBECHANGELOGSRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREGIONSREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREGIONSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeRegionsRequest : public RpcServiceRequest
{
public:
DescribeRegionsRequest();
~DescribeRegionsRequest();
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREGIONSREQUEST_H_

View File

@@ -0,0 +1,56 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREGIONSRESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREGIONSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeRegionsResult : public ServiceResult
{
public:
struct Region
{
std::string regionName;
std::string regionId;
};
DescribeRegionsResult();
explicit DescribeRegionsResult(const std::string &payload);
~DescribeRegionsResult();
std::vector<Region> getRegions()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Region> regions_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREGIONSRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREQUESTGRAPHREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREQUESTGRAPHREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeRequestGraphRequest : public RpcServiceRequest
{
public:
DescribeRequestGraphRequest();
~DescribeRequestGraphRequest();
std::string getVpcId()const;
void setVpcId(const std::string& vpcId);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getLang()const;
void setLang(const std::string& lang);
long getStartTimestamp()const;
void setStartTimestamp(long startTimestamp);
long getEndTimestamp()const;
void setEndTimestamp(long endTimestamp);
private:
std::string vpcId_;
std::string userClientIp_;
std::string zoneId_;
std::string lang_;
long startTimestamp_;
long endTimestamp_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREQUESTGRAPHREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREQUESTGRAPHRESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREQUESTGRAPHRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeRequestGraphResult : public ServiceResult
{
public:
struct ZoneRequestTop
{
std::string time;
long timestamp;
long requestCount;
};
DescribeRequestGraphResult();
explicit DescribeRequestGraphResult(const std::string &payload);
~DescribeRequestGraphResult();
std::vector<ZoneRequestTop> getRequestDetails()const;
protected:
void parse(const std::string &payload);
private:
std::vector<ZoneRequestTop> requestDetails_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREQUESTGRAPHRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBESTATISTICSUMMARYREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBESTATISTICSUMMARYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeStatisticSummaryRequest : public RpcServiceRequest
{
public:
DescribeStatisticSummaryRequest();
~DescribeStatisticSummaryRequest();
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBESTATISTICSUMMARYREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBESTATISTICSUMMARYRESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBESTATISTICSUMMARYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeStatisticSummaryResult : public ServiceResult
{
public:
struct ZoneRequestTop
{
std::string zoneName;
long requestCount;
};
struct VpcRequestTop
{
std::string vpcId;
std::string regionName;
std::string regionId;
std::string tunnelId;
long requestCount;
};
DescribeStatisticSummaryResult();
explicit DescribeStatisticSummaryResult(const std::string &payload);
~DescribeStatisticSummaryResult();
long getTotalCount()const;
std::vector<ZoneRequestTop> getZoneRequestTops()const;
std::vector<VpcRequestTop> getVpcRequestTops()const;
protected:
void parse(const std::string &payload);
private:
long totalCount_;
std::vector<ZoneRequestTop> zoneRequestTops_;
std::vector<VpcRequestTop> vpcRequestTops_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBESTATISTICSUMMARYRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEUSERSERVICESTATUSREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEUSERSERVICESTATUSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeUserServiceStatusRequest : public RpcServiceRequest
{
public:
DescribeUserServiceStatusRequest();
~DescribeUserServiceStatusRequest();
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEUSERSERVICESTATUSREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEUSERSERVICESTATUSRESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEUSERSERVICESTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeUserServiceStatusResult : public ServiceResult
{
public:
DescribeUserServiceStatusResult();
explicit DescribeUserServiceStatusResult(const std::string &payload);
~DescribeUserServiceStatusResult();
std::string getStatus()const;
protected:
void parse(const std::string &payload);
private:
std::string status_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEUSERSERVICESTATUSRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEINFOREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEINFOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeZoneInfoRequest : public RpcServiceRequest
{
public:
DescribeZoneInfoRequest();
~DescribeZoneInfoRequest();
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string userClientIp_;
std::string zoneId_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEINFOREQUEST_H_

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEINFORESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEINFORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeZoneInfoResult : public ServiceResult
{
public:
struct Vpc
{
std::string reionId;
std::string vpcId;
std::string regionName;
std::string vpcName;
};
DescribeZoneInfoResult();
explicit DescribeZoneInfoResult(const std::string &payload);
~DescribeZoneInfoResult();
std::string getZoneName()const;
std::string getZoneId()const;
std::string getCreateTime()const;
std::string getUpdateTime()const;
long getUpdateTimestamp()const;
std::vector<Vpc> getBindVpcs()const;
int getRecordCount()const;
long getCreateTimestamp()const;
bool getIsPtr()const;
std::string getRemark()const;
protected:
void parse(const std::string &payload);
private:
std::string zoneName_;
std::string zoneId_;
std::string createTime_;
std::string updateTime_;
long updateTimestamp_;
std::vector<Vpc> bindVpcs_;
int recordCount_;
long createTimestamp_;
bool isPtr_;
std::string remark_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEINFORESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONERECORDSREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONERECORDSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeZoneRecordsRequest : public RpcServiceRequest
{
public:
DescribeZoneRecordsRequest();
~DescribeZoneRecordsRequest();
int getPageSize()const;
void setPageSize(int pageSize);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getTag()const;
void setTag(const std::string& tag);
std::string getKeyword()const;
void setKeyword(const std::string& keyword);
std::string getLang()const;
void setLang(const std::string& lang);
int getPageNumber()const;
void setPageNumber(int pageNumber);
private:
int pageSize_;
std::string userClientIp_;
std::string zoneId_;
std::string tag_;
std::string keyword_;
std::string lang_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONERECORDSREQUEST_H_

View File

@@ -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_PVTZ_MODEL_DESCRIBEZONERECORDSRESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONERECORDSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeZoneRecordsResult : public ServiceResult
{
public:
struct Record
{
std::string rr;
std::string status;
std::string type;
int priority;
std::string value;
long recordId;
int ttl;
};
DescribeZoneRecordsResult();
explicit DescribeZoneRecordsResult(const std::string &payload);
~DescribeZoneRecordsResult();
int getPageSize()const;
int getPageNumber()const;
int getTotalPages()const;
int getTotalItems()const;
std::vector<Record> getRecords()const;
protected:
void parse(const std::string &payload);
private:
int pageSize_;
int pageNumber_;
int totalPages_;
int totalItems_;
std::vector<Record> records_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONERECORDSRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEVPCTREEREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEVPCTREEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeZoneVpcTreeRequest : public RpcServiceRequest
{
public:
DescribeZoneVpcTreeRequest();
~DescribeZoneVpcTreeRequest();
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEVPCTREEREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEVPCTREERESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEVPCTREERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeZoneVpcTreeResult : public ServiceResult
{
public:
struct Zone
{
struct Vpc
{
std::string vpcId;
std::string regionName;
std::string vpcName;
std::string regionId;
};
std::string zoneName;
std::vector<Zone::Vpc> vpcs;
std::string zoneId;
std::string createTime;
std::string updateTime;
long updateTimestamp;
int recordCount;
long createTimestamp;
bool isPtr;
std::string remark;
};
DescribeZoneVpcTreeResult();
explicit DescribeZoneVpcTreeResult(const std::string &payload);
~DescribeZoneVpcTreeResult();
std::vector<Zone> getZones()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Zone> zones_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEVPCTREERESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONESREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeZonesRequest : public RpcServiceRequest
{
public:
DescribeZonesRequest();
~DescribeZonesRequest();
int getPageSize()const;
void setPageSize(int pageSize);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getKeyword()const;
void setKeyword(const std::string& keyword);
int getPageNumber()const;
void setPageNumber(int pageNumber);
private:
int pageSize_;
std::string userClientIp_;
std::string lang_;
std::string keyword_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONESREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONESRESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT DescribeZonesResult : public ServiceResult
{
public:
struct Zone
{
std::string zoneName;
std::string zoneId;
std::string createTime;
std::string updateTime;
long updateTimestamp;
int recordCount;
long createTimestamp;
bool isPtr;
std::string remark;
};
DescribeZonesResult();
explicit DescribeZonesResult(const std::string &payload);
~DescribeZonesResult();
int getPageSize()const;
int getPageNumber()const;
int getTotalPages()const;
int getTotalItems()const;
std::vector<Zone> getZones()const;
protected:
void parse(const std::string &payload);
private:
int pageSize_;
int pageNumber_;
int totalPages_;
int totalItems_;
std::vector<Zone> zones_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONESRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_SETZONERECORDSTATUSREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_SETZONERECORDSTATUSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT SetZoneRecordStatusRequest : public RpcServiceRequest
{
public:
SetZoneRecordStatusRequest();
~SetZoneRecordStatusRequest();
long getRecordId()const;
void setRecordId(long recordId);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
long recordId_;
std::string userClientIp_;
std::string lang_;
std::string status_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_SETZONERECORDSTATUSREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_SETZONERECORDSTATUSRESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_SETZONERECORDSTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT SetZoneRecordStatusResult : public ServiceResult
{
public:
SetZoneRecordStatusResult();
explicit SetZoneRecordStatusResult(const std::string &payload);
~SetZoneRecordStatusResult();
std::string getStatus()const;
long getRecordId()const;
protected:
void parse(const std::string &payload);
private:
std::string status_;
long recordId_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_SETZONERECORDSTATUSRESULT_H_

View File

@@ -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_PVTZ_MODEL_UPDATEZONERECORDREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_UPDATEZONERECORDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT UpdateZoneRecordRequest : public RpcServiceRequest
{
public:
UpdateZoneRecordRequest();
~UpdateZoneRecordRequest();
std::string getRr()const;
void setRr(const std::string& rr);
long getRecordId()const;
void setRecordId(long recordId);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getType()const;
void setType(const std::string& type);
int getPriority()const;
void setPriority(int priority);
int getTtl()const;
void setTtl(int ttl);
std::string getValue()const;
void setValue(const std::string& value);
private:
std::string rr_;
long recordId_;
std::string userClientIp_;
std::string lang_;
std::string type_;
int priority_;
int ttl_;
std::string value_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_UPDATEZONERECORDREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_UPDATEZONERECORDRESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_UPDATEZONERECORDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT UpdateZoneRecordResult : public ServiceResult
{
public:
UpdateZoneRecordResult();
explicit UpdateZoneRecordResult(const std::string &payload);
~UpdateZoneRecordResult();
long getRecordId()const;
protected:
void parse(const std::string &payload);
private:
long recordId_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_UPDATEZONERECORDRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_UPDATEZONEREMARKREQUEST_H_
#define ALIBABACLOUD_PVTZ_MODEL_UPDATEZONEREMARKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT UpdateZoneRemarkRequest : public RpcServiceRequest
{
public:
UpdateZoneRemarkRequest();
~UpdateZoneRemarkRequest();
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string userClientIp_;
std::string zoneId_;
std::string remark_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_UPDATEZONEREMARKREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PVTZ_MODEL_UPDATEZONEREMARKRESULT_H_
#define ALIBABACLOUD_PVTZ_MODEL_UPDATEZONEREMARKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/pvtz/PvtzExport.h>
namespace AlibabaCloud
{
namespace Pvtz
{
namespace Model
{
class ALIBABACLOUD_PVTZ_EXPORT UpdateZoneRemarkResult : public ServiceResult
{
public:
UpdateZoneRemarkResult();
explicit UpdateZoneRemarkResult(const std::string &payload);
~UpdateZoneRemarkResult();
std::string getZoneId()const;
protected:
void parse(const std::string &payload);
private:
std::string zoneId_;
};
}
}
}
#endif // !ALIBABACLOUD_PVTZ_MODEL_UPDATEZONEREMARKRESULT_H_

701
pvtz/src/PvtzClient.cc Normal file
View File

@@ -0,0 +1,701 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/pvtz/PvtzClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
namespace
{
const std::string SERVICE_NAME = "pvtz";
}
PvtzClient::PvtzClient(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, "pvtz");
}
PvtzClient::PvtzClient(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, "pvtz");
}
PvtzClient::PvtzClient(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, "pvtz");
}
PvtzClient::~PvtzClient()
{}
PvtzClient::AddZoneRecordOutcome PvtzClient::addZoneRecord(const AddZoneRecordRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddZoneRecordOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddZoneRecordOutcome(AddZoneRecordResult(outcome.result()));
else
return AddZoneRecordOutcome(outcome.error());
}
void PvtzClient::addZoneRecordAsync(const AddZoneRecordRequest& request, const AddZoneRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addZoneRecord(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::AddZoneRecordOutcomeCallable PvtzClient::addZoneRecordCallable(const AddZoneRecordRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddZoneRecordOutcome()>>(
[this, request]()
{
return this->addZoneRecord(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::DescribeZoneInfoOutcome PvtzClient::describeZoneInfo(const DescribeZoneInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeZoneInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeZoneInfoOutcome(DescribeZoneInfoResult(outcome.result()));
else
return DescribeZoneInfoOutcome(outcome.error());
}
void PvtzClient::describeZoneInfoAsync(const DescribeZoneInfoRequest& request, const DescribeZoneInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeZoneInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::DescribeZoneInfoOutcomeCallable PvtzClient::describeZoneInfoCallable(const DescribeZoneInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeZoneInfoOutcome()>>(
[this, request]()
{
return this->describeZoneInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::DeleteZoneRecordOutcome PvtzClient::deleteZoneRecord(const DeleteZoneRecordRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteZoneRecordOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteZoneRecordOutcome(DeleteZoneRecordResult(outcome.result()));
else
return DeleteZoneRecordOutcome(outcome.error());
}
void PvtzClient::deleteZoneRecordAsync(const DeleteZoneRecordRequest& request, const DeleteZoneRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteZoneRecord(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::DeleteZoneRecordOutcomeCallable PvtzClient::deleteZoneRecordCallable(const DeleteZoneRecordRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteZoneRecordOutcome()>>(
[this, request]()
{
return this->deleteZoneRecord(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::UpdateZoneRemarkOutcome PvtzClient::updateZoneRemark(const UpdateZoneRemarkRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateZoneRemarkOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateZoneRemarkOutcome(UpdateZoneRemarkResult(outcome.result()));
else
return UpdateZoneRemarkOutcome(outcome.error());
}
void PvtzClient::updateZoneRemarkAsync(const UpdateZoneRemarkRequest& request, const UpdateZoneRemarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateZoneRemark(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::UpdateZoneRemarkOutcomeCallable PvtzClient::updateZoneRemarkCallable(const UpdateZoneRemarkRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateZoneRemarkOutcome()>>(
[this, request]()
{
return this->updateZoneRemark(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::CheckZoneNameOutcome PvtzClient::checkZoneName(const CheckZoneNameRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CheckZoneNameOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CheckZoneNameOutcome(CheckZoneNameResult(outcome.result()));
else
return CheckZoneNameOutcome(outcome.error());
}
void PvtzClient::checkZoneNameAsync(const CheckZoneNameRequest& request, const CheckZoneNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, checkZoneName(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::CheckZoneNameOutcomeCallable PvtzClient::checkZoneNameCallable(const CheckZoneNameRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CheckZoneNameOutcome()>>(
[this, request]()
{
return this->checkZoneName(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::UpdateZoneRecordOutcome PvtzClient::updateZoneRecord(const UpdateZoneRecordRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateZoneRecordOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateZoneRecordOutcome(UpdateZoneRecordResult(outcome.result()));
else
return UpdateZoneRecordOutcome(outcome.error());
}
void PvtzClient::updateZoneRecordAsync(const UpdateZoneRecordRequest& request, const UpdateZoneRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateZoneRecord(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::UpdateZoneRecordOutcomeCallable PvtzClient::updateZoneRecordCallable(const UpdateZoneRecordRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateZoneRecordOutcome()>>(
[this, request]()
{
return this->updateZoneRecord(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::AddZoneOutcome PvtzClient::addZone(const AddZoneRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddZoneOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddZoneOutcome(AddZoneResult(outcome.result()));
else
return AddZoneOutcome(outcome.error());
}
void PvtzClient::addZoneAsync(const AddZoneRequest& request, const AddZoneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addZone(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::AddZoneOutcomeCallable PvtzClient::addZoneCallable(const AddZoneRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddZoneOutcome()>>(
[this, request]()
{
return this->addZone(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::BindZoneVpcOutcome PvtzClient::bindZoneVpc(const BindZoneVpcRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BindZoneVpcOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BindZoneVpcOutcome(BindZoneVpcResult(outcome.result()));
else
return BindZoneVpcOutcome(outcome.error());
}
void PvtzClient::bindZoneVpcAsync(const BindZoneVpcRequest& request, const BindZoneVpcAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, bindZoneVpc(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::BindZoneVpcOutcomeCallable PvtzClient::bindZoneVpcCallable(const BindZoneVpcRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BindZoneVpcOutcome()>>(
[this, request]()
{
return this->bindZoneVpc(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::DescribeRequestGraphOutcome PvtzClient::describeRequestGraph(const DescribeRequestGraphRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeRequestGraphOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeRequestGraphOutcome(DescribeRequestGraphResult(outcome.result()));
else
return DescribeRequestGraphOutcome(outcome.error());
}
void PvtzClient::describeRequestGraphAsync(const DescribeRequestGraphRequest& request, const DescribeRequestGraphAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeRequestGraph(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::DescribeRequestGraphOutcomeCallable PvtzClient::describeRequestGraphCallable(const DescribeRequestGraphRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeRequestGraphOutcome()>>(
[this, request]()
{
return this->describeRequestGraph(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::DescribeStatisticSummaryOutcome PvtzClient::describeStatisticSummary(const DescribeStatisticSummaryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeStatisticSummaryOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeStatisticSummaryOutcome(DescribeStatisticSummaryResult(outcome.result()));
else
return DescribeStatisticSummaryOutcome(outcome.error());
}
void PvtzClient::describeStatisticSummaryAsync(const DescribeStatisticSummaryRequest& request, const DescribeStatisticSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeStatisticSummary(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::DescribeStatisticSummaryOutcomeCallable PvtzClient::describeStatisticSummaryCallable(const DescribeStatisticSummaryRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeStatisticSummaryOutcome()>>(
[this, request]()
{
return this->describeStatisticSummary(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::DescribeZoneVpcTreeOutcome PvtzClient::describeZoneVpcTree(const DescribeZoneVpcTreeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeZoneVpcTreeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeZoneVpcTreeOutcome(DescribeZoneVpcTreeResult(outcome.result()));
else
return DescribeZoneVpcTreeOutcome(outcome.error());
}
void PvtzClient::describeZoneVpcTreeAsync(const DescribeZoneVpcTreeRequest& request, const DescribeZoneVpcTreeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeZoneVpcTree(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::DescribeZoneVpcTreeOutcomeCallable PvtzClient::describeZoneVpcTreeCallable(const DescribeZoneVpcTreeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeZoneVpcTreeOutcome()>>(
[this, request]()
{
return this->describeZoneVpcTree(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::DescribeChangeLogsOutcome PvtzClient::describeChangeLogs(const DescribeChangeLogsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeChangeLogsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeChangeLogsOutcome(DescribeChangeLogsResult(outcome.result()));
else
return DescribeChangeLogsOutcome(outcome.error());
}
void PvtzClient::describeChangeLogsAsync(const DescribeChangeLogsRequest& request, const DescribeChangeLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeChangeLogs(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::DescribeChangeLogsOutcomeCallable PvtzClient::describeChangeLogsCallable(const DescribeChangeLogsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeChangeLogsOutcome()>>(
[this, request]()
{
return this->describeChangeLogs(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::DeleteZoneOutcome PvtzClient::deleteZone(const DeleteZoneRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteZoneOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteZoneOutcome(DeleteZoneResult(outcome.result()));
else
return DeleteZoneOutcome(outcome.error());
}
void PvtzClient::deleteZoneAsync(const DeleteZoneRequest& request, const DeleteZoneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteZone(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::DeleteZoneOutcomeCallable PvtzClient::deleteZoneCallable(const DeleteZoneRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteZoneOutcome()>>(
[this, request]()
{
return this->deleteZone(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::DescribeUserServiceStatusOutcome PvtzClient::describeUserServiceStatus(const DescribeUserServiceStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeUserServiceStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeUserServiceStatusOutcome(DescribeUserServiceStatusResult(outcome.result()));
else
return DescribeUserServiceStatusOutcome(outcome.error());
}
void PvtzClient::describeUserServiceStatusAsync(const DescribeUserServiceStatusRequest& request, const DescribeUserServiceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeUserServiceStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::DescribeUserServiceStatusOutcomeCallable PvtzClient::describeUserServiceStatusCallable(const DescribeUserServiceStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeUserServiceStatusOutcome()>>(
[this, request]()
{
return this->describeUserServiceStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::DescribeRegionsOutcome PvtzClient::describeRegions(const DescribeRegionsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeRegionsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result()));
else
return DescribeRegionsOutcome(outcome.error());
}
void PvtzClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeRegions(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::DescribeRegionsOutcomeCallable PvtzClient::describeRegionsCallable(const DescribeRegionsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeRegionsOutcome()>>(
[this, request]()
{
return this->describeRegions(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::DescribeZoneRecordsOutcome PvtzClient::describeZoneRecords(const DescribeZoneRecordsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeZoneRecordsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeZoneRecordsOutcome(DescribeZoneRecordsResult(outcome.result()));
else
return DescribeZoneRecordsOutcome(outcome.error());
}
void PvtzClient::describeZoneRecordsAsync(const DescribeZoneRecordsRequest& request, const DescribeZoneRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeZoneRecords(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::DescribeZoneRecordsOutcomeCallable PvtzClient::describeZoneRecordsCallable(const DescribeZoneRecordsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeZoneRecordsOutcome()>>(
[this, request]()
{
return this->describeZoneRecords(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::SetZoneRecordStatusOutcome PvtzClient::setZoneRecordStatus(const SetZoneRecordStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetZoneRecordStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SetZoneRecordStatusOutcome(SetZoneRecordStatusResult(outcome.result()));
else
return SetZoneRecordStatusOutcome(outcome.error());
}
void PvtzClient::setZoneRecordStatusAsync(const SetZoneRecordStatusRequest& request, const SetZoneRecordStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, setZoneRecordStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::SetZoneRecordStatusOutcomeCallable PvtzClient::setZoneRecordStatusCallable(const SetZoneRecordStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SetZoneRecordStatusOutcome()>>(
[this, request]()
{
return this->setZoneRecordStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PvtzClient::DescribeZonesOutcome PvtzClient::describeZones(const DescribeZonesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeZonesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeZonesOutcome(DescribeZonesResult(outcome.result()));
else
return DescribeZonesOutcome(outcome.error());
}
void PvtzClient::describeZonesAsync(const DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeZones(request), context);
};
asyncExecute(new Runnable(fn));
}
PvtzClient::DescribeZonesOutcomeCallable PvtzClient::describeZonesCallable(const DescribeZonesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeZonesOutcome()>>(
[this, request]()
{
return this->describeZones(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View 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/pvtz/model/AddZoneRecordRequest.h>
using AlibabaCloud::Pvtz::Model::AddZoneRecordRequest;
AddZoneRecordRequest::AddZoneRecordRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "AddZoneRecord")
{}
AddZoneRecordRequest::~AddZoneRecordRequest()
{}
std::string AddZoneRecordRequest::getRr()const
{
return rr_;
}
void AddZoneRecordRequest::setRr(const std::string& rr)
{
rr_ = rr;
setParameter("Rr", rr);
}
std::string AddZoneRecordRequest::getUserClientIp()const
{
return userClientIp_;
}
void AddZoneRecordRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string AddZoneRecordRequest::getZoneId()const
{
return zoneId_;
}
void AddZoneRecordRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string AddZoneRecordRequest::getLang()const
{
return lang_;
}
void AddZoneRecordRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string AddZoneRecordRequest::getType()const
{
return type_;
}
void AddZoneRecordRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
int AddZoneRecordRequest::getPriority()const
{
return priority_;
}
void AddZoneRecordRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
}
int AddZoneRecordRequest::getTtl()const
{
return ttl_;
}
void AddZoneRecordRequest::setTtl(int ttl)
{
ttl_ = ttl;
setParameter("Ttl", std::to_string(ttl));
}
std::string AddZoneRecordRequest::getValue()const
{
return value_;
}
void AddZoneRecordRequest::setValue(const std::string& value)
{
value_ = value;
setParameter("Value", value);
}

View File

@@ -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.
*/
#include <alibabacloud/pvtz/model/AddZoneRecordResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
AddZoneRecordResult::AddZoneRecordResult() :
ServiceResult()
{}
AddZoneRecordResult::AddZoneRecordResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddZoneRecordResult::~AddZoneRecordResult()
{}
void AddZoneRecordResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["RecordId"].isNull())
recordId_ = std::stol(value["RecordId"].asString());
}
long AddZoneRecordResult::getRecordId()const
{
return recordId_;
}
bool AddZoneRecordResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/AddZoneRequest.h>
using AlibabaCloud::Pvtz::Model::AddZoneRequest;
AddZoneRequest::AddZoneRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "AddZone")
{}
AddZoneRequest::~AddZoneRequest()
{}
std::string AddZoneRequest::getUserClientIp()const
{
return userClientIp_;
}
void AddZoneRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string AddZoneRequest::getLang()const
{
return lang_;
}
void AddZoneRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string AddZoneRequest::getZoneName()const
{
return zoneName_;
}
void AddZoneRequest::setZoneName(const std::string& zoneName)
{
zoneName_ = zoneName;
setParameter("ZoneName", zoneName);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/AddZoneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
AddZoneResult::AddZoneResult() :
ServiceResult()
{}
AddZoneResult::AddZoneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddZoneResult::~AddZoneResult()
{}
void AddZoneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ZoneId"].isNull())
zoneId_ = value["ZoneId"].asString();
if(!value["ZoneName"].isNull())
zoneName_ = value["ZoneName"].asString();
}
std::string AddZoneResult::getZoneName()const
{
return zoneName_;
}
std::string AddZoneResult::getZoneId()const
{
return zoneId_;
}
bool AddZoneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/BindZoneVpcRequest.h>
using AlibabaCloud::Pvtz::Model::BindZoneVpcRequest;
BindZoneVpcRequest::BindZoneVpcRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "BindZoneVpc")
{}
BindZoneVpcRequest::~BindZoneVpcRequest()
{}
std::string BindZoneVpcRequest::getUserClientIp()const
{
return userClientIp_;
}
void BindZoneVpcRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string BindZoneVpcRequest::getZoneId()const
{
return zoneId_;
}
void BindZoneVpcRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string BindZoneVpcRequest::getLang()const
{
return lang_;
}
void BindZoneVpcRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::vector<BindZoneVpcRequest::Vpcs> BindZoneVpcRequest::getVpcs()const
{
return vpcs_;
}
void BindZoneVpcRequest::setVpcs(const std::vector<Vpcs>& vpcs)
{
vpcs_ = vpcs;
int i = 0;
for(int i = 0; i!= vpcs.size(); i++) {
auto obj = vpcs.at(i);
std::string str ="Vpcs."+ std::to_string(i);
setParameter(str + ".RegionId", obj.regionId);
setParameter(str + ".VpcId", obj.vpcId);
}
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/BindZoneVpcResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
BindZoneVpcResult::BindZoneVpcResult() :
ServiceResult()
{}
BindZoneVpcResult::BindZoneVpcResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindZoneVpcResult::~BindZoneVpcResult()
{}
void BindZoneVpcResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/CheckZoneNameRequest.h>
using AlibabaCloud::Pvtz::Model::CheckZoneNameRequest;
CheckZoneNameRequest::CheckZoneNameRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "CheckZoneName")
{}
CheckZoneNameRequest::~CheckZoneNameRequest()
{}
std::string CheckZoneNameRequest::getUserClientIp()const
{
return userClientIp_;
}
void CheckZoneNameRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string CheckZoneNameRequest::getLang()const
{
return lang_;
}
void CheckZoneNameRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string CheckZoneNameRequest::getZoneName()const
{
return zoneName_;
}
void CheckZoneNameRequest::setZoneName(const std::string& zoneName)
{
zoneName_ = zoneName;
setParameter("ZoneName", zoneName);
}

View File

@@ -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.
*/
#include <alibabacloud/pvtz/model/CheckZoneNameResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
CheckZoneNameResult::CheckZoneNameResult() :
ServiceResult()
{}
CheckZoneNameResult::CheckZoneNameResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckZoneNameResult::~CheckZoneNameResult()
{}
void CheckZoneNameResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Check"].isNull())
check_ = value["Check"].asString() == "true";
}
bool CheckZoneNameResult::getCheck()const
{
return check_;
}
bool CheckZoneNameResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/DeleteZoneRecordRequest.h>
using AlibabaCloud::Pvtz::Model::DeleteZoneRecordRequest;
DeleteZoneRecordRequest::DeleteZoneRecordRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "DeleteZoneRecord")
{}
DeleteZoneRecordRequest::~DeleteZoneRecordRequest()
{}
long DeleteZoneRecordRequest::getRecordId()const
{
return recordId_;
}
void DeleteZoneRecordRequest::setRecordId(long recordId)
{
recordId_ = recordId;
setParameter("RecordId", std::to_string(recordId));
}
std::string DeleteZoneRecordRequest::getUserClientIp()const
{
return userClientIp_;
}
void DeleteZoneRecordRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DeleteZoneRecordRequest::getLang()const
{
return lang_;
}
void DeleteZoneRecordRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/pvtz/model/DeleteZoneRecordResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
DeleteZoneRecordResult::DeleteZoneRecordResult() :
ServiceResult()
{}
DeleteZoneRecordResult::DeleteZoneRecordResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteZoneRecordResult::~DeleteZoneRecordResult()
{}
void DeleteZoneRecordResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RecordId"].isNull())
recordId_ = std::stol(value["RecordId"].asString());
}
long DeleteZoneRecordResult::getRecordId()const
{
return recordId_;
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/DeleteZoneRequest.h>
using AlibabaCloud::Pvtz::Model::DeleteZoneRequest;
DeleteZoneRequest::DeleteZoneRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "DeleteZone")
{}
DeleteZoneRequest::~DeleteZoneRequest()
{}
std::string DeleteZoneRequest::getUserClientIp()const
{
return userClientIp_;
}
void DeleteZoneRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DeleteZoneRequest::getZoneId()const
{
return zoneId_;
}
void DeleteZoneRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string DeleteZoneRequest::getLang()const
{
return lang_;
}
void DeleteZoneRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/pvtz/model/DeleteZoneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
DeleteZoneResult::DeleteZoneResult() :
ServiceResult()
{}
DeleteZoneResult::DeleteZoneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteZoneResult::~DeleteZoneResult()
{}
void DeleteZoneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ZoneId"].isNull())
zoneId_ = value["ZoneId"].asString();
}
std::string DeleteZoneResult::getZoneId()const
{
return zoneId_;
}

View 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/pvtz/model/DescribeChangeLogsRequest.h>
using AlibabaCloud::Pvtz::Model::DescribeChangeLogsRequest;
DescribeChangeLogsRequest::DescribeChangeLogsRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "DescribeChangeLogs")
{}
DescribeChangeLogsRequest::~DescribeChangeLogsRequest()
{}
std::string DescribeChangeLogsRequest::getEntityType()const
{
return entityType_;
}
void DescribeChangeLogsRequest::setEntityType(const std::string& entityType)
{
entityType_ = entityType;
setParameter("EntityType", entityType);
}
int DescribeChangeLogsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeChangeLogsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeChangeLogsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeChangeLogsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeChangeLogsRequest::getZoneId()const
{
return zoneId_;
}
void DescribeChangeLogsRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string DescribeChangeLogsRequest::getKeyword()const
{
return keyword_;
}
void DescribeChangeLogsRequest::setKeyword(const std::string& keyword)
{
keyword_ = keyword;
setParameter("Keyword", keyword);
}
std::string DescribeChangeLogsRequest::getLang()const
{
return lang_;
}
void DescribeChangeLogsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
long DescribeChangeLogsRequest::getStartTimestamp()const
{
return startTimestamp_;
}
void DescribeChangeLogsRequest::setStartTimestamp(long startTimestamp)
{
startTimestamp_ = startTimestamp;
setParameter("StartTimestamp", std::to_string(startTimestamp));
}
int DescribeChangeLogsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeChangeLogsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
long DescribeChangeLogsRequest::getEndTimestamp()const
{
return endTimestamp_;
}
void DescribeChangeLogsRequest::setEndTimestamp(long endTimestamp)
{
endTimestamp_ = endTimestamp;
setParameter("EndTimestamp", std::to_string(endTimestamp));
}

View File

@@ -0,0 +1,102 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/DescribeChangeLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
DescribeChangeLogsResult::DescribeChangeLogsResult() :
ServiceResult()
{}
DescribeChangeLogsResult::DescribeChangeLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeChangeLogsResult::~DescribeChangeLogsResult()
{}
void DescribeChangeLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allChangeLogs = value["ChangeLogs"]["ChangeLog"];
for (auto value : allChangeLogs)
{
ChangeLog changeLogsObject;
if(!value["OperTime"].isNull())
changeLogsObject.operTime = value["OperTime"].asString();
if(!value["OperAction"].isNull())
changeLogsObject.operAction = value["OperAction"].asString();
if(!value["OperObject"].isNull())
changeLogsObject.operObject = value["OperObject"].asString();
if(!value["EntityId"].isNull())
changeLogsObject.entityId = value["EntityId"].asString();
if(!value["EntityName"].isNull())
changeLogsObject.entityName = value["EntityName"].asString();
if(!value["OperIp"].isNull())
changeLogsObject.operIp = value["OperIp"].asString();
if(!value["OperTimestamp"].isNull())
changeLogsObject.operTimestamp = std::stol(value["OperTimestamp"].asString());
if(!value["Id"].isNull())
changeLogsObject.id = std::stol(value["Id"].asString());
if(!value["Content"].isNull())
changeLogsObject.content = value["Content"].asString();
changeLogs_.push_back(changeLogsObject);
}
if(!value["TotalItems"].isNull())
totalItems_ = std::stoi(value["TotalItems"].asString());
if(!value["TotalPages"].isNull())
totalPages_ = std::stoi(value["TotalPages"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
std::vector<DescribeChangeLogsResult::ChangeLog> DescribeChangeLogsResult::getChangeLogs()const
{
return changeLogs_;
}
int DescribeChangeLogsResult::getPageSize()const
{
return pageSize_;
}
int DescribeChangeLogsResult::getPageNumber()const
{
return pageNumber_;
}
int DescribeChangeLogsResult::getTotalPages()const
{
return totalPages_;
}
int DescribeChangeLogsResult::getTotalItems()const
{
return totalItems_;
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/DescribeRegionsRequest.h>
using AlibabaCloud::Pvtz::Model::DescribeRegionsRequest;
DescribeRegionsRequest::DescribeRegionsRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "DescribeRegions")
{}
DescribeRegionsRequest::~DescribeRegionsRequest()
{}
std::string DescribeRegionsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeRegionsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeRegionsRequest::getLang()const
{
return lang_;
}
void DescribeRegionsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/DescribeRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
DescribeRegionsResult::DescribeRegionsResult() :
ServiceResult()
{}
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRegionsResult::~DescribeRegionsResult()
{}
void DescribeRegionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRegions = value["Regions"]["Region"];
for (auto value : allRegions)
{
Region regionsObject;
if(!value["RegionId"].isNull())
regionsObject.regionId = value["RegionId"].asString();
if(!value["RegionName"].isNull())
regionsObject.regionName = value["RegionName"].asString();
regions_.push_back(regionsObject);
}
}
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getRegions()const
{
return regions_;
}

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/DescribeRequestGraphRequest.h>
using AlibabaCloud::Pvtz::Model::DescribeRequestGraphRequest;
DescribeRequestGraphRequest::DescribeRequestGraphRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "DescribeRequestGraph")
{}
DescribeRequestGraphRequest::~DescribeRequestGraphRequest()
{}
std::string DescribeRequestGraphRequest::getVpcId()const
{
return vpcId_;
}
void DescribeRequestGraphRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
std::string DescribeRequestGraphRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeRequestGraphRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeRequestGraphRequest::getZoneId()const
{
return zoneId_;
}
void DescribeRequestGraphRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string DescribeRequestGraphRequest::getLang()const
{
return lang_;
}
void DescribeRequestGraphRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
long DescribeRequestGraphRequest::getStartTimestamp()const
{
return startTimestamp_;
}
void DescribeRequestGraphRequest::setStartTimestamp(long startTimestamp)
{
startTimestamp_ = startTimestamp;
setParameter("StartTimestamp", std::to_string(startTimestamp));
}
long DescribeRequestGraphRequest::getEndTimestamp()const
{
return endTimestamp_;
}
void DescribeRequestGraphRequest::setEndTimestamp(long endTimestamp)
{
endTimestamp_ = endTimestamp;
setParameter("EndTimestamp", std::to_string(endTimestamp));
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/DescribeRequestGraphResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
DescribeRequestGraphResult::DescribeRequestGraphResult() :
ServiceResult()
{}
DescribeRequestGraphResult::DescribeRequestGraphResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRequestGraphResult::~DescribeRequestGraphResult()
{}
void DescribeRequestGraphResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRequestDetails = value["RequestDetails"]["ZoneRequestTop"];
for (auto value : allRequestDetails)
{
ZoneRequestTop requestDetailsObject;
if(!value["Time"].isNull())
requestDetailsObject.time = value["Time"].asString();
if(!value["Timestamp"].isNull())
requestDetailsObject.timestamp = std::stol(value["Timestamp"].asString());
if(!value["RequestCount"].isNull())
requestDetailsObject.requestCount = std::stol(value["RequestCount"].asString());
requestDetails_.push_back(requestDetailsObject);
}
}
std::vector<DescribeRequestGraphResult::ZoneRequestTop> DescribeRequestGraphResult::getRequestDetails()const
{
return requestDetails_;
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/DescribeStatisticSummaryRequest.h>
using AlibabaCloud::Pvtz::Model::DescribeStatisticSummaryRequest;
DescribeStatisticSummaryRequest::DescribeStatisticSummaryRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "DescribeStatisticSummary")
{}
DescribeStatisticSummaryRequest::~DescribeStatisticSummaryRequest()
{}
std::string DescribeStatisticSummaryRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeStatisticSummaryRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeStatisticSummaryRequest::getLang()const
{
return lang_;
}
void DescribeStatisticSummaryRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,88 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/pvtz/model/DescribeStatisticSummaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
DescribeStatisticSummaryResult::DescribeStatisticSummaryResult() :
ServiceResult()
{}
DescribeStatisticSummaryResult::DescribeStatisticSummaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeStatisticSummaryResult::~DescribeStatisticSummaryResult()
{}
void DescribeStatisticSummaryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allZoneRequestTops = value["ZoneRequestTops"]["ZoneRequestTop"];
for (auto value : allZoneRequestTops)
{
ZoneRequestTop zoneRequestTopsObject;
if(!value["ZoneName"].isNull())
zoneRequestTopsObject.zoneName = value["ZoneName"].asString();
if(!value["RequestCount"].isNull())
zoneRequestTopsObject.requestCount = std::stol(value["RequestCount"].asString());
zoneRequestTops_.push_back(zoneRequestTopsObject);
}
auto allVpcRequestTops = value["VpcRequestTops"]["VpcRequestTop"];
for (auto value : allVpcRequestTops)
{
VpcRequestTop vpcRequestTopsObject;
if(!value["RegionId"].isNull())
vpcRequestTopsObject.regionId = value["RegionId"].asString();
if(!value["VpcId"].isNull())
vpcRequestTopsObject.vpcId = value["VpcId"].asString();
if(!value["TunnelId"].isNull())
vpcRequestTopsObject.tunnelId = value["TunnelId"].asString();
if(!value["RequestCount"].isNull())
vpcRequestTopsObject.requestCount = std::stol(value["RequestCount"].asString());
if(!value["RegionName"].isNull())
vpcRequestTopsObject.regionName = value["RegionName"].asString();
vpcRequestTops_.push_back(vpcRequestTopsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long DescribeStatisticSummaryResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeStatisticSummaryResult::ZoneRequestTop> DescribeStatisticSummaryResult::getZoneRequestTops()const
{
return zoneRequestTops_;
}
std::vector<DescribeStatisticSummaryResult::VpcRequestTop> DescribeStatisticSummaryResult::getVpcRequestTops()const
{
return vpcRequestTops_;
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/DescribeUserServiceStatusRequest.h>
using AlibabaCloud::Pvtz::Model::DescribeUserServiceStatusRequest;
DescribeUserServiceStatusRequest::DescribeUserServiceStatusRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "DescribeUserServiceStatus")
{}
DescribeUserServiceStatusRequest::~DescribeUserServiceStatusRequest()
{}
std::string DescribeUserServiceStatusRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeUserServiceStatusRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeUserServiceStatusRequest::getLang()const
{
return lang_;
}
void DescribeUserServiceStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/pvtz/model/DescribeUserServiceStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
DescribeUserServiceStatusResult::DescribeUserServiceStatusResult() :
ServiceResult()
{}
DescribeUserServiceStatusResult::DescribeUserServiceStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUserServiceStatusResult::~DescribeUserServiceStatusResult()
{}
void DescribeUserServiceStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Status"].isNull())
status_ = value["Status"].asString();
}
std::string DescribeUserServiceStatusResult::getStatus()const
{
return status_;
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/DescribeZoneInfoRequest.h>
using AlibabaCloud::Pvtz::Model::DescribeZoneInfoRequest;
DescribeZoneInfoRequest::DescribeZoneInfoRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "DescribeZoneInfo")
{}
DescribeZoneInfoRequest::~DescribeZoneInfoRequest()
{}
std::string DescribeZoneInfoRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeZoneInfoRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeZoneInfoRequest::getZoneId()const
{
return zoneId_;
}
void DescribeZoneInfoRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string DescribeZoneInfoRequest::getLang()const
{
return lang_;
}
void DescribeZoneInfoRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,127 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/pvtz/model/DescribeZoneInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
DescribeZoneInfoResult::DescribeZoneInfoResult() :
ServiceResult()
{}
DescribeZoneInfoResult::DescribeZoneInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeZoneInfoResult::~DescribeZoneInfoResult()
{}
void DescribeZoneInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBindVpcs = value["BindVpcs"]["Vpc"];
for (auto value : allBindVpcs)
{
Vpc bindVpcsObject;
if(!value["ReionId"].isNull())
bindVpcsObject.reionId = value["ReionId"].asString();
if(!value["VpcId"].isNull())
bindVpcsObject.vpcId = value["VpcId"].asString();
if(!value["VpcName"].isNull())
bindVpcsObject.vpcName = value["VpcName"].asString();
if(!value["RegionName"].isNull())
bindVpcsObject.regionName = value["RegionName"].asString();
bindVpcs_.push_back(bindVpcsObject);
}
if(!value["ZoneId"].isNull())
zoneId_ = value["ZoneId"].asString();
if(!value["ZoneName"].isNull())
zoneName_ = value["ZoneName"].asString();
if(!value["Remark"].isNull())
remark_ = value["Remark"].asString();
if(!value["RecordCount"].isNull())
recordCount_ = std::stoi(value["RecordCount"].asString());
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["CreateTimestamp"].isNull())
createTimestamp_ = std::stol(value["CreateTimestamp"].asString());
if(!value["UpdateTime"].isNull())
updateTime_ = value["UpdateTime"].asString();
if(!value["UpdateTimestamp"].isNull())
updateTimestamp_ = std::stol(value["UpdateTimestamp"].asString());
if(!value["IsPtr"].isNull())
isPtr_ = value["IsPtr"].asString() == "true";
}
std::string DescribeZoneInfoResult::getZoneName()const
{
return zoneName_;
}
std::string DescribeZoneInfoResult::getZoneId()const
{
return zoneId_;
}
std::string DescribeZoneInfoResult::getCreateTime()const
{
return createTime_;
}
std::string DescribeZoneInfoResult::getUpdateTime()const
{
return updateTime_;
}
long DescribeZoneInfoResult::getUpdateTimestamp()const
{
return updateTimestamp_;
}
std::vector<DescribeZoneInfoResult::Vpc> DescribeZoneInfoResult::getBindVpcs()const
{
return bindVpcs_;
}
int DescribeZoneInfoResult::getRecordCount()const
{
return recordCount_;
}
long DescribeZoneInfoResult::getCreateTimestamp()const
{
return createTimestamp_;
}
bool DescribeZoneInfoResult::getIsPtr()const
{
return isPtr_;
}
std::string DescribeZoneInfoResult::getRemark()const
{
return remark_;
}

View 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/pvtz/model/DescribeZoneRecordsRequest.h>
using AlibabaCloud::Pvtz::Model::DescribeZoneRecordsRequest;
DescribeZoneRecordsRequest::DescribeZoneRecordsRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "DescribeZoneRecords")
{}
DescribeZoneRecordsRequest::~DescribeZoneRecordsRequest()
{}
int DescribeZoneRecordsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeZoneRecordsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeZoneRecordsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeZoneRecordsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeZoneRecordsRequest::getZoneId()const
{
return zoneId_;
}
void DescribeZoneRecordsRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string DescribeZoneRecordsRequest::getTag()const
{
return tag_;
}
void DescribeZoneRecordsRequest::setTag(const std::string& tag)
{
tag_ = tag;
setParameter("Tag", tag);
}
std::string DescribeZoneRecordsRequest::getKeyword()const
{
return keyword_;
}
void DescribeZoneRecordsRequest::setKeyword(const std::string& keyword)
{
keyword_ = keyword;
setParameter("Keyword", keyword);
}
std::string DescribeZoneRecordsRequest::getLang()const
{
return lang_;
}
void DescribeZoneRecordsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
int DescribeZoneRecordsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeZoneRecordsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -0,0 +1,98 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/pvtz/model/DescribeZoneRecordsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
DescribeZoneRecordsResult::DescribeZoneRecordsResult() :
ServiceResult()
{}
DescribeZoneRecordsResult::DescribeZoneRecordsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeZoneRecordsResult::~DescribeZoneRecordsResult()
{}
void DescribeZoneRecordsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRecords = value["Records"]["Record"];
for (auto value : allRecords)
{
Record recordsObject;
if(!value["RecordId"].isNull())
recordsObject.recordId = std::stol(value["RecordId"].asString());
if(!value["Rr"].isNull())
recordsObject.rr = value["Rr"].asString();
if(!value["Type"].isNull())
recordsObject.type = value["Type"].asString();
if(!value["Ttl"].isNull())
recordsObject.ttl = std::stoi(value["Ttl"].asString());
if(!value["Priority"].isNull())
recordsObject.priority = std::stoi(value["Priority"].asString());
if(!value["Value"].isNull())
recordsObject.value = value["Value"].asString();
if(!value["Status"].isNull())
recordsObject.status = value["Status"].asString();
records_.push_back(recordsObject);
}
if(!value["TotalItems"].isNull())
totalItems_ = std::stoi(value["TotalItems"].asString());
if(!value["TotalPages"].isNull())
totalPages_ = std::stoi(value["TotalPages"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeZoneRecordsResult::getPageSize()const
{
return pageSize_;
}
int DescribeZoneRecordsResult::getPageNumber()const
{
return pageNumber_;
}
int DescribeZoneRecordsResult::getTotalPages()const
{
return totalPages_;
}
int DescribeZoneRecordsResult::getTotalItems()const
{
return totalItems_;
}
std::vector<DescribeZoneRecordsResult::Record> DescribeZoneRecordsResult::getRecords()const
{
return records_;
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/DescribeZoneVpcTreeRequest.h>
using AlibabaCloud::Pvtz::Model::DescribeZoneVpcTreeRequest;
DescribeZoneVpcTreeRequest::DescribeZoneVpcTreeRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "DescribeZoneVpcTree")
{}
DescribeZoneVpcTreeRequest::~DescribeZoneVpcTreeRequest()
{}
std::string DescribeZoneVpcTreeRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeZoneVpcTreeRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeZoneVpcTreeRequest::getLang()const
{
return lang_;
}
void DescribeZoneVpcTreeRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,88 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/pvtz/model/DescribeZoneVpcTreeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
DescribeZoneVpcTreeResult::DescribeZoneVpcTreeResult() :
ServiceResult()
{}
DescribeZoneVpcTreeResult::DescribeZoneVpcTreeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeZoneVpcTreeResult::~DescribeZoneVpcTreeResult()
{}
void DescribeZoneVpcTreeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allZones = value["Zones"]["Zone"];
for (auto value : allZones)
{
Zone zonesObject;
if(!value["ZoneId"].isNull())
zonesObject.zoneId = value["ZoneId"].asString();
if(!value["ZoneName"].isNull())
zonesObject.zoneName = value["ZoneName"].asString();
if(!value["Remark"].isNull())
zonesObject.remark = value["Remark"].asString();
if(!value["RecordCount"].isNull())
zonesObject.recordCount = std::stoi(value["RecordCount"].asString());
if(!value["CreateTime"].isNull())
zonesObject.createTime = value["CreateTime"].asString();
if(!value["CreateTimestamp"].isNull())
zonesObject.createTimestamp = std::stol(value["CreateTimestamp"].asString());
if(!value["UpdateTime"].isNull())
zonesObject.updateTime = value["UpdateTime"].asString();
if(!value["UpdateTimestamp"].isNull())
zonesObject.updateTimestamp = std::stol(value["UpdateTimestamp"].asString());
if(!value["IsPtr"].isNull())
zonesObject.isPtr = value["IsPtr"].asString() == "true";
auto allVpcs = value["Vpcs"]["Vpc"];
for (auto value : allVpcs)
{
Zone::Vpc vpcsObject;
if(!value["RegionId"].isNull())
vpcsObject.regionId = value["RegionId"].asString();
if(!value["RegionName"].isNull())
vpcsObject.regionName = value["RegionName"].asString();
if(!value["VpcId"].isNull())
vpcsObject.vpcId = value["VpcId"].asString();
if(!value["VpcName"].isNull())
vpcsObject.vpcName = value["VpcName"].asString();
zonesObject.vpcs.push_back(vpcsObject);
}
zones_.push_back(zonesObject);
}
}
std::vector<DescribeZoneVpcTreeResult::Zone> DescribeZoneVpcTreeResult::getZones()const
{
return zones_;
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/DescribeZonesRequest.h>
using AlibabaCloud::Pvtz::Model::DescribeZonesRequest;
DescribeZonesRequest::DescribeZonesRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "DescribeZones")
{}
DescribeZonesRequest::~DescribeZonesRequest()
{}
int DescribeZonesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeZonesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeZonesRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeZonesRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DescribeZonesRequest::getLang()const
{
return lang_;
}
void DescribeZonesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeZonesRequest::getKeyword()const
{
return keyword_;
}
void DescribeZonesRequest::setKeyword(const std::string& keyword)
{
keyword_ = keyword;
setParameter("Keyword", keyword);
}
int DescribeZonesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeZonesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -0,0 +1,102 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/DescribeZonesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
DescribeZonesResult::DescribeZonesResult() :
ServiceResult()
{}
DescribeZonesResult::DescribeZonesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeZonesResult::~DescribeZonesResult()
{}
void DescribeZonesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allZones = value["Zones"]["Zone"];
for (auto value : allZones)
{
Zone zonesObject;
if(!value["ZoneId"].isNull())
zonesObject.zoneId = value["ZoneId"].asString();
if(!value["ZoneName"].isNull())
zonesObject.zoneName = value["ZoneName"].asString();
if(!value["Remark"].isNull())
zonesObject.remark = value["Remark"].asString();
if(!value["RecordCount"].isNull())
zonesObject.recordCount = std::stoi(value["RecordCount"].asString());
if(!value["CreateTime"].isNull())
zonesObject.createTime = value["CreateTime"].asString();
if(!value["CreateTimestamp"].isNull())
zonesObject.createTimestamp = std::stol(value["CreateTimestamp"].asString());
if(!value["UpdateTime"].isNull())
zonesObject.updateTime = value["UpdateTime"].asString();
if(!value["UpdateTimestamp"].isNull())
zonesObject.updateTimestamp = std::stol(value["UpdateTimestamp"].asString());
if(!value["IsPtr"].isNull())
zonesObject.isPtr = value["IsPtr"].asString() == "true";
zones_.push_back(zonesObject);
}
if(!value["TotalItems"].isNull())
totalItems_ = std::stoi(value["TotalItems"].asString());
if(!value["TotalPages"].isNull())
totalPages_ = std::stoi(value["TotalPages"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeZonesResult::getPageSize()const
{
return pageSize_;
}
int DescribeZonesResult::getPageNumber()const
{
return pageNumber_;
}
int DescribeZonesResult::getTotalPages()const
{
return totalPages_;
}
int DescribeZonesResult::getTotalItems()const
{
return totalItems_;
}
std::vector<DescribeZonesResult::Zone> DescribeZonesResult::getZones()const
{
return zones_;
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/SetZoneRecordStatusRequest.h>
using AlibabaCloud::Pvtz::Model::SetZoneRecordStatusRequest;
SetZoneRecordStatusRequest::SetZoneRecordStatusRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "SetZoneRecordStatus")
{}
SetZoneRecordStatusRequest::~SetZoneRecordStatusRequest()
{}
long SetZoneRecordStatusRequest::getRecordId()const
{
return recordId_;
}
void SetZoneRecordStatusRequest::setRecordId(long recordId)
{
recordId_ = recordId;
setParameter("RecordId", std::to_string(recordId));
}
std::string SetZoneRecordStatusRequest::getUserClientIp()const
{
return userClientIp_;
}
void SetZoneRecordStatusRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string SetZoneRecordStatusRequest::getLang()const
{
return lang_;
}
void SetZoneRecordStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string SetZoneRecordStatusRequest::getStatus()const
{
return status_;
}
void SetZoneRecordStatusRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -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.
*/
#include <alibabacloud/pvtz/model/SetZoneRecordStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
SetZoneRecordStatusResult::SetZoneRecordStatusResult() :
ServiceResult()
{}
SetZoneRecordStatusResult::SetZoneRecordStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetZoneRecordStatusResult::~SetZoneRecordStatusResult()
{}
void SetZoneRecordStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RecordId"].isNull())
recordId_ = std::stol(value["RecordId"].asString());
if(!value["Status"].isNull())
status_ = value["Status"].asString();
}
std::string SetZoneRecordStatusResult::getStatus()const
{
return status_;
}
long SetZoneRecordStatusResult::getRecordId()const
{
return recordId_;
}

View 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/pvtz/model/UpdateZoneRecordRequest.h>
using AlibabaCloud::Pvtz::Model::UpdateZoneRecordRequest;
UpdateZoneRecordRequest::UpdateZoneRecordRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "UpdateZoneRecord")
{}
UpdateZoneRecordRequest::~UpdateZoneRecordRequest()
{}
std::string UpdateZoneRecordRequest::getRr()const
{
return rr_;
}
void UpdateZoneRecordRequest::setRr(const std::string& rr)
{
rr_ = rr;
setParameter("Rr", rr);
}
long UpdateZoneRecordRequest::getRecordId()const
{
return recordId_;
}
void UpdateZoneRecordRequest::setRecordId(long recordId)
{
recordId_ = recordId;
setParameter("RecordId", std::to_string(recordId));
}
std::string UpdateZoneRecordRequest::getUserClientIp()const
{
return userClientIp_;
}
void UpdateZoneRecordRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string UpdateZoneRecordRequest::getLang()const
{
return lang_;
}
void UpdateZoneRecordRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string UpdateZoneRecordRequest::getType()const
{
return type_;
}
void UpdateZoneRecordRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
int UpdateZoneRecordRequest::getPriority()const
{
return priority_;
}
void UpdateZoneRecordRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
}
int UpdateZoneRecordRequest::getTtl()const
{
return ttl_;
}
void UpdateZoneRecordRequest::setTtl(int ttl)
{
ttl_ = ttl;
setParameter("Ttl", std::to_string(ttl));
}
std::string UpdateZoneRecordRequest::getValue()const
{
return value_;
}
void UpdateZoneRecordRequest::setValue(const std::string& value)
{
value_ = value;
setParameter("Value", value);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/pvtz/model/UpdateZoneRecordResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
UpdateZoneRecordResult::UpdateZoneRecordResult() :
ServiceResult()
{}
UpdateZoneRecordResult::UpdateZoneRecordResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateZoneRecordResult::~UpdateZoneRecordResult()
{}
void UpdateZoneRecordResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RecordId"].isNull())
recordId_ = std::stol(value["RecordId"].asString());
}
long UpdateZoneRecordResult::getRecordId()const
{
return recordId_;
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/pvtz/model/UpdateZoneRemarkRequest.h>
using AlibabaCloud::Pvtz::Model::UpdateZoneRemarkRequest;
UpdateZoneRemarkRequest::UpdateZoneRemarkRequest() :
RpcServiceRequest("pvtz", "2018-01-01", "UpdateZoneRemark")
{}
UpdateZoneRemarkRequest::~UpdateZoneRemarkRequest()
{}
std::string UpdateZoneRemarkRequest::getUserClientIp()const
{
return userClientIp_;
}
void UpdateZoneRemarkRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string UpdateZoneRemarkRequest::getZoneId()const
{
return zoneId_;
}
void UpdateZoneRemarkRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string UpdateZoneRemarkRequest::getRemark()const
{
return remark_;
}
void UpdateZoneRemarkRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setParameter("Remark", remark);
}
std::string UpdateZoneRemarkRequest::getLang()const
{
return lang_;
}
void UpdateZoneRemarkRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/pvtz/model/UpdateZoneRemarkResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Pvtz;
using namespace AlibabaCloud::Pvtz::Model;
UpdateZoneRemarkResult::UpdateZoneRemarkResult() :
ServiceResult()
{}
UpdateZoneRemarkResult::UpdateZoneRemarkResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateZoneRemarkResult::~UpdateZoneRemarkResult()
{}
void UpdateZoneRemarkResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ZoneId"].isNull())
zoneId_ = value["ZoneId"].asString();
}
std::string UpdateZoneRemarkResult::getZoneId()const
{
return zoneId_;
}