Class: TencentCloud::Waf::V20180125::DescribeInstancesResponse

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

Overview

DescribeInstances返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(total = nil, instances = nil, requestid = nil) ⇒ DescribeInstancesResponse

Returns a new instance of DescribeInstancesResponse.



5535
5536
5537
5538
5539
# File 'lib/v20180125/models.rb', line 5535

def initialize(total=nil, instances=nil, requestid=nil)
  @Total = total
  @Instances = instances
  @RequestId = requestid
end

Instance Attribute Details

#InstancesObject

Parameters:

  • Total:

    总数

  • Instances:

    instance列表

  • RequestId:

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



5533
5534
5535
# File 'lib/v20180125/models.rb', line 5533

def Instances
  @Instances
end

#RequestIdObject

Parameters:

  • Total:

    总数

  • Instances:

    instance列表

  • RequestId:

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



5533
5534
5535
# File 'lib/v20180125/models.rb', line 5533

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • Total:

    总数

  • Instances:

    instance列表

  • RequestId:

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



5533
5534
5535
# File 'lib/v20180125/models.rb', line 5533

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
# File 'lib/v20180125/models.rb', line 5541

def deserialize(params)
  @Total = params['Total']
  unless params['Instances'].nil?
    @Instances = []
    params['Instances'].each do |i|
      instanceinfo_tmp = InstanceInfo.new
      instanceinfo_tmp.deserialize(i)
      @Instances << instanceinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end