4 Star 81 Fork 15

tencentcloud/tencentcloud-sdk-java

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BmvpcClient.java 32.03 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2025-07-07 13:09 +08:00 . release 3.1.1294
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
/*
* Copyright (c) 2017-2025 Tencent. 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.
*/
package com.tencentcloudapi.bmvpc.v20180625;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.bmvpc.v20180625.models.*;
public class BmvpcClient extends AbstractClient{
private static String endpoint = "bmvpc.tencentcloudapi.com";
private static String service = "bmvpc";
private static String version = "2018-06-25";
public BmvpcClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public BmvpcClient(Credential credential, String region, ClientProfile profile) {
super(BmvpcClient.endpoint, BmvpcClient.version, credential, region, profile);
}
/**
*接受黑石对等连接
* @param req AcceptVpcPeerConnectionRequest
* @return AcceptVpcPeerConnectionResponse
* @throws TencentCloudSDKException
*/
public AcceptVpcPeerConnectionResponse AcceptVpcPeerConnection(AcceptVpcPeerConnectionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AcceptVpcPeerConnection", AcceptVpcPeerConnectionResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
批量注册虚拟IP,异步接口。通过接口来查询任务进度。每次请求最多注册256个IP
* @param req AsyncRegisterIpsRequest
* @return AsyncRegisterIpsResponse
* @throws TencentCloudSDKException
*/
public AsyncRegisterIpsResponse AsyncRegisterIps(AsyncRegisterIpsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AsyncRegisterIps", AsyncRegisterIpsResponse.class);
}
/**
*NAT网关绑定EIP接口,可将EIP绑定到NAT网关,该EIP作为访问外网的源IP地址,将流量发送到Internet
* @param req BindEipsToNatGatewayRequest
* @return BindEipsToNatGatewayResponse
* @throws TencentCloudSDKException
*/
public BindEipsToNatGatewayResponse BindEipsToNatGateway(BindEipsToNatGatewayRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BindEipsToNatGateway", BindEipsToNatGatewayResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
可用于将子网的部分IP绑定到NAT网关
* @param req BindIpsToNatGatewayRequest
* @return BindIpsToNatGatewayResponse
* @throws TencentCloudSDKException
*/
public BindIpsToNatGatewayResponse BindIpsToNatGateway(BindIpsToNatGatewayRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BindIpsToNatGateway", BindIpsToNatGatewayResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
NAT网关绑定子网后,该子网内全部IP可出公网
* @param req BindSubnetsToNatGatewayRequest
* @return BindSubnetsToNatGatewayResponse
* @throws TencentCloudSDKException
*/
public BindSubnetsToNatGatewayResponse BindSubnetsToNatGateway(BindSubnetsToNatGatewayRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BindSubnetsToNatGateway", BindSubnetsToNatGatewayResponse.class);
}
/**
*90天无调用
本接口(CreateCustomerGateway)用于创建对端网关。
* @param req CreateCustomerGatewayRequest
* @return CreateCustomerGatewayResponse
* @throws TencentCloudSDKException
*/
public CreateCustomerGatewayResponse CreateCustomerGateway(CreateCustomerGatewayRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateCustomerGateway", CreateCustomerGatewayResponse.class);
}
/**
*创建黑石Docker子网, 如果不指定VlanId,将会分配2000--2999范围的VlanId; 子网会关闭分布式网关
* @param req CreateDockerSubnetWithVlanRequest
* @return CreateDockerSubnetWithVlanResponse
* @throws TencentCloudSDKException
*/
public CreateDockerSubnetWithVlanResponse CreateDockerSubnetWithVlan(CreateDockerSubnetWithVlanRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateDockerSubnetWithVlan", CreateDockerSubnetWithVlanResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
本接口(CreateHostedInterface)用于黑石托管机器加入带VLANID不为5的子网。
1) 不能加入vlanId 为5的子网,只能加入VLANID范围为2000-2999的子网。
2) 每台托管机器最多可以加入20个子网。
3) 每次调用最多能支持传入10台托管机器。
* @param req CreateHostedInterfaceRequest
* @return CreateHostedInterfaceResponse
* @throws TencentCloudSDKException
*/
public CreateHostedInterfaceResponse CreateHostedInterface(CreateHostedInterfaceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateHostedInterface", CreateHostedInterfaceResponse.class);
}
/**
*物理机加入子网
* @param req CreateInterfacesRequest
* @return CreateInterfacesResponse
* @throws TencentCloudSDKException
*/
public CreateInterfacesResponse CreateInterfaces(CreateInterfacesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateInterfaces", CreateInterfacesResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
创建NAT网关接口,可针对网段方式、子网全部IP、子网部分IP这三种方式创建NAT网关
* @param req CreateNatGatewayRequest
* @return CreateNatGatewayResponse
* @throws TencentCloudSDKException
*/
public CreateNatGatewayResponse CreateNatGateway(CreateNatGatewayRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateNatGateway", CreateNatGatewayResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
创建黑石路由表的路由规则
* @param req CreateRoutePoliciesRequest
* @return CreateRoutePoliciesResponse
* @throws TencentCloudSDKException
*/
public CreateRoutePoliciesResponse CreateRoutePolicies(CreateRoutePoliciesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRoutePolicies", CreateRoutePoliciesResponse.class);
}
/**
*创建黑石私有网络的子网
访问管理: 用户可以对VpcId进行授权操作。例如设置资源为["qcs::bmvpc:::unVpc/vpc-xxxxx"]
* @param req CreateSubnetRequest
* @return CreateSubnetResponse
* @throws TencentCloudSDKException
*/
public CreateSubnetResponse CreateSubnet(CreateSubnetRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateSubnet", CreateSubnetResponse.class);
}
/**
*创建黑石虚拟子网, 虚拟子网用于在黑石上创建虚拟网络,与黑石子网要做好规划。虚拟子网会分配2000-2999的VlanId。
* @param req CreateVirtualSubnetWithVlanRequest
* @return CreateVirtualSubnetWithVlanResponse
* @throws TencentCloudSDKException
*/
public CreateVirtualSubnetWithVlanResponse CreateVirtualSubnetWithVlan(CreateVirtualSubnetWithVlanRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateVirtualSubnetWithVlan", CreateVirtualSubnetWithVlanResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
创建黑石私有网络
* @param req CreateVpcRequest
* @return CreateVpcResponse
* @throws TencentCloudSDKException
*/
public CreateVpcResponse CreateVpc(CreateVpcRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateVpc", CreateVpcResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
创建对等连接
* @param req CreateVpcPeerConnectionRequest
* @return CreateVpcPeerConnectionResponse
* @throws TencentCloudSDKException
*/
public CreateVpcPeerConnectionResponse CreateVpcPeerConnection(CreateVpcPeerConnectionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateVpcPeerConnection", CreateVpcPeerConnectionResponse.class);
}
/**
*本接口(DeleteCustomerGateway)用于删除对端网关。
* @param req DeleteCustomerGatewayRequest
* @return DeleteCustomerGatewayResponse
* @throws TencentCloudSDKException
*/
public DeleteCustomerGatewayResponse DeleteCustomerGateway(DeleteCustomerGatewayRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteCustomerGateway", DeleteCustomerGatewayResponse.class);
}
/**
*本接口用于托管机器从VLANID不为5的子网中移除。
1) 不能从vlanId 为5的子网中移除。
2) 每次调用最多能支持传入10台物理机。
* @param req DeleteHostedInterfaceRequest
* @return DeleteHostedInterfaceResponse
* @throws TencentCloudSDKException
*/
public DeleteHostedInterfaceResponse DeleteHostedInterface(DeleteHostedInterfaceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteHostedInterface", DeleteHostedInterfaceResponse.class);
}
/**
*托管机器移除子网批量接口,传入一台托管机器和多个子网,批量移除这些子网。异步接口,接口返回TaskId。
* @param req DeleteHostedInterfacesRequest
* @return DeleteHostedInterfacesResponse
* @throws TencentCloudSDKException
*/
public DeleteHostedInterfacesResponse DeleteHostedInterfaces(DeleteHostedInterfacesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteHostedInterfaces", DeleteHostedInterfacesResponse.class);
}
/**
*物理机移除子网批量接口,传入一台物理机和多个子网,批量移除这些子网。异步接口,接口返回TaskId。
* @param req DeleteInterfacesRequest
* @return DeleteInterfacesResponse
* @throws TencentCloudSDKException
*/
public DeleteInterfacesResponse DeleteInterfaces(DeleteInterfacesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteInterfaces", DeleteInterfacesResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
删除NAT网关
* @param req DeleteNatGatewayRequest
* @return DeleteNatGatewayResponse
* @throws TencentCloudSDKException
*/
public DeleteNatGatewayResponse DeleteNatGateway(DeleteNatGatewayRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteNatGateway", DeleteNatGatewayResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
删除黑石路由表路由规则
* @param req DeleteRoutePolicyRequest
* @return DeleteRoutePolicyResponse
* @throws TencentCloudSDKException
*/
public DeleteRoutePolicyResponse DeleteRoutePolicy(DeleteRoutePolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRoutePolicy", DeleteRoutePolicyResponse.class);
}
/**
*本接口(DeleteSubnet)用于删除黑石私有网络子网。
删除子网前,请清理该子网下所有资源,包括物理机、负载均衡、黑石数据库、弹性IP、NAT网关等资源
* @param req DeleteSubnetRequest
* @return DeleteSubnetResponse
* @throws TencentCloudSDKException
*/
public DeleteSubnetResponse DeleteSubnet(DeleteSubnetRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSubnet", DeleteSubnetResponse.class);
}
/**
*退还虚拟IP。此接口只能退还虚拟IP,物理机IP不能退还。
* @param req DeleteVirtualIpRequest
* @return DeleteVirtualIpResponse
* @throws TencentCloudSDKException
*/
public DeleteVirtualIpResponse DeleteVirtualIp(DeleteVirtualIpRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteVirtualIp", DeleteVirtualIpResponse.class);
}
/**
*本接口(DeleteVpc)用于删除黑石私有网络(VPC)。
删除私有网络前,请清理该私有网络下所有资源,包括子网、负载均衡、弹性 IP、对等连接、NAT 网关、专线通道、SSLVPN 等资源。
* @param req DeleteVpcRequest
* @return DeleteVpcResponse
* @throws TencentCloudSDKException
*/
public DeleteVpcResponse DeleteVpc(DeleteVpcRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteVpc", DeleteVpcResponse.class);
}
/**
*删除黑石对等连接
* @param req DeleteVpcPeerConnectionRequest
* @return DeleteVpcPeerConnectionResponse
* @throws TencentCloudSDKException
*/
public DeleteVpcPeerConnectionResponse DeleteVpcPeerConnection(DeleteVpcPeerConnectionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteVpcPeerConnection", DeleteVpcPeerConnectionResponse.class);
}
/**
*本接口(DeleteVpnConnection)用于删除VPN通道。
* @param req DeleteVpnConnectionRequest
* @return DeleteVpnConnectionResponse
* @throws TencentCloudSDKException
*/
public DeleteVpnConnectionResponse DeleteVpnConnection(DeleteVpnConnectionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteVpnConnection", DeleteVpnConnectionResponse.class);
}
/**
*本接口(DeleteVpnGateway)用于删除VPN网关。
* @param req DeleteVpnGatewayRequest
* @return DeleteVpnGatewayResponse
* @throws TencentCloudSDKException
*/
public DeleteVpnGatewayResponse DeleteVpnGateway(DeleteVpnGatewayRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteVpnGateway", DeleteVpnGatewayResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
注销私有网络IP为空闲
* @param req DeregisterIpsRequest
* @return DeregisterIpsResponse
* @throws TencentCloudSDKException
*/
public DeregisterIpsResponse DeregisterIps(DeregisterIpsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeregisterIps", DeregisterIpsResponse.class);
}
/**
*本接口(DescribeCustomerGateways)用于查询对端网关列表。
* @param req DescribeCustomerGatewaysRequest
* @return DescribeCustomerGatewaysResponse
* @throws TencentCloudSDKException
*/
public DescribeCustomerGatewaysResponse DescribeCustomerGateways(DescribeCustomerGatewaysRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCustomerGateways", DescribeCustomerGatewaysResponse.class);
}
/**
*获取NAT网关信息,包括NAT网关 ID、网关名称、私有网络、网关并发连接上限、绑定EIP列表等
* @param req DescribeNatGatewaysRequest
* @return DescribeNatGatewaysResponse
* @throws TencentCloudSDKException
*/
public DescribeNatGatewaysResponse DescribeNatGateways(DescribeNatGatewaysRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeNatGateways", DescribeNatGatewaysResponse.class);
}
/**
*可获取NAT网关绑定的子网信息
* @param req DescribeNatSubnetsRequest
* @return DescribeNatSubnetsResponse
* @throws TencentCloudSDKException
*/
public DescribeNatSubnetsResponse DescribeNatSubnets(DescribeNatSubnetsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeNatSubnets", DescribeNatSubnetsResponse.class);
}
/**
*本接口(DescribeRoutePolicies)用于查询路由表条目。
* @param req DescribeRoutePoliciesRequest
* @return DescribeRoutePoliciesResponse
* @throws TencentCloudSDKException
*/
public DescribeRoutePoliciesResponse DescribeRoutePolicies(DescribeRoutePoliciesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRoutePolicies", DescribeRoutePoliciesResponse.class);
}
/**
*本接口(DescribeRouteTables)用于查询路由表。
* @param req DescribeRouteTablesRequest
* @return DescribeRouteTablesResponse
* @throws TencentCloudSDKException
*/
public DescribeRouteTablesResponse DescribeRouteTables(DescribeRouteTablesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRouteTables", DescribeRouteTablesResponse.class);
}
/**
*获取子网内可用IP列表
* @param req DescribeSubnetAvailableIpsRequest
* @return DescribeSubnetAvailableIpsResponse
* @throws TencentCloudSDKException
*/
public DescribeSubnetAvailableIpsResponse DescribeSubnetAvailableIps(DescribeSubnetAvailableIpsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSubnetAvailableIps", DescribeSubnetAvailableIpsResponse.class);
}
/**
*物理机可以加入物理机子网,虚拟子网,DOCKER子网,通过此接口可以查询物理机加入的子网。
* @param req DescribeSubnetByDeviceRequest
* @return DescribeSubnetByDeviceResponse
* @throws TencentCloudSDKException
*/
public DescribeSubnetByDeviceResponse DescribeSubnetByDevice(DescribeSubnetByDeviceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSubnetByDevice", DescribeSubnetByDeviceResponse.class);
}
/**
*托管可以加入物理机子网,虚拟子网,DOCKER子网,通过此接口可以查询托管加入的子网。
* @param req DescribeSubnetByHostedDeviceRequest
* @return DescribeSubnetByHostedDeviceResponse
* @throws TencentCloudSDKException
*/
public DescribeSubnetByHostedDeviceResponse DescribeSubnetByHostedDevice(DescribeSubnetByHostedDeviceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSubnetByHostedDevice", DescribeSubnetByHostedDeviceResponse.class);
}
/**
*本接口(DescribeSubnets)用于查询黑石子网列表。
* @param req DescribeSubnetsRequest
* @return DescribeSubnetsResponse
* @throws TencentCloudSDKException
*/
public DescribeSubnetsResponse DescribeSubnets(DescribeSubnetsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSubnets", DescribeSubnetsResponse.class);
}
/**
*根据任务ID,获取任务的执行状态
* @param req DescribeTaskStatusRequest
* @return DescribeTaskStatusResponse
* @throws TencentCloudSDKException
*/
public DescribeTaskStatusResponse DescribeTaskStatus(DescribeTaskStatusRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTaskStatus", DescribeTaskStatusResponse.class);
}
/**
*获取对等连接列表
* @param req DescribeVpcPeerConnectionsRequest
* @return DescribeVpcPeerConnectionsResponse
* @throws TencentCloudSDKException
*/
public DescribeVpcPeerConnectionsResponse DescribeVpcPeerConnections(DescribeVpcPeerConnectionsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeVpcPeerConnections", DescribeVpcPeerConnectionsResponse.class);
}
/**
*本接口(DescribeVpcQuota)用于查询用户VPC相关配额限制。
* @param req DescribeVpcQuotaRequest
* @return DescribeVpcQuotaResponse
* @throws TencentCloudSDKException
*/
public DescribeVpcQuotaResponse DescribeVpcQuota(DescribeVpcQuotaRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeVpcQuota", DescribeVpcQuotaResponse.class);
}
/**
*查询黑石私有网络关联资源
* @param req DescribeVpcResourceRequest
* @return DescribeVpcResourceResponse
* @throws TencentCloudSDKException
*/
public DescribeVpcResourceResponse DescribeVpcResource(DescribeVpcResourceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeVpcResource", DescribeVpcResourceResponse.class);
}
/**
*本接口(DescribeVpcView)用于查询VPC网络拓扑视图。
* @param req DescribeVpcViewRequest
* @return DescribeVpcViewResponse
* @throws TencentCloudSDKException
*/
public DescribeVpcViewResponse DescribeVpcView(DescribeVpcViewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeVpcView", DescribeVpcViewResponse.class);
}
/**
*本接口(DescribeVpcs)用于查询私有网络列表。
本接口不传参数时,返回默认排序下的前20条VPC信息。
* @param req DescribeVpcsRequest
* @return DescribeVpcsResponse
* @throws TencentCloudSDKException
*/
public DescribeVpcsResponse DescribeVpcs(DescribeVpcsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeVpcs", DescribeVpcsResponse.class);
}
/**
* 本接口(DescribeVpnConnections)查询VPN通道列表。
* @param req DescribeVpnConnectionsRequest
* @return DescribeVpnConnectionsResponse
* @throws TencentCloudSDKException
*/
public DescribeVpnConnectionsResponse DescribeVpnConnections(DescribeVpnConnectionsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeVpnConnections", DescribeVpnConnectionsResponse.class);
}
/**
*本接口(DescribeVpnGateways)用于查询VPN网关列表。
* @param req DescribeVpnGatewaysRequest
* @return DescribeVpnGatewaysResponse
* @throws TencentCloudSDKException
*/
public DescribeVpnGatewaysResponse DescribeVpnGateways(DescribeVpnGatewaysRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeVpnGateways", DescribeVpnGatewaysResponse.class);
}
/**
*90天无调用
本接口(DownloadCustomerGatewayConfiguration)用于下载VPN通道配置。
* @param req DownloadCustomerGatewayConfigurationRequest
* @return DownloadCustomerGatewayConfigurationResponse
* @throws TencentCloudSDKException
*/
public DownloadCustomerGatewayConfigurationResponse DownloadCustomerGatewayConfiguration(DownloadCustomerGatewayConfigurationRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DownloadCustomerGatewayConfiguration", DownloadCustomerGatewayConfigurationResponse.class);
}
/**
*本接口(ModifyCustomerGatewayAttribute)用于修改对端网关信息。
* @param req ModifyCustomerGatewayAttributeRequest
* @return ModifyCustomerGatewayAttributeResponse
* @throws TencentCloudSDKException
*/
public ModifyCustomerGatewayAttributeResponse ModifyCustomerGatewayAttribute(ModifyCustomerGatewayAttributeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyCustomerGatewayAttribute", ModifyCustomerGatewayAttributeResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
修改自定义路由
* @param req ModifyRoutePolicyRequest
* @return ModifyRoutePolicyResponse
* @throws TencentCloudSDKException
*/
public ModifyRoutePolicyResponse ModifyRoutePolicy(ModifyRoutePolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyRoutePolicy", ModifyRoutePolicyResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
修改路由表
* @param req ModifyRouteTableRequest
* @return ModifyRouteTableResponse
* @throws TencentCloudSDKException
*/
public ModifyRouteTableResponse ModifyRouteTable(ModifyRouteTableRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyRouteTable", ModifyRouteTableResponse.class);
}
/**
*修改子网属性
* @param req ModifySubnetAttributeRequest
* @return ModifySubnetAttributeResponse
* @throws TencentCloudSDKException
*/
public ModifySubnetAttributeResponse ModifySubnetAttribute(ModifySubnetAttributeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifySubnetAttribute", ModifySubnetAttributeResponse.class);
}
/**
*修改子网DHCP Relay属性
* @param req ModifySubnetDHCPRelayRequest
* @return ModifySubnetDHCPRelayResponse
* @throws TencentCloudSDKException
*/
public ModifySubnetDHCPRelayResponse ModifySubnetDHCPRelay(ModifySubnetDHCPRelayRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifySubnetDHCPRelay", ModifySubnetDHCPRelayResponse.class);
}
/**
*本接口(ModifyVpcAttribute)用于修改VPC的标识名称和控制VPC的监控起停。
* @param req ModifyVpcAttributeRequest
* @return ModifyVpcAttributeResponse
* @throws TencentCloudSDKException
*/
public ModifyVpcAttributeResponse ModifyVpcAttribute(ModifyVpcAttributeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyVpcAttribute", ModifyVpcAttributeResponse.class);
}
/**
*修改黑石对等连接
* @param req ModifyVpcPeerConnectionRequest
* @return ModifyVpcPeerConnectionResponse
* @throws TencentCloudSDKException
*/
public ModifyVpcPeerConnectionResponse ModifyVpcPeerConnection(ModifyVpcPeerConnectionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyVpcPeerConnection", ModifyVpcPeerConnectionResponse.class);
}
/**
*本接口(ModifyVpnConnectionAttribute)用于修改VPN通道。
* @param req ModifyVpnConnectionAttributeRequest
* @return ModifyVpnConnectionAttributeResponse
* @throws TencentCloudSDKException
*/
public ModifyVpnConnectionAttributeResponse ModifyVpnConnectionAttribute(ModifyVpnConnectionAttributeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyVpnConnectionAttribute", ModifyVpnConnectionAttributeResponse.class);
}
/**
*本接口(ModifyVpnGatewayAttribute)用于修改VPN网关属性。
* @param req ModifyVpnGatewayAttributeRequest
* @return ModifyVpnGatewayAttributeResponse
* @throws TencentCloudSDKException
*/
public ModifyVpnGatewayAttributeResponse ModifyVpnGatewayAttribute(ModifyVpnGatewayAttributeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyVpnGatewayAttribute", ModifyVpnGatewayAttributeResponse.class);
}
/**
*拒绝黑石对等连接申请
* @param req RejectVpcPeerConnectionRequest
* @return RejectVpcPeerConnectionResponse
* @throws TencentCloudSDKException
*/
public RejectVpcPeerConnectionResponse RejectVpcPeerConnection(RejectVpcPeerConnectionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "RejectVpcPeerConnection", RejectVpcPeerConnectionResponse.class);
}
/**
*本接口(ResetVpnConnection)用于重置VPN通道。
* @param req ResetVpnConnectionRequest
* @return ResetVpnConnectionResponse
* @throws TencentCloudSDKException
*/
public ResetVpnConnectionResponse ResetVpnConnection(ResetVpnConnectionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ResetVpnConnection", ResetVpnConnectionResponse.class);
}
/**
*NAT网关解绑该EIP后,NAT网关将不会使用该EIP作为访问外网的源IP地址
* @param req UnbindEipsFromNatGatewayRequest
* @return UnbindEipsFromNatGatewayResponse
* @throws TencentCloudSDKException
*/
public UnbindEipsFromNatGatewayResponse UnbindEipsFromNatGateway(UnbindEipsFromNatGatewayRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UnbindEipsFromNatGateway", UnbindEipsFromNatGatewayResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
NAT网关解绑IP接口,可将子网的部分IP从NAT网关中解绑
* @param req UnbindIpsFromNatGatewayRequest
* @return UnbindIpsFromNatGatewayResponse
* @throws TencentCloudSDKException
*/
public UnbindIpsFromNatGatewayResponse UnbindIpsFromNatGateway(UnbindIpsFromNatGatewayRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UnbindIpsFromNatGateway", UnbindIpsFromNatGatewayResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
NAT网关解绑子网接口,可将子网解绑NAT网关
* @param req UnbindSubnetsFromNatGatewayRequest
* @return UnbindSubnetsFromNatGatewayResponse
* @throws TencentCloudSDKException
*/
public UnbindSubnetsFromNatGatewayResponse UnbindSubnetsFromNatGateway(UnbindSubnetsFromNatGatewayRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UnbindSubnetsFromNatGateway", UnbindSubnetsFromNatGatewayResponse.class);
}
/**
*黑石1.0接口,业务已下线,90天无调用
升级NAT网关接口,可NAT网关修改为小型NAT网关、中型NAT网关、以及大型NAT网关
* @param req UpgradeNatGatewayRequest
* @return UpgradeNatGatewayResponse
* @throws TencentCloudSDKException
*/
public UpgradeNatGatewayResponse UpgradeNatGateway(UpgradeNatGatewayRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpgradeNatGateway", UpgradeNatGatewayResponse.class);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-java.git
git@gitee.com:tencentcloud/tencentcloud-sdk-java.git
tencentcloud
tencentcloud-sdk-java
tencentcloud-sdk-java
master

搜索帮助