vpc-20160428/core/Models/CreateVSwitchRequest.cs (59 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 CreateVSwitchRequest : TeaModel { /// <summary> /// <para>The CIDR block of the vSwitch. Take note of the following limits:</para> /// <list type="bullet"> /// <item><description>The subnet mask of the CIDR block must be 16 to 29 bits in length.</description></item> /// <item><description>The CIDR block of the vSwitch must fall within the CIDR block of the VPC to which the vSwitch belongs.</description></item> /// <item><description>The CIDR block of a vSwitch cannot be the same as the destination CIDR block in a route entry of the VPC. However, it can be a subset of the destination CIDR block.</description></item> /// </list> /// <para>This parameter is required.</para> /// /// <b>Example:</b> /// <para>172.16.0.0/24</para> /// </summary> [NameInMap("CidrBlock")] [Validation(Required=false)] public string CidrBlock { get; set; } /// <summary> /// <para>The client token that is used to ensure the idempotence of the request.</para> /// <para>You can use the client to generate the value, but you must make sure that it is unique among all requests. The token can contain only ASCII characters.</para> /// <remarks> /// <para> If you do not specify this parameter, <b>ClientToken</b> is set to the value of <b>RequestId</b>. The value of <b>RequestId</b> may be different for each API request.</para> /// </remarks> /// /// <b>Example:</b> /// <para>0c593ea1-3bea-11e9-b96b-88e9fe63****</para> /// </summary> [NameInMap("ClientToken")] [Validation(Required=false)] public string ClientToken { get; set; } /// <summary> /// <para>The description of the vSwitch.</para> /// <para>The description must be 1 to 256 characters in length and cannot start with <c>http://</c> or <c>https://</c>.</para> /// /// <b>Example:</b> /// <para>vSwitch</para> /// </summary> [NameInMap("Description")] [Validation(Required=false)] public string Description { get; set; } /// <summary> /// <para>The last eight bits of the IPv6 CIDR block of the vSwitch. Valid values: <b>0</b> to <b>255</b>.</para> /// /// <b>Example:</b> /// <para>12</para> /// </summary> [NameInMap("Ipv6CidrBlock")] [Validation(Required=false)] public int? Ipv6CidrBlock { 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 region ID of the vSwitch.</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> /// /// <b>Example:</b> /// <para>cn-hangzhou</para> /// </summary> [NameInMap("RegionId")] [Validation(Required=false)] public string RegionId { 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 tag of the resource.</para> /// </summary> [NameInMap("Tag")] [Validation(Required=false)] public List<CreateVSwitchRequestTag> Tag { get; set; } public class CreateVSwitchRequestTag : 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 at most 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>FinanceJoshua</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, but 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>FinanceDept</para> /// </summary> [NameInMap("Value")] [Validation(Required=false)] public string Value { get; set; } } /// <summary> /// <para>The name of the vSwitch.</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-1</para> /// </summary> [NameInMap("VSwitchName")] [Validation(Required=false)] public string VSwitchName { get; set; } /// <summary> /// <para>The ID of the VPC where you want to create the vSwitch.</para> /// <para>This parameter is required.</para> /// /// <b>Example:</b> /// <para>vpc-257gqcdfvx6n****</para> /// </summary> [NameInMap("VpcId")] [Validation(Required=false)] public string VpcId { get; set; } /// <summary> /// <para>The IPv6 CIDR block of the VPC.</para> /// /// <b>Example:</b> /// <para>2408:XXXX:0:6a::/56</para> /// </summary> [NameInMap("VpcIpv6CidrBlock")] [Validation(Required=false)] public string VpcIpv6CidrBlock { get; set; } /// <summary> /// <para>The zone ID of the vSwitch.</para> /// <para>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> /// <para>This parameter is required.</para> /// /// <b>Example:</b> /// <para>cn-hangzhou-b</para> /// </summary> [NameInMap("ZoneId")] [Validation(Required=false)] public string ZoneId { get; set; } } }