Class: TencentCloud::Thpc::V20211109::VirtualPrivateCloud

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20211109/models.rb

Overview

描述了VPC相关信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vpcid = nil, subnetid = nil) ⇒ VirtualPrivateCloud

Returns a new instance of VirtualPrivateCloud.



875
876
877
878
# File 'lib/v20211109/models.rb', line 875

def initialize(vpcid=nil, subnetid=nil)
  @VpcId = vpcid
  @SubnetId = subnetid
end

Instance Attribute Details

#SubnetIdObject

Parameters:

  • 私有网络ID,形如vpc-xxx。有效的VpcId可通过登录控制台查询;也可以调用接口 DescribeVpcEx ,从接口返回中的unVpcId字段获取。若在创建子机时VpcId与SubnetId同时传入DEFAULT,则强制使用默认vpc网络。

  • 私有网络子网ID,形如subnet-xxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 DescribeSubnets ,从接口返回中的unSubnetId字段获取。若在创建子机时SubnetId与VpcId同时传入DEFAULT,则强制使用默认vpc网络。



873
874
875
# File 'lib/v20211109/models.rb', line 873

def SubnetId
  @SubnetId
end

#VpcIdObject

Parameters:

  • 私有网络ID,形如vpc-xxx。有效的VpcId可通过登录控制台查询;也可以调用接口 DescribeVpcEx ,从接口返回中的unVpcId字段获取。若在创建子机时VpcId与SubnetId同时传入DEFAULT,则强制使用默认vpc网络。

  • 私有网络子网ID,形如subnet-xxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 DescribeSubnets ,从接口返回中的unSubnetId字段获取。若在创建子机时SubnetId与VpcId同时传入DEFAULT,则强制使用默认vpc网络。



873
874
875
# File 'lib/v20211109/models.rb', line 873

def VpcId
  @VpcId
end

Instance Method Details

#deserialize(params) ⇒ Object



880
881
882
883
# File 'lib/v20211109/models.rb', line 880

def deserialize(params)
  @VpcId = params['VpcId']
  @SubnetId = params['SubnetId']
end