Fetch the repository succeeded.
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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.
*/
namespace TencentCloud.Vpc.V20170312
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Vpc.V20170312.Models;
public class VpcClient : AbstractClient{
private const string endpoint = "vpc.tencentcloudapi.com";
private const string version = "2017-03-12";
private const string sdkVersion = "SDK_NET_3.0.1091";
/// <summary>
/// Client constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
public VpcClient(Credential credential, string region)
: this(credential, region, new ClientProfile { Language = Language.ZH_CN })
{
}
/// <summary>
/// Client Constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
/// <param name="profile">Client profiles.</param>
public VpcClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
SdkVersion = sdkVersion;
}
/// <summary>
/// 本接口(AcceptAttachCcnInstances)用于跨账号关联实例时,云联网所有者接受并同意关联操作。
/// </summary>
/// <param name="req"><see cref="AcceptAttachCcnInstancesRequest"/></param>
/// <returns><see cref="AcceptAttachCcnInstancesResponse"/></returns>
public Task<AcceptAttachCcnInstancesResponse> AcceptAttachCcnInstances(AcceptAttachCcnInstancesRequest req)
{
return InternalRequestAsync<AcceptAttachCcnInstancesResponse>(req, "AcceptAttachCcnInstances");
}
/// <summary>
/// 本接口(AcceptAttachCcnInstances)用于跨账号关联实例时,云联网所有者接受并同意关联操作。
/// </summary>
/// <param name="req"><see cref="AcceptAttachCcnInstancesRequest"/></param>
/// <returns><see cref="AcceptAttachCcnInstancesResponse"/></returns>
public AcceptAttachCcnInstancesResponse AcceptAttachCcnInstancesSync(AcceptAttachCcnInstancesRequest req)
{
return InternalRequestAsync<AcceptAttachCcnInstancesResponse>(req, "AcceptAttachCcnInstances")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AcceptVpcPeeringConnection)用于接受对等连接请求。
/// </summary>
/// <param name="req"><see cref="AcceptVpcPeeringConnectionRequest"/></param>
/// <returns><see cref="AcceptVpcPeeringConnectionResponse"/></returns>
public Task<AcceptVpcPeeringConnectionResponse> AcceptVpcPeeringConnection(AcceptVpcPeeringConnectionRequest req)
{
return InternalRequestAsync<AcceptVpcPeeringConnectionResponse>(req, "AcceptVpcPeeringConnection");
}
/// <summary>
/// 本接口(AcceptVpcPeeringConnection)用于接受对等连接请求。
/// </summary>
/// <param name="req"><see cref="AcceptVpcPeeringConnectionRequest"/></param>
/// <returns><see cref="AcceptVpcPeeringConnectionResponse"/></returns>
public AcceptVpcPeeringConnectionResponse AcceptVpcPeeringConnectionSync(AcceptVpcPeeringConnectionRequest req)
{
return InternalRequestAsync<AcceptVpcPeeringConnectionResponse>(req, "AcceptVpcPeeringConnection")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 接口用于添加带宽包资源,包括[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)和[负载均衡](https://cloud.tencent.com/document/product/214/517)等
/// </summary>
/// <param name="req"><see cref="AddBandwidthPackageResourcesRequest"/></param>
/// <returns><see cref="AddBandwidthPackageResourcesResponse"/></returns>
public Task<AddBandwidthPackageResourcesResponse> AddBandwidthPackageResources(AddBandwidthPackageResourcesRequest req)
{
return InternalRequestAsync<AddBandwidthPackageResourcesResponse>(req, "AddBandwidthPackageResources");
}
/// <summary>
/// 接口用于添加带宽包资源,包括[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)和[负载均衡](https://cloud.tencent.com/document/product/214/517)等
/// </summary>
/// <param name="req"><see cref="AddBandwidthPackageResourcesRequest"/></param>
/// <returns><see cref="AddBandwidthPackageResourcesResponse"/></returns>
public AddBandwidthPackageResourcesResponse AddBandwidthPackageResourcesSync(AddBandwidthPackageResourcesRequest req)
{
return InternalRequestAsync<AddBandwidthPackageResourcesResponse>(req, "AddBandwidthPackageResources")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 1. 该接口用于在转换实例下添加IPV6转换规则。
/// 2. 支持在同一个转换实例下批量添加转换规则,一个账户在一个地域最多50个。
/// 3. 一个完整的转换规则包括vip6:vport6:protocol:vip:vport,其中vip6:vport6:protocol必须是唯一。
/// </summary>
/// <param name="req"><see cref="AddIp6RulesRequest"/></param>
/// <returns><see cref="AddIp6RulesResponse"/></returns>
public Task<AddIp6RulesResponse> AddIp6Rules(AddIp6RulesRequest req)
{
return InternalRequestAsync<AddIp6RulesResponse>(req, "AddIp6Rules");
}
/// <summary>
/// 1. 该接口用于在转换实例下添加IPV6转换规则。
/// 2. 支持在同一个转换实例下批量添加转换规则,一个账户在一个地域最多50个。
/// 3. 一个完整的转换规则包括vip6:vport6:protocol:vip:vport,其中vip6:vport6:protocol必须是唯一。
/// </summary>
/// <param name="req"><see cref="AddIp6RulesRequest"/></param>
/// <returns><see cref="AddIp6RulesResponse"/></returns>
public AddIp6RulesResponse AddIp6RulesSync(AddIp6RulesRequest req)
{
return InternalRequestAsync<AddIp6RulesResponse>(req, "AddIp6Rules")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 增加模板对象中的IP地址、协议端口、IP地址组、协议端口组。
/// </summary>
/// <param name="req"><see cref="AddTemplateMemberRequest"/></param>
/// <returns><see cref="AddTemplateMemberResponse"/></returns>
public Task<AddTemplateMemberResponse> AddTemplateMember(AddTemplateMemberRequest req)
{
return InternalRequestAsync<AddTemplateMemberResponse>(req, "AddTemplateMember");
}
/// <summary>
/// 增加模板对象中的IP地址、协议端口、IP地址组、协议端口组。
/// </summary>
/// <param name="req"><see cref="AddTemplateMemberRequest"/></param>
/// <returns><see cref="AddTemplateMemberResponse"/></returns>
public AddTemplateMemberResponse AddTemplateMemberSync(AddTemplateMemberRequest req)
{
return InternalRequestAsync<AddTemplateMemberResponse>(req, "AddTemplateMember")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口 (AdjustPublicAddress) 用于更换IP地址,支持更换CVM实例的普通公网IP和包月带宽的EIP。
/// </summary>
/// <param name="req"><see cref="AdjustPublicAddressRequest"/></param>
/// <returns><see cref="AdjustPublicAddressResponse"/></returns>
public Task<AdjustPublicAddressResponse> AdjustPublicAddress(AdjustPublicAddressRequest req)
{
return InternalRequestAsync<AdjustPublicAddressResponse>(req, "AdjustPublicAddress");
}
/// <summary>
/// 本接口 (AdjustPublicAddress) 用于更换IP地址,支持更换CVM实例的普通公网IP和包月带宽的EIP。
/// </summary>
/// <param name="req"><see cref="AdjustPublicAddressRequest"/></param>
/// <returns><see cref="AdjustPublicAddressResponse"/></returns>
public AdjustPublicAddressResponse AdjustPublicAddressSync(AdjustPublicAddressRequest req)
{
return InternalRequestAsync<AdjustPublicAddressResponse>(req, "AdjustPublicAddress")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口 (AllocateAddresses) 用于申请一个或多个[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)。
/// * EIP 是专为动态云计算设计的静态 IP 地址。借助 EIP,您可以快速将 EIP 重新映射到您的另一个实例上,从而屏蔽实例故障。
/// * 您的 EIP 与腾讯云账户相关联,而不是与某个实例相关联。在您选择显式释放该地址,或欠费超过24小时之前,它会一直与您的腾讯云账户保持关联。
/// * 一个腾讯云账户在每个地域能申请的 EIP 最大配额有所限制,可参见 [EIP 产品简介](https://cloud.tencent.com/document/product/213/5733),上述配额可通过 DescribeAddressQuota 接口获取。
/// </summary>
/// <param name="req"><see cref="AllocateAddressesRequest"/></param>
/// <returns><see cref="AllocateAddressesResponse"/></returns>
public Task<AllocateAddressesResponse> AllocateAddresses(AllocateAddressesRequest req)
{
return InternalRequestAsync<AllocateAddressesResponse>(req, "AllocateAddresses");
}
/// <summary>
/// 本接口 (AllocateAddresses) 用于申请一个或多个[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)。
/// * EIP 是专为动态云计算设计的静态 IP 地址。借助 EIP,您可以快速将 EIP 重新映射到您的另一个实例上,从而屏蔽实例故障。
/// * 您的 EIP 与腾讯云账户相关联,而不是与某个实例相关联。在您选择显式释放该地址,或欠费超过24小时之前,它会一直与您的腾讯云账户保持关联。
/// * 一个腾讯云账户在每个地域能申请的 EIP 最大配额有所限制,可参见 [EIP 产品简介](https://cloud.tencent.com/document/product/213/5733),上述配额可通过 DescribeAddressQuota 接口获取。
/// </summary>
/// <param name="req"><see cref="AllocateAddressesRequest"/></param>
/// <returns><see cref="AllocateAddressesResponse"/></returns>
public AllocateAddressesResponse AllocateAddressesSync(AllocateAddressesRequest req)
{
return InternalRequestAsync<AllocateAddressesResponse>(req, "AllocateAddresses")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口用于给IPv6地址初次分配公网带宽
/// </summary>
/// <param name="req"><see cref="AllocateIp6AddressesBandwidthRequest"/></param>
/// <returns><see cref="AllocateIp6AddressesBandwidthResponse"/></returns>
public Task<AllocateIp6AddressesBandwidthResponse> AllocateIp6AddressesBandwidth(AllocateIp6AddressesBandwidthRequest req)
{
return InternalRequestAsync<AllocateIp6AddressesBandwidthResponse>(req, "AllocateIp6AddressesBandwidth");
}
/// <summary>
/// 该接口用于给IPv6地址初次分配公网带宽
/// </summary>
/// <param name="req"><see cref="AllocateIp6AddressesBandwidthRequest"/></param>
/// <returns><see cref="AllocateIp6AddressesBandwidthResponse"/></returns>
public AllocateIp6AddressesBandwidthResponse AllocateIp6AddressesBandwidthSync(AllocateIp6AddressesBandwidthRequest req)
{
return InternalRequestAsync<AllocateIp6AddressesBandwidthResponse>(req, "AllocateIp6AddressesBandwidth")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AssignIpv6Addresses)用于弹性网卡申请`IPv6`地址。<br />
/// 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`DescribeVpcTaskResult`接口。
/// * 一个弹性网卡支持绑定的IP地址是有限制的,更多资源限制信息详见<a href="/document/product/576/18527">弹性网卡使用限制</a>。
/// * 可以指定`IPv6`地址申请,地址类型不能为主`IP`,`IPv6`地址暂时只支持作为辅助`IP`。
/// * 地址必须要在弹性网卡所在子网内,而且不能被占用。
/// * 在弹性网卡上申请一个到多个辅助`IPv6`地址,接口会在弹性网卡所在子网段内返回指定数量的辅助`IPv6`地址。
/// </summary>
/// <param name="req"><see cref="AssignIpv6AddressesRequest"/></param>
/// <returns><see cref="AssignIpv6AddressesResponse"/></returns>
public Task<AssignIpv6AddressesResponse> AssignIpv6Addresses(AssignIpv6AddressesRequest req)
{
return InternalRequestAsync<AssignIpv6AddressesResponse>(req, "AssignIpv6Addresses");
}
/// <summary>
/// 本接口(AssignIpv6Addresses)用于弹性网卡申请`IPv6`地址。<br />
/// 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`DescribeVpcTaskResult`接口。
/// * 一个弹性网卡支持绑定的IP地址是有限制的,更多资源限制信息详见<a href="/document/product/576/18527">弹性网卡使用限制</a>。
/// * 可以指定`IPv6`地址申请,地址类型不能为主`IP`,`IPv6`地址暂时只支持作为辅助`IP`。
/// * 地址必须要在弹性网卡所在子网内,而且不能被占用。
/// * 在弹性网卡上申请一个到多个辅助`IPv6`地址,接口会在弹性网卡所在子网段内返回指定数量的辅助`IPv6`地址。
/// </summary>
/// <param name="req"><see cref="AssignIpv6AddressesRequest"/></param>
/// <returns><see cref="AssignIpv6AddressesResponse"/></returns>
public AssignIpv6AddressesResponse AssignIpv6AddressesSync(AssignIpv6AddressesRequest req)
{
return InternalRequestAsync<AssignIpv6AddressesResponse>(req, "AssignIpv6Addresses")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AssignIpv6CidrBlock)用于分配IPv6网段。
/// * 使用本接口前,您需要已有VPC实例,如果没有可通过接口<a href="https://cloud.tencent.com/document/api/215/15774" title="CreateVpc" target="_blank">CreateVpc</a>创建。
/// * 每个VPC只能申请一个IPv6网段。
/// </summary>
/// <param name="req"><see cref="AssignIpv6CidrBlockRequest"/></param>
/// <returns><see cref="AssignIpv6CidrBlockResponse"/></returns>
public Task<AssignIpv6CidrBlockResponse> AssignIpv6CidrBlock(AssignIpv6CidrBlockRequest req)
{
return InternalRequestAsync<AssignIpv6CidrBlockResponse>(req, "AssignIpv6CidrBlock");
}
/// <summary>
/// 本接口(AssignIpv6CidrBlock)用于分配IPv6网段。
/// * 使用本接口前,您需要已有VPC实例,如果没有可通过接口<a href="https://cloud.tencent.com/document/api/215/15774" title="CreateVpc" target="_blank">CreateVpc</a>创建。
/// * 每个VPC只能申请一个IPv6网段。
/// </summary>
/// <param name="req"><see cref="AssignIpv6CidrBlockRequest"/></param>
/// <returns><see cref="AssignIpv6CidrBlockResponse"/></returns>
public AssignIpv6CidrBlockResponse AssignIpv6CidrBlockSync(AssignIpv6CidrBlockRequest req)
{
return InternalRequestAsync<AssignIpv6CidrBlockResponse>(req, "AssignIpv6CidrBlock")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AssignIpv6SubnetCidrBlock)用于分配IPv6子网段。
/// * 给子网分配 `IPv6` 网段,要求子网所属 `VPC` 已获得 `IPv6` 网段。如果尚未分配,请先通过接口 `AssignIpv6CidrBlock` 给子网所属 `VPC` 分配一个 `IPv6` 网段。否则无法分配 `IPv6` 子网段。
/// * 每个子网只能分配一个IPv6网段。
/// </summary>
/// <param name="req"><see cref="AssignIpv6SubnetCidrBlockRequest"/></param>
/// <returns><see cref="AssignIpv6SubnetCidrBlockResponse"/></returns>
public Task<AssignIpv6SubnetCidrBlockResponse> AssignIpv6SubnetCidrBlock(AssignIpv6SubnetCidrBlockRequest req)
{
return InternalRequestAsync<AssignIpv6SubnetCidrBlockResponse>(req, "AssignIpv6SubnetCidrBlock");
}
/// <summary>
/// 本接口(AssignIpv6SubnetCidrBlock)用于分配IPv6子网段。
/// * 给子网分配 `IPv6` 网段,要求子网所属 `VPC` 已获得 `IPv6` 网段。如果尚未分配,请先通过接口 `AssignIpv6CidrBlock` 给子网所属 `VPC` 分配一个 `IPv6` 网段。否则无法分配 `IPv6` 子网段。
/// * 每个子网只能分配一个IPv6网段。
/// </summary>
/// <param name="req"><see cref="AssignIpv6SubnetCidrBlockRequest"/></param>
/// <returns><see cref="AssignIpv6SubnetCidrBlockResponse"/></returns>
public AssignIpv6SubnetCidrBlockResponse AssignIpv6SubnetCidrBlockSync(AssignIpv6SubnetCidrBlockRequest req)
{
return InternalRequestAsync<AssignIpv6SubnetCidrBlockResponse>(req, "AssignIpv6SubnetCidrBlock")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AssignPrivateIpAddresses)用于弹性网卡申请内网 IP。
/// * 一个弹性网卡支持绑定的IP地址是有限制的,更多资源限制信息详见<a href="/document/product/576/18527">弹性网卡使用限制</a>。
/// * 可以指定内网IP地址申请,内网IP地址类型不能为主IP,主IP已存在,不能修改,内网IP必须要弹性网卡所在子网内,而且不能被占用。
/// * 在弹性网卡上申请一个到多个辅助内网IP,接口会在弹性网卡所在子网网段内返回指定数量的辅助内网IP。
/// >?本接口为异步接口,可调用 [DescribeVpcTaskResult](https://cloud.tencent.com/document/api/215/59037) 接口查询任务执行结果,待任务执行成功后再进行其他操作。
/// >
/// </summary>
/// <param name="req"><see cref="AssignPrivateIpAddressesRequest"/></param>
/// <returns><see cref="AssignPrivateIpAddressesResponse"/></returns>
public Task<AssignPrivateIpAddressesResponse> AssignPrivateIpAddresses(AssignPrivateIpAddressesRequest req)
{
return InternalRequestAsync<AssignPrivateIpAddressesResponse>(req, "AssignPrivateIpAddresses");
}
/// <summary>
/// 本接口(AssignPrivateIpAddresses)用于弹性网卡申请内网 IP。
/// * 一个弹性网卡支持绑定的IP地址是有限制的,更多资源限制信息详见<a href="/document/product/576/18527">弹性网卡使用限制</a>。
/// * 可以指定内网IP地址申请,内网IP地址类型不能为主IP,主IP已存在,不能修改,内网IP必须要弹性网卡所在子网内,而且不能被占用。
/// * 在弹性网卡上申请一个到多个辅助内网IP,接口会在弹性网卡所在子网网段内返回指定数量的辅助内网IP。
/// >?本接口为异步接口,可调用 [DescribeVpcTaskResult](https://cloud.tencent.com/document/api/215/59037) 接口查询任务执行结果,待任务执行成功后再进行其他操作。
/// >
/// </summary>
/// <param name="req"><see cref="AssignPrivateIpAddressesRequest"/></param>
/// <returns><see cref="AssignPrivateIpAddressesResponse"/></returns>
public AssignPrivateIpAddressesResponse AssignPrivateIpAddressesSync(AssignPrivateIpAddressesRequest req)
{
return InternalRequestAsync<AssignPrivateIpAddressesResponse>(req, "AssignPrivateIpAddresses")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口 (AssociateAddress) 用于将[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)绑定到实例或弹性网卡的指定内网 IP 上。
/// * 将 EIP 绑定到实例(CVM)上,其本质是将 EIP 绑定到实例上主网卡的主内网 IP 上。
/// * 将 EIP 绑定到主网卡的主内网IP时,如主内网IP已绑定普通公网IP,必须先退还才能绑定EIP。
/// * 将 EIP 绑定到指定网卡的内网 IP上(非主网卡的主内网IP),则必须先解绑该 EIP,才能再绑定新的。
/// * 将 EIP 绑定到内网型CLB实例的功能处于内测阶段,如需使用,请提交[内测申请](https://cloud.tencent.com/apply/p/4kxj7picqci)。
/// * 将 EIP 绑定到NAT网关,请使用接口[AssociateNatGatewayAddress](https://cloud.tencent.com/document/product/215/36722)
/// * EIP 如果欠费或被封堵,则不能被绑定。
/// * 只有状态为 UNBIND 的 EIP 才能够被绑定。
/// </summary>
/// <param name="req"><see cref="AssociateAddressRequest"/></param>
/// <returns><see cref="AssociateAddressResponse"/></returns>
public Task<AssociateAddressResponse> AssociateAddress(AssociateAddressRequest req)
{
return InternalRequestAsync<AssociateAddressResponse>(req, "AssociateAddress");
}
/// <summary>
/// 本接口 (AssociateAddress) 用于将[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)绑定到实例或弹性网卡的指定内网 IP 上。
/// * 将 EIP 绑定到实例(CVM)上,其本质是将 EIP 绑定到实例上主网卡的主内网 IP 上。
/// * 将 EIP 绑定到主网卡的主内网IP时,如主内网IP已绑定普通公网IP,必须先退还才能绑定EIP。
/// * 将 EIP 绑定到指定网卡的内网 IP上(非主网卡的主内网IP),则必须先解绑该 EIP,才能再绑定新的。
/// * 将 EIP 绑定到内网型CLB实例的功能处于内测阶段,如需使用,请提交[内测申请](https://cloud.tencent.com/apply/p/4kxj7picqci)。
/// * 将 EIP 绑定到NAT网关,请使用接口[AssociateNatGatewayAddress](https://cloud.tencent.com/document/product/215/36722)
/// * EIP 如果欠费或被封堵,则不能被绑定。
/// * 只有状态为 UNBIND 的 EIP 才能够被绑定。
/// </summary>
/// <param name="req"><see cref="AssociateAddressRequest"/></param>
/// <returns><see cref="AssociateAddressResponse"/></returns>
public AssociateAddressResponse AssociateAddressSync(AssociateAddressRequest req)
{
return InternalRequestAsync<AssociateAddressResponse>(req, "AssociateAddress")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AssociateDhcpIpWithAddressIp)用于DhcpIp绑定弹性公网IP(EIP)。<br />
/// >?本接口为异步接口,可调用 [DescribeVpcTaskResult](https://cloud.tencent.com/document/api/215/59037) 接口查询任务执行结果,待任务执行成功后再进行其他操作。
/// >
/// </summary>
/// <param name="req"><see cref="AssociateDhcpIpWithAddressIpRequest"/></param>
/// <returns><see cref="AssociateDhcpIpWithAddressIpResponse"/></returns>
public Task<AssociateDhcpIpWithAddressIpResponse> AssociateDhcpIpWithAddressIp(AssociateDhcpIpWithAddressIpRequest req)
{
return InternalRequestAsync<AssociateDhcpIpWithAddressIpResponse>(req, "AssociateDhcpIpWithAddressIp");
}
/// <summary>
/// 本接口(AssociateDhcpIpWithAddressIp)用于DhcpIp绑定弹性公网IP(EIP)。<br />
/// >?本接口为异步接口,可调用 [DescribeVpcTaskResult](https://cloud.tencent.com/document/api/215/59037) 接口查询任务执行结果,待任务执行成功后再进行其他操作。
/// >
/// </summary>
/// <param name="req"><see cref="AssociateDhcpIpWithAddressIpRequest"/></param>
/// <returns><see cref="AssociateDhcpIpWithAddressIpResponse"/></returns>
public AssociateDhcpIpWithAddressIpResponse AssociateDhcpIpWithAddressIpSync(AssociateDhcpIpWithAddressIpRequest req)
{
return InternalRequestAsync<AssociateDhcpIpWithAddressIpResponse>(req, "AssociateDhcpIpWithAddressIp")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 将专线网关与NAT网关绑定,专线网关默认路由指向NAT网关
/// </summary>
/// <param name="req"><see cref="AssociateDirectConnectGatewayNatGatewayRequest"/></param>
/// <returns><see cref="AssociateDirectConnectGatewayNatGatewayResponse"/></returns>
public Task<AssociateDirectConnectGatewayNatGatewayResponse> AssociateDirectConnectGatewayNatGateway(AssociateDirectConnectGatewayNatGatewayRequest req)
{
return InternalRequestAsync<AssociateDirectConnectGatewayNatGatewayResponse>(req, "AssociateDirectConnectGatewayNatGateway");
}
/// <summary>
/// 将专线网关与NAT网关绑定,专线网关默认路由指向NAT网关
/// </summary>
/// <param name="req"><see cref="AssociateDirectConnectGatewayNatGatewayRequest"/></param>
/// <returns><see cref="AssociateDirectConnectGatewayNatGatewayResponse"/></returns>
public AssociateDirectConnectGatewayNatGatewayResponse AssociateDirectConnectGatewayNatGatewaySync(AssociateDirectConnectGatewayNatGatewayRequest req)
{
return InternalRequestAsync<AssociateDirectConnectGatewayNatGatewayResponse>(req, "AssociateDirectConnectGatewayNatGateway")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AssociateInstancesToCcnRouteTable)用于将指定的云联网实例关联到指定的云联网路由表。
/// </summary>
/// <param name="req"><see cref="AssociateInstancesToCcnRouteTableRequest"/></param>
/// <returns><see cref="AssociateInstancesToCcnRouteTableResponse"/></returns>
public Task<AssociateInstancesToCcnRouteTableResponse> AssociateInstancesToCcnRouteTable(AssociateInstancesToCcnRouteTableRequest req)
{
return InternalRequestAsync<AssociateInstancesToCcnRouteTableResponse>(req, "AssociateInstancesToCcnRouteTable");
}
/// <summary>
/// 本接口(AssociateInstancesToCcnRouteTable)用于将指定的云联网实例关联到指定的云联网路由表。
/// </summary>
/// <param name="req"><see cref="AssociateInstancesToCcnRouteTableRequest"/></param>
/// <returns><see cref="AssociateInstancesToCcnRouteTableResponse"/></returns>
public AssociateInstancesToCcnRouteTableResponse AssociateInstancesToCcnRouteTableSync(AssociateInstancesToCcnRouteTableRequest req)
{
return InternalRequestAsync<AssociateInstancesToCcnRouteTableResponse>(req, "AssociateInstancesToCcnRouteTable")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AssociateNatGatewayAddress)用于NAT网关绑定弹性IP(EIP)。
/// </summary>
/// <param name="req"><see cref="AssociateNatGatewayAddressRequest"/></param>
/// <returns><see cref="AssociateNatGatewayAddressResponse"/></returns>
public Task<AssociateNatGatewayAddressResponse> AssociateNatGatewayAddress(AssociateNatGatewayAddressRequest req)
{
return InternalRequestAsync<AssociateNatGatewayAddressResponse>(req, "AssociateNatGatewayAddress");
}
/// <summary>
/// 本接口(AssociateNatGatewayAddress)用于NAT网关绑定弹性IP(EIP)。
/// </summary>
/// <param name="req"><see cref="AssociateNatGatewayAddressRequest"/></param>
/// <returns><see cref="AssociateNatGatewayAddressResponse"/></returns>
public AssociateNatGatewayAddressResponse AssociateNatGatewayAddressSync(AssociateNatGatewayAddressRequest req)
{
return InternalRequestAsync<AssociateNatGatewayAddressResponse>(req, "AssociateNatGatewayAddress")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AssociateNetworkAclSubnets)用于网络ACL关联VPC下的子网。
/// </summary>
/// <param name="req"><see cref="AssociateNetworkAclSubnetsRequest"/></param>
/// <returns><see cref="AssociateNetworkAclSubnetsResponse"/></returns>
public Task<AssociateNetworkAclSubnetsResponse> AssociateNetworkAclSubnets(AssociateNetworkAclSubnetsRequest req)
{
return InternalRequestAsync<AssociateNetworkAclSubnetsResponse>(req, "AssociateNetworkAclSubnets");
}
/// <summary>
/// 本接口(AssociateNetworkAclSubnets)用于网络ACL关联VPC下的子网。
/// </summary>
/// <param name="req"><see cref="AssociateNetworkAclSubnetsRequest"/></param>
/// <returns><see cref="AssociateNetworkAclSubnetsResponse"/></returns>
public AssociateNetworkAclSubnetsResponse AssociateNetworkAclSubnetsSync(AssociateNetworkAclSubnetsRequest req)
{
return InternalRequestAsync<AssociateNetworkAclSubnetsResponse>(req, "AssociateNetworkAclSubnets")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AssociateNetworkInterfaceSecurityGroups)用于弹性网卡绑定安全组(SecurityGroup)。
/// </summary>
/// <param name="req"><see cref="AssociateNetworkInterfaceSecurityGroupsRequest"/></param>
/// <returns><see cref="AssociateNetworkInterfaceSecurityGroupsResponse"/></returns>
public Task<AssociateNetworkInterfaceSecurityGroupsResponse> AssociateNetworkInterfaceSecurityGroups(AssociateNetworkInterfaceSecurityGroupsRequest req)
{
return InternalRequestAsync<AssociateNetworkInterfaceSecurityGroupsResponse>(req, "AssociateNetworkInterfaceSecurityGroups");
}
/// <summary>
/// 本接口(AssociateNetworkInterfaceSecurityGroups)用于弹性网卡绑定安全组(SecurityGroup)。
/// </summary>
/// <param name="req"><see cref="AssociateNetworkInterfaceSecurityGroupsRequest"/></param>
/// <returns><see cref="AssociateNetworkInterfaceSecurityGroupsResponse"/></returns>
public AssociateNetworkInterfaceSecurityGroupsResponse AssociateNetworkInterfaceSecurityGroupsSync(AssociateNetworkInterfaceSecurityGroupsRequest req)
{
return InternalRequestAsync<AssociateNetworkInterfaceSecurityGroupsResponse>(req, "AssociateNetworkInterfaceSecurityGroups")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AttachCcnInstances)用于将网络实例加载到云联网实例中,网络实例包括VPC和专线网关。<br />
/// 每个云联网能够关联的网络实例个数是有限的,详情请参考产品文档。如果需要扩充请联系在线客服。
/// </summary>
/// <param name="req"><see cref="AttachCcnInstancesRequest"/></param>
/// <returns><see cref="AttachCcnInstancesResponse"/></returns>
public Task<AttachCcnInstancesResponse> AttachCcnInstances(AttachCcnInstancesRequest req)
{
return InternalRequestAsync<AttachCcnInstancesResponse>(req, "AttachCcnInstances");
}
/// <summary>
/// 本接口(AttachCcnInstances)用于将网络实例加载到云联网实例中,网络实例包括VPC和专线网关。<br />
/// 每个云联网能够关联的网络实例个数是有限的,详情请参考产品文档。如果需要扩充请联系在线客服。
/// </summary>
/// <param name="req"><see cref="AttachCcnInstancesRequest"/></param>
/// <returns><see cref="AttachCcnInstancesResponse"/></returns>
public AttachCcnInstancesResponse AttachCcnInstancesSync(AttachCcnInstancesRequest req)
{
return InternalRequestAsync<AttachCcnInstancesResponse>(req, "AttachCcnInstances")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AttachClassicLinkVpc)用于创建私有网络和基础网络设备互通。
/// * 私有网络和基础网络设备必须在同一个地域。
/// * 私有网络和基础网络的区别详见vpc产品文档-<a href="https://cloud.tencent.com/document/product/215/30720">私有网络与基础网络</a>。
/// >?本接口为异步接口,可调用 [DescribeVpcTaskResult](https://cloud.tencent.com/document/api/215/59037) 接口查询任务执行结果,待任务执行成功后再进行其他操作。
/// >
/// </summary>
/// <param name="req"><see cref="AttachClassicLinkVpcRequest"/></param>
/// <returns><see cref="AttachClassicLinkVpcResponse"/></returns>
public Task<AttachClassicLinkVpcResponse> AttachClassicLinkVpc(AttachClassicLinkVpcRequest req)
{
return InternalRequestAsync<AttachClassicLinkVpcResponse>(req, "AttachClassicLinkVpc");
}
/// <summary>
/// 本接口(AttachClassicLinkVpc)用于创建私有网络和基础网络设备互通。
/// * 私有网络和基础网络设备必须在同一个地域。
/// * 私有网络和基础网络的区别详见vpc产品文档-<a href="https://cloud.tencent.com/document/product/215/30720">私有网络与基础网络</a>。
/// >?本接口为异步接口,可调用 [DescribeVpcTaskResult](https://cloud.tencent.com/document/api/215/59037) 接口查询任务执行结果,待任务执行成功后再进行其他操作。
/// >
/// </summary>
/// <param name="req"><see cref="AttachClassicLinkVpcRequest"/></param>
/// <returns><see cref="AttachClassicLinkVpcResponse"/></returns>
public AttachClassicLinkVpcResponse AttachClassicLinkVpcSync(AttachClassicLinkVpcRequest req)
{
return InternalRequestAsync<AttachClassicLinkVpcResponse>(req, "AttachClassicLinkVpc")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AttachNetworkInterface)用于弹性网卡绑定云服务器。
/// * 一个弹性网卡请至少绑定一个安全组,如需绑定请参见<a href="https://cloud.tencent.com/document/product/215/43132">弹性网卡绑定安全组</a>。
/// * 一个云服务器可以绑定多个弹性网卡,但只能绑定一个主网卡。更多限制信息详见<a href="https://cloud.tencent.com/document/product/576/18527">弹性网卡使用限制</a>。
/// * 一个弹性网卡只能同时绑定一个云服务器。
/// * 只有运行中或者已关机状态的云服务器才能绑定弹性网卡,查看云服务器状态详见<a href="https://cloud.tencent.com/document/api/213/9452#InstanceStatus">腾讯云服务器信息</a>。
/// * 弹性网卡绑定的云服务器必须是私有网络的,而且云服务器所在可用区必须和弹性网卡子网的可用区相同。
///
/// 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`DescribeVpcTaskResult`接口。
/// </summary>
/// <param name="req"><see cref="AttachNetworkInterfaceRequest"/></param>
/// <returns><see cref="AttachNetworkInterfaceResponse"/></returns>
public Task<AttachNetworkInterfaceResponse> AttachNetworkInterface(AttachNetworkInterfaceRequest req)
{
return InternalRequestAsync<AttachNetworkInterfaceResponse>(req, "AttachNetworkInterface");
}
/// <summary>
/// 本接口(AttachNetworkInterface)用于弹性网卡绑定云服务器。
/// * 一个弹性网卡请至少绑定一个安全组,如需绑定请参见<a href="https://cloud.tencent.com/document/product/215/43132">弹性网卡绑定安全组</a>。
/// * 一个云服务器可以绑定多个弹性网卡,但只能绑定一个主网卡。更多限制信息详见<a href="https://cloud.tencent.com/document/product/576/18527">弹性网卡使用限制</a>。
/// * 一个弹性网卡只能同时绑定一个云服务器。
/// * 只有运行中或者已关机状态的云服务器才能绑定弹性网卡,查看云服务器状态详见<a href="https://cloud.tencent.com/document/api/213/9452#InstanceStatus">腾讯云服务器信息</a>。
/// * 弹性网卡绑定的云服务器必须是私有网络的,而且云服务器所在可用区必须和弹性网卡子网的可用区相同。
///
/// 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`DescribeVpcTaskResult`接口。
/// </summary>
/// <param name="req"><see cref="AttachNetworkInterfaceRequest"/></param>
/// <returns><see cref="AttachNetworkInterfaceResponse"/></returns>
public AttachNetworkInterfaceResponse AttachNetworkInterfaceSync(AttachNetworkInterfaceRequest req)
{
return InternalRequestAsync<AttachNetworkInterfaceResponse>(req, "AttachNetworkInterface")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AttachSnapshotInstances)用于快照策略关联实例。
/// </summary>
/// <param name="req"><see cref="AttachSnapshotInstancesRequest"/></param>
/// <returns><see cref="AttachSnapshotInstancesResponse"/></returns>
public Task<AttachSnapshotInstancesResponse> AttachSnapshotInstances(AttachSnapshotInstancesRequest req)
{
return InternalRequestAsync<AttachSnapshotInstancesResponse>(req, "AttachSnapshotInstances");
}
/// <summary>
/// 本接口(AttachSnapshotInstances)用于快照策略关联实例。
/// </summary>
/// <param name="req"><see cref="AttachSnapshotInstancesRequest"/></param>
/// <returns><see cref="AttachSnapshotInstancesResponse"/></returns>
public AttachSnapshotInstancesResponse AttachSnapshotInstancesSync(AttachSnapshotInstancesRequest req)
{
return InternalRequestAsync<AttachSnapshotInstancesResponse>(req, "AttachSnapshotInstances")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(AuditCrossBorderCompliance)用于服务商操作合规化资质审批。
/// * 服务商只能操作提交到本服务商的审批单,后台会校验身份。即只授权给服务商的`APPID` 调用本接口。
/// * `APPROVED` 状态的审批单,可以再次操作为 `DENY`;`DENY` 状态的审批单,也可以再次操作为 `APPROVED`。
/// </summary>
/// <param name="req"><see cref="AuditCrossBorderComplianceRequest"/></param>
/// <returns><see cref="AuditCrossBorderComplianceResponse"/></returns>
public Task<AuditCrossBorderComplianceResponse> AuditCrossBorderCompliance(AuditCrossBorderComplianceRequest req)
{
return InternalRequestAsync<AuditCrossBorderComplianceResponse>(req, "AuditCrossBorderCompliance");
}
/// <summary>
/// 本接口(AuditCrossBorderCompliance)用于服务商操作合规化资质审批。
/// * 服务商只能操作提交到本服务商的审批单,后台会校验身份。即只授权给服务商的`APPID` 调用本接口。
/// * `APPROVED` 状态的审批单,可以再次操作为 `DENY`;`DENY` 状态的审批单,也可以再次操作为 `APPROVED`。
/// </summary>
/// <param name="req"><see cref="AuditCrossBorderComplianceRequest"/></param>
/// <returns><see cref="AuditCrossBorderComplianceResponse"/></returns>
public AuditCrossBorderComplianceResponse AuditCrossBorderComplianceSync(AuditCrossBorderComplianceRequest req)
{
return InternalRequestAsync<AuditCrossBorderComplianceResponse>(req, "AuditCrossBorderCompliance")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(CheckAssistantCidr)用于检查辅助CIDR是否与存量路由、对等连接(对端VPC的CIDR)等资源存在冲突。如果存在重叠,则返回重叠的资源。
/// * 检测辅助CIDR是否与当前VPC的主CIDR和辅助CIDR存在重叠。
/// * 检测辅助CIDR是否与当前VPC的路由的目的端存在重叠。
/// * 检测辅助CIDR是否与当前VPC的对等连接,对端VPC下的主CIDR或辅助CIDR存在重叠。
/// </summary>
/// <param name="req"><see cref="CheckAssistantCidrRequest"/></param>
/// <returns><see cref="CheckAssistantCidrResponse"/></returns>
public Task<CheckAssistantCidrResponse> CheckAssistantCidr(CheckAssistantCidrRequest req)
{
return InternalRequestAsync<CheckAssistantCidrResponse>(req, "CheckAssistantCidr");
}
/// <summary>
/// 本接口(CheckAssistantCidr)用于检查辅助CIDR是否与存量路由、对等连接(对端VPC的CIDR)等资源存在冲突。如果存在重叠,则返回重叠的资源。
/// * 检测辅助CIDR是否与当前VPC的主CIDR和辅助CIDR存在重叠。
/// * 检测辅助CIDR是否与当前VPC的路由的目的端存在重叠。
/// * 检测辅助CIDR是否与当前VPC的对等连接,对端VPC下的主CIDR或辅助CIDR存在重叠。
/// </summary>
/// <param name="req"><see cref="CheckAssistantCidrRequest"/></param>
/// <returns><see cref="CheckAssistantCidrResponse"/></returns>
public CheckAssistantCidrResponse CheckAssistantCidrSync(CheckAssistantCidrRequest req)
{
return InternalRequestAsync<CheckAssistantCidrResponse>(req, "CheckAssistantCidr")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(CheckDefaultSubnet)用于预判是否可建默认子网。
/// </summary>
/// <param name="req"><see cref="CheckDefaultSubnetRequest"/></param>
/// <returns><see cref="CheckDefaultSubnetResponse"/></returns>
public Task<CheckDefaultSubnetResponse> CheckDefaultSubnet(CheckDefaultSubnetRequest req)
{
return InternalRequestAsync<CheckDefaultSubnetResponse>(req, "CheckDefaultSubnet");
}
/// <summary>
/// 本接口(CheckDefaultSubnet)用于预判是否可建默认子网。
/// </summary>
/// <param name="req"><see cref="CheckDefaultSubnetRequest"/></param>
/// <returns><see cref="CheckDefaultSubnetResponse"/></returns>
public CheckDefaultSubnetResponse CheckDefaultSubnetSync(CheckDefaultSubnetRequest req)
{
return InternalRequestAsync<CheckDefaultSubnetResponse>(req, "CheckDefaultSubnet")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(CheckNetDetectState)用于验证网络探测。
/// </summary>
/// <param name="req"><see cref="CheckNetDetectStateRequest"/></param>
/// <returns><see cref="CheckNetDetectStateResponse"/></returns>
public Task<CheckNetDetectStateResponse> CheckNetDetectState(CheckNetDetectStateRequest req)
{
return InternalRequestAsync<CheckNetDetectStateResponse>(req, "CheckNetDetectState");
}
/// <summary>
/// 本接口(CheckNetDetectState)用于验证网络探测。
/// </summary>
/// <param name="req"><see cref="CheckNetDetectStateRequest"/></param>
/// <returns><see cref="CheckNetDetectStateResponse"/></returns>
public CheckNetDetectStateResponse CheckNetDetectStateSync(CheckNetDetectStateRequest req)
{
return InternalRequestAsync<CheckNetDetectStateResponse>(req, "CheckNetDetectState")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 本接口(ClearRouteTableSelectionPolicies)用于清空指定云联网的路由表选择策略。