diff --git a/CHANGELOG b/CHANGELOG index 2ba3935d4..addef9669 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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. diff --git a/CMakeLists.txt b/CMakeLists.txt index e30ed05e8..177db97d8 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,4 +70,5 @@ add_subdirectory(csb) add_subdirectory(domain) add_subdirectory(green) add_subdirectory(hsm) -add_subdirectory(dcdn) \ No newline at end of file +add_subdirectory(dcdn) +add_subdirectory(pvtz) \ No newline at end of file diff --git a/VERSION b/VERSION index ee672d89a..ed21137ee 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.9.1 \ No newline at end of file +1.10.0 \ No newline at end of file diff --git a/pvtz/CMakeLists.txt b/pvtz/CMakeLists.txt new file mode 100644 index 000000000..b1b5af237 --- /dev/null +++ b/pvtz/CMakeLists.txt @@ -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} + ) \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/PvtzClient.h b/pvtz/include/alibabacloud/pvtz/PvtzClient.h new file mode 100644 index 000000000..8eac5a054 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/PvtzClient.h @@ -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 +#include +#include +#include +#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 AddZoneRecordOutcome; + typedef std::future AddZoneRecordOutcomeCallable; + typedef std::function&)> AddZoneRecordAsyncHandler; + typedef Outcome DescribeZoneInfoOutcome; + typedef std::future DescribeZoneInfoOutcomeCallable; + typedef std::function&)> DescribeZoneInfoAsyncHandler; + typedef Outcome DeleteZoneRecordOutcome; + typedef std::future DeleteZoneRecordOutcomeCallable; + typedef std::function&)> DeleteZoneRecordAsyncHandler; + typedef Outcome UpdateZoneRemarkOutcome; + typedef std::future UpdateZoneRemarkOutcomeCallable; + typedef std::function&)> UpdateZoneRemarkAsyncHandler; + typedef Outcome CheckZoneNameOutcome; + typedef std::future CheckZoneNameOutcomeCallable; + typedef std::function&)> CheckZoneNameAsyncHandler; + typedef Outcome UpdateZoneRecordOutcome; + typedef std::future UpdateZoneRecordOutcomeCallable; + typedef std::function&)> UpdateZoneRecordAsyncHandler; + typedef Outcome AddZoneOutcome; + typedef std::future AddZoneOutcomeCallable; + typedef std::function&)> AddZoneAsyncHandler; + typedef Outcome BindZoneVpcOutcome; + typedef std::future BindZoneVpcOutcomeCallable; + typedef std::function&)> BindZoneVpcAsyncHandler; + typedef Outcome DescribeRequestGraphOutcome; + typedef std::future DescribeRequestGraphOutcomeCallable; + typedef std::function&)> DescribeRequestGraphAsyncHandler; + typedef Outcome DescribeStatisticSummaryOutcome; + typedef std::future DescribeStatisticSummaryOutcomeCallable; + typedef std::function&)> DescribeStatisticSummaryAsyncHandler; + typedef Outcome DescribeZoneVpcTreeOutcome; + typedef std::future DescribeZoneVpcTreeOutcomeCallable; + typedef std::function&)> DescribeZoneVpcTreeAsyncHandler; + typedef Outcome DescribeChangeLogsOutcome; + typedef std::future DescribeChangeLogsOutcomeCallable; + typedef std::function&)> DescribeChangeLogsAsyncHandler; + typedef Outcome DeleteZoneOutcome; + typedef std::future DeleteZoneOutcomeCallable; + typedef std::function&)> DeleteZoneAsyncHandler; + typedef Outcome DescribeUserServiceStatusOutcome; + typedef std::future DescribeUserServiceStatusOutcomeCallable; + typedef std::function&)> DescribeUserServiceStatusAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeZoneRecordsOutcome; + typedef std::future DescribeZoneRecordsOutcomeCallable; + typedef std::function&)> DescribeZoneRecordsAsyncHandler; + typedef Outcome SetZoneRecordStatusOutcome; + typedef std::future SetZoneRecordStatusOutcomeCallable; + typedef std::function&)> SetZoneRecordStatusAsyncHandler; + typedef Outcome DescribeZonesOutcome; + typedef std::future DescribeZonesOutcomeCallable; + typedef std::function&)> DescribeZonesAsyncHandler; + + PvtzClient(const Credentials &credentials, const ClientConfiguration &configuration); + PvtzClient(const std::shared_ptr &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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; + DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_PVTZ_PVTZCLIENT_H_ diff --git a/pvtz/include/alibabacloud/pvtz/PvtzExport.h b/pvtz/include/alibabacloud/pvtz/PvtzExport.h new file mode 100644 index 000000000..8baa3ce05 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/PvtzExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_PVTZEXPORT_H_ +#define ALIBABACLOUD_PVTZ_PVTZEXPORT_H_ + +#include + +#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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/AddZoneRecordRequest.h b/pvtz/include/alibabacloud/pvtz/model/AddZoneRecordRequest.h new file mode 100644 index 000000000..01f22a135 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/AddZoneRecordRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_ADDZONERECORDREQUEST_H_ +#define ALIBABACLOUD_PVTZ_MODEL_ADDZONERECORDREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/AddZoneRecordResult.h b/pvtz/include/alibabacloud/pvtz/model/AddZoneRecordResult.h new file mode 100644 index 000000000..16d5db88c --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/AddZoneRecordResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_ADDZONERECORDRESULT_H_ +#define ALIBABACLOUD_PVTZ_MODEL_ADDZONERECORDRESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/AddZoneRequest.h b/pvtz/include/alibabacloud/pvtz/model/AddZoneRequest.h new file mode 100644 index 000000000..f3b050433 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/AddZoneRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/AddZoneResult.h b/pvtz/include/alibabacloud/pvtz/model/AddZoneResult.h new file mode 100644 index 000000000..8477be3bc --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/AddZoneResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_ADDZONERESULT_H_ +#define ALIBABACLOUD_PVTZ_MODEL_ADDZONERESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/BindZoneVpcRequest.h b/pvtz/include/alibabacloud/pvtz/model/BindZoneVpcRequest.h new file mode 100644 index 000000000..0b57366f4 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/BindZoneVpcRequest.h @@ -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 +#include +#include +#include + +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 getVpcs()const; + void setVpcs(const std::vector& vpcs); + + private: + std::string userClientIp_; + std::string zoneId_; + std::string lang_; + std::vector vpcs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PVTZ_MODEL_BINDZONEVPCREQUEST_H_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/BindZoneVpcResult.h b/pvtz/include/alibabacloud/pvtz/model/BindZoneVpcResult.h new file mode 100644 index 000000000..16beb11c5 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/BindZoneVpcResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/CheckZoneNameRequest.h b/pvtz/include/alibabacloud/pvtz/model/CheckZoneNameRequest.h new file mode 100644 index 000000000..8ee81f894 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/CheckZoneNameRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/CheckZoneNameResult.h b/pvtz/include/alibabacloud/pvtz/model/CheckZoneNameResult.h new file mode 100644 index 000000000..831ac1db3 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/CheckZoneNameResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_CHECKZONENAMERESULT_H_ +#define ALIBABACLOUD_PVTZ_MODEL_CHECKZONENAMERESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DeleteZoneRecordRequest.h b/pvtz/include/alibabacloud/pvtz/model/DeleteZoneRecordRequest.h new file mode 100644 index 000000000..91fc66df7 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DeleteZoneRecordRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DeleteZoneRecordResult.h b/pvtz/include/alibabacloud/pvtz/model/DeleteZoneRecordResult.h new file mode 100644 index 000000000..b1761f22e --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DeleteZoneRecordResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DeleteZoneRequest.h b/pvtz/include/alibabacloud/pvtz/model/DeleteZoneRequest.h new file mode 100644 index 000000000..2d8fac33d --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DeleteZoneRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DeleteZoneResult.h b/pvtz/include/alibabacloud/pvtz/model/DeleteZoneResult.h new file mode 100644 index 000000000..9777f2193 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DeleteZoneResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeChangeLogsRequest.h b/pvtz/include/alibabacloud/pvtz/model/DescribeChangeLogsRequest.h new file mode 100644 index 000000000..394168f40 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeChangeLogsRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBECHANGELOGSREQUEST_H_ +#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBECHANGELOGSREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeChangeLogsResult.h b/pvtz/include/alibabacloud/pvtz/model/DescribeChangeLogsResult.h new file mode 100644 index 000000000..ed61998b1 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeChangeLogsResult.h @@ -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 +#include +#include +#include +#include + +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 getChangeLogs()const; + int getPageSize()const; + int getPageNumber()const; + int getTotalPages()const; + int getTotalItems()const; + + protected: + void parse(const std::string &payload); + private: + std::vector changeLogs_; + int pageSize_; + int pageNumber_; + int totalPages_; + int totalItems_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBECHANGELOGSRESULT_H_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeRegionsRequest.h b/pvtz/include/alibabacloud/pvtz/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..a82a6f24c --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeRegionsRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeRegionsResult.h b/pvtz/include/alibabacloud/pvtz/model/DescribeRegionsResult.h new file mode 100644 index 000000000..52af94643 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeRegionsResult.h @@ -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 +#include +#include +#include +#include + +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 getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeRequestGraphRequest.h b/pvtz/include/alibabacloud/pvtz/model/DescribeRequestGraphRequest.h new file mode 100644 index 000000000..395574e80 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeRequestGraphRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREQUESTGRAPHREQUEST_H_ +#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREQUESTGRAPHREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeRequestGraphResult.h b/pvtz/include/alibabacloud/pvtz/model/DescribeRequestGraphResult.h new file mode 100644 index 000000000..0bb9cf943 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeRequestGraphResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREQUESTGRAPHRESULT_H_ +#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREQUESTGRAPHRESULT_H_ + +#include +#include +#include +#include +#include + +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 getRequestDetails()const; + + protected: + void parse(const std::string &payload); + private: + std::vector requestDetails_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEREQUESTGRAPHRESULT_H_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeStatisticSummaryRequest.h b/pvtz/include/alibabacloud/pvtz/model/DescribeStatisticSummaryRequest.h new file mode 100644 index 000000000..69c61c823 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeStatisticSummaryRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeStatisticSummaryResult.h b/pvtz/include/alibabacloud/pvtz/model/DescribeStatisticSummaryResult.h new file mode 100644 index 000000000..240a6f663 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeStatisticSummaryResult.h @@ -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 +#include +#include +#include +#include + +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 getZoneRequestTops()const; + std::vector getVpcRequestTops()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::vector zoneRequestTops_; + std::vector vpcRequestTops_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBESTATISTICSUMMARYRESULT_H_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeUserServiceStatusRequest.h b/pvtz/include/alibabacloud/pvtz/model/DescribeUserServiceStatusRequest.h new file mode 100644 index 000000000..41fe67ec1 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeUserServiceStatusRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeUserServiceStatusResult.h b/pvtz/include/alibabacloud/pvtz/model/DescribeUserServiceStatusResult.h new file mode 100644 index 000000000..df6c25cd0 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeUserServiceStatusResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeZoneInfoRequest.h b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneInfoRequest.h new file mode 100644 index 000000000..06a75404b --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneInfoRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeZoneInfoResult.h b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneInfoResult.h new file mode 100644 index 000000000..e6e082401 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneInfoResult.h @@ -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 +#include +#include +#include +#include + +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 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 bindVpcs_; + int recordCount_; + long createTimestamp_; + bool isPtr_; + std::string remark_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEINFORESULT_H_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeZoneRecordsRequest.h b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneRecordsRequest.h new file mode 100644 index 000000000..dd66d7a98 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneRecordsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONERECORDSREQUEST_H_ +#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONERECORDSREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeZoneRecordsResult.h b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneRecordsResult.h new file mode 100644 index 000000000..e8bfa245f --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneRecordsResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONERECORDSRESULT_H_ +#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONERECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +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 getRecords()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int totalPages_; + int totalItems_; + std::vector records_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONERECORDSRESULT_H_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeZoneVpcTreeRequest.h b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneVpcTreeRequest.h new file mode 100644 index 000000000..3784f7e63 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneVpcTreeRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeZoneVpcTreeResult.h b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneVpcTreeResult.h new file mode 100644 index 000000000..32691cedd --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneVpcTreeResult.h @@ -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 +#include +#include +#include +#include + +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 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 getZones()const; + + protected: + void parse(const std::string &payload); + private: + std::vector zones_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONEVPCTREERESULT_H_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeZonesRequest.h b/pvtz/include/alibabacloud/pvtz/model/DescribeZonesRequest.h new file mode 100644 index 000000000..e4c1874e9 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeZonesRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONESREQUEST_H_ +#define ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONESREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeZonesResult.h b/pvtz/include/alibabacloud/pvtz/model/DescribeZonesResult.h new file mode 100644 index 000000000..323e630c0 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeZonesResult.h @@ -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 +#include +#include +#include +#include + +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 getZones()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int totalPages_; + int totalItems_; + std::vector zones_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PVTZ_MODEL_DESCRIBEZONESRESULT_H_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/SetZoneRecordStatusRequest.h b/pvtz/include/alibabacloud/pvtz/model/SetZoneRecordStatusRequest.h new file mode 100644 index 000000000..d35732a55 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/SetZoneRecordStatusRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_SETZONERECORDSTATUSREQUEST_H_ +#define ALIBABACLOUD_PVTZ_MODEL_SETZONERECORDSTATUSREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/SetZoneRecordStatusResult.h b/pvtz/include/alibabacloud/pvtz/model/SetZoneRecordStatusResult.h new file mode 100644 index 000000000..73eef94ae --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/SetZoneRecordStatusResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_SETZONERECORDSTATUSRESULT_H_ +#define ALIBABACLOUD_PVTZ_MODEL_SETZONERECORDSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/UpdateZoneRecordRequest.h b/pvtz/include/alibabacloud/pvtz/model/UpdateZoneRecordRequest.h new file mode 100644 index 000000000..c5a856c7e --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/UpdateZoneRecordRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_UPDATEZONERECORDREQUEST_H_ +#define ALIBABACLOUD_PVTZ_MODEL_UPDATEZONERECORDREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/UpdateZoneRecordResult.h b/pvtz/include/alibabacloud/pvtz/model/UpdateZoneRecordResult.h new file mode 100644 index 000000000..3f4632c8c --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/UpdateZoneRecordResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/UpdateZoneRemarkRequest.h b/pvtz/include/alibabacloud/pvtz/model/UpdateZoneRemarkRequest.h new file mode 100644 index 000000000..c059cdb81 --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/UpdateZoneRemarkRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PVTZ_MODEL_UPDATEZONEREMARKREQUEST_H_ +#define ALIBABACLOUD_PVTZ_MODEL_UPDATEZONEREMARKREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/include/alibabacloud/pvtz/model/UpdateZoneRemarkResult.h b/pvtz/include/alibabacloud/pvtz/model/UpdateZoneRemarkResult.h new file mode 100644 index 000000000..75273ddde --- /dev/null +++ b/pvtz/include/alibabacloud/pvtz/model/UpdateZoneRemarkResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/pvtz/src/PvtzClient.cc b/pvtz/src/PvtzClient.cc new file mode 100644 index 000000000..5a710e591 --- /dev/null +++ b/pvtz/src/PvtzClient.cc @@ -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 +#include + +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(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "pvtz"); +} + +PvtzClient::PvtzClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(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(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [this, request]() + { + return this->describeZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/pvtz/src/model/AddZoneRecordRequest.cc b/pvtz/src/model/AddZoneRecordRequest.cc new file mode 100644 index 000000000..ea85d6210 --- /dev/null +++ b/pvtz/src/model/AddZoneRecordRequest.cc @@ -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 + +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); +} + diff --git a/pvtz/src/model/AddZoneRecordResult.cc b/pvtz/src/model/AddZoneRecordResult.cc new file mode 100644 index 000000000..db4888059 --- /dev/null +++ b/pvtz/src/model/AddZoneRecordResult.cc @@ -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 +#include + +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_; +} + diff --git a/pvtz/src/model/AddZoneRequest.cc b/pvtz/src/model/AddZoneRequest.cc new file mode 100644 index 000000000..4ddc5f5fe --- /dev/null +++ b/pvtz/src/model/AddZoneRequest.cc @@ -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 + +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); +} + diff --git a/pvtz/src/model/AddZoneResult.cc b/pvtz/src/model/AddZoneResult.cc new file mode 100644 index 000000000..854ff33ac --- /dev/null +++ b/pvtz/src/model/AddZoneResult.cc @@ -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 +#include + +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_; +} + diff --git a/pvtz/src/model/BindZoneVpcRequest.cc b/pvtz/src/model/BindZoneVpcRequest.cc new file mode 100644 index 000000000..4e26b3c96 --- /dev/null +++ b/pvtz/src/model/BindZoneVpcRequest.cc @@ -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 + +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::getVpcs()const +{ + return vpcs_; +} + +void BindZoneVpcRequest::setVpcs(const std::vector& 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); + } +} + diff --git a/pvtz/src/model/BindZoneVpcResult.cc b/pvtz/src/model/BindZoneVpcResult.cc new file mode 100644 index 000000000..aff1e9ffd --- /dev/null +++ b/pvtz/src/model/BindZoneVpcResult.cc @@ -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 +#include + +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()); + +} + diff --git a/pvtz/src/model/CheckZoneNameRequest.cc b/pvtz/src/model/CheckZoneNameRequest.cc new file mode 100644 index 000000000..ad9fc457e --- /dev/null +++ b/pvtz/src/model/CheckZoneNameRequest.cc @@ -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 + +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); +} + diff --git a/pvtz/src/model/CheckZoneNameResult.cc b/pvtz/src/model/CheckZoneNameResult.cc new file mode 100644 index 000000000..4618433b0 --- /dev/null +++ b/pvtz/src/model/CheckZoneNameResult.cc @@ -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 +#include + +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_; +} + diff --git a/pvtz/src/model/DeleteZoneRecordRequest.cc b/pvtz/src/model/DeleteZoneRecordRequest.cc new file mode 100644 index 000000000..c47d27927 --- /dev/null +++ b/pvtz/src/model/DeleteZoneRecordRequest.cc @@ -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 + +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); +} + diff --git a/pvtz/src/model/DeleteZoneRecordResult.cc b/pvtz/src/model/DeleteZoneRecordResult.cc new file mode 100644 index 000000000..75a0bcdbe --- /dev/null +++ b/pvtz/src/model/DeleteZoneRecordResult.cc @@ -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 +#include + +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_; +} + diff --git a/pvtz/src/model/DeleteZoneRequest.cc b/pvtz/src/model/DeleteZoneRequest.cc new file mode 100644 index 000000000..096fa150e --- /dev/null +++ b/pvtz/src/model/DeleteZoneRequest.cc @@ -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 + +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); +} + diff --git a/pvtz/src/model/DeleteZoneResult.cc b/pvtz/src/model/DeleteZoneResult.cc new file mode 100644 index 000000000..0a994e6cd --- /dev/null +++ b/pvtz/src/model/DeleteZoneResult.cc @@ -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 +#include + +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_; +} + diff --git a/pvtz/src/model/DescribeChangeLogsRequest.cc b/pvtz/src/model/DescribeChangeLogsRequest.cc new file mode 100644 index 000000000..52cdfef7d --- /dev/null +++ b/pvtz/src/model/DescribeChangeLogsRequest.cc @@ -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 + +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)); +} + diff --git a/pvtz/src/model/DescribeChangeLogsResult.cc b/pvtz/src/model/DescribeChangeLogsResult.cc new file mode 100644 index 000000000..61db45ce9 --- /dev/null +++ b/pvtz/src/model/DescribeChangeLogsResult.cc @@ -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 +#include + +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::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_; +} + diff --git a/pvtz/src/model/DescribeRegionsRequest.cc b/pvtz/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..60bbf5868 --- /dev/null +++ b/pvtz/src/model/DescribeRegionsRequest.cc @@ -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 + +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); +} + diff --git a/pvtz/src/model/DescribeRegionsResult.cc b/pvtz/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..f34fa5cd9 --- /dev/null +++ b/pvtz/src/model/DescribeRegionsResult.cc @@ -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 +#include + +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::getRegions()const +{ + return regions_; +} + diff --git a/pvtz/src/model/DescribeRequestGraphRequest.cc b/pvtz/src/model/DescribeRequestGraphRequest.cc new file mode 100644 index 000000000..35c111f3b --- /dev/null +++ b/pvtz/src/model/DescribeRequestGraphRequest.cc @@ -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 + +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)); +} + diff --git a/pvtz/src/model/DescribeRequestGraphResult.cc b/pvtz/src/model/DescribeRequestGraphResult.cc new file mode 100644 index 000000000..a8d408671 --- /dev/null +++ b/pvtz/src/model/DescribeRequestGraphResult.cc @@ -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 +#include + +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::getRequestDetails()const +{ + return requestDetails_; +} + diff --git a/pvtz/src/model/DescribeStatisticSummaryRequest.cc b/pvtz/src/model/DescribeStatisticSummaryRequest.cc new file mode 100644 index 000000000..9711eccfd --- /dev/null +++ b/pvtz/src/model/DescribeStatisticSummaryRequest.cc @@ -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 + +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); +} + diff --git a/pvtz/src/model/DescribeStatisticSummaryResult.cc b/pvtz/src/model/DescribeStatisticSummaryResult.cc new file mode 100644 index 000000000..4a4215a7e --- /dev/null +++ b/pvtz/src/model/DescribeStatisticSummaryResult.cc @@ -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 +#include + +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::getZoneRequestTops()const +{ + return zoneRequestTops_; +} + +std::vector DescribeStatisticSummaryResult::getVpcRequestTops()const +{ + return vpcRequestTops_; +} + diff --git a/pvtz/src/model/DescribeUserServiceStatusRequest.cc b/pvtz/src/model/DescribeUserServiceStatusRequest.cc new file mode 100644 index 000000000..4f4fd6161 --- /dev/null +++ b/pvtz/src/model/DescribeUserServiceStatusRequest.cc @@ -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 + +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); +} + diff --git a/pvtz/src/model/DescribeUserServiceStatusResult.cc b/pvtz/src/model/DescribeUserServiceStatusResult.cc new file mode 100644 index 000000000..6b9b6b981 --- /dev/null +++ b/pvtz/src/model/DescribeUserServiceStatusResult.cc @@ -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 +#include + +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_; +} + diff --git a/pvtz/src/model/DescribeZoneInfoRequest.cc b/pvtz/src/model/DescribeZoneInfoRequest.cc new file mode 100644 index 000000000..e655bf9ba --- /dev/null +++ b/pvtz/src/model/DescribeZoneInfoRequest.cc @@ -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 + +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); +} + diff --git a/pvtz/src/model/DescribeZoneInfoResult.cc b/pvtz/src/model/DescribeZoneInfoResult.cc new file mode 100644 index 000000000..94cbaba7a --- /dev/null +++ b/pvtz/src/model/DescribeZoneInfoResult.cc @@ -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 +#include + +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::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_; +} + diff --git a/pvtz/src/model/DescribeZoneRecordsRequest.cc b/pvtz/src/model/DescribeZoneRecordsRequest.cc new file mode 100644 index 000000000..176569a2a --- /dev/null +++ b/pvtz/src/model/DescribeZoneRecordsRequest.cc @@ -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 + +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)); +} + diff --git a/pvtz/src/model/DescribeZoneRecordsResult.cc b/pvtz/src/model/DescribeZoneRecordsResult.cc new file mode 100644 index 000000000..0db3dbf0c --- /dev/null +++ b/pvtz/src/model/DescribeZoneRecordsResult.cc @@ -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 +#include + +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::getRecords()const +{ + return records_; +} + diff --git a/pvtz/src/model/DescribeZoneVpcTreeRequest.cc b/pvtz/src/model/DescribeZoneVpcTreeRequest.cc new file mode 100644 index 000000000..9e012b260 --- /dev/null +++ b/pvtz/src/model/DescribeZoneVpcTreeRequest.cc @@ -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 + +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); +} + diff --git a/pvtz/src/model/DescribeZoneVpcTreeResult.cc b/pvtz/src/model/DescribeZoneVpcTreeResult.cc new file mode 100644 index 000000000..0e3fe3f5a --- /dev/null +++ b/pvtz/src/model/DescribeZoneVpcTreeResult.cc @@ -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 +#include + +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::getZones()const +{ + return zones_; +} + diff --git a/pvtz/src/model/DescribeZonesRequest.cc b/pvtz/src/model/DescribeZonesRequest.cc new file mode 100644 index 000000000..ef54019f7 --- /dev/null +++ b/pvtz/src/model/DescribeZonesRequest.cc @@ -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 + +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)); +} + diff --git a/pvtz/src/model/DescribeZonesResult.cc b/pvtz/src/model/DescribeZonesResult.cc new file mode 100644 index 000000000..5b87338df --- /dev/null +++ b/pvtz/src/model/DescribeZonesResult.cc @@ -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 +#include + +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::getZones()const +{ + return zones_; +} + diff --git a/pvtz/src/model/SetZoneRecordStatusRequest.cc b/pvtz/src/model/SetZoneRecordStatusRequest.cc new file mode 100644 index 000000000..02aa92a66 --- /dev/null +++ b/pvtz/src/model/SetZoneRecordStatusRequest.cc @@ -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 + +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); +} + diff --git a/pvtz/src/model/SetZoneRecordStatusResult.cc b/pvtz/src/model/SetZoneRecordStatusResult.cc new file mode 100644 index 000000000..cf606d171 --- /dev/null +++ b/pvtz/src/model/SetZoneRecordStatusResult.cc @@ -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 +#include + +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_; +} + diff --git a/pvtz/src/model/UpdateZoneRecordRequest.cc b/pvtz/src/model/UpdateZoneRecordRequest.cc new file mode 100644 index 000000000..c5ad99d89 --- /dev/null +++ b/pvtz/src/model/UpdateZoneRecordRequest.cc @@ -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 + +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); +} + diff --git a/pvtz/src/model/UpdateZoneRecordResult.cc b/pvtz/src/model/UpdateZoneRecordResult.cc new file mode 100644 index 000000000..14c624e45 --- /dev/null +++ b/pvtz/src/model/UpdateZoneRecordResult.cc @@ -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 +#include + +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_; +} + diff --git a/pvtz/src/model/UpdateZoneRemarkRequest.cc b/pvtz/src/model/UpdateZoneRemarkRequest.cc new file mode 100644 index 000000000..e1bd2e5a8 --- /dev/null +++ b/pvtz/src/model/UpdateZoneRemarkRequest.cc @@ -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 + +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); +} + diff --git a/pvtz/src/model/UpdateZoneRemarkResult.cc b/pvtz/src/model/UpdateZoneRemarkResult.cc new file mode 100644 index 000000000..8823229e9 --- /dev/null +++ b/pvtz/src/model/UpdateZoneRemarkResult.cc @@ -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 +#include + +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_; +} +