Class: TencentCloud::Ecm::V20190719::CreateSubnetRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ecm::V20190719::CreateSubnetRequest
- Defined in:
- lib/v20190719/models.rb
Overview
CreateSubnet请求参数结构体
Instance Attribute Summary collapse
- #CidrBlock ⇒ Object
- #EcmRegion ⇒ Object
- #IPv6CidrBlock ⇒ Object
- #SubnetName ⇒ Object
- #Tags ⇒ Object
- #VpcId ⇒ Object
- #Zone ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(vpcid = nil, subnetname = nil, cidrblock = nil, zone = nil, ecmregion = nil, tags = nil, ipv6cidrblock = nil) ⇒ CreateSubnetRequest
constructor
A new instance of CreateSubnetRequest.
Constructor Details
#initialize(vpcid = nil, subnetname = nil, cidrblock = nil, zone = nil, ecmregion = nil, tags = nil, ipv6cidrblock = nil) ⇒ CreateSubnetRequest
Returns a new instance of CreateSubnetRequest.
1891 1892 1893 1894 1895 1896 1897 1898 1899 |
# File 'lib/v20190719/models.rb', line 1891 def initialize(vpcid=nil, subnetname=nil, cidrblock=nil, zone=nil, ecmregion=nil, =nil, ipv6cidrblock=nil) @VpcId = vpcid @SubnetName = subnetname @CidrBlock = cidrblock @Zone = zone @EcmRegion = ecmregion @Tags = @IPv6CidrBlock = ipv6cidrblock end |
Instance Attribute Details
#CidrBlock ⇒ Object
1889 1890 1891 |
# File 'lib/v20190719/models.rb', line 1889 def CidrBlock @CidrBlock end |
#EcmRegion ⇒ Object
1889 1890 1891 |
# File 'lib/v20190719/models.rb', line 1889 def EcmRegion @EcmRegion end |
#IPv6CidrBlock ⇒ Object
1889 1890 1891 |
# File 'lib/v20190719/models.rb', line 1889 def IPv6CidrBlock @IPv6CidrBlock end |
#SubnetName ⇒ Object
1889 1890 1891 |
# File 'lib/v20190719/models.rb', line 1889 def SubnetName @SubnetName end |
#Tags ⇒ Object
1889 1890 1891 |
# File 'lib/v20190719/models.rb', line 1889 def Tags @Tags end |
#VpcId ⇒ Object
1889 1890 1891 |
# File 'lib/v20190719/models.rb', line 1889 def VpcId @VpcId end |
#Zone ⇒ Object
1889 1890 1891 |
# File 'lib/v20190719/models.rb', line 1889 def Zone @Zone end |
Instance Method Details
#deserialize(params) ⇒ Object
1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 |
# File 'lib/v20190719/models.rb', line 1901 def deserialize(params) @VpcId = params['VpcId'] @SubnetName = params['SubnetName'] @CidrBlock = params['CidrBlock'] @Zone = params['Zone'] @EcmRegion = params['EcmRegion'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @IPv6CidrBlock = params['IPv6CidrBlock'] end |