Class: TencentCloud::Cdwch::V20200915::DescribeCNInstancesResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdwch::V20200915::DescribeCNInstancesResponse
- Defined in:
- lib/v20200915/models.rb
Overview
DescribeCNInstances返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, instanceslist = nil, errormsg = nil, requestid = nil) ⇒ DescribeCNInstancesResponse
constructor
A new instance of DescribeCNInstancesResponse.
Constructor Details
#initialize(totalcount = nil, instanceslist = nil, errormsg = nil, requestid = nil) ⇒ DescribeCNInstancesResponse
Returns a new instance of DescribeCNInstancesResponse.
1032 1033 1034 1035 1036 1037 |
# File 'lib/v20200915/models.rb', line 1032 def initialize(totalcount=nil, instanceslist=nil, errormsg=nil, requestid=nil) @TotalCount = totalcount @InstancesList = instanceslist @ErrorMsg = errormsg @RequestId = requestid end |
Instance Attribute Details
#ErrorMsg ⇒ Object
1030 1031 1032 |
# File 'lib/v20200915/models.rb', line 1030 def ErrorMsg @ErrorMsg end |
#InstancesList ⇒ Object
1030 1031 1032 |
# File 'lib/v20200915/models.rb', line 1030 def InstancesList @InstancesList end |
#RequestId ⇒ Object
1030 1031 1032 |
# File 'lib/v20200915/models.rb', line 1030 def RequestId @RequestId end |
#TotalCount ⇒ Object
1030 1031 1032 |
# File 'lib/v20200915/models.rb', line 1030 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
# File 'lib/v20200915/models.rb', line 1039 def deserialize(params) @TotalCount = params['TotalCount'] unless params['InstancesList'].nil? @InstancesList = [] params['InstancesList'].each do |i| cninstanceinfo_tmp = CnInstanceInfo.new cninstanceinfo_tmp.deserialize(i) @InstancesList << cninstanceinfo_tmp end end @ErrorMsg = params['ErrorMsg'] @RequestId = params['RequestId'] end |