Class: TencentCloud::Thpc::V20220401::VirtualPrivateCloud

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20220401/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.



2022
2023
2024
2025
# File 'lib/v20220401/models.rb', line 2022

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

Instance Attribute Details

#SubnetIdObject

Parameters:

  • VpcId:

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

  • SubnetId:

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



2020
2021
2022
# File 'lib/v20220401/models.rb', line 2020

def SubnetId
  @SubnetId
end

#VpcIdObject

Parameters:

  • VpcId:

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

  • SubnetId:

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



2020
2021
2022
# File 'lib/v20220401/models.rb', line 2020

def VpcId
  @VpcId
end

Instance Method Details

#deserialize(params) ⇒ Object



2027
2028
2029
2030
# File 'lib/v20220401/models.rb', line 2027

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