Class: TencentCloud::Cam::V20190116::ListAttachedUserPoliciesResponse

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

Overview

ListAttachedUserPolicies返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalnum = nil, list = nil, requestid = nil) ⇒ ListAttachedUserPoliciesResponse

Returns a new instance of ListAttachedUserPoliciesResponse.



3263
3264
3265
3266
3267
# File 'lib/v20190116/models.rb', line 3263

def initialize(totalnum=nil, list=nil, requestid=nil)
  @TotalNum = totalnum
  @List = list
  @RequestId = requestid
end

Instance Attribute Details

#ListObject

Parameters:

  • TotalNum:

    策略总数

  • List:

    策略列表

  • RequestId:

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



3261
3262
3263
# File 'lib/v20190116/models.rb', line 3261

def List
  @List
end

#RequestIdObject

Parameters:

  • TotalNum:

    策略总数

  • List:

    策略列表

  • RequestId:

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



3261
3262
3263
# File 'lib/v20190116/models.rb', line 3261

def RequestId
  @RequestId
end

#TotalNumObject

Parameters:

  • TotalNum:

    策略总数

  • List:

    策略列表

  • RequestId:

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



3261
3262
3263
# File 'lib/v20190116/models.rb', line 3261

def TotalNum
  @TotalNum
end

Instance Method Details

#deserialize(params) ⇒ Object



3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
# File 'lib/v20190116/models.rb', line 3269

def deserialize(params)
  @TotalNum = params['TotalNum']
  unless params['List'].nil?
    @List = []
    params['List'].each do |i|
      attachpolicyinfo_tmp = AttachPolicyInfo.new
      attachpolicyinfo_tmp.deserialize(i)
      @List << attachpolicyinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end