Class: TencentCloud::Dc::V20180410::DescribeInternetAddressResponse

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

Overview

DescribeInternetAddress返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, subnets = nil, requestid = nil) ⇒ DescribeInternetAddressResponse

Returns a new instance of DescribeInternetAddressResponse.



1147
1148
1149
1150
1151
# File 'lib/v20180410/models.rb', line 1147

def initialize(totalcount=nil, subnets=nil, requestid=nil)
  @TotalCount = totalcount
  @Subnets = subnets
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    互联网公网地址数量

  • Subnets:

    互联网公网地址列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1145
1146
1147
# File 'lib/v20180410/models.rb', line 1145

def RequestId
  @RequestId
end

#SubnetsObject

Parameters:

  • TotalCount:

    互联网公网地址数量

  • Subnets:

    互联网公网地址列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1145
1146
1147
# File 'lib/v20180410/models.rb', line 1145

def Subnets
  @Subnets
end

#TotalCountObject

Parameters:

  • TotalCount:

    互联网公网地址数量

  • Subnets:

    互联网公网地址列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1145
1146
1147
# File 'lib/v20180410/models.rb', line 1145

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
# File 'lib/v20180410/models.rb', line 1153

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Subnets'].nil?
    @Subnets = []
    params['Subnets'].each do |i|
      internetaddressdetail_tmp = InternetAddressDetail.new
      internetaddressdetail_tmp.deserialize(i)
      @Subnets << internetaddressdetail_tmp
    end
  end
  @RequestId = params['RequestId']
end