Class: TencentCloud::Cam::V20190116::ListPolicyVersionsResponse

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

Overview

ListPolicyVersions返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(versions = nil, requestid = nil) ⇒ ListPolicyVersionsResponse

Returns a new instance of ListPolicyVersionsResponse.



3772
3773
3774
3775
# File 'lib/v20190116/models.rb', line 3772

def initialize(versions=nil, requestid=nil)
  @Versions = versions
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Versions:

    策略版本列表

  • RequestId:

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



3770
3771
3772
# File 'lib/v20190116/models.rb', line 3770

def RequestId
  @RequestId
end

#VersionsObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Versions:

    策略版本列表

  • RequestId:

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



3770
3771
3772
# File 'lib/v20190116/models.rb', line 3770

def Versions
  @Versions
end

Instance Method Details

#deserialize(params) ⇒ Object



3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
# File 'lib/v20190116/models.rb', line 3777

def deserialize(params)
  unless params['Versions'].nil?
    @Versions = []
    params['Versions'].each do |i|
      policyversionitem_tmp = PolicyVersionItem.new
      policyversionitem_tmp.deserialize(i)
      @Versions << policyversionitem_tmp
    end
  end
  @RequestId = params['RequestId']
end