Skip to content

Commit

Permalink
Publish Api:GetNisNetworkRanking
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jul 4, 2024
1 parent ef538b5 commit fd5e85e
Show file tree
Hide file tree
Showing 53 changed files with 5,040 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.36.1947
1.36.1948
130 changes: 130 additions & 0 deletions nis/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
#
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT 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(nis_public_header
include/alibabacloud/nis/NisClient.h
include/alibabacloud/nis/NisExport.h )

set(nis_public_header_model
include/alibabacloud/nis/model/CreateAndAnalyzeNetworkPathRequest.h
include/alibabacloud/nis/model/CreateAndAnalyzeNetworkPathResult.h
include/alibabacloud/nis/model/CreateNetworkPathRequest.h
include/alibabacloud/nis/model/CreateNetworkPathResult.h
include/alibabacloud/nis/model/CreateNetworkReachableAnalysisRequest.h
include/alibabacloud/nis/model/CreateNetworkReachableAnalysisResult.h
include/alibabacloud/nis/model/DeleteNetworkPathRequest.h
include/alibabacloud/nis/model/DeleteNetworkPathResult.h
include/alibabacloud/nis/model/DeleteNetworkReachableAnalysisRequest.h
include/alibabacloud/nis/model/DeleteNetworkReachableAnalysisResult.h
include/alibabacloud/nis/model/GetInternetTupleRequest.h
include/alibabacloud/nis/model/GetInternetTupleResult.h
include/alibabacloud/nis/model/GetNatTopNRequest.h
include/alibabacloud/nis/model/GetNatTopNResult.h
include/alibabacloud/nis/model/GetNetworkReachableAnalysisRequest.h
include/alibabacloud/nis/model/GetNetworkReachableAnalysisResult.h
include/alibabacloud/nis/model/GetNisNetworkMetricsRequest.h
include/alibabacloud/nis/model/GetNisNetworkMetricsResult.h
include/alibabacloud/nis/model/GetNisNetworkRankingRequest.h
include/alibabacloud/nis/model/GetNisNetworkRankingResult.h
include/alibabacloud/nis/model/GetTransitRouterFlowTopNRequest.h
include/alibabacloud/nis/model/GetTransitRouterFlowTopNResult.h
include/alibabacloud/nis/model/GetVbrFlowTopNRequest.h
include/alibabacloud/nis/model/GetVbrFlowTopNResult.h )

set(nis_src
src/NisClient.cc
src/model/CreateAndAnalyzeNetworkPathRequest.cc
src/model/CreateAndAnalyzeNetworkPathResult.cc
src/model/CreateNetworkPathRequest.cc
src/model/CreateNetworkPathResult.cc
src/model/CreateNetworkReachableAnalysisRequest.cc
src/model/CreateNetworkReachableAnalysisResult.cc
src/model/DeleteNetworkPathRequest.cc
src/model/DeleteNetworkPathResult.cc
src/model/DeleteNetworkReachableAnalysisRequest.cc
src/model/DeleteNetworkReachableAnalysisResult.cc
src/model/GetInternetTupleRequest.cc
src/model/GetInternetTupleResult.cc
src/model/GetNatTopNRequest.cc
src/model/GetNatTopNResult.cc
src/model/GetNetworkReachableAnalysisRequest.cc
src/model/GetNetworkReachableAnalysisResult.cc
src/model/GetNisNetworkMetricsRequest.cc
src/model/GetNisNetworkMetricsResult.cc
src/model/GetNisNetworkRankingRequest.cc
src/model/GetNisNetworkRankingResult.cc
src/model/GetTransitRouterFlowTopNRequest.cc
src/model/GetTransitRouterFlowTopNResult.cc
src/model/GetVbrFlowTopNRequest.cc
src/model/GetVbrFlowTopNResult.cc )

add_library(nis ${LIB_TYPE}
${nis_public_header}
${nis_public_header_model}
${nis_src})

set_target_properties(nis
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}nis
)

if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(nis
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_NIS_LIBRARY)
endif()

target_include_directories(nis
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(nis
core)

if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(nis
jsoncpp)
target_include_directories(nis
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(nis
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(nis
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(nis
PRIVATE /usr/include/jsoncpp)
target_link_libraries(nis
jsoncpp)
endif()

install(FILES ${nis_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/nis)
install(FILES ${nis_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/nis/model)
install(TARGETS nis
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
142 changes: 142 additions & 0 deletions nis/include/alibabacloud/nis/NisClient.h
Original file line number Diff line number Diff line change
@@ -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.
*/

#ifndef ALIBABACLOUD_NIS_NISCLIENT_H_
#define ALIBABACLOUD_NIS_NISCLIENT_H_

#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "NisExport.h"
#include "model/CreateAndAnalyzeNetworkPathRequest.h"
#include "model/CreateAndAnalyzeNetworkPathResult.h"
#include "model/CreateNetworkPathRequest.h"
#include "model/CreateNetworkPathResult.h"
#include "model/CreateNetworkReachableAnalysisRequest.h"
#include "model/CreateNetworkReachableAnalysisResult.h"
#include "model/DeleteNetworkPathRequest.h"
#include "model/DeleteNetworkPathResult.h"
#include "model/DeleteNetworkReachableAnalysisRequest.h"
#include "model/DeleteNetworkReachableAnalysisResult.h"
#include "model/GetInternetTupleRequest.h"
#include "model/GetInternetTupleResult.h"
#include "model/GetNatTopNRequest.h"
#include "model/GetNatTopNResult.h"
#include "model/GetNetworkReachableAnalysisRequest.h"
#include "model/GetNetworkReachableAnalysisResult.h"
#include "model/GetNisNetworkMetricsRequest.h"
#include "model/GetNisNetworkMetricsResult.h"
#include "model/GetNisNetworkRankingRequest.h"
#include "model/GetNisNetworkRankingResult.h"
#include "model/GetTransitRouterFlowTopNRequest.h"
#include "model/GetTransitRouterFlowTopNResult.h"
#include "model/GetVbrFlowTopNRequest.h"
#include "model/GetVbrFlowTopNResult.h"


namespace AlibabaCloud
{
namespace Nis
{
class ALIBABACLOUD_NIS_EXPORT NisClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::CreateAndAnalyzeNetworkPathResult> CreateAndAnalyzeNetworkPathOutcome;
typedef std::future<CreateAndAnalyzeNetworkPathOutcome> CreateAndAnalyzeNetworkPathOutcomeCallable;
typedef std::function<void(const NisClient*, const Model::CreateAndAnalyzeNetworkPathRequest&, const CreateAndAnalyzeNetworkPathOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAndAnalyzeNetworkPathAsyncHandler;
typedef Outcome<Error, Model::CreateNetworkPathResult> CreateNetworkPathOutcome;
typedef std::future<CreateNetworkPathOutcome> CreateNetworkPathOutcomeCallable;
typedef std::function<void(const NisClient*, const Model::CreateNetworkPathRequest&, const CreateNetworkPathOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateNetworkPathAsyncHandler;
typedef Outcome<Error, Model::CreateNetworkReachableAnalysisResult> CreateNetworkReachableAnalysisOutcome;
typedef std::future<CreateNetworkReachableAnalysisOutcome> CreateNetworkReachableAnalysisOutcomeCallable;
typedef std::function<void(const NisClient*, const Model::CreateNetworkReachableAnalysisRequest&, const CreateNetworkReachableAnalysisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateNetworkReachableAnalysisAsyncHandler;
typedef Outcome<Error, Model::DeleteNetworkPathResult> DeleteNetworkPathOutcome;
typedef std::future<DeleteNetworkPathOutcome> DeleteNetworkPathOutcomeCallable;
typedef std::function<void(const NisClient*, const Model::DeleteNetworkPathRequest&, const DeleteNetworkPathOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteNetworkPathAsyncHandler;
typedef Outcome<Error, Model::DeleteNetworkReachableAnalysisResult> DeleteNetworkReachableAnalysisOutcome;
typedef std::future<DeleteNetworkReachableAnalysisOutcome> DeleteNetworkReachableAnalysisOutcomeCallable;
typedef std::function<void(const NisClient*, const Model::DeleteNetworkReachableAnalysisRequest&, const DeleteNetworkReachableAnalysisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteNetworkReachableAnalysisAsyncHandler;
typedef Outcome<Error, Model::GetInternetTupleResult> GetInternetTupleOutcome;
typedef std::future<GetInternetTupleOutcome> GetInternetTupleOutcomeCallable;
typedef std::function<void(const NisClient*, const Model::GetInternetTupleRequest&, const GetInternetTupleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInternetTupleAsyncHandler;
typedef Outcome<Error, Model::GetNatTopNResult> GetNatTopNOutcome;
typedef std::future<GetNatTopNOutcome> GetNatTopNOutcomeCallable;
typedef std::function<void(const NisClient*, const Model::GetNatTopNRequest&, const GetNatTopNOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNatTopNAsyncHandler;
typedef Outcome<Error, Model::GetNetworkReachableAnalysisResult> GetNetworkReachableAnalysisOutcome;
typedef std::future<GetNetworkReachableAnalysisOutcome> GetNetworkReachableAnalysisOutcomeCallable;
typedef std::function<void(const NisClient*, const Model::GetNetworkReachableAnalysisRequest&, const GetNetworkReachableAnalysisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNetworkReachableAnalysisAsyncHandler;
typedef Outcome<Error, Model::GetNisNetworkMetricsResult> GetNisNetworkMetricsOutcome;
typedef std::future<GetNisNetworkMetricsOutcome> GetNisNetworkMetricsOutcomeCallable;
typedef std::function<void(const NisClient*, const Model::GetNisNetworkMetricsRequest&, const GetNisNetworkMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNisNetworkMetricsAsyncHandler;
typedef Outcome<Error, Model::GetNisNetworkRankingResult> GetNisNetworkRankingOutcome;
typedef std::future<GetNisNetworkRankingOutcome> GetNisNetworkRankingOutcomeCallable;
typedef std::function<void(const NisClient*, const Model::GetNisNetworkRankingRequest&, const GetNisNetworkRankingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNisNetworkRankingAsyncHandler;
typedef Outcome<Error, Model::GetTransitRouterFlowTopNResult> GetTransitRouterFlowTopNOutcome;
typedef std::future<GetTransitRouterFlowTopNOutcome> GetTransitRouterFlowTopNOutcomeCallable;
typedef std::function<void(const NisClient*, const Model::GetTransitRouterFlowTopNRequest&, const GetTransitRouterFlowTopNOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTransitRouterFlowTopNAsyncHandler;
typedef Outcome<Error, Model::GetVbrFlowTopNResult> GetVbrFlowTopNOutcome;
typedef std::future<GetVbrFlowTopNOutcome> GetVbrFlowTopNOutcomeCallable;
typedef std::function<void(const NisClient*, const Model::GetVbrFlowTopNRequest&, const GetVbrFlowTopNOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVbrFlowTopNAsyncHandler;

NisClient(const Credentials &credentials, const ClientConfiguration &configuration);
NisClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
NisClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~NisClient();
CreateAndAnalyzeNetworkPathOutcome createAndAnalyzeNetworkPath(const Model::CreateAndAnalyzeNetworkPathRequest &request)const;
void createAndAnalyzeNetworkPathAsync(const Model::CreateAndAnalyzeNetworkPathRequest& request, const CreateAndAnalyzeNetworkPathAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateAndAnalyzeNetworkPathOutcomeCallable createAndAnalyzeNetworkPathCallable(const Model::CreateAndAnalyzeNetworkPathRequest& request) const;
CreateNetworkPathOutcome createNetworkPath(const Model::CreateNetworkPathRequest &request)const;
void createNetworkPathAsync(const Model::CreateNetworkPathRequest& request, const CreateNetworkPathAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateNetworkPathOutcomeCallable createNetworkPathCallable(const Model::CreateNetworkPathRequest& request) const;
CreateNetworkReachableAnalysisOutcome createNetworkReachableAnalysis(const Model::CreateNetworkReachableAnalysisRequest &request)const;
void createNetworkReachableAnalysisAsync(const Model::CreateNetworkReachableAnalysisRequest& request, const CreateNetworkReachableAnalysisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateNetworkReachableAnalysisOutcomeCallable createNetworkReachableAnalysisCallable(const Model::CreateNetworkReachableAnalysisRequest& request) const;
DeleteNetworkPathOutcome deleteNetworkPath(const Model::DeleteNetworkPathRequest &request)const;
void deleteNetworkPathAsync(const Model::DeleteNetworkPathRequest& request, const DeleteNetworkPathAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteNetworkPathOutcomeCallable deleteNetworkPathCallable(const Model::DeleteNetworkPathRequest& request) const;
DeleteNetworkReachableAnalysisOutcome deleteNetworkReachableAnalysis(const Model::DeleteNetworkReachableAnalysisRequest &request)const;
void deleteNetworkReachableAnalysisAsync(const Model::DeleteNetworkReachableAnalysisRequest& request, const DeleteNetworkReachableAnalysisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteNetworkReachableAnalysisOutcomeCallable deleteNetworkReachableAnalysisCallable(const Model::DeleteNetworkReachableAnalysisRequest& request) const;
GetInternetTupleOutcome getInternetTuple(const Model::GetInternetTupleRequest &request)const;
void getInternetTupleAsync(const Model::GetInternetTupleRequest& request, const GetInternetTupleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetInternetTupleOutcomeCallable getInternetTupleCallable(const Model::GetInternetTupleRequest& request) const;
GetNatTopNOutcome getNatTopN(const Model::GetNatTopNRequest &request)const;
void getNatTopNAsync(const Model::GetNatTopNRequest& request, const GetNatTopNAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetNatTopNOutcomeCallable getNatTopNCallable(const Model::GetNatTopNRequest& request) const;
GetNetworkReachableAnalysisOutcome getNetworkReachableAnalysis(const Model::GetNetworkReachableAnalysisRequest &request)const;
void getNetworkReachableAnalysisAsync(const Model::GetNetworkReachableAnalysisRequest& request, const GetNetworkReachableAnalysisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetNetworkReachableAnalysisOutcomeCallable getNetworkReachableAnalysisCallable(const Model::GetNetworkReachableAnalysisRequest& request) const;
GetNisNetworkMetricsOutcome getNisNetworkMetrics(const Model::GetNisNetworkMetricsRequest &request)const;
void getNisNetworkMetricsAsync(const Model::GetNisNetworkMetricsRequest& request, const GetNisNetworkMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetNisNetworkMetricsOutcomeCallable getNisNetworkMetricsCallable(const Model::GetNisNetworkMetricsRequest& request) const;
GetNisNetworkRankingOutcome getNisNetworkRanking(const Model::GetNisNetworkRankingRequest &request)const;
void getNisNetworkRankingAsync(const Model::GetNisNetworkRankingRequest& request, const GetNisNetworkRankingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetNisNetworkRankingOutcomeCallable getNisNetworkRankingCallable(const Model::GetNisNetworkRankingRequest& request) const;
GetTransitRouterFlowTopNOutcome getTransitRouterFlowTopN(const Model::GetTransitRouterFlowTopNRequest &request)const;
void getTransitRouterFlowTopNAsync(const Model::GetTransitRouterFlowTopNRequest& request, const GetTransitRouterFlowTopNAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTransitRouterFlowTopNOutcomeCallable getTransitRouterFlowTopNCallable(const Model::GetTransitRouterFlowTopNRequest& request) const;
GetVbrFlowTopNOutcome getVbrFlowTopN(const Model::GetVbrFlowTopNRequest &request)const;
void getVbrFlowTopNAsync(const Model::GetVbrFlowTopNRequest& request, const GetVbrFlowTopNAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetVbrFlowTopNOutcomeCallable getVbrFlowTopNCallable(const Model::GetVbrFlowTopNRequest& request) const;

private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}

#endif // !ALIBABACLOUD_NIS_NISCLIENT_H_
32 changes: 32 additions & 0 deletions nis/include/alibabacloud/nis/NisExport.h
Original file line number Diff line number Diff line change
@@ -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_NIS_NISEXPORT_H_
#define ALIBABACLOUD_NIS_NISEXPORT_H_

#include <alibabacloud/core/Global.h>

#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_NIS_LIBRARY)
# define ALIBABACLOUD_NIS_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_NIS_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_NIS_EXPORT
#endif

#endif // !ALIBABACLOUD_NIS_NISEXPORT_H_
Loading

0 comments on commit fd5e85e

Please sign in to comment.