vpc-20160428/core/Models/DescribeVSwitchesRequest.cs (71 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 DescribeVSwitchesRequest : TeaModel {
/// <summary>
/// <para>Specifies whether to perform a dry run, without performing the actual request. Valid values:</para>
/// <list type="bullet">
/// <item><description><b>true</b>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. 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 performs the actual 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>true</para>
/// </summary>
[NameInMap("DryRun")]
[Validation(Required=false)]
public bool? DryRun { get; set; }
/// <summary>
/// <para>Specifies whether to query vSwitches with IPv6 enabled in the region. Valid values:</para>
/// <list type="bullet">
/// <item><description><b>true</b></description></item>
/// <item><description><b>false</b></description></item>
/// </list>
/// <para>If you do not set this parameter, the system queries all vSwitches in the specified region by default.</para>
///
/// <b>Example:</b>
/// <para>false</para>
///
/// <b>if can be null:</b>
/// <c>true</c>
/// </summary>
[NameInMap("EnableIpv6")]
[Validation(Required=false)]
public bool? EnableIpv6 { get; set; }
/// <summary>
/// <para>Specifies whether to query the default vSwitches in the specified region. Valid values:</para>
/// <list type="bullet">
/// <item><description><b>true</b></description></item>
/// <item><description><b>false</b></description></item>
/// </list>
/// <para>If you do not set this parameter, the system queries all vSwitches in the specified region by default.</para>
///
/// <b>Example:</b>
/// <para>true</para>
/// </summary>
[NameInMap("IsDefault")]
[Validation(Required=false)]
public bool? IsDefault { 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 page number. Default value: <b>1</b>.</para>
///
/// <b>Example:</b>
/// <para>1</para>
/// </summary>
[NameInMap("PageNumber")]
[Validation(Required=false)]
public int? PageNumber { get; set; }
/// <summary>
/// <para>The number of entries per page. Maximum value: <b>50</b>. Default value: <b>10</b>.</para>
///
/// <b>Example:</b>
/// <para>10</para>
/// </summary>
[NameInMap("PageSize")]
[Validation(Required=false)]
public int? PageSize { get; set; }
/// <summary>
/// <para>The region ID of the vSwitch. 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>
/// <remarks>
/// <para> You must set at least one of <b>RegionId</b> and <b>VpcId</b>.</para>
/// </remarks>
///
/// <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 vSwitch 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 ID of the route table.</para>
///
/// <b>Example:</b>
/// <para>vtb-bp145q7glnuzdvzu2****</para>
/// </summary>
[NameInMap("RouteTableId")]
[Validation(Required=false)]
public string RouteTableId { get; set; }
/// <summary>
/// <para>The tags.</para>
/// </summary>
[NameInMap("Tag")]
[Validation(Required=false)]
public List<DescribeVSwitchesRequestTag> Tag { get; set; }
public class DescribeVSwitchesRequestTag : TeaModel {
/// <summary>
/// <para>The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.</para>
/// <para>The tag key can be up to 128 characters in length. It cannot start with <c>aliyun</c> or <c>acs:</c>, and cannot contain <c>http://</c> or <c>https://</c>.</para>
///
/// <b>Example:</b>
/// <para>FinanceDept</para>
/// </summary>
[NameInMap("Key")]
[Validation(Required=false)]
public string Key { get; set; }
/// <summary>
/// <para>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</para>
/// <para>The tag value can be up to 128 characters in length, and cannot contain <c>http://</c> or <c>https://</c>. The tag value cannot start with <c>aliyun</c> or <c>acs:</c>.</para>
///
/// <b>Example:</b>
/// <para>FinanceJoshua</para>
/// </summary>
[NameInMap("Value")]
[Validation(Required=false)]
public string Value { get; set; }
}
/// <summary>
/// <para>The ID of the vSwitch that you want to query.</para>
///
/// <b>Example:</b>
/// <para>vsw-23dscddcffvf3****</para>
/// </summary>
[NameInMap("VSwitchId")]
[Validation(Required=false)]
public string VSwitchId { get; set; }
/// <summary>
/// <para>The vSwitch name.</para>
/// <para>The name must be 1 to 128 characters in length, and cannot start with <c>http://</c> or <c>https://</c>.</para>
///
/// <b>Example:</b>
/// <para>vSwitch</para>
/// </summary>
[NameInMap("VSwitchName")]
[Validation(Required=false)]
public string VSwitchName { get; set; }
/// <summary>
/// <para>The ID of the Alibaba Cloud account to which the vSwitch belongs.</para>
///
/// <b>Example:</b>
/// <para>2546073170691****</para>
/// </summary>
[NameInMap("VSwitchOwnerId")]
[Validation(Required=false)]
public long? VSwitchOwnerId { get; set; }
/// <summary>
/// <para>The ID of the virtual private cloud (VPC) to which the vSwitches belong.</para>
/// <remarks>
/// <para> You must set at least one of <b>RegionId</b> and <b>VpcId</b>.</para>
/// </remarks>
///
/// <b>Example:</b>
/// <para>vpc-25cdvfeq58pl****</para>
/// </summary>
[NameInMap("VpcId")]
[Validation(Required=false)]
public string VpcId { get; set; }
/// <summary>
/// <para>The ID of the zone to which the vSwitches belong. You can call the <a href="https://help.aliyun.com/document_detail/36064.html">DescribeZones</a> operation to query the most recent zone list.</para>
///
/// <b>Example:</b>
/// <para>cn-hangzhou-d</para>
/// </summary>
[NameInMap("ZoneId")]
[Validation(Required=false)]
public string ZoneId { get; set; }
}
}