Support ListNodeInfos4Pod.

This commit is contained in:
sdk-team
2023-09-04 06:09:08 +00:00
parent 22a89cfe51
commit 8d45c4275f
12 changed files with 582 additions and 1 deletions

View File

@@ -82,6 +82,8 @@
#include "model/GetLniPrivateIpAddressResult.h"
#include "model/GetNetworkInterfaceRequest.h"
#include "model/GetNetworkInterfaceResult.h"
#include "model/GetNodeInfoForPodRequest.h"
#include "model/GetNodeInfoForPodResult.h"
#include "model/GetSubnetRequest.h"
#include "model/GetSubnetResult.h"
#include "model/GetVccRequest.h"
@@ -114,6 +116,8 @@
#include "model/ListLniPrivateIpAddressResult.h"
#include "model/ListNetworkInterfacesRequest.h"
#include "model/ListNetworkInterfacesResult.h"
#include "model/ListNodeInfosForPodRequest.h"
#include "model/ListNodeInfosForPodResult.h"
#include "model/ListSubnetsRequest.h"
#include "model/ListSubnetsResult.h"
#include "model/ListVccGrantRulesRequest.h"
@@ -247,6 +251,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetNetworkInterfaceResult> GetNetworkInterfaceOutcome;
typedef std::future<GetNetworkInterfaceOutcome> GetNetworkInterfaceOutcomeCallable;
typedef std::function<void(const EfloClient*, const Model::GetNetworkInterfaceRequest&, const GetNetworkInterfaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNetworkInterfaceAsyncHandler;
typedef Outcome<Error, Model::GetNodeInfoForPodResult> GetNodeInfoForPodOutcome;
typedef std::future<GetNodeInfoForPodOutcome> GetNodeInfoForPodOutcomeCallable;
typedef std::function<void(const EfloClient*, const Model::GetNodeInfoForPodRequest&, const GetNodeInfoForPodOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNodeInfoForPodAsyncHandler;
typedef Outcome<Error, Model::GetSubnetResult> GetSubnetOutcome;
typedef std::future<GetSubnetOutcome> GetSubnetOutcomeCallable;
typedef std::function<void(const EfloClient*, const Model::GetSubnetRequest&, const GetSubnetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSubnetAsyncHandler;
@@ -295,6 +302,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListNetworkInterfacesResult> ListNetworkInterfacesOutcome;
typedef std::future<ListNetworkInterfacesOutcome> ListNetworkInterfacesOutcomeCallable;
typedef std::function<void(const EfloClient*, const Model::ListNetworkInterfacesRequest&, const ListNetworkInterfacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListNetworkInterfacesAsyncHandler;
typedef Outcome<Error, Model::ListNodeInfosForPodResult> ListNodeInfosForPodOutcome;
typedef std::future<ListNodeInfosForPodOutcome> ListNodeInfosForPodOutcomeCallable;
typedef std::function<void(const EfloClient*, const Model::ListNodeInfosForPodRequest&, const ListNodeInfosForPodOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListNodeInfosForPodAsyncHandler;
typedef Outcome<Error, Model::ListSubnetsResult> ListSubnetsOutcome;
typedef std::future<ListSubnetsOutcome> ListSubnetsOutcomeCallable;
typedef std::function<void(const EfloClient*, const Model::ListSubnetsRequest&, const ListSubnetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSubnetsAsyncHandler;
@@ -441,6 +451,9 @@ namespace AlibabaCloud
GetNetworkInterfaceOutcome getNetworkInterface(const Model::GetNetworkInterfaceRequest &request)const;
void getNetworkInterfaceAsync(const Model::GetNetworkInterfaceRequest& request, const GetNetworkInterfaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetNetworkInterfaceOutcomeCallable getNetworkInterfaceCallable(const Model::GetNetworkInterfaceRequest& request) const;
GetNodeInfoForPodOutcome getNodeInfoForPod(const Model::GetNodeInfoForPodRequest &request)const;
void getNodeInfoForPodAsync(const Model::GetNodeInfoForPodRequest& request, const GetNodeInfoForPodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetNodeInfoForPodOutcomeCallable getNodeInfoForPodCallable(const Model::GetNodeInfoForPodRequest& request) const;
GetSubnetOutcome getSubnet(const Model::GetSubnetRequest &request)const;
void getSubnetAsync(const Model::GetSubnetRequest& request, const GetSubnetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSubnetOutcomeCallable getSubnetCallable(const Model::GetSubnetRequest& request) const;
@@ -489,6 +502,9 @@ namespace AlibabaCloud
ListNetworkInterfacesOutcome listNetworkInterfaces(const Model::ListNetworkInterfacesRequest &request)const;
void listNetworkInterfacesAsync(const Model::ListNetworkInterfacesRequest& request, const ListNetworkInterfacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListNetworkInterfacesOutcomeCallable listNetworkInterfacesCallable(const Model::ListNetworkInterfacesRequest& request) const;
ListNodeInfosForPodOutcome listNodeInfosForPod(const Model::ListNodeInfosForPodRequest &request)const;
void listNodeInfosForPodAsync(const Model::ListNodeInfosForPodRequest& request, const ListNodeInfosForPodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListNodeInfosForPodOutcomeCallable listNodeInfosForPodCallable(const Model::ListNodeInfosForPodRequest& request) const;
ListSubnetsOutcome listSubnets(const Model::ListSubnetsRequest &request)const;
void listSubnetsAsync(const Model::ListSubnetsRequest& request, const ListSubnetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListSubnetsOutcomeCallable listSubnetsCallable(const Model::ListSubnetsRequest& request) const;

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EFLO_MODEL_GETNODEINFOFORPODREQUEST_H_
#define ALIBABACLOUD_EFLO_MODEL_GETNODEINFOFORPODREQUEST_H_
#include <alibabacloud/eflo/EfloExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eflo {
namespace Model {
class ALIBABACLOUD_EFLO_EXPORT GetNodeInfoForPodRequest : public RpcServiceRequest {
public:
GetNodeInfoForPodRequest();
~GetNodeInfoForPodRequest();
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNodeId() const;
void setNodeId(const std::string &nodeId);
private:
std::string regionId_;
std::string nodeId_;
};
} // namespace Model
} // namespace Eflo
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EFLO_MODEL_GETNODEINFOFORPODREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_EFLO_MODEL_GETNODEINFOFORPODRESULT_H_
#define ALIBABACLOUD_EFLO_MODEL_GETNODEINFOFORPODRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eflo/EfloExport.h>
namespace AlibabaCloud
{
namespace Eflo
{
namespace Model
{
class ALIBABACLOUD_EFLO_EXPORT GetNodeInfoForPodResult : public ServiceResult
{
public:
struct Content
{
std::string vpcId;
std::string clusterId;
int lniSipQuota;
std::string nodeId;
int leniQuota;
std::vector<std::string> vSwitches;
std::string regionId;
};
GetNodeInfoForPodResult();
explicit GetNodeInfoForPodResult(const std::string &payload);
~GetNodeInfoForPodResult();
std::string getMessage()const;
Content getContent()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Content content_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_EFLO_MODEL_GETNODEINFOFORPODRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_EFLO_MODEL_LISTNODEINFOSFORPODREQUEST_H_
#define ALIBABACLOUD_EFLO_MODEL_LISTNODEINFOSFORPODREQUEST_H_
#include <alibabacloud/eflo/EfloExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eflo {
namespace Model {
class ALIBABACLOUD_EFLO_EXPORT ListNodeInfosForPodRequest : public RpcServiceRequest {
public:
ListNodeInfosForPodRequest();
~ListNodeInfosForPodRequest();
std::string getClusterId() const;
void setClusterId(const std::string &clusterId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNodeId() const;
void setNodeId(const std::string &nodeId);
private:
std::string clusterId_;
std::string regionId_;
std::string nodeId_;
};
} // namespace Model
} // namespace Eflo
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EFLO_MODEL_LISTNODEINFOSFORPODREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_EFLO_MODEL_LISTNODEINFOSFORPODRESULT_H_
#define ALIBABACLOUD_EFLO_MODEL_LISTNODEINFOSFORPODRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eflo/EfloExport.h>
namespace AlibabaCloud
{
namespace Eflo
{
namespace Model
{
class ALIBABACLOUD_EFLO_EXPORT ListNodeInfosForPodResult : public ServiceResult
{
public:
struct ContentItem
{
std::string vpcId;
std::string clusterId;
int lniSipQuota;
std::string nodeId;
int leniQuota;
std::vector<std::string> vSwitches;
std::string regionId;
};
ListNodeInfosForPodResult();
explicit ListNodeInfosForPodResult(const std::string &payload);
~ListNodeInfosForPodResult();
std::string getMessage()const;
std::vector<ContentItem> getContent()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<ContentItem> content_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_EFLO_MODEL_LISTNODEINFOSFORPODRESULT_H_