Compare commits

...

1 Commits

Author SHA1 Message Date
haowei.yao
383f1e0cd3 JARVIS SDK Auto Released By Alibaba Cloud,Version:1.13.0
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-05-28 13:43:12 +08:00
67 changed files with 5393 additions and 2 deletions

View File

@@ -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, FormatNumber + , + Space + Description
2018-05-23 Version: 1.12.0
1, Add CreateDrdsAccount API, to support creating account for all databases of a DRDS instance.

View File

@@ -74,4 +74,5 @@ add_subdirectory(dcdn)
add_subdirectory(pvtz)
add_subdirectory(cloudauth)
add_subdirectory(dyvmsapi)
add_subdirectory(drds)
add_subdirectory(drds)
add_subdirectory(jarvis)

View File

@@ -1 +1 @@
1.12.0
1.13.0

142
jarvis/CMakeLists.txt Normal file
View File

@@ -0,0 +1,142 @@
#
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(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}
)

View File

@@ -0,0 +1,166 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_JARVISCLIENT_H_
#define ALIBABACLOUD_JARVIS_JARVISCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#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<Error, Model::DeleteUidWhiteListGroupResult> DeleteUidWhiteListGroupOutcome;
typedef std::future<DeleteUidWhiteListGroupOutcome> DeleteUidWhiteListGroupOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::DeleteUidWhiteListGroupRequest&, const DeleteUidWhiteListGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUidWhiteListGroupAsyncHandler;
typedef Outcome<Error, Model::CreateCpmcPunishFeedBackResult> CreateCpmcPunishFeedBackOutcome;
typedef std::future<CreateCpmcPunishFeedBackOutcome> CreateCpmcPunishFeedBackOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::CreateCpmcPunishFeedBackRequest&, const CreateCpmcPunishFeedBackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCpmcPunishFeedBackAsyncHandler;
typedef Outcome<Error, Model::CreateAccessWhiteListGroupResult> CreateAccessWhiteListGroupOutcome;
typedef std::future<CreateAccessWhiteListGroupOutcome> CreateAccessWhiteListGroupOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::CreateAccessWhiteListGroupRequest&, const CreateAccessWhiteListGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAccessWhiteListGroupAsyncHandler;
typedef Outcome<Error, Model::DescribeAccessWhitelistEcsListResult> DescribeAccessWhitelistEcsListOutcome;
typedef std::future<DescribeAccessWhitelistEcsListOutcome> DescribeAccessWhitelistEcsListOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::DescribeAccessWhitelistEcsListRequest&, const DescribeAccessWhitelistEcsListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAccessWhitelistEcsListAsyncHandler;
typedef Outcome<Error, Model::DescribeResetRecordListResult> DescribeResetRecordListOutcome;
typedef std::future<DescribeResetRecordListOutcome> DescribeResetRecordListOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::DescribeResetRecordListRequest&, const DescribeResetRecordListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeResetRecordListAsyncHandler;
typedef Outcome<Error, Model::ModifyUidWhiteListAutoShareResult> ModifyUidWhiteListAutoShareOutcome;
typedef std::future<ModifyUidWhiteListAutoShareOutcome> ModifyUidWhiteListAutoShareOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::ModifyUidWhiteListAutoShareRequest&, const ModifyUidWhiteListAutoShareOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyUidWhiteListAutoShareAsyncHandler;
typedef Outcome<Error, Model::ModifyAccessWhiteListAutoShareResult> ModifyAccessWhiteListAutoShareOutcome;
typedef std::future<ModifyAccessWhiteListAutoShareOutcome> ModifyAccessWhiteListAutoShareOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::ModifyAccessWhiteListAutoShareRequest&, const ModifyAccessWhiteListAutoShareOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAccessWhiteListAutoShareAsyncHandler;
typedef Outcome<Error, Model::CreateUidWhiteListGroupResult> CreateUidWhiteListGroupOutcome;
typedef std::future<CreateUidWhiteListGroupOutcome> CreateUidWhiteListGroupOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::CreateUidWhiteListGroupRequest&, const CreateUidWhiteListGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUidWhiteListGroupAsyncHandler;
typedef Outcome<Error, Model::DescribeCpmcPunishListResult> DescribeCpmcPunishListOutcome;
typedef std::future<DescribeCpmcPunishListOutcome> DescribeCpmcPunishListOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::DescribeCpmcPunishListRequest&, const DescribeCpmcPunishListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCpmcPunishListAsyncHandler;
typedef Outcome<Error, Model::DescribeUidGcLevelResult> DescribeUidGcLevelOutcome;
typedef std::future<DescribeUidGcLevelOutcome> DescribeUidGcLevelOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::DescribeUidGcLevelRequest&, const DescribeUidGcLevelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUidGcLevelAsyncHandler;
typedef Outcome<Error, Model::DeleteAccessWhiteListGroupResult> DeleteAccessWhiteListGroupOutcome;
typedef std::future<DeleteAccessWhiteListGroupOutcome> DeleteAccessWhiteListGroupOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::DeleteAccessWhiteListGroupRequest&, const DeleteAccessWhiteListGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAccessWhiteListGroupAsyncHandler;
typedef Outcome<Error, Model::DescribeAccessWhiteListGroupResult> DescribeAccessWhiteListGroupOutcome;
typedef std::future<DescribeAccessWhiteListGroupOutcome> DescribeAccessWhiteListGroupOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::DescribeAccessWhiteListGroupRequest&, const DescribeAccessWhiteListGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAccessWhiteListGroupAsyncHandler;
typedef Outcome<Error, Model::DescribeResetRecordQueryCountResult> DescribeResetRecordQueryCountOutcome;
typedef std::future<DescribeResetRecordQueryCountOutcome> DescribeResetRecordQueryCountOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::DescribeResetRecordQueryCountRequest&, const DescribeResetRecordQueryCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeResetRecordQueryCountAsyncHandler;
typedef Outcome<Error, Model::DescribeUidWhiteListGroupResult> DescribeUidWhiteListGroupOutcome;
typedef std::future<DescribeUidWhiteListGroupOutcome> DescribeUidWhiteListGroupOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::DescribeUidWhiteListGroupRequest&, const DescribeUidWhiteListGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUidWhiteListGroupAsyncHandler;
typedef Outcome<Error, Model::DescribeRiskTrendResult> DescribeRiskTrendOutcome;
typedef std::future<DescribeRiskTrendOutcome> DescribeRiskTrendOutcomeCallable;
typedef std::function<void(const JarvisClient*, const Model::DescribeRiskTrendRequest&, const DescribeRiskTrendOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRiskTrendAsyncHandler;
JarvisClient(const Credentials &credentials, const ClientConfiguration &configuration);
JarvisClient(const std::shared_ptr<CredentialsProvider> &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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
DescribeRiskTrendOutcomeCallable describeRiskTrendCallable(const Model::DescribeRiskTrendRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_JARVIS_JARVISCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_JARVISEXPORT_H_
#define ALIBABACLOUD_JARVIS_JARVISEXPORT_H_
#include <alibabacloud/core/Global.h>
#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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_CREATEACCESSWHITELISTGROUPRESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_CREATEACCESSWHITELISTGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_CREATECPMCPUNISHFEEDBACKRESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_CREATECPMCPUNISHFEEDBACKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_CREATEUIDWHITELISTGROUPRESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_CREATEUIDWHITELISTGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DELETEACCESSWHITELISTGROUPREQUEST_H_
#define ALIBABACLOUD_JARVIS_MODEL_DELETEACCESSWHITELISTGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DELETEACCESSWHITELISTGROUPRESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_DELETEACCESSWHITELISTGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DELETEUIDWHITELISTGROUPREQUEST_H_
#define ALIBABACLOUD_JARVIS_MODEL_DELETEUIDWHITELISTGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DELETEUIDWHITELISTGROUPRESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_DELETEUIDWHITELISTGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTGROUPREQUEST_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTGROUPRESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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<Data::Item> items;
std::string srcIP;
int autoConfig;
int groupId;
};
DescribeAccessWhiteListGroupResult();
explicit DescribeAccessWhiteListGroupResult(const std::string &payload);
~DescribeAccessWhiteListGroupResult();
std::vector<Data> getDataList()const;
PageInfo getPageInfo()const;
std::string getModule()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Data> dataList_;
PageInfo pageInfo_;
std::string module_;
};
}
}
}
#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTGROUPRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTECSLISTREQUEST_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTECSLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTECSLISTRESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTECSLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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<Ecs> getEcsList()const;
std::string getModule()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::vector<Ecs> ecsList_;
std::string module_;
};
}
}
}
#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTECSLISTRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBECPMCPUNISHLISTREQUEST_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBECPMCPUNISHLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBECPMCPUNISHLISTRESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBECPMCPUNISHLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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<Data> getDataList()const;
PageInfo getPageInfo()const;
std::string getModule()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Data> dataList_;
PageInfo pageInfo_;
std::string module_;
};
}
}
}
#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBECPMCPUNISHLISTRESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDLISTREQUEST_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDLISTRESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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<Data> getDataList()const;
PageInfo getPageInfo()const;
std::string getModule()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Data> dataList_;
PageInfo pageInfo_;
std::string module_;
};
}
}
}
#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDLISTRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDQUERYCOUNTREQUEST_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDQUERYCOUNTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDQUERYCOUNTRESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBERESETRECORDQUERYCOUNTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBERISKTRENDREQUEST_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBERISKTRENDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBERISKTRENDRESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBERISKTRENDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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<DataItem> getDataList()const;
std::string getTotalCount()const;
std::string getModule()const;
protected:
void parse(const std::string &payload);
private:
std::vector<DataItem> dataList_;
std::string totalCount_;
std::string module_;
};
}
}
}
#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBERISKTRENDRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDGCLEVELREQUEST_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDGCLEVELREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDGCLEVELRESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDGCLEVELRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDWHITELISTGROUPREQUEST_H_
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDWHITELISTGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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<Data::Item> items;
std::string srcUid;
int autoConfig;
int groupId;
};
DescribeUidWhiteListGroupResult();
explicit DescribeUidWhiteListGroupResult(const std::string &payload);
~DescribeUidWhiteListGroupResult();
std::vector<std::string> getProductList()const;
std::vector<Data> getDataList()const;
PageInfo getPageInfo()const;
std::string getModule()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> productList_;
std::vector<Data> dataList_;
PageInfo pageInfo_;
std::string module_;
};
}
}
}
#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDWHITELISTGROUPRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_MODIFYACCESSWHITELISTAUTOSHAREREQUEST_H_
#define ALIBABACLOUD_JARVIS_MODEL_MODIFYACCESSWHITELISTAUTOSHAREREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_MODIFYACCESSWHITELISTAUTOSHARERESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_MODIFYACCESSWHITELISTAUTOSHARERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_MODIFYUIDWHITELISTAUTOSHAREREQUEST_H_
#define ALIBABACLOUD_JARVIS_MODEL_MODIFYUIDWHITELISTAUTOSHAREREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_JARVIS_MODEL_MODIFYUIDWHITELISTAUTOSHARERESULT_H_
#define ALIBABACLOUD_JARVIS_MODEL_MODIFYUIDWHITELISTAUTOSHARERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/jarvis/JarvisExport.h>
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_

593
jarvis/src/JarvisClient.cc Normal file
View File

@@ -0,0 +1,593 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/JarvisClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
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<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
JarvisClient::JarvisClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
JarvisClient::JarvisClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
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<const AsyncCallerContext>& 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<std::packaged_task<DeleteUidWhiteListGroupOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<CreateCpmcPunishFeedBackOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<CreateAccessWhiteListGroupOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeAccessWhitelistEcsListOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeResetRecordListOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<ModifyUidWhiteListAutoShareOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<ModifyAccessWhiteListAutoShareOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<CreateUidWhiteListGroupOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeCpmcPunishListOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeUidGcLevelOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DeleteAccessWhiteListGroupOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeAccessWhiteListGroupOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeResetRecordQueryCountOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeUidWhiteListGroupOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeRiskTrendOutcome()>>(
[this, request]()
{
return this->describeRiskTrend(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -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 <alibabacloud/jarvis/model/CreateAccessWhiteListGroupRequest.h>
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);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/CreateAccessWhiteListGroupResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/jarvis/model/CreateCpmcPunishFeedBackRequest.h>
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);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/CreateCpmcPunishFeedBackResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/jarvis/model/CreateUidWhiteListGroupRequest.h>
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);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/CreateUidWhiteListGroupResult.h>
#include <json/json.h>
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_;
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DeleteAccessWhiteListGroupRequest.h>
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);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DeleteAccessWhiteListGroupResult.h>
#include <json/json.h>
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_;
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DeleteUidWhiteListGroupRequest.h>
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);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DeleteUidWhiteListGroupResult.h>
#include <json/json.h>
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_;
}

View File

@@ -0,0 +1,126 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DescribeAccessWhiteListGroupRequest.h>
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);
}

View File

@@ -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 <alibabacloud/jarvis/model/DescribeAccessWhiteListGroupResult.h>
#include <json/json.h>
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::Data> DescribeAccessWhiteListGroupResult::getDataList()const
{
return dataList_;
}
DescribeAccessWhiteListGroupResult::PageInfo DescribeAccessWhiteListGroupResult::getPageInfo()const
{
return pageInfo_;
}
std::string DescribeAccessWhiteListGroupResult::getModule()const
{
return module_;
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListRequest.h>
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);
}

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListResult.h>
#include <json/json.h>
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::Ecs> DescribeAccessWhitelistEcsListResult::getEcsList()const
{
return ecsList_;
}
std::string DescribeAccessWhitelistEcsListResult::getModule()const
{
return module_;
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DescribeCpmcPunishListRequest.h>
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);
}

View File

@@ -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 <alibabacloud/jarvis/model/DescribeCpmcPunishListResult.h>
#include <json/json.h>
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::Data> DescribeCpmcPunishListResult::getDataList()const
{
return dataList_;
}
DescribeCpmcPunishListResult::PageInfo DescribeCpmcPunishListResult::getPageInfo()const
{
return pageInfo_;
}
std::string DescribeCpmcPunishListResult::getModule()const
{
return module_;
}

View File

@@ -0,0 +1,126 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DescribeResetRecordListRequest.h>
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);
}

View File

@@ -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 <alibabacloud/jarvis/model/DescribeResetRecordListResult.h>
#include <json/json.h>
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::Data> DescribeResetRecordListResult::getDataList()const
{
return dataList_;
}
DescribeResetRecordListResult::PageInfo DescribeResetRecordListResult::getPageInfo()const
{
return pageInfo_;
}
std::string DescribeResetRecordListResult::getModule()const
{
return module_;
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DescribeResetRecordQueryCountRequest.h>
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);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DescribeResetRecordQueryCountResult.h>
#include <json/json.h>
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_;
}

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DescribeRiskTrendRequest.h>
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);
}

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DescribeRiskTrendResult.h>
#include <json/json.h>
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::DataItem> DescribeRiskTrendResult::getDataList()const
{
return dataList_;
}
std::string DescribeRiskTrendResult::getTotalCount()const
{
return totalCount_;
}
std::string DescribeRiskTrendResult::getModule()const
{
return module_;
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DescribeUidGcLevelRequest.h>
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);
}

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DescribeUidGcLevelResult.h>
#include <json/json.h>
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_;
}

View File

@@ -0,0 +1,126 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/DescribeUidWhiteListGroupRequest.h>
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);
}

View File

@@ -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 <alibabacloud/jarvis/model/DescribeUidWhiteListGroupResult.h>
#include <json/json.h>
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<std::string> DescribeUidWhiteListGroupResult::getProductList()const
{
return productList_;
}
std::vector<DescribeUidWhiteListGroupResult::Data> DescribeUidWhiteListGroupResult::getDataList()const
{
return dataList_;
}
DescribeUidWhiteListGroupResult::PageInfo DescribeUidWhiteListGroupResult::getPageInfo()const
{
return pageInfo_;
}
std::string DescribeUidWhiteListGroupResult::getModule()const
{
return module_;
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/ModifyAccessWhiteListAutoShareRequest.h>
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);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/ModifyAccessWhiteListAutoShareResult.h>
#include <json/json.h>
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_;
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/ModifyUidWhiteListAutoShareRequest.h>
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);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/jarvis/model/ModifyUidWhiteListAutoShareResult.h>
#include <json/json.h>
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_;
}