diff --git a/CHANGELOG b/CHANGELOG index 1c2b11f8c..458ec2836 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +2018-05-28 Version: 1.13.0 +1, This is an example of release-log. +2, Please strictly follow this format to edit in English. +3, Format:Number + , + Space + Description + 2018-05-23 Version: 1.12.0 1, Add CreateDrdsAccount API, to support creating account for all databases of a DRDS instance. diff --git a/CMakeLists.txt b/CMakeLists.txt index 4519e003d..5c64b5e20 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,4 +74,5 @@ add_subdirectory(dcdn) add_subdirectory(pvtz) add_subdirectory(cloudauth) add_subdirectory(dyvmsapi) -add_subdirectory(drds) \ No newline at end of file +add_subdirectory(drds) +add_subdirectory(jarvis) \ No newline at end of file diff --git a/VERSION b/VERSION index 32bd932f3..f88cf52e6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.12.0 \ No newline at end of file +1.13.0 \ No newline at end of file diff --git a/jarvis/CMakeLists.txt b/jarvis/CMakeLists.txt new file mode 100644 index 000000000..17152c5e1 --- /dev/null +++ b/jarvis/CMakeLists.txt @@ -0,0 +1,142 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(jarvis_public_header + include/alibabacloud/jarvis/JarvisClient.h + include/alibabacloud/jarvis/JarvisExport.h ) + +set(jarvis_public_header_model + include/alibabacloud/jarvis/model/DeleteUidWhiteListGroupRequest.h + include/alibabacloud/jarvis/model/DeleteUidWhiteListGroupResult.h + include/alibabacloud/jarvis/model/CreateCpmcPunishFeedBackRequest.h + include/alibabacloud/jarvis/model/CreateCpmcPunishFeedBackResult.h + include/alibabacloud/jarvis/model/CreateAccessWhiteListGroupRequest.h + include/alibabacloud/jarvis/model/CreateAccessWhiteListGroupResult.h + include/alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListRequest.h + include/alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListResult.h + include/alibabacloud/jarvis/model/DescribeResetRecordListRequest.h + include/alibabacloud/jarvis/model/DescribeResetRecordListResult.h + include/alibabacloud/jarvis/model/ModifyUidWhiteListAutoShareRequest.h + include/alibabacloud/jarvis/model/ModifyUidWhiteListAutoShareResult.h + include/alibabacloud/jarvis/model/ModifyAccessWhiteListAutoShareRequest.h + include/alibabacloud/jarvis/model/ModifyAccessWhiteListAutoShareResult.h + include/alibabacloud/jarvis/model/CreateUidWhiteListGroupRequest.h + include/alibabacloud/jarvis/model/CreateUidWhiteListGroupResult.h + include/alibabacloud/jarvis/model/DescribeCpmcPunishListRequest.h + include/alibabacloud/jarvis/model/DescribeCpmcPunishListResult.h + include/alibabacloud/jarvis/model/DescribeUidGcLevelRequest.h + include/alibabacloud/jarvis/model/DescribeUidGcLevelResult.h + include/alibabacloud/jarvis/model/DeleteAccessWhiteListGroupRequest.h + include/alibabacloud/jarvis/model/DeleteAccessWhiteListGroupResult.h + include/alibabacloud/jarvis/model/DescribeAccessWhiteListGroupRequest.h + include/alibabacloud/jarvis/model/DescribeAccessWhiteListGroupResult.h + include/alibabacloud/jarvis/model/DescribeResetRecordQueryCountRequest.h + include/alibabacloud/jarvis/model/DescribeResetRecordQueryCountResult.h + include/alibabacloud/jarvis/model/DescribeUidWhiteListGroupRequest.h + include/alibabacloud/jarvis/model/DescribeUidWhiteListGroupResult.h + include/alibabacloud/jarvis/model/DescribeRiskTrendRequest.h + include/alibabacloud/jarvis/model/DescribeRiskTrendResult.h ) + +set(jarvis_src + src/JarvisClient.cc + src/model/DeleteUidWhiteListGroupRequest.cc + src/model/DeleteUidWhiteListGroupResult.cc + src/model/CreateCpmcPunishFeedBackRequest.cc + src/model/CreateCpmcPunishFeedBackResult.cc + src/model/CreateAccessWhiteListGroupRequest.cc + src/model/CreateAccessWhiteListGroupResult.cc + src/model/DescribeAccessWhitelistEcsListRequest.cc + src/model/DescribeAccessWhitelistEcsListResult.cc + src/model/DescribeResetRecordListRequest.cc + src/model/DescribeResetRecordListResult.cc + src/model/ModifyUidWhiteListAutoShareRequest.cc + src/model/ModifyUidWhiteListAutoShareResult.cc + src/model/ModifyAccessWhiteListAutoShareRequest.cc + src/model/ModifyAccessWhiteListAutoShareResult.cc + src/model/CreateUidWhiteListGroupRequest.cc + src/model/CreateUidWhiteListGroupResult.cc + src/model/DescribeCpmcPunishListRequest.cc + src/model/DescribeCpmcPunishListResult.cc + src/model/DescribeUidGcLevelRequest.cc + src/model/DescribeUidGcLevelResult.cc + src/model/DeleteAccessWhiteListGroupRequest.cc + src/model/DeleteAccessWhiteListGroupResult.cc + src/model/DescribeAccessWhiteListGroupRequest.cc + src/model/DescribeAccessWhiteListGroupResult.cc + src/model/DescribeResetRecordQueryCountRequest.cc + src/model/DescribeResetRecordQueryCountResult.cc + src/model/DescribeUidWhiteListGroupRequest.cc + src/model/DescribeUidWhiteListGroupResult.cc + src/model/DescribeRiskTrendRequest.cc + src/model/DescribeRiskTrendResult.cc ) + +add_library(jarvis ${LIB_TYPE} + ${jarvis_public_header} + ${jarvis_public_header_model} + ${jarvis_src}) + +set_target_properties(jarvis + 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}jarvis + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(jarvis + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_JARVIS_LIBRARY) +endif() + +target_include_directories(jarvis + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(jarvis + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(jarvis + jsoncpp) + target_include_directories(jarvis + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(jarvis + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(jarvis + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(jarvis + PRIVATE /usr/include/jsoncpp) + target_link_libraries(jarvis + jsoncpp) +endif() + +install(FILES ${jarvis_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/jarvis) +install(FILES ${jarvis_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/jarvis/model) +install(TARGETS jarvis + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/JarvisClient.h b/jarvis/include/alibabacloud/jarvis/JarvisClient.h new file mode 100644 index 000000000..cece0d221 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/JarvisClient.h @@ -0,0 +1,166 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_JARVIS_JARVISCLIENT_H_ +#define ALIBABACLOUD_JARVIS_JARVISCLIENT_H_ + +#include +#include +#include +#include +#include "JarvisExport.h" +#include "model/DeleteUidWhiteListGroupRequest.h" +#include "model/DeleteUidWhiteListGroupResult.h" +#include "model/CreateCpmcPunishFeedBackRequest.h" +#include "model/CreateCpmcPunishFeedBackResult.h" +#include "model/CreateAccessWhiteListGroupRequest.h" +#include "model/CreateAccessWhiteListGroupResult.h" +#include "model/DescribeAccessWhitelistEcsListRequest.h" +#include "model/DescribeAccessWhitelistEcsListResult.h" +#include "model/DescribeResetRecordListRequest.h" +#include "model/DescribeResetRecordListResult.h" +#include "model/ModifyUidWhiteListAutoShareRequest.h" +#include "model/ModifyUidWhiteListAutoShareResult.h" +#include "model/ModifyAccessWhiteListAutoShareRequest.h" +#include "model/ModifyAccessWhiteListAutoShareResult.h" +#include "model/CreateUidWhiteListGroupRequest.h" +#include "model/CreateUidWhiteListGroupResult.h" +#include "model/DescribeCpmcPunishListRequest.h" +#include "model/DescribeCpmcPunishListResult.h" +#include "model/DescribeUidGcLevelRequest.h" +#include "model/DescribeUidGcLevelResult.h" +#include "model/DeleteAccessWhiteListGroupRequest.h" +#include "model/DeleteAccessWhiteListGroupResult.h" +#include "model/DescribeAccessWhiteListGroupRequest.h" +#include "model/DescribeAccessWhiteListGroupResult.h" +#include "model/DescribeResetRecordQueryCountRequest.h" +#include "model/DescribeResetRecordQueryCountResult.h" +#include "model/DescribeUidWhiteListGroupRequest.h" +#include "model/DescribeUidWhiteListGroupResult.h" +#include "model/DescribeRiskTrendRequest.h" +#include "model/DescribeRiskTrendResult.h" + + +namespace AlibabaCloud +{ + namespace Jarvis + { + class ALIBABACLOUD_JARVIS_EXPORT JarvisClient : public RpcServiceClient + { + public: + typedef Outcome DeleteUidWhiteListGroupOutcome; + typedef std::future DeleteUidWhiteListGroupOutcomeCallable; + typedef std::function&)> DeleteUidWhiteListGroupAsyncHandler; + typedef Outcome CreateCpmcPunishFeedBackOutcome; + typedef std::future CreateCpmcPunishFeedBackOutcomeCallable; + typedef std::function&)> CreateCpmcPunishFeedBackAsyncHandler; + typedef Outcome CreateAccessWhiteListGroupOutcome; + typedef std::future CreateAccessWhiteListGroupOutcomeCallable; + typedef std::function&)> CreateAccessWhiteListGroupAsyncHandler; + typedef Outcome DescribeAccessWhitelistEcsListOutcome; + typedef std::future DescribeAccessWhitelistEcsListOutcomeCallable; + typedef std::function&)> DescribeAccessWhitelistEcsListAsyncHandler; + typedef Outcome DescribeResetRecordListOutcome; + typedef std::future DescribeResetRecordListOutcomeCallable; + typedef std::function&)> DescribeResetRecordListAsyncHandler; + typedef Outcome ModifyUidWhiteListAutoShareOutcome; + typedef std::future ModifyUidWhiteListAutoShareOutcomeCallable; + typedef std::function&)> ModifyUidWhiteListAutoShareAsyncHandler; + typedef Outcome ModifyAccessWhiteListAutoShareOutcome; + typedef std::future ModifyAccessWhiteListAutoShareOutcomeCallable; + typedef std::function&)> ModifyAccessWhiteListAutoShareAsyncHandler; + typedef Outcome CreateUidWhiteListGroupOutcome; + typedef std::future CreateUidWhiteListGroupOutcomeCallable; + typedef std::function&)> CreateUidWhiteListGroupAsyncHandler; + typedef Outcome DescribeCpmcPunishListOutcome; + typedef std::future DescribeCpmcPunishListOutcomeCallable; + typedef std::function&)> DescribeCpmcPunishListAsyncHandler; + typedef Outcome DescribeUidGcLevelOutcome; + typedef std::future DescribeUidGcLevelOutcomeCallable; + typedef std::function&)> DescribeUidGcLevelAsyncHandler; + typedef Outcome DeleteAccessWhiteListGroupOutcome; + typedef std::future DeleteAccessWhiteListGroupOutcomeCallable; + typedef std::function&)> DeleteAccessWhiteListGroupAsyncHandler; + typedef Outcome DescribeAccessWhiteListGroupOutcome; + typedef std::future DescribeAccessWhiteListGroupOutcomeCallable; + typedef std::function&)> DescribeAccessWhiteListGroupAsyncHandler; + typedef Outcome DescribeResetRecordQueryCountOutcome; + typedef std::future DescribeResetRecordQueryCountOutcomeCallable; + typedef std::function&)> DescribeResetRecordQueryCountAsyncHandler; + typedef Outcome DescribeUidWhiteListGroupOutcome; + typedef std::future DescribeUidWhiteListGroupOutcomeCallable; + typedef std::function&)> DescribeUidWhiteListGroupAsyncHandler; + typedef Outcome DescribeRiskTrendOutcome; + typedef std::future DescribeRiskTrendOutcomeCallable; + typedef std::function&)> DescribeRiskTrendAsyncHandler; + + JarvisClient(const Credentials &credentials, const ClientConfiguration &configuration); + JarvisClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + JarvisClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~JarvisClient(); + DeleteUidWhiteListGroupOutcome deleteUidWhiteListGroup(const Model::DeleteUidWhiteListGroupRequest &request)const; + void deleteUidWhiteListGroupAsync(const Model::DeleteUidWhiteListGroupRequest& request, const DeleteUidWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUidWhiteListGroupOutcomeCallable deleteUidWhiteListGroupCallable(const Model::DeleteUidWhiteListGroupRequest& request) const; + CreateCpmcPunishFeedBackOutcome createCpmcPunishFeedBack(const Model::CreateCpmcPunishFeedBackRequest &request)const; + void createCpmcPunishFeedBackAsync(const Model::CreateCpmcPunishFeedBackRequest& request, const CreateCpmcPunishFeedBackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCpmcPunishFeedBackOutcomeCallable createCpmcPunishFeedBackCallable(const Model::CreateCpmcPunishFeedBackRequest& request) const; + CreateAccessWhiteListGroupOutcome createAccessWhiteListGroup(const Model::CreateAccessWhiteListGroupRequest &request)const; + void createAccessWhiteListGroupAsync(const Model::CreateAccessWhiteListGroupRequest& request, const CreateAccessWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccessWhiteListGroupOutcomeCallable createAccessWhiteListGroupCallable(const Model::CreateAccessWhiteListGroupRequest& request) const; + DescribeAccessWhitelistEcsListOutcome describeAccessWhitelistEcsList(const Model::DescribeAccessWhitelistEcsListRequest &request)const; + void describeAccessWhitelistEcsListAsync(const Model::DescribeAccessWhitelistEcsListRequest& request, const DescribeAccessWhitelistEcsListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccessWhitelistEcsListOutcomeCallable describeAccessWhitelistEcsListCallable(const Model::DescribeAccessWhitelistEcsListRequest& request) const; + DescribeResetRecordListOutcome describeResetRecordList(const Model::DescribeResetRecordListRequest &request)const; + void describeResetRecordListAsync(const Model::DescribeResetRecordListRequest& request, const DescribeResetRecordListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeResetRecordListOutcomeCallable describeResetRecordListCallable(const Model::DescribeResetRecordListRequest& request) const; + ModifyUidWhiteListAutoShareOutcome modifyUidWhiteListAutoShare(const Model::ModifyUidWhiteListAutoShareRequest &request)const; + void modifyUidWhiteListAutoShareAsync(const Model::ModifyUidWhiteListAutoShareRequest& request, const ModifyUidWhiteListAutoShareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyUidWhiteListAutoShareOutcomeCallable modifyUidWhiteListAutoShareCallable(const Model::ModifyUidWhiteListAutoShareRequest& request) const; + ModifyAccessWhiteListAutoShareOutcome modifyAccessWhiteListAutoShare(const Model::ModifyAccessWhiteListAutoShareRequest &request)const; + void modifyAccessWhiteListAutoShareAsync(const Model::ModifyAccessWhiteListAutoShareRequest& request, const ModifyAccessWhiteListAutoShareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccessWhiteListAutoShareOutcomeCallable modifyAccessWhiteListAutoShareCallable(const Model::ModifyAccessWhiteListAutoShareRequest& request) const; + CreateUidWhiteListGroupOutcome createUidWhiteListGroup(const Model::CreateUidWhiteListGroupRequest &request)const; + void createUidWhiteListGroupAsync(const Model::CreateUidWhiteListGroupRequest& request, const CreateUidWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUidWhiteListGroupOutcomeCallable createUidWhiteListGroupCallable(const Model::CreateUidWhiteListGroupRequest& request) const; + DescribeCpmcPunishListOutcome describeCpmcPunishList(const Model::DescribeCpmcPunishListRequest &request)const; + void describeCpmcPunishListAsync(const Model::DescribeCpmcPunishListRequest& request, const DescribeCpmcPunishListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCpmcPunishListOutcomeCallable describeCpmcPunishListCallable(const Model::DescribeCpmcPunishListRequest& request) const; + DescribeUidGcLevelOutcome describeUidGcLevel(const Model::DescribeUidGcLevelRequest &request)const; + void describeUidGcLevelAsync(const Model::DescribeUidGcLevelRequest& request, const DescribeUidGcLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUidGcLevelOutcomeCallable describeUidGcLevelCallable(const Model::DescribeUidGcLevelRequest& request) const; + DeleteAccessWhiteListGroupOutcome deleteAccessWhiteListGroup(const Model::DeleteAccessWhiteListGroupRequest &request)const; + void deleteAccessWhiteListGroupAsync(const Model::DeleteAccessWhiteListGroupRequest& request, const DeleteAccessWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAccessWhiteListGroupOutcomeCallable deleteAccessWhiteListGroupCallable(const Model::DeleteAccessWhiteListGroupRequest& request) const; + DescribeAccessWhiteListGroupOutcome describeAccessWhiteListGroup(const Model::DescribeAccessWhiteListGroupRequest &request)const; + void describeAccessWhiteListGroupAsync(const Model::DescribeAccessWhiteListGroupRequest& request, const DescribeAccessWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccessWhiteListGroupOutcomeCallable describeAccessWhiteListGroupCallable(const Model::DescribeAccessWhiteListGroupRequest& request) const; + DescribeResetRecordQueryCountOutcome describeResetRecordQueryCount(const Model::DescribeResetRecordQueryCountRequest &request)const; + void describeResetRecordQueryCountAsync(const Model::DescribeResetRecordQueryCountRequest& request, const DescribeResetRecordQueryCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeResetRecordQueryCountOutcomeCallable describeResetRecordQueryCountCallable(const Model::DescribeResetRecordQueryCountRequest& request) const; + DescribeUidWhiteListGroupOutcome describeUidWhiteListGroup(const Model::DescribeUidWhiteListGroupRequest &request)const; + void describeUidWhiteListGroupAsync(const Model::DescribeUidWhiteListGroupRequest& request, const DescribeUidWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUidWhiteListGroupOutcomeCallable describeUidWhiteListGroupCallable(const Model::DescribeUidWhiteListGroupRequest& request) const; + DescribeRiskTrendOutcome describeRiskTrend(const Model::DescribeRiskTrendRequest &request)const; + void describeRiskTrendAsync(const Model::DescribeRiskTrendRequest& request, const DescribeRiskTrendAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRiskTrendOutcomeCallable describeRiskTrendCallable(const Model::DescribeRiskTrendRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_JARVIS_JARVISCLIENT_H_ diff --git a/jarvis/include/alibabacloud/jarvis/JarvisExport.h b/jarvis/include/alibabacloud/jarvis/JarvisExport.h new file mode 100644 index 000000000..d75e6d8e3 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/JarvisExport.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_JARVIS_JARVISEXPORT_H_ +#define ALIBABACLOUD_JARVIS_JARVISEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_JARVIS_LIBRARY) +# define ALIBABACLOUD_JARVIS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_JARVIS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_JARVIS_EXPORT +#endif + +#endif // !ALIBABACLOUD_JARVIS_JARVISEXPORT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/CreateAccessWhiteListGroupRequest.h b/jarvis/include/alibabacloud/jarvis/model/CreateAccessWhiteListGroupRequest.h new file mode 100644 index 000000000..55ae0197e --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/CreateAccessWhiteListGroupRequest.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_JARVIS_MODEL_CREATEACCESSWHITELISTGROUPREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_CREATEACCESSWHITELISTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT CreateAccessWhiteListGroupRequest : public RpcServiceRequest + { + + public: + CreateAccessWhiteListGroupRequest(); + ~CreateAccessWhiteListGroupRequest(); + + std::string getNote()const; + void setNote(const std::string& note); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSrcIP()const; + void setSrcIP(const std::string& srcIP); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getDstPort()const; + void setDstPort(int dstPort); + std::string getInstanceIdList()const; + void setInstanceIdList(const std::string& instanceIdList); + int getLiveTime()const; + void setLiveTime(int liveTime); + std::string getProductName()const; + void setProductName(const std::string& productName); + int getWhiteListType()const; + void setWhiteListType(int whiteListType); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string note_; + long resourceOwnerId_; + std::string srcIP_; + std::string sourceIp_; + int dstPort_; + std::string instanceIdList_; + int liveTime_; + std::string productName_; + int whiteListType_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_CREATEACCESSWHITELISTGROUPREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/CreateAccessWhiteListGroupResult.h b/jarvis/include/alibabacloud/jarvis/model/CreateAccessWhiteListGroupResult.h new file mode 100644 index 000000000..a17e1fe63 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/CreateAccessWhiteListGroupResult.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_JARVIS_MODEL_CREATEACCESSWHITELISTGROUPRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_CREATEACCESSWHITELISTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT CreateAccessWhiteListGroupResult : public ServiceResult + { + public: + + + CreateAccessWhiteListGroupResult(); + explicit CreateAccessWhiteListGroupResult(const std::string &payload); + ~CreateAccessWhiteListGroupResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_CREATEACCESSWHITELISTGROUPRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/CreateCpmcPunishFeedBackRequest.h b/jarvis/include/alibabacloud/jarvis/model/CreateCpmcPunishFeedBackRequest.h new file mode 100644 index 000000000..f6324954a --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/CreateCpmcPunishFeedBackRequest.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_JARVIS_MODEL_CREATECPMCPUNISHFEEDBACKREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_CREATECPMCPUNISHFEEDBACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT CreateCpmcPunishFeedBackRequest : public RpcServiceRequest + { + + public: + CreateCpmcPunishFeedBackRequest(); + ~CreateCpmcPunishFeedBackRequest(); + + int getFeedBack()const; + void setFeedBack(int feedBack); + std::string getSrcIP()const; + void setSrcIP(const std::string& srcIP); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getDstPort()const; + void setDstPort(int dstPort); + std::string getProtocolName()const; + void setProtocolName(const std::string& protocolName); + int getSrcPort()const; + void setSrcPort(int srcPort); + std::string getPunishType()const; + void setPunishType(const std::string& punishType); + std::string getGmtCreate()const; + void setGmtCreate(const std::string& gmtCreate); + std::string getDstIP()const; + void setDstIP(const std::string& dstIP); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + int feedBack_; + std::string srcIP_; + std::string sourceIp_; + int dstPort_; + std::string protocolName_; + int srcPort_; + std::string punishType_; + std::string gmtCreate_; + std::string dstIP_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_CREATECPMCPUNISHFEEDBACKREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/CreateCpmcPunishFeedBackResult.h b/jarvis/include/alibabacloud/jarvis/model/CreateCpmcPunishFeedBackResult.h new file mode 100644 index 000000000..175b14f8d --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/CreateCpmcPunishFeedBackResult.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_JARVIS_MODEL_CREATECPMCPUNISHFEEDBACKRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_CREATECPMCPUNISHFEEDBACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT CreateCpmcPunishFeedBackResult : public ServiceResult + { + public: + + + CreateCpmcPunishFeedBackResult(); + explicit CreateCpmcPunishFeedBackResult(const std::string &payload); + ~CreateCpmcPunishFeedBackResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_CREATECPMCPUNISHFEEDBACKRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteListGroupRequest.h b/jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteListGroupRequest.h new file mode 100644 index 000000000..2d0c5d47e --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteListGroupRequest.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_JARVIS_MODEL_CREATEUIDWHITELISTGROUPREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_CREATEUIDWHITELISTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT CreateUidWhiteListGroupRequest : public RpcServiceRequest + { + + public: + CreateUidWhiteListGroupRequest(); + ~CreateUidWhiteListGroupRequest(); + + std::string getNote()const; + void setNote(const std::string& note); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getDstPort()const; + void setDstPort(int dstPort); + std::string getInstanceIdList()const; + void setInstanceIdList(const std::string& instanceIdList); + int getLiveTime()const; + void setLiveTime(int liveTime); + std::string getProductName()const; + void setProductName(const std::string& productName); + int getWhiteListType()const; + void setWhiteListType(int whiteListType); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSrcUid()const; + void setSrcUid(const std::string& srcUid); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string note_; + long resourceOwnerId_; + std::string sourceIp_; + int dstPort_; + std::string instanceIdList_; + int liveTime_; + std::string productName_; + int whiteListType_; + std::string lang_; + std::string srcUid_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_CREATEUIDWHITELISTGROUPREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteListGroupResult.h b/jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteListGroupResult.h new file mode 100644 index 000000000..6ba1ce70d --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteListGroupResult.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_JARVIS_MODEL_CREATEUIDWHITELISTGROUPRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_CREATEUIDWHITELISTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT CreateUidWhiteListGroupResult : public ServiceResult + { + public: + + + CreateUidWhiteListGroupResult(); + explicit CreateUidWhiteListGroupResult(const std::string &payload); + ~CreateUidWhiteListGroupResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_CREATEUIDWHITELISTGROUPRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DeleteAccessWhiteListGroupRequest.h b/jarvis/include/alibabacloud/jarvis/model/DeleteAccessWhiteListGroupRequest.h new file mode 100644 index 000000000..e4934bd7d --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DeleteAccessWhiteListGroupRequest.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_JARVIS_MODEL_DELETEACCESSWHITELISTGROUPREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DELETEACCESSWHITELISTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DeleteAccessWhiteListGroupRequest : public RpcServiceRequest + { + + public: + DeleteAccessWhiteListGroupRequest(); + ~DeleteAccessWhiteListGroupRequest(); + + std::string getGroupIdList()const; + void setGroupIdList(const std::string& groupIdList); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string groupIdList_; + std::string sourceIp_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DELETEACCESSWHITELISTGROUPREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DeleteAccessWhiteListGroupResult.h b/jarvis/include/alibabacloud/jarvis/model/DeleteAccessWhiteListGroupResult.h new file mode 100644 index 000000000..5c9f11dab --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DeleteAccessWhiteListGroupResult.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_JARVIS_MODEL_DELETEACCESSWHITELISTGROUPRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DELETEACCESSWHITELISTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DeleteAccessWhiteListGroupResult : public ServiceResult + { + public: + + + DeleteAccessWhiteListGroupResult(); + explicit DeleteAccessWhiteListGroupResult(const std::string &payload); + ~DeleteAccessWhiteListGroupResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DELETEACCESSWHITELISTGROUPRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteListGroupRequest.h b/jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteListGroupRequest.h new file mode 100644 index 000000000..8fb9475b5 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteListGroupRequest.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_JARVIS_MODEL_DELETEUIDWHITELISTGROUPREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DELETEUIDWHITELISTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DeleteUidWhiteListGroupRequest : public RpcServiceRequest + { + + public: + DeleteUidWhiteListGroupRequest(); + ~DeleteUidWhiteListGroupRequest(); + + std::string getGroupIdList()const; + void setGroupIdList(const std::string& groupIdList); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string groupIdList_; + std::string sourceIp_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DELETEUIDWHITELISTGROUPREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteListGroupResult.h b/jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteListGroupResult.h new file mode 100644 index 000000000..8d3542093 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteListGroupResult.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_JARVIS_MODEL_DELETEUIDWHITELISTGROUPRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DELETEUIDWHITELISTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DeleteUidWhiteListGroupResult : public ServiceResult + { + public: + + + DeleteUidWhiteListGroupResult(); + explicit DeleteUidWhiteListGroupResult(const std::string &payload); + ~DeleteUidWhiteListGroupResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DELETEUIDWHITELISTGROUPRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeAccessWhiteListGroupRequest.h b/jarvis/include/alibabacloud/jarvis/model/DescribeAccessWhiteListGroupRequest.h new file mode 100644 index 000000000..cc61359dc --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeAccessWhiteListGroupRequest.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_JARVIS_MODEL_DESCRIBEACCESSWHITELISTGROUPREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeAccessWhiteListGroupRequest : public RpcServiceRequest + { + + public: + DescribeAccessWhiteListGroupRequest(); + ~DescribeAccessWhiteListGroupRequest(); + + std::string getSrcIP()const; + void setSrcIP(const std::string& srcIP); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + int getWhiteListType()const; + void setWhiteListType(int whiteListType); + std::string getDstIP()const; + void setDstIP(const std::string& dstIP); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getStatus()const; + void setStatus(const std::string& status); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string srcIP_; + std::string sourceIp_; + int pageSize_; + int currentPage_; + int whiteListType_; + std::string dstIP_; + std::string lang_; + std::string status_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTGROUPREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeAccessWhiteListGroupResult.h b/jarvis/include/alibabacloud/jarvis/model/DescribeAccessWhiteListGroupResult.h new file mode 100644 index 000000000..987f3ffd2 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeAccessWhiteListGroupResult.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_JARVIS_MODEL_DESCRIBEACCESSWHITELISTGROUPRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeAccessWhiteListGroupResult : public ServiceResult + { + public: + struct PageInfo + { + int pageSize; + int currentPage; + int total; + }; + struct Data + { + struct Item + { + std::string iP; + std::string regionId; + }; + std::string status; + std::string gmtCreate; + std::string gmtRealExpire; + std::vector items; + std::string srcIP; + int autoConfig; + int groupId; + }; + + + DescribeAccessWhiteListGroupResult(); + explicit DescribeAccessWhiteListGroupResult(const std::string &payload); + ~DescribeAccessWhiteListGroupResult(); + std::vector getDataList()const; + PageInfo getPageInfo()const; + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dataList_; + PageInfo pageInfo_; + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTGROUPRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListRequest.h b/jarvis/include/alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListRequest.h new file mode 100644 index 000000000..170d4448f --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListRequest.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_JARVIS_MODEL_DESCRIBEACCESSWHITELISTECSLISTREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTECSLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeAccessWhitelistEcsListRequest : public RpcServiceRequest + { + + public: + DescribeAccessWhitelistEcsListRequest(); + ~DescribeAccessWhitelistEcsListRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string sourceIp_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTECSLISTREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListResult.h b/jarvis/include/alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListResult.h new file mode 100644 index 000000000..96793d3c0 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTECSLISTRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTECSLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeAccessWhitelistEcsListResult : public ServiceResult + { + public: + struct Ecs + { + std::string instanceName; + std::string instanceId; + std::string iP; + }; + + + DescribeAccessWhitelistEcsListResult(); + explicit DescribeAccessWhitelistEcsListResult(const std::string &payload); + ~DescribeAccessWhitelistEcsListResult(); + int getTotalCount()const; + std::vector getEcsList()const; + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector ecsList_; + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTECSLISTRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListRequest.h b/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListRequest.h new file mode 100644 index 000000000..3b2e315ed --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListRequest.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_JARVIS_MODEL_DESCRIBECPMCPUNISHLISTREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBECPMCPUNISHLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeCpmcPunishListRequest : public RpcServiceRequest + { + + public: + DescribeCpmcPunishListRequest(); + ~DescribeCpmcPunishListRequest(); + + std::string getSrcIP()const; + void setSrcIP(const std::string& srcIP); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getPunishStatus()const; + void setPunishStatus(const std::string& punishStatus); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string srcIP_; + std::string sourceIp_; + int pageSize_; + int currentPage_; + std::string punishStatus_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBECPMCPUNISHLISTREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListResult.h b/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListResult.h new file mode 100644 index 000000000..803a0e473 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListResult.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_JARVIS_MODEL_DESCRIBECPMCPUNISHLISTRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBECPMCPUNISHLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeCpmcPunishListResult : public ServiceResult + { + public: + struct PageInfo + { + int pageSize; + int currentPage; + int total; + }; + struct Data + { + std::string gmtCreate; + int srcPort; + int feedBack; + std::string gmtExpire; + std::string punishType; + std::string dstIP; + std::string punishResult; + std::string regionId; + int dstPort; + std::string protocol; + std::string srcIP; + std::string reason; + }; + + + DescribeCpmcPunishListResult(); + explicit DescribeCpmcPunishListResult(const std::string &payload); + ~DescribeCpmcPunishListResult(); + std::vector getDataList()const; + PageInfo getPageInfo()const; + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dataList_; + PageInfo pageInfo_; + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBECPMCPUNISHLISTRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeResetRecordListRequest.h b/jarvis/include/alibabacloud/jarvis/model/DescribeResetRecordListRequest.h new file mode 100644 index 000000000..c24fa49d1 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeResetRecordListRequest.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_JARVIS_MODEL_DESCRIBERESETRECORDLISTREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeResetRecordListRequest : public RpcServiceRequest + { + + public: + DescribeResetRecordListRequest(); + ~DescribeResetRecordListRequest(); + + std::string getSrcIP()const; + void setSrcIP(const std::string& srcIP); + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getDstIP()const; + void setDstIP(const std::string& dstIP); + std::string getRegion()const; + void setRegion(const std::string& region); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string srcIP_; + std::string period_; + std::string sourceIp_; + int pageSize_; + int currentPage_; + std::string dstIP_; + std::string region_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDLISTREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeResetRecordListResult.h b/jarvis/include/alibabacloud/jarvis/model/DescribeResetRecordListResult.h new file mode 100644 index 000000000..8c60d643f --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeResetRecordListResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDLISTRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeResetRecordListResult : public ServiceResult + { + public: + struct PageInfo + { + int pageSize; + int currentPage; + int total; + }; + struct Data + { + std::string punishType; + std::string dstIP; + std::string punishResult; + int dstPort; + std::string srcIP; + int punishCount; + }; + + + DescribeResetRecordListResult(); + explicit DescribeResetRecordListResult(const std::string &payload); + ~DescribeResetRecordListResult(); + std::vector getDataList()const; + PageInfo getPageInfo()const; + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dataList_; + PageInfo pageInfo_; + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDLISTRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeResetRecordQueryCountRequest.h b/jarvis/include/alibabacloud/jarvis/model/DescribeResetRecordQueryCountRequest.h new file mode 100644 index 000000000..e9d555210 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeResetRecordQueryCountRequest.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_JARVIS_MODEL_DESCRIBERESETRECORDQUERYCOUNTREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDQUERYCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeResetRecordQueryCountRequest : public RpcServiceRequest + { + + public: + DescribeResetRecordQueryCountRequest(); + ~DescribeResetRecordQueryCountRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string sourceIp_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDQUERYCOUNTREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeResetRecordQueryCountResult.h b/jarvis/include/alibabacloud/jarvis/model/DescribeResetRecordQueryCountResult.h new file mode 100644 index 000000000..a7c647b92 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeResetRecordQueryCountResult.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_JARVIS_MODEL_DESCRIBERESETRECORDQUERYCOUNTRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDQUERYCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeResetRecordQueryCountResult : public ServiceResult + { + public: + + + DescribeResetRecordQueryCountResult(); + explicit DescribeResetRecordQueryCountResult(const std::string &payload); + ~DescribeResetRecordQueryCountResult(); + int getTotalCount()const; + int getQueryCount()const; + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int queryCount_; + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDQUERYCOUNTRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeRiskTrendRequest.h b/jarvis/include/alibabacloud/jarvis/model/DescribeRiskTrendRequest.h new file mode 100644 index 000000000..88098284e --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeRiskTrendRequest.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_JARVIS_MODEL_DESCRIBERISKTRENDREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBERISKTRENDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeRiskTrendRequest : public RpcServiceRequest + { + + public: + DescribeRiskTrendRequest(); + ~DescribeRiskTrendRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getQueryProduct()const; + void setQueryProduct(const std::string& queryProduct); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getPeroid()const; + void setPeroid(const std::string& peroid); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + std::string getQueryRegionId()const; + void setQueryRegionId(const std::string& queryRegionId); + + private: + std::string sourceIp_; + std::string queryProduct_; + std::string lang_; + std::string peroid_; + std::string sourceCode_; + std::string queryRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBERISKTRENDREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeRiskTrendResult.h b/jarvis/include/alibabacloud/jarvis/model/DescribeRiskTrendResult.h new file mode 100644 index 000000000..a682a3e93 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeRiskTrendResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBERISKTRENDRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBERISKTRENDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeRiskTrendResult : public ServiceResult + { + public: + struct DataItem + { + std::string updateTime; + int totalRiskCount; + int newRiskCount; + }; + + + DescribeRiskTrendResult(); + explicit DescribeRiskTrendResult(const std::string &payload); + ~DescribeRiskTrendResult(); + std::vector getDataList()const; + std::string getTotalCount()const; + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dataList_; + std::string totalCount_; + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBERISKTRENDRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeUidGcLevelRequest.h b/jarvis/include/alibabacloud/jarvis/model/DescribeUidGcLevelRequest.h new file mode 100644 index 000000000..eeb2a9c5a --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeUidGcLevelRequest.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_JARVIS_MODEL_DESCRIBEUIDGCLEVELREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDGCLEVELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeUidGcLevelRequest : public RpcServiceRequest + { + + public: + DescribeUidGcLevelRequest(); + ~DescribeUidGcLevelRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string sourceIp_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDGCLEVELREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeUidGcLevelResult.h b/jarvis/include/alibabacloud/jarvis/model/DescribeUidGcLevelResult.h new file mode 100644 index 000000000..9eacde1bf --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeUidGcLevelResult.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_JARVIS_MODEL_DESCRIBEUIDGCLEVELRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDGCLEVELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeUidGcLevelResult : public ServiceResult + { + public: + + + DescribeUidGcLevelResult(); + explicit DescribeUidGcLevelResult(const std::string &payload); + ~DescribeUidGcLevelResult(); + std::string getGclevel()const; + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string gclevel_; + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDGCLEVELRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteListGroupRequest.h b/jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteListGroupRequest.h new file mode 100644 index 000000000..a307c4c08 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteListGroupRequest.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_JARVIS_MODEL_DESCRIBEUIDWHITELISTGROUPREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDWHITELISTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeUidWhiteListGroupRequest : public RpcServiceRequest + { + + public: + DescribeUidWhiteListGroupRequest(); + ~DescribeUidWhiteListGroupRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + int getWhiteListType()const; + void setWhiteListType(int whiteListType); + std::string getDstIP()const; + void setDstIP(const std::string& dstIP); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSrcUid()const; + void setSrcUid(const std::string& srcUid); + std::string getStatus()const; + void setStatus(const std::string& status); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string sourceIp_; + int pageSize_; + int currentPage_; + int whiteListType_; + std::string dstIP_; + std::string lang_; + std::string srcUid_; + std::string status_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDWHITELISTGROUPREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteListGroupResult.h b/jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteListGroupResult.h new file mode 100644 index 000000000..6ec2f619f --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteListGroupResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_JARVIS_MODEL_DESCRIBEUIDWHITELISTGROUPRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDWHITELISTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeUidWhiteListGroupResult : public ServiceResult + { + public: + struct PageInfo + { + int pageSize; + int currentPage; + int total; + }; + struct Data + { + struct Item + { + std::string iP; + std::string regionId; + }; + std::string status; + std::string gmtCreate; + std::string gmtRealExpire; + std::vector items; + std::string srcUid; + int autoConfig; + int groupId; + }; + + + DescribeUidWhiteListGroupResult(); + explicit DescribeUidWhiteListGroupResult(const std::string &payload); + ~DescribeUidWhiteListGroupResult(); + std::vector getProductList()const; + std::vector getDataList()const; + PageInfo getPageInfo()const; + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::vector productList_; + std::vector dataList_; + PageInfo pageInfo_; + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDWHITELISTGROUPRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/ModifyAccessWhiteListAutoShareRequest.h b/jarvis/include/alibabacloud/jarvis/model/ModifyAccessWhiteListAutoShareRequest.h new file mode 100644 index 000000000..ad85eb989 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/ModifyAccessWhiteListAutoShareRequest.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_JARVIS_MODEL_MODIFYACCESSWHITELISTAUTOSHAREREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_MODIFYACCESSWHITELISTAUTOSHAREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT ModifyAccessWhiteListAutoShareRequest : public RpcServiceRequest + { + + public: + ModifyAccessWhiteListAutoShareRequest(); + ~ModifyAccessWhiteListAutoShareRequest(); + + std::string getSrcIP()const; + void setSrcIP(const std::string& srcIP); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getAutoConfig()const; + void setAutoConfig(int autoConfig); + std::string getProductName()const; + void setProductName(const std::string& productName); + int getWhiteListType()const; + void setWhiteListType(int whiteListType); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string srcIP_; + std::string sourceIp_; + int autoConfig_; + std::string productName_; + int whiteListType_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_MODIFYACCESSWHITELISTAUTOSHAREREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/ModifyAccessWhiteListAutoShareResult.h b/jarvis/include/alibabacloud/jarvis/model/ModifyAccessWhiteListAutoShareResult.h new file mode 100644 index 000000000..b7c739fc2 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/ModifyAccessWhiteListAutoShareResult.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_JARVIS_MODEL_MODIFYACCESSWHITELISTAUTOSHARERESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_MODIFYACCESSWHITELISTAUTOSHARERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT ModifyAccessWhiteListAutoShareResult : public ServiceResult + { + public: + + + ModifyAccessWhiteListAutoShareResult(); + explicit ModifyAccessWhiteListAutoShareResult(const std::string &payload); + ~ModifyAccessWhiteListAutoShareResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_MODIFYACCESSWHITELISTAUTOSHARERESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteListAutoShareRequest.h b/jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteListAutoShareRequest.h new file mode 100644 index 000000000..9da68b6eb --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteListAutoShareRequest.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_JARVIS_MODEL_MODIFYUIDWHITELISTAUTOSHAREREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_MODIFYUIDWHITELISTAUTOSHAREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT ModifyUidWhiteListAutoShareRequest : public RpcServiceRequest + { + + public: + ModifyUidWhiteListAutoShareRequest(); + ~ModifyUidWhiteListAutoShareRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getAutoConfig()const; + void setAutoConfig(int autoConfig); + std::string getProductName()const; + void setProductName(const std::string& productName); + int getWhiteListType()const; + void setWhiteListType(int whiteListType); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSrcUid()const; + void setSrcUid(const std::string& srcUid); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string sourceIp_; + int autoConfig_; + std::string productName_; + int whiteListType_; + std::string lang_; + std::string srcUid_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_MODIFYUIDWHITELISTAUTOSHAREREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteListAutoShareResult.h b/jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteListAutoShareResult.h new file mode 100644 index 000000000..424f4ee1d --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteListAutoShareResult.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_JARVIS_MODEL_MODIFYUIDWHITELISTAUTOSHARERESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_MODIFYUIDWHITELISTAUTOSHARERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT ModifyUidWhiteListAutoShareResult : public ServiceResult + { + public: + + + ModifyUidWhiteListAutoShareResult(); + explicit ModifyUidWhiteListAutoShareResult(const std::string &payload); + ~ModifyUidWhiteListAutoShareResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_MODIFYUIDWHITELISTAUTOSHARERESULT_H_ \ No newline at end of file diff --git a/jarvis/src/JarvisClient.cc b/jarvis/src/JarvisClient.cc new file mode 100644 index 000000000..e20fff2ec --- /dev/null +++ b/jarvis/src/JarvisClient.cc @@ -0,0 +1,593 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +namespace +{ + const std::string SERVICE_NAME = "jarvis"; +} + +JarvisClient::JarvisClient(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, ""); +} + +JarvisClient::JarvisClient(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, ""); +} + +JarvisClient::JarvisClient(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, ""); +} + +JarvisClient::~JarvisClient() +{} + +JarvisClient::DeleteUidWhiteListGroupOutcome JarvisClient::deleteUidWhiteListGroup(const DeleteUidWhiteListGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUidWhiteListGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUidWhiteListGroupOutcome(DeleteUidWhiteListGroupResult(outcome.result())); + else + return DeleteUidWhiteListGroupOutcome(outcome.error()); +} + +void JarvisClient::deleteUidWhiteListGroupAsync(const DeleteUidWhiteListGroupRequest& request, const DeleteUidWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUidWhiteListGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DeleteUidWhiteListGroupOutcomeCallable JarvisClient::deleteUidWhiteListGroupCallable(const DeleteUidWhiteListGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUidWhiteListGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::CreateCpmcPunishFeedBackOutcome JarvisClient::createCpmcPunishFeedBack(const CreateCpmcPunishFeedBackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCpmcPunishFeedBackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCpmcPunishFeedBackOutcome(CreateCpmcPunishFeedBackResult(outcome.result())); + else + return CreateCpmcPunishFeedBackOutcome(outcome.error()); +} + +void JarvisClient::createCpmcPunishFeedBackAsync(const CreateCpmcPunishFeedBackRequest& request, const CreateCpmcPunishFeedBackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCpmcPunishFeedBack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::CreateCpmcPunishFeedBackOutcomeCallable JarvisClient::createCpmcPunishFeedBackCallable(const CreateCpmcPunishFeedBackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCpmcPunishFeedBack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::CreateAccessWhiteListGroupOutcome JarvisClient::createAccessWhiteListGroup(const CreateAccessWhiteListGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAccessWhiteListGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAccessWhiteListGroupOutcome(CreateAccessWhiteListGroupResult(outcome.result())); + else + return CreateAccessWhiteListGroupOutcome(outcome.error()); +} + +void JarvisClient::createAccessWhiteListGroupAsync(const CreateAccessWhiteListGroupRequest& request, const CreateAccessWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccessWhiteListGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::CreateAccessWhiteListGroupOutcomeCallable JarvisClient::createAccessWhiteListGroupCallable(const CreateAccessWhiteListGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccessWhiteListGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::DescribeAccessWhitelistEcsListOutcome JarvisClient::describeAccessWhitelistEcsList(const DescribeAccessWhitelistEcsListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccessWhitelistEcsListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccessWhitelistEcsListOutcome(DescribeAccessWhitelistEcsListResult(outcome.result())); + else + return DescribeAccessWhitelistEcsListOutcome(outcome.error()); +} + +void JarvisClient::describeAccessWhitelistEcsListAsync(const DescribeAccessWhitelistEcsListRequest& request, const DescribeAccessWhitelistEcsListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccessWhitelistEcsList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DescribeAccessWhitelistEcsListOutcomeCallable JarvisClient::describeAccessWhitelistEcsListCallable(const DescribeAccessWhitelistEcsListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccessWhitelistEcsList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::DescribeResetRecordListOutcome JarvisClient::describeResetRecordList(const DescribeResetRecordListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeResetRecordListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeResetRecordListOutcome(DescribeResetRecordListResult(outcome.result())); + else + return DescribeResetRecordListOutcome(outcome.error()); +} + +void JarvisClient::describeResetRecordListAsync(const DescribeResetRecordListRequest& request, const DescribeResetRecordListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeResetRecordList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DescribeResetRecordListOutcomeCallable JarvisClient::describeResetRecordListCallable(const DescribeResetRecordListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeResetRecordList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::ModifyUidWhiteListAutoShareOutcome JarvisClient::modifyUidWhiteListAutoShare(const ModifyUidWhiteListAutoShareRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyUidWhiteListAutoShareOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyUidWhiteListAutoShareOutcome(ModifyUidWhiteListAutoShareResult(outcome.result())); + else + return ModifyUidWhiteListAutoShareOutcome(outcome.error()); +} + +void JarvisClient::modifyUidWhiteListAutoShareAsync(const ModifyUidWhiteListAutoShareRequest& request, const ModifyUidWhiteListAutoShareAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyUidWhiteListAutoShare(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::ModifyUidWhiteListAutoShareOutcomeCallable JarvisClient::modifyUidWhiteListAutoShareCallable(const ModifyUidWhiteListAutoShareRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyUidWhiteListAutoShare(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::ModifyAccessWhiteListAutoShareOutcome JarvisClient::modifyAccessWhiteListAutoShare(const ModifyAccessWhiteListAutoShareRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAccessWhiteListAutoShareOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAccessWhiteListAutoShareOutcome(ModifyAccessWhiteListAutoShareResult(outcome.result())); + else + return ModifyAccessWhiteListAutoShareOutcome(outcome.error()); +} + +void JarvisClient::modifyAccessWhiteListAutoShareAsync(const ModifyAccessWhiteListAutoShareRequest& request, const ModifyAccessWhiteListAutoShareAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAccessWhiteListAutoShare(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::ModifyAccessWhiteListAutoShareOutcomeCallable JarvisClient::modifyAccessWhiteListAutoShareCallable(const ModifyAccessWhiteListAutoShareRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAccessWhiteListAutoShare(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::CreateUidWhiteListGroupOutcome JarvisClient::createUidWhiteListGroup(const CreateUidWhiteListGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUidWhiteListGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUidWhiteListGroupOutcome(CreateUidWhiteListGroupResult(outcome.result())); + else + return CreateUidWhiteListGroupOutcome(outcome.error()); +} + +void JarvisClient::createUidWhiteListGroupAsync(const CreateUidWhiteListGroupRequest& request, const CreateUidWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUidWhiteListGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::CreateUidWhiteListGroupOutcomeCallable JarvisClient::createUidWhiteListGroupCallable(const CreateUidWhiteListGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUidWhiteListGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::DescribeCpmcPunishListOutcome JarvisClient::describeCpmcPunishList(const DescribeCpmcPunishListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCpmcPunishListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCpmcPunishListOutcome(DescribeCpmcPunishListResult(outcome.result())); + else + return DescribeCpmcPunishListOutcome(outcome.error()); +} + +void JarvisClient::describeCpmcPunishListAsync(const DescribeCpmcPunishListRequest& request, const DescribeCpmcPunishListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCpmcPunishList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DescribeCpmcPunishListOutcomeCallable JarvisClient::describeCpmcPunishListCallable(const DescribeCpmcPunishListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCpmcPunishList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::DescribeUidGcLevelOutcome JarvisClient::describeUidGcLevel(const DescribeUidGcLevelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUidGcLevelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUidGcLevelOutcome(DescribeUidGcLevelResult(outcome.result())); + else + return DescribeUidGcLevelOutcome(outcome.error()); +} + +void JarvisClient::describeUidGcLevelAsync(const DescribeUidGcLevelRequest& request, const DescribeUidGcLevelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUidGcLevel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DescribeUidGcLevelOutcomeCallable JarvisClient::describeUidGcLevelCallable(const DescribeUidGcLevelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUidGcLevel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::DeleteAccessWhiteListGroupOutcome JarvisClient::deleteAccessWhiteListGroup(const DeleteAccessWhiteListGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAccessWhiteListGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAccessWhiteListGroupOutcome(DeleteAccessWhiteListGroupResult(outcome.result())); + else + return DeleteAccessWhiteListGroupOutcome(outcome.error()); +} + +void JarvisClient::deleteAccessWhiteListGroupAsync(const DeleteAccessWhiteListGroupRequest& request, const DeleteAccessWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccessWhiteListGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DeleteAccessWhiteListGroupOutcomeCallable JarvisClient::deleteAccessWhiteListGroupCallable(const DeleteAccessWhiteListGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccessWhiteListGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::DescribeAccessWhiteListGroupOutcome JarvisClient::describeAccessWhiteListGroup(const DescribeAccessWhiteListGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccessWhiteListGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccessWhiteListGroupOutcome(DescribeAccessWhiteListGroupResult(outcome.result())); + else + return DescribeAccessWhiteListGroupOutcome(outcome.error()); +} + +void JarvisClient::describeAccessWhiteListGroupAsync(const DescribeAccessWhiteListGroupRequest& request, const DescribeAccessWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccessWhiteListGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DescribeAccessWhiteListGroupOutcomeCallable JarvisClient::describeAccessWhiteListGroupCallable(const DescribeAccessWhiteListGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccessWhiteListGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::DescribeResetRecordQueryCountOutcome JarvisClient::describeResetRecordQueryCount(const DescribeResetRecordQueryCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeResetRecordQueryCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeResetRecordQueryCountOutcome(DescribeResetRecordQueryCountResult(outcome.result())); + else + return DescribeResetRecordQueryCountOutcome(outcome.error()); +} + +void JarvisClient::describeResetRecordQueryCountAsync(const DescribeResetRecordQueryCountRequest& request, const DescribeResetRecordQueryCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeResetRecordQueryCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DescribeResetRecordQueryCountOutcomeCallable JarvisClient::describeResetRecordQueryCountCallable(const DescribeResetRecordQueryCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeResetRecordQueryCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::DescribeUidWhiteListGroupOutcome JarvisClient::describeUidWhiteListGroup(const DescribeUidWhiteListGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUidWhiteListGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUidWhiteListGroupOutcome(DescribeUidWhiteListGroupResult(outcome.result())); + else + return DescribeUidWhiteListGroupOutcome(outcome.error()); +} + +void JarvisClient::describeUidWhiteListGroupAsync(const DescribeUidWhiteListGroupRequest& request, const DescribeUidWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUidWhiteListGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DescribeUidWhiteListGroupOutcomeCallable JarvisClient::describeUidWhiteListGroupCallable(const DescribeUidWhiteListGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUidWhiteListGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::DescribeRiskTrendOutcome JarvisClient::describeRiskTrend(const DescribeRiskTrendRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRiskTrendOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRiskTrendOutcome(DescribeRiskTrendResult(outcome.result())); + else + return DescribeRiskTrendOutcome(outcome.error()); +} + +void JarvisClient::describeRiskTrendAsync(const DescribeRiskTrendRequest& request, const DescribeRiskTrendAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRiskTrend(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DescribeRiskTrendOutcomeCallable JarvisClient::describeRiskTrendCallable(const DescribeRiskTrendRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRiskTrend(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/jarvis/src/model/CreateAccessWhiteListGroupRequest.cc b/jarvis/src/model/CreateAccessWhiteListGroupRequest.cc new file mode 100644 index 000000000..50a368f90 --- /dev/null +++ b/jarvis/src/model/CreateAccessWhiteListGroupRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Jarvis::Model::CreateAccessWhiteListGroupRequest; + +CreateAccessWhiteListGroupRequest::CreateAccessWhiteListGroupRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "CreateAccessWhiteListGroup") +{} + +CreateAccessWhiteListGroupRequest::~CreateAccessWhiteListGroupRequest() +{} + +std::string CreateAccessWhiteListGroupRequest::getNote()const +{ + return note_; +} + +void CreateAccessWhiteListGroupRequest::setNote(const std::string& note) +{ + note_ = note; + setParameter("Note", note); +} + +long CreateAccessWhiteListGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateAccessWhiteListGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateAccessWhiteListGroupRequest::getSrcIP()const +{ + return srcIP_; +} + +void CreateAccessWhiteListGroupRequest::setSrcIP(const std::string& srcIP) +{ + srcIP_ = srcIP; + setParameter("SrcIP", srcIP); +} + +std::string CreateAccessWhiteListGroupRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateAccessWhiteListGroupRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +int CreateAccessWhiteListGroupRequest::getDstPort()const +{ + return dstPort_; +} + +void CreateAccessWhiteListGroupRequest::setDstPort(int dstPort) +{ + dstPort_ = dstPort; + setParameter("DstPort", std::to_string(dstPort)); +} + +std::string CreateAccessWhiteListGroupRequest::getInstanceIdList()const +{ + return instanceIdList_; +} + +void CreateAccessWhiteListGroupRequest::setInstanceIdList(const std::string& instanceIdList) +{ + instanceIdList_ = instanceIdList; + setParameter("InstanceIdList", instanceIdList); +} + +int CreateAccessWhiteListGroupRequest::getLiveTime()const +{ + return liveTime_; +} + +void CreateAccessWhiteListGroupRequest::setLiveTime(int liveTime) +{ + liveTime_ = liveTime; + setParameter("LiveTime", std::to_string(liveTime)); +} + +std::string CreateAccessWhiteListGroupRequest::getProductName()const +{ + return productName_; +} + +void CreateAccessWhiteListGroupRequest::setProductName(const std::string& productName) +{ + productName_ = productName; + setParameter("ProductName", productName); +} + +int CreateAccessWhiteListGroupRequest::getWhiteListType()const +{ + return whiteListType_; +} + +void CreateAccessWhiteListGroupRequest::setWhiteListType(int whiteListType) +{ + whiteListType_ = whiteListType; + setParameter("WhiteListType", std::to_string(whiteListType)); +} + +std::string CreateAccessWhiteListGroupRequest::getLang()const +{ + return lang_; +} + +void CreateAccessWhiteListGroupRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string CreateAccessWhiteListGroupRequest::getSourceCode()const +{ + return sourceCode_; +} + +void CreateAccessWhiteListGroupRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/CreateAccessWhiteListGroupResult.cc b/jarvis/src/model/CreateAccessWhiteListGroupResult.cc new file mode 100644 index 000000000..8ae903311 --- /dev/null +++ b/jarvis/src/model/CreateAccessWhiteListGroupResult.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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +CreateAccessWhiteListGroupResult::CreateAccessWhiteListGroupResult() : + ServiceResult() +{} + +CreateAccessWhiteListGroupResult::CreateAccessWhiteListGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAccessWhiteListGroupResult::~CreateAccessWhiteListGroupResult() +{} + +void CreateAccessWhiteListGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string CreateAccessWhiteListGroupResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/CreateCpmcPunishFeedBackRequest.cc b/jarvis/src/model/CreateCpmcPunishFeedBackRequest.cc new file mode 100644 index 000000000..28292bdba --- /dev/null +++ b/jarvis/src/model/CreateCpmcPunishFeedBackRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Jarvis::Model::CreateCpmcPunishFeedBackRequest; + +CreateCpmcPunishFeedBackRequest::CreateCpmcPunishFeedBackRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "CreateCpmcPunishFeedBack") +{} + +CreateCpmcPunishFeedBackRequest::~CreateCpmcPunishFeedBackRequest() +{} + +int CreateCpmcPunishFeedBackRequest::getFeedBack()const +{ + return feedBack_; +} + +void CreateCpmcPunishFeedBackRequest::setFeedBack(int feedBack) +{ + feedBack_ = feedBack; + setParameter("FeedBack", std::to_string(feedBack)); +} + +std::string CreateCpmcPunishFeedBackRequest::getSrcIP()const +{ + return srcIP_; +} + +void CreateCpmcPunishFeedBackRequest::setSrcIP(const std::string& srcIP) +{ + srcIP_ = srcIP; + setParameter("SrcIP", srcIP); +} + +std::string CreateCpmcPunishFeedBackRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateCpmcPunishFeedBackRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +int CreateCpmcPunishFeedBackRequest::getDstPort()const +{ + return dstPort_; +} + +void CreateCpmcPunishFeedBackRequest::setDstPort(int dstPort) +{ + dstPort_ = dstPort; + setParameter("DstPort", std::to_string(dstPort)); +} + +std::string CreateCpmcPunishFeedBackRequest::getProtocolName()const +{ + return protocolName_; +} + +void CreateCpmcPunishFeedBackRequest::setProtocolName(const std::string& protocolName) +{ + protocolName_ = protocolName; + setParameter("ProtocolName", protocolName); +} + +int CreateCpmcPunishFeedBackRequest::getSrcPort()const +{ + return srcPort_; +} + +void CreateCpmcPunishFeedBackRequest::setSrcPort(int srcPort) +{ + srcPort_ = srcPort; + setParameter("SrcPort", std::to_string(srcPort)); +} + +std::string CreateCpmcPunishFeedBackRequest::getPunishType()const +{ + return punishType_; +} + +void CreateCpmcPunishFeedBackRequest::setPunishType(const std::string& punishType) +{ + punishType_ = punishType; + setParameter("PunishType", punishType); +} + +std::string CreateCpmcPunishFeedBackRequest::getGmtCreate()const +{ + return gmtCreate_; +} + +void CreateCpmcPunishFeedBackRequest::setGmtCreate(const std::string& gmtCreate) +{ + gmtCreate_ = gmtCreate; + setParameter("GmtCreate", gmtCreate); +} + +std::string CreateCpmcPunishFeedBackRequest::getDstIP()const +{ + return dstIP_; +} + +void CreateCpmcPunishFeedBackRequest::setDstIP(const std::string& dstIP) +{ + dstIP_ = dstIP; + setParameter("DstIP", dstIP); +} + +std::string CreateCpmcPunishFeedBackRequest::getLang()const +{ + return lang_; +} + +void CreateCpmcPunishFeedBackRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string CreateCpmcPunishFeedBackRequest::getSourceCode()const +{ + return sourceCode_; +} + +void CreateCpmcPunishFeedBackRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/CreateCpmcPunishFeedBackResult.cc b/jarvis/src/model/CreateCpmcPunishFeedBackResult.cc new file mode 100644 index 000000000..58336380a --- /dev/null +++ b/jarvis/src/model/CreateCpmcPunishFeedBackResult.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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +CreateCpmcPunishFeedBackResult::CreateCpmcPunishFeedBackResult() : + ServiceResult() +{} + +CreateCpmcPunishFeedBackResult::CreateCpmcPunishFeedBackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCpmcPunishFeedBackResult::~CreateCpmcPunishFeedBackResult() +{} + +void CreateCpmcPunishFeedBackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string CreateCpmcPunishFeedBackResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/CreateUidWhiteListGroupRequest.cc b/jarvis/src/model/CreateUidWhiteListGroupRequest.cc new file mode 100644 index 000000000..458906ad3 --- /dev/null +++ b/jarvis/src/model/CreateUidWhiteListGroupRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Jarvis::Model::CreateUidWhiteListGroupRequest; + +CreateUidWhiteListGroupRequest::CreateUidWhiteListGroupRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "CreateUidWhiteListGroup") +{} + +CreateUidWhiteListGroupRequest::~CreateUidWhiteListGroupRequest() +{} + +std::string CreateUidWhiteListGroupRequest::getNote()const +{ + return note_; +} + +void CreateUidWhiteListGroupRequest::setNote(const std::string& note) +{ + note_ = note; + setParameter("Note", note); +} + +long CreateUidWhiteListGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateUidWhiteListGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateUidWhiteListGroupRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateUidWhiteListGroupRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +int CreateUidWhiteListGroupRequest::getDstPort()const +{ + return dstPort_; +} + +void CreateUidWhiteListGroupRequest::setDstPort(int dstPort) +{ + dstPort_ = dstPort; + setParameter("DstPort", std::to_string(dstPort)); +} + +std::string CreateUidWhiteListGroupRequest::getInstanceIdList()const +{ + return instanceIdList_; +} + +void CreateUidWhiteListGroupRequest::setInstanceIdList(const std::string& instanceIdList) +{ + instanceIdList_ = instanceIdList; + setParameter("InstanceIdList", instanceIdList); +} + +int CreateUidWhiteListGroupRequest::getLiveTime()const +{ + return liveTime_; +} + +void CreateUidWhiteListGroupRequest::setLiveTime(int liveTime) +{ + liveTime_ = liveTime; + setParameter("LiveTime", std::to_string(liveTime)); +} + +std::string CreateUidWhiteListGroupRequest::getProductName()const +{ + return productName_; +} + +void CreateUidWhiteListGroupRequest::setProductName(const std::string& productName) +{ + productName_ = productName; + setParameter("ProductName", productName); +} + +int CreateUidWhiteListGroupRequest::getWhiteListType()const +{ + return whiteListType_; +} + +void CreateUidWhiteListGroupRequest::setWhiteListType(int whiteListType) +{ + whiteListType_ = whiteListType; + setParameter("WhiteListType", std::to_string(whiteListType)); +} + +std::string CreateUidWhiteListGroupRequest::getLang()const +{ + return lang_; +} + +void CreateUidWhiteListGroupRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string CreateUidWhiteListGroupRequest::getSrcUid()const +{ + return srcUid_; +} + +void CreateUidWhiteListGroupRequest::setSrcUid(const std::string& srcUid) +{ + srcUid_ = srcUid; + setParameter("SrcUid", srcUid); +} + +std::string CreateUidWhiteListGroupRequest::getSourceCode()const +{ + return sourceCode_; +} + +void CreateUidWhiteListGroupRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/CreateUidWhiteListGroupResult.cc b/jarvis/src/model/CreateUidWhiteListGroupResult.cc new file mode 100644 index 000000000..04c60ea13 --- /dev/null +++ b/jarvis/src/model/CreateUidWhiteListGroupResult.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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +CreateUidWhiteListGroupResult::CreateUidWhiteListGroupResult() : + ServiceResult() +{} + +CreateUidWhiteListGroupResult::CreateUidWhiteListGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUidWhiteListGroupResult::~CreateUidWhiteListGroupResult() +{} + +void CreateUidWhiteListGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string CreateUidWhiteListGroupResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DeleteAccessWhiteListGroupRequest.cc b/jarvis/src/model/DeleteAccessWhiteListGroupRequest.cc new file mode 100644 index 000000000..5554637a2 --- /dev/null +++ b/jarvis/src/model/DeleteAccessWhiteListGroupRequest.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::Jarvis::Model::DeleteAccessWhiteListGroupRequest; + +DeleteAccessWhiteListGroupRequest::DeleteAccessWhiteListGroupRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DeleteAccessWhiteListGroup") +{} + +DeleteAccessWhiteListGroupRequest::~DeleteAccessWhiteListGroupRequest() +{} + +std::string DeleteAccessWhiteListGroupRequest::getGroupIdList()const +{ + return groupIdList_; +} + +void DeleteAccessWhiteListGroupRequest::setGroupIdList(const std::string& groupIdList) +{ + groupIdList_ = groupIdList; + setParameter("GroupIdList", groupIdList); +} + +std::string DeleteAccessWhiteListGroupRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DeleteAccessWhiteListGroupRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DeleteAccessWhiteListGroupRequest::getLang()const +{ + return lang_; +} + +void DeleteAccessWhiteListGroupRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string DeleteAccessWhiteListGroupRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DeleteAccessWhiteListGroupRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/DeleteAccessWhiteListGroupResult.cc b/jarvis/src/model/DeleteAccessWhiteListGroupResult.cc new file mode 100644 index 000000000..f7a9e3a23 --- /dev/null +++ b/jarvis/src/model/DeleteAccessWhiteListGroupResult.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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DeleteAccessWhiteListGroupResult::DeleteAccessWhiteListGroupResult() : + ServiceResult() +{} + +DeleteAccessWhiteListGroupResult::DeleteAccessWhiteListGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAccessWhiteListGroupResult::~DeleteAccessWhiteListGroupResult() +{} + +void DeleteAccessWhiteListGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string DeleteAccessWhiteListGroupResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DeleteUidWhiteListGroupRequest.cc b/jarvis/src/model/DeleteUidWhiteListGroupRequest.cc new file mode 100644 index 000000000..77cd62a27 --- /dev/null +++ b/jarvis/src/model/DeleteUidWhiteListGroupRequest.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::Jarvis::Model::DeleteUidWhiteListGroupRequest; + +DeleteUidWhiteListGroupRequest::DeleteUidWhiteListGroupRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DeleteUidWhiteListGroup") +{} + +DeleteUidWhiteListGroupRequest::~DeleteUidWhiteListGroupRequest() +{} + +std::string DeleteUidWhiteListGroupRequest::getGroupIdList()const +{ + return groupIdList_; +} + +void DeleteUidWhiteListGroupRequest::setGroupIdList(const std::string& groupIdList) +{ + groupIdList_ = groupIdList; + setParameter("GroupIdList", groupIdList); +} + +std::string DeleteUidWhiteListGroupRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DeleteUidWhiteListGroupRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DeleteUidWhiteListGroupRequest::getLang()const +{ + return lang_; +} + +void DeleteUidWhiteListGroupRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string DeleteUidWhiteListGroupRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DeleteUidWhiteListGroupRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/DeleteUidWhiteListGroupResult.cc b/jarvis/src/model/DeleteUidWhiteListGroupResult.cc new file mode 100644 index 000000000..c8aeaf1e5 --- /dev/null +++ b/jarvis/src/model/DeleteUidWhiteListGroupResult.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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DeleteUidWhiteListGroupResult::DeleteUidWhiteListGroupResult() : + ServiceResult() +{} + +DeleteUidWhiteListGroupResult::DeleteUidWhiteListGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteUidWhiteListGroupResult::~DeleteUidWhiteListGroupResult() +{} + +void DeleteUidWhiteListGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string DeleteUidWhiteListGroupResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DescribeAccessWhiteListGroupRequest.cc b/jarvis/src/model/DescribeAccessWhiteListGroupRequest.cc new file mode 100644 index 000000000..7c09a3a16 --- /dev/null +++ b/jarvis/src/model/DescribeAccessWhiteListGroupRequest.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::Jarvis::Model::DescribeAccessWhiteListGroupRequest; + +DescribeAccessWhiteListGroupRequest::DescribeAccessWhiteListGroupRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DescribeAccessWhiteListGroup") +{} + +DescribeAccessWhiteListGroupRequest::~DescribeAccessWhiteListGroupRequest() +{} + +std::string DescribeAccessWhiteListGroupRequest::getSrcIP()const +{ + return srcIP_; +} + +void DescribeAccessWhiteListGroupRequest::setSrcIP(const std::string& srcIP) +{ + srcIP_ = srcIP; + setParameter("SrcIP", srcIP); +} + +std::string DescribeAccessWhiteListGroupRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeAccessWhiteListGroupRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +int DescribeAccessWhiteListGroupRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAccessWhiteListGroupRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeAccessWhiteListGroupRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeAccessWhiteListGroupRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +int DescribeAccessWhiteListGroupRequest::getWhiteListType()const +{ + return whiteListType_; +} + +void DescribeAccessWhiteListGroupRequest::setWhiteListType(int whiteListType) +{ + whiteListType_ = whiteListType; + setParameter("WhiteListType", std::to_string(whiteListType)); +} + +std::string DescribeAccessWhiteListGroupRequest::getDstIP()const +{ + return dstIP_; +} + +void DescribeAccessWhiteListGroupRequest::setDstIP(const std::string& dstIP) +{ + dstIP_ = dstIP; + setParameter("DstIP", dstIP); +} + +std::string DescribeAccessWhiteListGroupRequest::getLang()const +{ + return lang_; +} + +void DescribeAccessWhiteListGroupRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string DescribeAccessWhiteListGroupRequest::getStatus()const +{ + return status_; +} + +void DescribeAccessWhiteListGroupRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + +std::string DescribeAccessWhiteListGroupRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DescribeAccessWhiteListGroupRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/DescribeAccessWhiteListGroupResult.cc b/jarvis/src/model/DescribeAccessWhiteListGroupResult.cc new file mode 100644 index 000000000..83ccde839 --- /dev/null +++ b/jarvis/src/model/DescribeAccessWhiteListGroupResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DescribeAccessWhiteListGroupResult::DescribeAccessWhiteListGroupResult() : + ServiceResult() +{} + +DescribeAccessWhiteListGroupResult::DescribeAccessWhiteListGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccessWhiteListGroupResult::~DescribeAccessWhiteListGroupResult() +{} + +void DescribeAccessWhiteListGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDataList = value["DataList"]["Data"]; + for (auto value : allDataList) + { + Data dataListObject; + if(!value["Status"].isNull()) + dataListObject.status = value["Status"].asString(); + if(!value["GmtCreate"].isNull()) + dataListObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtRealExpire"].isNull()) + dataListObject.gmtRealExpire = value["GmtRealExpire"].asString(); + if(!value["SrcIP"].isNull()) + dataListObject.srcIP = value["SrcIP"].asString(); + if(!value["AutoConfig"].isNull()) + dataListObject.autoConfig = std::stoi(value["AutoConfig"].asString()); + if(!value["GroupId"].isNull()) + dataListObject.groupId = std::stoi(value["GroupId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Data::Item itemsObject; + if(!value["IP"].isNull()) + itemsObject.iP = value["IP"].asString(); + if(!value["RegionId"].isNull()) + itemsObject.regionId = value["RegionId"].asString(); + dataListObject.items.push_back(itemsObject); + } + dataList_.push_back(dataListObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["total"].isNull()) + pageInfo_.total = std::stoi(pageInfoNode["total"].asString()); + if(!pageInfoNode["pageSize"].isNull()) + pageInfo_.pageSize = std::stoi(pageInfoNode["pageSize"].asString()); + if(!pageInfoNode["currentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["currentPage"].asString()); + if(!value["module"].isNull()) + module_ = value["module"].asString(); + +} + +std::vector DescribeAccessWhiteListGroupResult::getDataList()const +{ + return dataList_; +} + +DescribeAccessWhiteListGroupResult::PageInfo DescribeAccessWhiteListGroupResult::getPageInfo()const +{ + return pageInfo_; +} + +std::string DescribeAccessWhiteListGroupResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DescribeAccessWhitelistEcsListRequest.cc b/jarvis/src/model/DescribeAccessWhitelistEcsListRequest.cc new file mode 100644 index 000000000..99e1230ef --- /dev/null +++ b/jarvis/src/model/DescribeAccessWhitelistEcsListRequest.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::Jarvis::Model::DescribeAccessWhitelistEcsListRequest; + +DescribeAccessWhitelistEcsListRequest::DescribeAccessWhitelistEcsListRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DescribeAccessWhitelistEcsList") +{} + +DescribeAccessWhitelistEcsListRequest::~DescribeAccessWhitelistEcsListRequest() +{} + +std::string DescribeAccessWhitelistEcsListRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeAccessWhitelistEcsListRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeAccessWhitelistEcsListRequest::getLang()const +{ + return lang_; +} + +void DescribeAccessWhitelistEcsListRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string DescribeAccessWhitelistEcsListRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DescribeAccessWhitelistEcsListRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/DescribeAccessWhitelistEcsListResult.cc b/jarvis/src/model/DescribeAccessWhitelistEcsListResult.cc new file mode 100644 index 000000000..8f0d5fc67 --- /dev/null +++ b/jarvis/src/model/DescribeAccessWhitelistEcsListResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DescribeAccessWhitelistEcsListResult::DescribeAccessWhitelistEcsListResult() : + ServiceResult() +{} + +DescribeAccessWhitelistEcsListResult::DescribeAccessWhitelistEcsListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccessWhitelistEcsListResult::~DescribeAccessWhitelistEcsListResult() +{} + +void DescribeAccessWhitelistEcsListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allEcsList = value["EcsList"]["Ecs"]; + for (auto value : allEcsList) + { + Ecs ecsListObject; + if(!value["InstanceName"].isNull()) + ecsListObject.instanceName = value["InstanceName"].asString(); + if(!value["InstanceId"].isNull()) + ecsListObject.instanceId = value["InstanceId"].asString(); + if(!value["IP"].isNull()) + ecsListObject.iP = value["IP"].asString(); + ecsList_.push_back(ecsListObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["module"].isNull()) + module_ = value["module"].asString(); + +} + +int DescribeAccessWhitelistEcsListResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeAccessWhitelistEcsListResult::getEcsList()const +{ + return ecsList_; +} + +std::string DescribeAccessWhitelistEcsListResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DescribeCpmcPunishListRequest.cc b/jarvis/src/model/DescribeCpmcPunishListRequest.cc new file mode 100644 index 000000000..0721feed0 --- /dev/null +++ b/jarvis/src/model/DescribeCpmcPunishListRequest.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::Jarvis::Model::DescribeCpmcPunishListRequest; + +DescribeCpmcPunishListRequest::DescribeCpmcPunishListRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DescribeCpmcPunishList") +{} + +DescribeCpmcPunishListRequest::~DescribeCpmcPunishListRequest() +{} + +std::string DescribeCpmcPunishListRequest::getSrcIP()const +{ + return srcIP_; +} + +void DescribeCpmcPunishListRequest::setSrcIP(const std::string& srcIP) +{ + srcIP_ = srcIP; + setParameter("SrcIP", srcIP); +} + +std::string DescribeCpmcPunishListRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeCpmcPunishListRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +int DescribeCpmcPunishListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCpmcPunishListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeCpmcPunishListRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeCpmcPunishListRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeCpmcPunishListRequest::getPunishStatus()const +{ + return punishStatus_; +} + +void DescribeCpmcPunishListRequest::setPunishStatus(const std::string& punishStatus) +{ + punishStatus_ = punishStatus; + setParameter("PunishStatus", punishStatus); +} + +std::string DescribeCpmcPunishListRequest::getLang()const +{ + return lang_; +} + +void DescribeCpmcPunishListRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string DescribeCpmcPunishListRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DescribeCpmcPunishListRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/DescribeCpmcPunishListResult.cc b/jarvis/src/model/DescribeCpmcPunishListResult.cc new file mode 100644 index 000000000..a7e46c396 --- /dev/null +++ b/jarvis/src/model/DescribeCpmcPunishListResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DescribeCpmcPunishListResult::DescribeCpmcPunishListResult() : + ServiceResult() +{} + +DescribeCpmcPunishListResult::DescribeCpmcPunishListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCpmcPunishListResult::~DescribeCpmcPunishListResult() +{} + +void DescribeCpmcPunishListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDataList = value["DataList"]["Data"]; + for (auto value : allDataList) + { + Data dataListObject; + if(!value["GmtCreate"].isNull()) + dataListObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["SrcPort"].isNull()) + dataListObject.srcPort = std::stoi(value["SrcPort"].asString()); + if(!value["FeedBack"].isNull()) + dataListObject.feedBack = std::stoi(value["FeedBack"].asString()); + if(!value["GmtExpire"].isNull()) + dataListObject.gmtExpire = value["GmtExpire"].asString(); + if(!value["PunishType"].isNull()) + dataListObject.punishType = value["PunishType"].asString(); + if(!value["DstIP"].isNull()) + dataListObject.dstIP = value["DstIP"].asString(); + if(!value["PunishResult"].isNull()) + dataListObject.punishResult = value["PunishResult"].asString(); + if(!value["RegionId"].isNull()) + dataListObject.regionId = value["RegionId"].asString(); + if(!value["DstPort"].isNull()) + dataListObject.dstPort = std::stoi(value["DstPort"].asString()); + if(!value["Protocol"].isNull()) + dataListObject.protocol = value["Protocol"].asString(); + if(!value["SrcIP"].isNull()) + dataListObject.srcIP = value["SrcIP"].asString(); + if(!value["Reason"].isNull()) + dataListObject.reason = value["Reason"].asString(); + dataList_.push_back(dataListObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["total"].isNull()) + pageInfo_.total = std::stoi(pageInfoNode["total"].asString()); + if(!pageInfoNode["pageSize"].isNull()) + pageInfo_.pageSize = std::stoi(pageInfoNode["pageSize"].asString()); + if(!pageInfoNode["currentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["currentPage"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::vector DescribeCpmcPunishListResult::getDataList()const +{ + return dataList_; +} + +DescribeCpmcPunishListResult::PageInfo DescribeCpmcPunishListResult::getPageInfo()const +{ + return pageInfo_; +} + +std::string DescribeCpmcPunishListResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DescribeResetRecordListRequest.cc b/jarvis/src/model/DescribeResetRecordListRequest.cc new file mode 100644 index 000000000..eedcc9788 --- /dev/null +++ b/jarvis/src/model/DescribeResetRecordListRequest.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::Jarvis::Model::DescribeResetRecordListRequest; + +DescribeResetRecordListRequest::DescribeResetRecordListRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DescribeResetRecordList") +{} + +DescribeResetRecordListRequest::~DescribeResetRecordListRequest() +{} + +std::string DescribeResetRecordListRequest::getSrcIP()const +{ + return srcIP_; +} + +void DescribeResetRecordListRequest::setSrcIP(const std::string& srcIP) +{ + srcIP_ = srcIP; + setParameter("SrcIP", srcIP); +} + +std::string DescribeResetRecordListRequest::getPeriod()const +{ + return period_; +} + +void DescribeResetRecordListRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +std::string DescribeResetRecordListRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeResetRecordListRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +int DescribeResetRecordListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeResetRecordListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeResetRecordListRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeResetRecordListRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeResetRecordListRequest::getDstIP()const +{ + return dstIP_; +} + +void DescribeResetRecordListRequest::setDstIP(const std::string& dstIP) +{ + dstIP_ = dstIP; + setParameter("DstIP", dstIP); +} + +std::string DescribeResetRecordListRequest::getRegion()const +{ + return region_; +} + +void DescribeResetRecordListRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + +std::string DescribeResetRecordListRequest::getLang()const +{ + return lang_; +} + +void DescribeResetRecordListRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string DescribeResetRecordListRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DescribeResetRecordListRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/DescribeResetRecordListResult.cc b/jarvis/src/model/DescribeResetRecordListResult.cc new file mode 100644 index 000000000..863d5866b --- /dev/null +++ b/jarvis/src/model/DescribeResetRecordListResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DescribeResetRecordListResult::DescribeResetRecordListResult() : + ServiceResult() +{} + +DescribeResetRecordListResult::DescribeResetRecordListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeResetRecordListResult::~DescribeResetRecordListResult() +{} + +void DescribeResetRecordListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDataList = value["DataList"]["Data"]; + for (auto value : allDataList) + { + Data dataListObject; + if(!value["PunishType"].isNull()) + dataListObject.punishType = value["PunishType"].asString(); + if(!value["DstIP"].isNull()) + dataListObject.dstIP = value["DstIP"].asString(); + if(!value["PunishResult"].isNull()) + dataListObject.punishResult = value["PunishResult"].asString(); + if(!value["DstPort"].isNull()) + dataListObject.dstPort = std::stoi(value["DstPort"].asString()); + if(!value["SrcIP"].isNull()) + dataListObject.srcIP = value["SrcIP"].asString(); + if(!value["PunishCount"].isNull()) + dataListObject.punishCount = std::stoi(value["PunishCount"].asString()); + dataList_.push_back(dataListObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["total"].isNull()) + pageInfo_.total = std::stoi(pageInfoNode["total"].asString()); + if(!pageInfoNode["pageSize"].isNull()) + pageInfo_.pageSize = std::stoi(pageInfoNode["pageSize"].asString()); + if(!pageInfoNode["currentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["currentPage"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::vector DescribeResetRecordListResult::getDataList()const +{ + return dataList_; +} + +DescribeResetRecordListResult::PageInfo DescribeResetRecordListResult::getPageInfo()const +{ + return pageInfo_; +} + +std::string DescribeResetRecordListResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DescribeResetRecordQueryCountRequest.cc b/jarvis/src/model/DescribeResetRecordQueryCountRequest.cc new file mode 100644 index 000000000..52b6ce881 --- /dev/null +++ b/jarvis/src/model/DescribeResetRecordQueryCountRequest.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::Jarvis::Model::DescribeResetRecordQueryCountRequest; + +DescribeResetRecordQueryCountRequest::DescribeResetRecordQueryCountRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DescribeResetRecordQueryCount") +{} + +DescribeResetRecordQueryCountRequest::~DescribeResetRecordQueryCountRequest() +{} + +std::string DescribeResetRecordQueryCountRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeResetRecordQueryCountRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeResetRecordQueryCountRequest::getLang()const +{ + return lang_; +} + +void DescribeResetRecordQueryCountRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string DescribeResetRecordQueryCountRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DescribeResetRecordQueryCountRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/DescribeResetRecordQueryCountResult.cc b/jarvis/src/model/DescribeResetRecordQueryCountResult.cc new file mode 100644 index 000000000..67aed8d74 --- /dev/null +++ b/jarvis/src/model/DescribeResetRecordQueryCountResult.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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DescribeResetRecordQueryCountResult::DescribeResetRecordQueryCountResult() : + ServiceResult() +{} + +DescribeResetRecordQueryCountResult::DescribeResetRecordQueryCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeResetRecordQueryCountResult::~DescribeResetRecordQueryCountResult() +{} + +void DescribeResetRecordQueryCountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["QueryCount"].isNull()) + queryCount_ = std::stoi(value["QueryCount"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +int DescribeResetRecordQueryCountResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeResetRecordQueryCountResult::getQueryCount()const +{ + return queryCount_; +} + +std::string DescribeResetRecordQueryCountResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DescribeRiskTrendRequest.cc b/jarvis/src/model/DescribeRiskTrendRequest.cc new file mode 100644 index 000000000..86b2b61a1 --- /dev/null +++ b/jarvis/src/model/DescribeRiskTrendRequest.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::Jarvis::Model::DescribeRiskTrendRequest; + +DescribeRiskTrendRequest::DescribeRiskTrendRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DescribeRiskTrend") +{} + +DescribeRiskTrendRequest::~DescribeRiskTrendRequest() +{} + +std::string DescribeRiskTrendRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeRiskTrendRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeRiskTrendRequest::getQueryProduct()const +{ + return queryProduct_; +} + +void DescribeRiskTrendRequest::setQueryProduct(const std::string& queryProduct) +{ + queryProduct_ = queryProduct; + setParameter("QueryProduct", queryProduct); +} + +std::string DescribeRiskTrendRequest::getLang()const +{ + return lang_; +} + +void DescribeRiskTrendRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string DescribeRiskTrendRequest::getPeroid()const +{ + return peroid_; +} + +void DescribeRiskTrendRequest::setPeroid(const std::string& peroid) +{ + peroid_ = peroid; + setParameter("Peroid", peroid); +} + +std::string DescribeRiskTrendRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DescribeRiskTrendRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + +std::string DescribeRiskTrendRequest::getQueryRegionId()const +{ + return queryRegionId_; +} + +void DescribeRiskTrendRequest::setQueryRegionId(const std::string& queryRegionId) +{ + queryRegionId_ = queryRegionId; + setParameter("QueryRegionId", queryRegionId); +} + diff --git a/jarvis/src/model/DescribeRiskTrendResult.cc b/jarvis/src/model/DescribeRiskTrendResult.cc new file mode 100644 index 000000000..640fa5816 --- /dev/null +++ b/jarvis/src/model/DescribeRiskTrendResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DescribeRiskTrendResult::DescribeRiskTrendResult() : + ServiceResult() +{} + +DescribeRiskTrendResult::DescribeRiskTrendResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRiskTrendResult::~DescribeRiskTrendResult() +{} + +void DescribeRiskTrendResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDataList = value["DataList"]["DataItem"]; + for (auto value : allDataList) + { + DataItem dataListObject; + if(!value["UpdateTime"].isNull()) + dataListObject.updateTime = value["UpdateTime"].asString(); + if(!value["NewRiskCount"].isNull()) + dataListObject.newRiskCount = std::stoi(value["NewRiskCount"].asString()); + if(!value["TotalRiskCount"].isNull()) + dataListObject.totalRiskCount = std::stoi(value["TotalRiskCount"].asString()); + dataList_.push_back(dataListObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::vector DescribeRiskTrendResult::getDataList()const +{ + return dataList_; +} + +std::string DescribeRiskTrendResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeRiskTrendResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DescribeUidGcLevelRequest.cc b/jarvis/src/model/DescribeUidGcLevelRequest.cc new file mode 100644 index 000000000..09218c218 --- /dev/null +++ b/jarvis/src/model/DescribeUidGcLevelRequest.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::Jarvis::Model::DescribeUidGcLevelRequest; + +DescribeUidGcLevelRequest::DescribeUidGcLevelRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DescribeUidGcLevel") +{} + +DescribeUidGcLevelRequest::~DescribeUidGcLevelRequest() +{} + +std::string DescribeUidGcLevelRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeUidGcLevelRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeUidGcLevelRequest::getLang()const +{ + return lang_; +} + +void DescribeUidGcLevelRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string DescribeUidGcLevelRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DescribeUidGcLevelRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/DescribeUidGcLevelResult.cc b/jarvis/src/model/DescribeUidGcLevelResult.cc new file mode 100644 index 000000000..f85c9f3b4 --- /dev/null +++ b/jarvis/src/model/DescribeUidGcLevelResult.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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DescribeUidGcLevelResult::DescribeUidGcLevelResult() : + ServiceResult() +{} + +DescribeUidGcLevelResult::DescribeUidGcLevelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUidGcLevelResult::~DescribeUidGcLevelResult() +{} + +void DescribeUidGcLevelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + if(!value["Gclevel"].isNull()) + gclevel_ = value["Gclevel"].asString(); + +} + +std::string DescribeUidGcLevelResult::getGclevel()const +{ + return gclevel_; +} + +std::string DescribeUidGcLevelResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DescribeUidWhiteListGroupRequest.cc b/jarvis/src/model/DescribeUidWhiteListGroupRequest.cc new file mode 100644 index 000000000..4bd60b45f --- /dev/null +++ b/jarvis/src/model/DescribeUidWhiteListGroupRequest.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::Jarvis::Model::DescribeUidWhiteListGroupRequest; + +DescribeUidWhiteListGroupRequest::DescribeUidWhiteListGroupRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DescribeUidWhiteListGroup") +{} + +DescribeUidWhiteListGroupRequest::~DescribeUidWhiteListGroupRequest() +{} + +std::string DescribeUidWhiteListGroupRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeUidWhiteListGroupRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +int DescribeUidWhiteListGroupRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeUidWhiteListGroupRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeUidWhiteListGroupRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeUidWhiteListGroupRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +int DescribeUidWhiteListGroupRequest::getWhiteListType()const +{ + return whiteListType_; +} + +void DescribeUidWhiteListGroupRequest::setWhiteListType(int whiteListType) +{ + whiteListType_ = whiteListType; + setParameter("WhiteListType", std::to_string(whiteListType)); +} + +std::string DescribeUidWhiteListGroupRequest::getDstIP()const +{ + return dstIP_; +} + +void DescribeUidWhiteListGroupRequest::setDstIP(const std::string& dstIP) +{ + dstIP_ = dstIP; + setParameter("DstIP", dstIP); +} + +std::string DescribeUidWhiteListGroupRequest::getLang()const +{ + return lang_; +} + +void DescribeUidWhiteListGroupRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string DescribeUidWhiteListGroupRequest::getSrcUid()const +{ + return srcUid_; +} + +void DescribeUidWhiteListGroupRequest::setSrcUid(const std::string& srcUid) +{ + srcUid_ = srcUid; + setParameter("SrcUid", srcUid); +} + +std::string DescribeUidWhiteListGroupRequest::getStatus()const +{ + return status_; +} + +void DescribeUidWhiteListGroupRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + +std::string DescribeUidWhiteListGroupRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DescribeUidWhiteListGroupRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/DescribeUidWhiteListGroupResult.cc b/jarvis/src/model/DescribeUidWhiteListGroupResult.cc new file mode 100644 index 000000000..77b0e01a5 --- /dev/null +++ b/jarvis/src/model/DescribeUidWhiteListGroupResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DescribeUidWhiteListGroupResult::DescribeUidWhiteListGroupResult() : + ServiceResult() +{} + +DescribeUidWhiteListGroupResult::DescribeUidWhiteListGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUidWhiteListGroupResult::~DescribeUidWhiteListGroupResult() +{} + +void DescribeUidWhiteListGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDataList = value["DataList"]["Data"]; + for (auto value : allDataList) + { + Data dataListObject; + if(!value["Status"].isNull()) + dataListObject.status = value["Status"].asString(); + if(!value["GmtCreate"].isNull()) + dataListObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtRealExpire"].isNull()) + dataListObject.gmtRealExpire = value["GmtRealExpire"].asString(); + if(!value["SrcUid"].isNull()) + dataListObject.srcUid = value["SrcUid"].asString(); + if(!value["AutoConfig"].isNull()) + dataListObject.autoConfig = std::stoi(value["AutoConfig"].asString()); + if(!value["GroupId"].isNull()) + dataListObject.groupId = std::stoi(value["GroupId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Data::Item itemsObject; + if(!value["IP"].isNull()) + itemsObject.iP = value["IP"].asString(); + if(!value["RegionId"].isNull()) + itemsObject.regionId = value["RegionId"].asString(); + dataListObject.items.push_back(itemsObject); + } + dataList_.push_back(dataListObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["total"].isNull()) + pageInfo_.total = std::stoi(pageInfoNode["total"].asString()); + if(!pageInfoNode["pageSize"].isNull()) + pageInfo_.pageSize = std::stoi(pageInfoNode["pageSize"].asString()); + if(!pageInfoNode["currentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["currentPage"].asString()); + auto allProductList = value["ProductList"]["ProductList"]; + for (const auto &item : allProductList) + productList_.push_back(item.asString()); + if(!value["module"].isNull()) + module_ = value["module"].asString(); + +} + +std::vector DescribeUidWhiteListGroupResult::getProductList()const +{ + return productList_; +} + +std::vector DescribeUidWhiteListGroupResult::getDataList()const +{ + return dataList_; +} + +DescribeUidWhiteListGroupResult::PageInfo DescribeUidWhiteListGroupResult::getPageInfo()const +{ + return pageInfo_; +} + +std::string DescribeUidWhiteListGroupResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/ModifyAccessWhiteListAutoShareRequest.cc b/jarvis/src/model/ModifyAccessWhiteListAutoShareRequest.cc new file mode 100644 index 000000000..1f90e34b0 --- /dev/null +++ b/jarvis/src/model/ModifyAccessWhiteListAutoShareRequest.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::Jarvis::Model::ModifyAccessWhiteListAutoShareRequest; + +ModifyAccessWhiteListAutoShareRequest::ModifyAccessWhiteListAutoShareRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "ModifyAccessWhiteListAutoShare") +{} + +ModifyAccessWhiteListAutoShareRequest::~ModifyAccessWhiteListAutoShareRequest() +{} + +std::string ModifyAccessWhiteListAutoShareRequest::getSrcIP()const +{ + return srcIP_; +} + +void ModifyAccessWhiteListAutoShareRequest::setSrcIP(const std::string& srcIP) +{ + srcIP_ = srcIP; + setParameter("SrcIP", srcIP); +} + +std::string ModifyAccessWhiteListAutoShareRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyAccessWhiteListAutoShareRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +int ModifyAccessWhiteListAutoShareRequest::getAutoConfig()const +{ + return autoConfig_; +} + +void ModifyAccessWhiteListAutoShareRequest::setAutoConfig(int autoConfig) +{ + autoConfig_ = autoConfig; + setParameter("AutoConfig", std::to_string(autoConfig)); +} + +std::string ModifyAccessWhiteListAutoShareRequest::getProductName()const +{ + return productName_; +} + +void ModifyAccessWhiteListAutoShareRequest::setProductName(const std::string& productName) +{ + productName_ = productName; + setParameter("ProductName", productName); +} + +int ModifyAccessWhiteListAutoShareRequest::getWhiteListType()const +{ + return whiteListType_; +} + +void ModifyAccessWhiteListAutoShareRequest::setWhiteListType(int whiteListType) +{ + whiteListType_ = whiteListType; + setParameter("WhiteListType", std::to_string(whiteListType)); +} + +std::string ModifyAccessWhiteListAutoShareRequest::getLang()const +{ + return lang_; +} + +void ModifyAccessWhiteListAutoShareRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string ModifyAccessWhiteListAutoShareRequest::getSourceCode()const +{ + return sourceCode_; +} + +void ModifyAccessWhiteListAutoShareRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/ModifyAccessWhiteListAutoShareResult.cc b/jarvis/src/model/ModifyAccessWhiteListAutoShareResult.cc new file mode 100644 index 000000000..5dd518693 --- /dev/null +++ b/jarvis/src/model/ModifyAccessWhiteListAutoShareResult.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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +ModifyAccessWhiteListAutoShareResult::ModifyAccessWhiteListAutoShareResult() : + ServiceResult() +{} + +ModifyAccessWhiteListAutoShareResult::ModifyAccessWhiteListAutoShareResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccessWhiteListAutoShareResult::~ModifyAccessWhiteListAutoShareResult() +{} + +void ModifyAccessWhiteListAutoShareResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string ModifyAccessWhiteListAutoShareResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/ModifyUidWhiteListAutoShareRequest.cc b/jarvis/src/model/ModifyUidWhiteListAutoShareRequest.cc new file mode 100644 index 000000000..6e2d9a1af --- /dev/null +++ b/jarvis/src/model/ModifyUidWhiteListAutoShareRequest.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::Jarvis::Model::ModifyUidWhiteListAutoShareRequest; + +ModifyUidWhiteListAutoShareRequest::ModifyUidWhiteListAutoShareRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "ModifyUidWhiteListAutoShare") +{} + +ModifyUidWhiteListAutoShareRequest::~ModifyUidWhiteListAutoShareRequest() +{} + +std::string ModifyUidWhiteListAutoShareRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyUidWhiteListAutoShareRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +int ModifyUidWhiteListAutoShareRequest::getAutoConfig()const +{ + return autoConfig_; +} + +void ModifyUidWhiteListAutoShareRequest::setAutoConfig(int autoConfig) +{ + autoConfig_ = autoConfig; + setParameter("AutoConfig", std::to_string(autoConfig)); +} + +std::string ModifyUidWhiteListAutoShareRequest::getProductName()const +{ + return productName_; +} + +void ModifyUidWhiteListAutoShareRequest::setProductName(const std::string& productName) +{ + productName_ = productName; + setParameter("ProductName", productName); +} + +int ModifyUidWhiteListAutoShareRequest::getWhiteListType()const +{ + return whiteListType_; +} + +void ModifyUidWhiteListAutoShareRequest::setWhiteListType(int whiteListType) +{ + whiteListType_ = whiteListType; + setParameter("WhiteListType", std::to_string(whiteListType)); +} + +std::string ModifyUidWhiteListAutoShareRequest::getLang()const +{ + return lang_; +} + +void ModifyUidWhiteListAutoShareRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string ModifyUidWhiteListAutoShareRequest::getSrcUid()const +{ + return srcUid_; +} + +void ModifyUidWhiteListAutoShareRequest::setSrcUid(const std::string& srcUid) +{ + srcUid_ = srcUid; + setParameter("SrcUid", srcUid); +} + +std::string ModifyUidWhiteListAutoShareRequest::getSourceCode()const +{ + return sourceCode_; +} + +void ModifyUidWhiteListAutoShareRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/ModifyUidWhiteListAutoShareResult.cc b/jarvis/src/model/ModifyUidWhiteListAutoShareResult.cc new file mode 100644 index 000000000..f49c8491e --- /dev/null +++ b/jarvis/src/model/ModifyUidWhiteListAutoShareResult.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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +ModifyUidWhiteListAutoShareResult::ModifyUidWhiteListAutoShareResult() : + ServiceResult() +{} + +ModifyUidWhiteListAutoShareResult::ModifyUidWhiteListAutoShareResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyUidWhiteListAutoShareResult::~ModifyUidWhiteListAutoShareResult() +{} + +void ModifyUidWhiteListAutoShareResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string ModifyUidWhiteListAutoShareResult::getModule()const +{ + return module_; +} +