Class: TencentCloud::Cam::V20190116::GetPolicyVersionResponse

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

Overview

GetPolicyVersion返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policyversion = nil, requestid = nil) ⇒ GetPolicyVersionResponse

Returns a new instance of GetPolicyVersionResponse.



2453
2454
2455
2456
# File 'lib/v20190116/models.rb', line 2453

def initialize(policyversion=nil, requestid=nil)
  @PolicyVersion = policyversion
  @RequestId = requestid
end

Instance Attribute Details

#PolicyVersionObject

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

Parameters:

  • PolicyVersion:

    策略版本详情

  • RequestId:

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



2451
2452
2453
# File 'lib/v20190116/models.rb', line 2451

def PolicyVersion
  @PolicyVersion
end

#RequestIdObject

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

Parameters:

  • PolicyVersion:

    策略版本详情

  • RequestId:

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



2451
2452
2453
# File 'lib/v20190116/models.rb', line 2451

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



2458
2459
2460
2461
2462
2463
2464
# File 'lib/v20190116/models.rb', line 2458

def deserialize(params)
  unless params['PolicyVersion'].nil?
    @PolicyVersion = PolicyVersionDetail.new
    @PolicyVersion.deserialize(params['PolicyVersion'])
  end
  @RequestId = params['RequestId']
end