vpc-20160428/core/Models/DescribeNatGatewaysRequest.cs (74 lines of code) (raw):

// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AlibabaCloud.SDK.Vpc20160428.Models { public class DescribeNatGatewaysRequest : TeaModel { /// <summary> /// <para>Specifies whether to perform a dry run. Valid values:</para> /// <list type="bullet"> /// <item><description><b>true</b>: performs a dry run. The system prechecks whether your AccessKey pair is valid, whether the RAM user is authorized, and whether the required parameters are specified. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <c>DryRunOperation</c> error code is returned.</description></item> /// <item><description><b>false</b> (default): performs a dry run and sends the request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</description></item> /// </list> /// /// <b>Example:</b> /// <para>false</para> /// </summary> [NameInMap("DryRun")] [Validation(Required=false)] public bool? DryRun { get; set; } /// <summary> /// <para>The billing method of the NAT gateway. Set the value to <b>PostPaid</b>, which specifies the pay-as-you-go billing method.</para> /// /// <b>Example:</b> /// <para>PostPaid</para> /// </summary> [NameInMap("InstanceChargeType")] [Validation(Required=false)] public string InstanceChargeType { get; set; } /// <summary> /// <para>The name of the NAT gateway. </para> /// <para>The name must be 1 to 128 characters in length, and cannot start with <c>http://</c> or <c>https://</c>. </para> /// <para>If this parameter is not set, the system automatically assigns a name to the NAT gateway.</para> /// /// <b>Example:</b> /// <para>test</para> /// </summary> [NameInMap("Name")] [Validation(Required=false)] public string Name { get; set; } /// <summary> /// <para>The ID of the NAT gateway.</para> /// /// <b>Example:</b> /// <para>ngw-bp1uewa15k4iy5770****</para> /// </summary> [NameInMap("NatGatewayId")] [Validation(Required=false)] public string NatGatewayId { get; set; } /// <summary> /// <para>The type of NAT gateway. Set the value to <b>Enhanced</b> (enhanced NAT gateway).</para> /// /// <b>Example:</b> /// <para>Enhanced</para> /// </summary> [NameInMap("NatType")] [Validation(Required=false)] public string NatType { get; set; } /// <summary> /// <para>The type of the NAT gateway. Valid values:</para> /// <list type="bullet"> /// <item><description><b>internet</b>: an Internet NAT gateway</description></item> /// <item><description><b>intranet</b>: a VPC NAT gateway</description></item> /// </list> /// /// <b>Example:</b> /// <para>internet</para> /// </summary> [NameInMap("NetworkType")] [Validation(Required=false)] public string NetworkType { get; set; } [NameInMap("OwnerAccount")] [Validation(Required=false)] public string OwnerAccount { get; set; } [NameInMap("OwnerId")] [Validation(Required=false)] public long? OwnerId { get; set; } /// <summary> /// <para>The number of the page to return. Default value: <b>1</b>.</para> /// /// <b>Example:</b> /// <para>10</para> /// </summary> [NameInMap("PageNumber")] [Validation(Required=false)] public int? PageNumber { get; set; } /// <summary> /// <para>The number of entries to return on each page. Maximum value: <b>50</b>. Default value: <b>10</b>.</para> /// /// <b>Example:</b> /// <para>1</para> /// </summary> [NameInMap("PageSize")] [Validation(Required=false)] public int? PageSize { get; set; } /// <summary> /// <para>The region ID of the NAT gateways that you want to query.</para> /// <para>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</para> /// <para>This parameter is required.</para> /// /// <b>Example:</b> /// <para>cn-hangzhou</para> /// </summary> [NameInMap("RegionId")] [Validation(Required=false)] public string RegionId { get; set; } /// <summary> /// <para>The ID of the resource group to which the NAT gateway belongs.</para> /// /// <b>Example:</b> /// <para>rg-bp67acfmxazb4ph****</para> /// </summary> [NameInMap("ResourceGroupId")] [Validation(Required=false)] public string ResourceGroupId { get; set; } [NameInMap("ResourceOwnerAccount")] [Validation(Required=false)] public string ResourceOwnerAccount { get; set; } [NameInMap("ResourceOwnerId")] [Validation(Required=false)] public long? ResourceOwnerId { get; set; } /// <summary> /// <para>The size of the NAT gateway. Ignore this parameter.</para> /// /// <b>Example:</b> /// <para>Invalid parameter.</para> /// </summary> [NameInMap("Spec")] [Validation(Required=false)] public string Spec { get; set; } /// <summary> /// <para>The status of the NAT gateway. Valid values:</para> /// <list type="bullet"> /// <item><description><b>Creating</b>: After you send a request to create a NAT gateway, the system creates the NAT gateway in the background. The NAT gateway remains in the <b>Creating</b> state until the operation is completed.</description></item> /// <item><description><b>Available</b>: The NAT gateway remains in a stable state after the NAT gateway is created.</description></item> /// <item><description><b>Modifying</b>: After you send a request to modify a NAT gateway, the system modifies the NAT gateway in the background. The NAT gateway remains in the <b>Modifying</b> state until the operation is completed.</description></item> /// <item><description><b>Deleting</b>: After you send a request to delete a NAT gateway, the system deletes the NAT gateway in the background. The NAT gateway remains in the <b>Deleting</b> state until the operation is completed.</description></item> /// <item><description><b>Converting</b>: After you send a request to upgrade a standard NAT gateway to an enhanced NAT gateway, the system upgrades the NAT gateway in the background. The NAT gateway remains in the <b>Converting</b> state until the operation is completed.</description></item> /// </list> /// /// <b>Example:</b> /// <para>Available</para> /// </summary> [NameInMap("Status")] [Validation(Required=false)] public string Status { get; set; } /// <summary> /// <para>The tags.</para> /// </summary> [NameInMap("Tag")] [Validation(Required=false)] public List<DescribeNatGatewaysRequestTag> Tag { get; set; } public class DescribeNatGatewaysRequestTag : TeaModel { /// <summary> /// <para>The tag keys of the NAT gateway. You can specify up to 20 tag keys.</para> /// <para>Each tag key cannot exceed 64 characters in length, and cannot start with <c>aliyun</c> or <c>acs:</c>. It cannot contain <c>http://</c> or <c>https://</c>.</para> /// /// <b>Example:</b> /// <para>KeyTest</para> /// </summary> [NameInMap("Key")] [Validation(Required=false)] public string Key { get; set; } /// <summary> /// <para>The tag values of the NAT gateway. You can specify up to 20 tag values.</para> /// <para>The tag value cannot exceed 128 characters in length, and cannot start with <c>aliyun</c> or <c>acs:</c>. The value cannot contain <c>http://</c> or <c>https://</c>.</para> /// /// <b>Example:</b> /// <para>valueTest</para> /// </summary> [NameInMap("Value")] [Validation(Required=false)] public string Value { get; set; } } /// <summary> /// <para>The ID of the VPC to which the NAT gateway belongs.</para> /// /// <b>Example:</b> /// <para>vpc-bp15zckdt37pq72z****</para> /// </summary> [NameInMap("VpcId")] [Validation(Required=false)] public string VpcId { get; set; } /// <summary> /// <para>The ID of the zone to which the NAT gateway belongs.</para> /// /// <b>Example:</b> /// <para>cn-hangzhou-b</para> /// </summary> [NameInMap("ZoneId")] [Validation(Required=false)] public string ZoneId { get; set; } } }