Support create default VPC and create default vSwitch .

This commit is contained in:
sdk-team
2023-03-10 11:24:03 +00:00
parent 67629320ba
commit 262fc718c8
82 changed files with 1361 additions and 57 deletions

View File

@@ -106,6 +106,10 @@
#include "model/CreateCommonBandwidthPackageResult.h"
#include "model/CreateCustomerGatewayRequest.h"
#include "model/CreateCustomerGatewayResult.h"
#include "model/CreateDefaultVSwitchRequest.h"
#include "model/CreateDefaultVSwitchResult.h"
#include "model/CreateDefaultVpcRequest.h"
#include "model/CreateDefaultVpcResult.h"
#include "model/CreateDhcpOptionsSetRequest.h"
#include "model/CreateDhcpOptionsSetResult.h"
#include "model/CreateExpressCloudConnectionRequest.h"
@@ -853,6 +857,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateCustomerGatewayResult> CreateCustomerGatewayOutcome;
typedef std::future<CreateCustomerGatewayOutcome> CreateCustomerGatewayOutcomeCallable;
typedef std::function<void(const VpcClient*, const Model::CreateCustomerGatewayRequest&, const CreateCustomerGatewayOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCustomerGatewayAsyncHandler;
typedef Outcome<Error, Model::CreateDefaultVSwitchResult> CreateDefaultVSwitchOutcome;
typedef std::future<CreateDefaultVSwitchOutcome> CreateDefaultVSwitchOutcomeCallable;
typedef std::function<void(const VpcClient*, const Model::CreateDefaultVSwitchRequest&, const CreateDefaultVSwitchOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDefaultVSwitchAsyncHandler;
typedef Outcome<Error, Model::CreateDefaultVpcResult> CreateDefaultVpcOutcome;
typedef std::future<CreateDefaultVpcOutcome> CreateDefaultVpcOutcomeCallable;
typedef std::function<void(const VpcClient*, const Model::CreateDefaultVpcRequest&, const CreateDefaultVpcOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDefaultVpcAsyncHandler;
typedef Outcome<Error, Model::CreateDhcpOptionsSetResult> CreateDhcpOptionsSetOutcome;
typedef std::future<CreateDhcpOptionsSetOutcome> CreateDhcpOptionsSetOutcomeCallable;
typedef std::function<void(const VpcClient*, const Model::CreateDhcpOptionsSetRequest&, const CreateDhcpOptionsSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDhcpOptionsSetAsyncHandler;
@@ -1902,6 +1912,12 @@ namespace AlibabaCloud
CreateCustomerGatewayOutcome createCustomerGateway(const Model::CreateCustomerGatewayRequest &request)const;
void createCustomerGatewayAsync(const Model::CreateCustomerGatewayRequest& request, const CreateCustomerGatewayAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateCustomerGatewayOutcomeCallable createCustomerGatewayCallable(const Model::CreateCustomerGatewayRequest& request) const;
CreateDefaultVSwitchOutcome createDefaultVSwitch(const Model::CreateDefaultVSwitchRequest &request)const;
void createDefaultVSwitchAsync(const Model::CreateDefaultVSwitchRequest& request, const CreateDefaultVSwitchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDefaultVSwitchOutcomeCallable createDefaultVSwitchCallable(const Model::CreateDefaultVSwitchRequest& request) const;
CreateDefaultVpcOutcome createDefaultVpc(const Model::CreateDefaultVpcRequest &request)const;
void createDefaultVpcAsync(const Model::CreateDefaultVpcRequest& request, const CreateDefaultVpcAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDefaultVpcOutcomeCallable createDefaultVpcCallable(const Model::CreateDefaultVpcRequest& request) const;
CreateDhcpOptionsSetOutcome createDhcpOptionsSet(const Model::CreateDhcpOptionsSetRequest &request)const;
void createDhcpOptionsSetAsync(const Model::CreateDhcpOptionsSetRequest& request, const CreateDhcpOptionsSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDhcpOptionsSetOutcomeCallable createDhcpOptionsSetCallable(const Model::CreateDhcpOptionsSetRequest& request) const;

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_VPC_MODEL_CREATEDEFAULTVSWITCHREQUEST_H_
#define ALIBABACLOUD_VPC_MODEL_CREATEDEFAULTVSWITCHREQUEST_H_
#include <alibabacloud/vpc/VpcExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Vpc {
namespace Model {
class ALIBABACLOUD_VPC_EXPORT CreateDefaultVSwitchRequest : public RpcServiceRequest {
public:
CreateDefaultVSwitchRequest();
~CreateDefaultVSwitchRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
int getIpv6CidrBlock() const;
void setIpv6CidrBlock(int ipv6CidrBlock);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
private:
long resourceOwnerId_;
std::string clientToken_;
std::string regionId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
int ipv6CidrBlock_;
std::string zoneId_;
};
} // namespace Model
} // namespace Vpc
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_VPC_MODEL_CREATEDEFAULTVSWITCHREQUEST_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_VPC_MODEL_CREATEDEFAULTVSWITCHRESULT_H_
#define ALIBABACLOUD_VPC_MODEL_CREATEDEFAULTVSWITCHRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vpc/VpcExport.h>
namespace AlibabaCloud
{
namespace Vpc
{
namespace Model
{
class ALIBABACLOUD_VPC_EXPORT CreateDefaultVSwitchResult : public ServiceResult
{
public:
CreateDefaultVSwitchResult();
explicit CreateDefaultVSwitchResult(const std::string &payload);
~CreateDefaultVSwitchResult();
std::string getVSwitchId()const;
protected:
void parse(const std::string &payload);
private:
std::string vSwitchId_;
};
}
}
}
#endif // !ALIBABACLOUD_VPC_MODEL_CREATEDEFAULTVSWITCHRESULT_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_VPC_MODEL_CREATEDEFAULTVPCREQUEST_H_
#define ALIBABACLOUD_VPC_MODEL_CREATEDEFAULTVPCREQUEST_H_
#include <alibabacloud/vpc/VpcExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Vpc {
namespace Model {
class ALIBABACLOUD_VPC_EXPORT CreateDefaultVpcRequest : public RpcServiceRequest {
public:
CreateDefaultVpcRequest();
~CreateDefaultVpcRequest();
bool getEnableDefaultVSwitch() const;
void setEnableDefaultVSwitch(bool enableDefaultVSwitch);
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
bool getEnableIpv6() const;
void setEnableIpv6(bool enableIpv6);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getIpv6CidrBlock() const;
void setIpv6CidrBlock(const std::string &ipv6CidrBlock);
std::vector<std::string> getZoneId() const;
void setZoneId(const std::vector<std::string> &zoneId);
private:
bool enableDefaultVSwitch_;
long resourceOwnerId_;
std::string clientToken_;
bool enableIpv6_;
std::string resourceGroupId_;
std::string regionId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string ipv6CidrBlock_;
std::vector<std::string> zoneId_;
};
} // namespace Model
} // namespace Vpc
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_VPC_MODEL_CREATEDEFAULTVPCREQUEST_H_

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_VPC_MODEL_CREATEDEFAULTVPCRESULT_H_
#define ALIBABACLOUD_VPC_MODEL_CREATEDEFAULTVPCRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vpc/VpcExport.h>
namespace AlibabaCloud
{
namespace Vpc
{
namespace Model
{
class ALIBABACLOUD_VPC_EXPORT CreateDefaultVpcResult : public ServiceResult
{
public:
struct DefaultVSwitch
{
std::string zoneId;
std::string vSwitchId;
};
CreateDefaultVpcResult();
explicit CreateDefaultVpcResult(const std::string &payload);
~CreateDefaultVpcResult();
std::string getVRouterId()const;
std::vector<DefaultVSwitch> getDefaultVSwitchs()const;
std::string getRouteTableId()const;
std::string getVpcId()const;
protected:
void parse(const std::string &payload);
private:
std::string vRouterId_;
std::vector<DefaultVSwitch> defaultVSwitchs_;
std::string routeTableId_;
std::string vpcId_;
};
}
}
}
#endif // !ALIBABACLOUD_VPC_MODEL_CREATEDEFAULTVPCRESULT_H_

View File

@@ -34,6 +34,8 @@ public:
void setResourceOwnerId(long resourceOwnerId);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getResourceId() const;
@@ -62,6 +64,7 @@ public:
private:
long resourceOwnerId_;
std::string description_;
std::string resourceGroupId_;
std::string regionId_;
std::string resourceId_;
std::string projectName_;

View File

@@ -37,12 +37,14 @@ namespace AlibabaCloud
CreateFlowLogResult();
explicit CreateFlowLogResult(const std::string &payload);
~CreateFlowLogResult();
std::string getResourceGroupId()const;
std::string getFlowLogId()const;
std::string getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string resourceGroupId_;
std::string flowLogId_;
std::string success_;

View File

@@ -38,6 +38,8 @@ public:
void setClientToken(const std::string &clientToken);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getResourceOwnerAccount() const;
@@ -56,6 +58,7 @@ private:
long resourceOwnerId_;
std::string clientToken_;
std::string description_;
std::string resourceGroupId_;
std::string regionId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;

View File

@@ -38,6 +38,8 @@ public:
void setClientToken(const std::string &clientToken);
std::string getIpv4GatewayName() const;
void setIpv4GatewayName(const std::string &ipv4GatewayName);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
bool getDryRun() const;
@@ -56,6 +58,7 @@ private:
long resourceOwnerId_;
std::string clientToken_;
std::string ipv4GatewayName_;
std::string resourceGroupId_;
std::string regionId_;
bool dryRun_;
std::string resourceOwnerAccount_;

View File

@@ -38,11 +38,13 @@ namespace AlibabaCloud
explicit CreateIpv4GatewayResult(const std::string &payload);
~CreateIpv4GatewayResult();
std::string getIpv4GatewayId()const;
std::string getResourceGroupId()const;
protected:
void parse(const std::string &payload);
private:
std::string ipv4GatewayId_;
std::string resourceGroupId_;
};
}

View File

@@ -38,6 +38,8 @@ public:
void setDescription(const std::string &description);
std::string getSpec() const;
void setSpec(const std::string &spec);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getResourceOwnerAccount() const;
@@ -56,6 +58,7 @@ private:
std::string clientToken_;
std::string description_;
std::string spec_;
std::string resourceGroupId_;
std::string regionId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;

View File

@@ -37,11 +37,13 @@ namespace AlibabaCloud
CreateIpv6GatewayResult();
explicit CreateIpv6GatewayResult(const std::string &payload);
~CreateIpv6GatewayResult();
std::string getResourceGroupId()const;
std::string getIpv6GatewayId()const;
protected:
void parse(const std::string &payload);
private:
std::string resourceGroupId_;
std::string ipv6GatewayId_;
};

View File

@@ -56,6 +56,8 @@ public:
void setIngressRules(const std::vector<IngressRules> &ingressRules);
std::string getTrafficMirrorFilterName() const;
void setTrafficMirrorFilterName(const std::string &trafficMirrorFilterName);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::vector<EgressRules> getEgressRules() const;
@@ -76,6 +78,7 @@ private:
std::string clientToken_;
std::vector<IngressRules> ingressRules_;
std::string trafficMirrorFilterName_;
std::string resourceGroupId_;
std::string regionId_;
std::vector<EgressRules> egressRules_;
bool dryRun_;

View File

@@ -37,11 +37,13 @@ namespace AlibabaCloud
CreateTrafficMirrorFilterResult();
explicit CreateTrafficMirrorFilterResult(const std::string &payload);
~CreateTrafficMirrorFilterResult();
std::string getResourceGroupId()const;
std::string getTrafficMirrorFilterId()const;
protected:
void parse(const std::string &payload);
private:
std::string resourceGroupId_;
std::string trafficMirrorFilterId_;
};

View File

@@ -38,6 +38,8 @@ public:
void setClientToken(const std::string &clientToken);
bool getEnabled() const;
void setEnabled(bool enabled);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getTrafficMirrorSessionName() const;
void setTrafficMirrorSessionName(const std::string &trafficMirrorSessionName);
std::string getRegionId() const;
@@ -70,6 +72,7 @@ private:
long resourceOwnerId_;
std::string clientToken_;
bool enabled_;
std::string resourceGroupId_;
std::string trafficMirrorSessionName_;
std::string regionId_;
std::string trafficMirrorSessionDescription_;

View File

@@ -37,11 +37,13 @@ namespace AlibabaCloud
CreateTrafficMirrorSessionResult();
explicit CreateTrafficMirrorSessionResult(const std::string &payload);
~CreateTrafficMirrorSessionResult();
std::string getResourceGroupId()const;
std::string getTrafficMirrorSessionId()const;
protected:
void parse(const std::string &payload);
private:
std::string resourceGroupId_;
std::string trafficMirrorSessionId_;
};

View File

@@ -34,6 +34,10 @@ public:
void setResourceOwnerId(long resourceOwnerId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
bool getForceDelete() const;
void setForceDelete(bool forceDelete);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
@@ -46,6 +50,8 @@ public:
private:
long resourceOwnerId_;
std::string regionId_;
bool forceDelete_;
bool dryRun_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;

View File

@@ -43,6 +43,7 @@ namespace AlibabaCloud
std::string vbrRegionNo;
long vbrOwnerUid;
std::string instanceId;
std::string grantType;
long aliUid;
};

View File

@@ -72,6 +72,8 @@ public:
void setSegmentInstanceId(const std::string &segmentInstanceId);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getBandwidthPackageId() const;
void setBandwidthPackageId(const std::string &bandwidthPackageId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
@@ -109,6 +111,7 @@ private:
std::vector<Tag> tag_;
std::string segmentInstanceId_;
bool dryRun_;
std::string bandwidthPackageId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string filter1Value_;

View File

@@ -28,6 +28,10 @@ namespace Vpc {
namespace Model {
class ALIBABACLOUD_VPC_EXPORT DescribeFlowLogsRequest : public RpcServiceRequest {
public:
struct Tags {
std::string value;
std::string key;
};
DescribeFlowLogsRequest();
~DescribeFlowLogsRequest();
long getResourceOwnerId() const;
@@ -36,6 +40,8 @@ public:
void setDescription(const std::string &description);
int getPageNumber() const;
void setPageNumber(int pageNumber);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
int getPageSize() const;
@@ -54,6 +60,8 @@ public:
void setOwnerId(long ownerId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::vector<Tags> getTags() const;
void setTags(const std::vector<Tags> &tags);
std::string getVpcId() const;
void setVpcId(const std::string &vpcId);
std::string getTrafficType() const;
@@ -69,6 +77,7 @@ private:
long resourceOwnerId_;
std::string description_;
int pageNumber_;
std::string resourceGroupId_;
std::string regionId_;
int pageSize_;
std::string resourceId_;
@@ -78,6 +87,7 @@ private:
std::string ownerAccount_;
long ownerId_;
std::string resourceType_;
std::vector<Tags> tags_;
std::string vpcId_;
std::string trafficType_;
std::string flowLogId_;

View File

@@ -34,8 +34,14 @@ namespace AlibabaCloud
public:
struct FlowLog
{
struct Tag
{
std::string value;
std::string key;
};
std::string status;
std::string description;
std::string resourceGroupId;
std::vector<std::string> trafficPath;
std::string projectName;
std::string resourceType;
@@ -48,6 +54,7 @@ namespace AlibabaCloud
std::string creationTime;
std::string regionId;
int aggregationInterval;
std::vector<FlowLog::Tag> tags;
std::string trafficType;
};

View File

@@ -28,6 +28,10 @@ namespace Vpc {
namespace Model {
class ALIBABACLOUD_VPC_EXPORT DescribeHaVipsRequest : public RpcServiceRequest {
public:
struct Tags {
std::string value;
std::string key;
};
struct Filter {
std::string key;
};
@@ -37,6 +41,8 @@ public:
void setResourceOwnerId(long resourceOwnerId);
int getPageNumber() const;
void setPageNumber(int pageNumber);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
int getPageSize() const;
@@ -47,17 +53,21 @@ public:
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::vector<Tags> getTags() const;
void setTags(const std::vector<Tags> &tags);
std::vector<Filter> getFilter() const;
void setFilter(const std::vector<Filter> &filter);
private:
long resourceOwnerId_;
int pageNumber_;
std::string resourceGroupId_;
std::string regionId_;
int pageSize_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::vector<Tags> tags_;
std::vector<Filter> filter_;
};
} // namespace Model

View File

@@ -34,8 +34,14 @@ namespace AlibabaCloud
public:
struct HaVip
{
struct Tag
{
std::string value;
std::string key;
};
std::string status;
std::string description;
std::string resourceGroupId;
std::vector<std::string> associatedEipAddresses;
std::string createTime;
std::string vSwitchId;
@@ -48,6 +54,7 @@ namespace AlibabaCloud
std::string ipAddress;
std::string regionId;
std::string associatedInstanceType;
std::vector<HaVip::Tag> tags;
};

View File

@@ -32,6 +32,11 @@ namespace AlibabaCloud
class ALIBABACLOUD_VPC_EXPORT DescribeIpv6GatewayAttributeResult : public ServiceResult
{
public:
struct Tag
{
std::string value;
std::string key;
};
DescribeIpv6GatewayAttributeResult();
@@ -39,30 +44,34 @@ namespace AlibabaCloud
~DescribeIpv6GatewayAttributeResult();
std::string getStatus()const;
std::string getDescription()const;
std::string getVpcId()const;
std::string getResourceGroupId()const;
std::string getInstanceChargeType()const;
std::string getExpiredTime()const;
std::string getCreationTime()const;
std::string getIpv6GatewayId()const;
std::string getRegionId()const;
std::string getSpec()const;
std::string getBusinessStatus()const;
std::string getName()const;
std::string getVpcId()const;
std::string getExpiredTime()const;
std::string getCreationTime()const;
std::string getRegionId()const;
std::string getSpec()const;
std::vector<Tag> getTags()const;
protected:
void parse(const std::string &payload);
private:
std::string status_;
std::string description_;
std::string vpcId_;
std::string resourceGroupId_;
std::string instanceChargeType_;
std::string expiredTime_;
std::string creationTime_;
std::string ipv6GatewayId_;
std::string regionId_;
std::string spec_;
std::string businessStatus_;
std::string name_;
std::string vpcId_;
std::string expiredTime_;
std::string creationTime_;
std::string regionId_;
std::string spec_;
std::vector<Tag> tags_;
};
}

View File

@@ -28,12 +28,18 @@ namespace Vpc {
namespace Model {
class ALIBABACLOUD_VPC_EXPORT DescribeIpv6GatewaysRequest : public RpcServiceRequest {
public:
struct Tags {
std::string key;
std::string value;
};
DescribeIpv6GatewaysRequest();
~DescribeIpv6GatewaysRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
int getPageNumber() const;
void setPageNumber(int pageNumber);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
int getPageSize() const;
@@ -44,6 +50,8 @@ public:
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::vector<Tags> getTags() const;
void setTags(const std::vector<Tags> &tags);
std::string getVpcId() const;
void setVpcId(const std::string &vpcId);
std::string getIpv6GatewayId() const;
@@ -54,11 +62,13 @@ public:
private:
long resourceOwnerId_;
int pageNumber_;
std::string resourceGroupId_;
std::string regionId_;
int pageSize_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::vector<Tags> tags_;
std::string vpcId_;
std::string ipv6GatewayId_;
std::string name_;

View File

@@ -34,17 +34,24 @@ namespace AlibabaCloud
public:
struct Ipv6Gateway
{
struct Tag
{
std::string value;
std::string key;
};
std::string status;
std::string description;
std::string vpcId;
std::string resourceGroupId;
std::string instanceChargeType;
std::string expiredTime;
std::string creationTime;
std::string ipv6GatewayId;
std::string regionId;
std::string spec;
std::string businessStatus;
std::string name;
std::string vpcId;
std::string expiredTime;
std::string creationTime;
std::string regionId;
std::string spec;
std::vector<Ipv6Gateway::Tag> tags;
};

View File

@@ -62,6 +62,11 @@ namespace AlibabaCloud
std::string resourceId;
std::string resourceType;
};
struct Tag
{
std::string value;
std::string key;
};
std::vector<IngressAclEntry> ingressAclEntries;
std::string status;
std::string description;
@@ -73,6 +78,7 @@ namespace AlibabaCloud
std::string networkAclName;
std::vector<Resource> resources;
std::string regionId;
std::vector<Tag> tags;
};

View File

@@ -28,6 +28,10 @@ namespace Vpc {
namespace Model {
class ALIBABACLOUD_VPC_EXPORT DescribeNetworkAclsRequest : public RpcServiceRequest {
public:
struct Tags {
std::string key;
std::string value;
};
DescribeNetworkAclsRequest();
~DescribeNetworkAclsRequest();
long getResourceOwnerId() const;
@@ -52,6 +56,8 @@ public:
void setOwnerId(long ownerId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::vector<Tags> getTags() const;
void setTags(const std::vector<Tags> &tags);
std::string getVpcId() const;
void setVpcId(const std::string &vpcId);
@@ -67,6 +73,7 @@ private:
std::string networkAclName_;
long ownerId_;
std::string resourceType_;
std::vector<Tags> tags_;
std::string vpcId_;
};
} // namespace Model

View File

@@ -62,6 +62,11 @@ namespace AlibabaCloud
std::string resourceId;
std::string resourceType;
};
struct Tag
{
std::string value;
std::string key;
};
std::vector<NetworkAcl::IngressAclEntry> ingressAclEntries;
std::string status;
std::string description;
@@ -73,6 +78,7 @@ namespace AlibabaCloud
std::string networkAclName;
std::vector<NetworkAcl::Resource> resources;
std::string regionId;
std::vector<NetworkAcl::Tag> tags;
};

View File

@@ -42,6 +42,11 @@ namespace AlibabaCloud
int resourceCount;
std::string resourceType;
};
struct Tag
{
std::string value;
std::string key;
};
DescribeVSwitchAttributesResult();
@@ -63,6 +68,7 @@ namespace AlibabaCloud
std::string getVSwitchName()const;
std::string getIpv6CidrBlock()const;
std::vector<CloudResourceSetType> getCloudResources()const;
std::vector<Tag> getTags()const;
std::string getShareType()const;
protected:
@@ -84,6 +90,7 @@ namespace AlibabaCloud
std::string vSwitchName_;
std::string ipv6CidrBlock_;
std::vector<CloudResourceSetType> cloudResources_;
std::vector<Tag> tags_;
std::string shareType_;
};

View File

@@ -32,6 +32,11 @@ namespace AlibabaCloud
class ALIBABACLOUD_VPC_EXPORT GetIpv4GatewayAttributeResult : public ServiceResult
{
public:
struct Tag
{
std::string value;
std::string key;
};
GetIpv4GatewayAttributeResult();
@@ -42,8 +47,10 @@ namespace AlibabaCloud
std::string getIpv4GatewayName()const;
std::string getVpcId()const;
std::string getIpv4GatewayId()const;
std::string getResourceGroupId()const;
std::string getCreateTime()const;
bool getEnabled()const;
std::vector<Tag> getTags()const;
std::string getIpv4GatewayDescription()const;
protected:
@@ -54,8 +61,10 @@ namespace AlibabaCloud
std::string ipv4GatewayName_;
std::string vpcId_;
std::string ipv4GatewayId_;
std::string resourceGroupId_;
std::string createTime_;
bool enabled_;
std::vector<Tag> tags_;
std::string ipv4GatewayDescription_;
};

View File

@@ -28,12 +28,18 @@ namespace Vpc {
namespace Model {
class ALIBABACLOUD_VPC_EXPORT ListIpv4GatewaysRequest : public RpcServiceRequest {
public:
struct Tags {
std::string key;
std::string value;
};
ListIpv4GatewaysRequest();
~ListIpv4GatewaysRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getIpv4GatewayName() const;
void setIpv4GatewayName(const std::string &ipv4GatewayName);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNextToken() const;
@@ -46,6 +52,8 @@ public:
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::vector<Tags> getTags() const;
void setTags(const std::vector<Tags> &tags);
std::string getVpcId() const;
void setVpcId(const std::string &vpcId);
int getMaxResults() const;
@@ -54,12 +62,14 @@ public:
private:
long resourceOwnerId_;
std::string ipv4GatewayName_;
std::string resourceGroupId_;
std::string regionId_;
std::string nextToken_;
std::string ipv4GatewayId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::vector<Tags> tags_;
std::string vpcId_;
int maxResults_;
};

View File

@@ -34,13 +34,20 @@ namespace AlibabaCloud
public:
struct Ipv4GatewayModelsItem
{
struct Tag
{
std::string value;
std::string key;
};
std::string status;
std::string gmtCreate;
std::string ipv4GatewayRouteTableId;
std::string ipv4GatewayName;
std::string vpcId;
std::string ipv4GatewayId;
std::string resourceGroupId;
bool enabled;
std::vector<Ipv4GatewayModelsItem::Tag> tags;
std::string ipv4GatewayDescription;
};

View File

@@ -29,17 +29,17 @@ namespace Model {
class ALIBABACLOUD_VPC_EXPORT ListTagResourcesRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
std::string value;
};
ListTagResourcesRequest();
~ListTagResourcesRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::vector<std::string> getResourceId() const;
@@ -57,8 +57,8 @@ public:
private:
long resourceOwnerId_;
std::string regionId_;
std::string nextToken_;
std::string regionId_;
std::vector<Tag> tag_;
std::vector<std::string> resourceId_;
std::string resourceOwnerAccount_;

View File

@@ -28,6 +28,10 @@ namespace Vpc {
namespace Model {
class ALIBABACLOUD_VPC_EXPORT ListTrafficMirrorFiltersRequest : public RpcServiceRequest {
public:
struct Tags {
std::string key;
std::string value;
};
ListTrafficMirrorFiltersRequest();
~ListTrafficMirrorFiltersRequest();
long getResourceOwnerId() const;
@@ -36,6 +40,8 @@ public:
void setTrafficMirrorFilterIds(const std::vector<std::string> &trafficMirrorFilterIds);
std::string getTrafficMirrorFilterName() const;
void setTrafficMirrorFilterName(const std::string &trafficMirrorFilterName);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::string getRegionId() const;
@@ -46,6 +52,8 @@ public:
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::vector<Tags> getTags() const;
void setTags(const std::vector<Tags> &tags);
int getMaxResults() const;
void setMaxResults(int maxResults);
@@ -53,11 +61,13 @@ private:
long resourceOwnerId_;
std::vector<std::string> trafficMirrorFilterIds_;
std::string trafficMirrorFilterName_;
std::string resourceGroupId_;
std::string nextToken_;
std::string regionId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::vector<Tags> tags_;
int maxResults_;
};
} // namespace Model

View File

@@ -62,11 +62,18 @@ namespace AlibabaCloud
std::string protocol;
std::string trafficMirrorFilterId;
};
struct Tag
{
std::string value;
std::string key;
};
std::string trafficMirrorFilterDescription;
std::string resourceGroupId;
std::vector<TrafficMirrorFilter::TrafficMirrorRule> egressRules;
std::string trafficMirrorFilterStatus;
std::string trafficMirrorFilterId;
std::string trafficMirrorFilterName;
std::vector<TrafficMirrorFilter::Tag> tags;
std::vector<TrafficMirrorFilter::TrafficMirrorRule> ingressRules;
};

View File

@@ -28,6 +28,10 @@ namespace Vpc {
namespace Model {
class ALIBABACLOUD_VPC_EXPORT ListTrafficMirrorSessionsRequest : public RpcServiceRequest {
public:
struct Tags {
std::string key;
std::string value;
};
ListTrafficMirrorSessionsRequest();
~ListTrafficMirrorSessionsRequest();
long getResourceOwnerId() const;
@@ -36,6 +40,8 @@ public:
void setTrafficMirrorSourceId(const std::string &trafficMirrorSourceId);
bool getEnabled() const;
void setEnabled(bool enabled);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getTrafficMirrorSessionName() const;
void setTrafficMirrorSessionName(const std::string &trafficMirrorSessionName);
std::string getNextToken() const;
@@ -56,6 +62,8 @@ public:
void setTrafficMirrorTargetId(const std::string &trafficMirrorTargetId);
std::string getTrafficMirrorFilterId() const;
void setTrafficMirrorFilterId(const std::string &trafficMirrorFilterId);
std::vector<Tags> getTags() const;
void setTags(const std::vector<Tags> &tags);
int getMaxResults() const;
void setMaxResults(int maxResults);
int getVirtualNetworkId() const;
@@ -65,6 +73,7 @@ private:
long resourceOwnerId_;
std::string trafficMirrorSourceId_;
bool enabled_;
std::string resourceGroupId_;
std::string trafficMirrorSessionName_;
std::string nextToken_;
std::string regionId_;
@@ -75,6 +84,7 @@ private:
long ownerId_;
std::string trafficMirrorTargetId_;
std::string trafficMirrorFilterId_;
std::vector<Tags> tags_;
int maxResults_;
int virtualNetworkId_;
};

View File

@@ -34,7 +34,13 @@ namespace AlibabaCloud
public:
struct TrafficMirrorSession
{
struct Tag
{
std::string value;
std::string key;
};
std::string trafficMirrorTargetId;
std::string resourceGroupId;
int virtualNetworkId;
int priority;
std::string trafficMirrorSessionBusinessStatus;
@@ -46,6 +52,7 @@ namespace AlibabaCloud
std::string trafficMirrorSessionStatus;
std::string trafficMirrorSessionDescription;
std::string trafficMirrorSessionName;
std::vector<TrafficMirrorSession::Tag> tags;
std::string trafficMirrorTargetType;
};

View File

@@ -29,8 +29,8 @@ namespace Model {
class ALIBABACLOUD_VPC_EXPORT TagResourcesRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
std::string value;
};
TagResourcesRequest();
~TagResourcesRequest();

View File

@@ -29,8 +29,8 @@ namespace Model {
class ALIBABACLOUD_VPC_EXPORT UnTagResourcesRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
std::string value;
};
UnTagResourcesRequest();
~UnTagResourcesRequest();