Class: TencentCloud::Cam::V20190116::ListGrantServiceAccessNode
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cam::V20190116::ListGrantServiceAccessNode
- Defined in:
- lib/v20190116/models.rb
Overview
用于ListPoliciesGrantingServiceAccess接口的List节点
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(service = nil, action = nil, policy = nil) ⇒ ListGrantServiceAccessNode
constructor
A new instance of ListGrantServiceAccessNode.
Constructor Details
#initialize(service = nil, action = nil, policy = nil) ⇒ ListGrantServiceAccessNode
Returns a new instance of ListGrantServiceAccessNode.
3473 3474 3475 3476 3477 |
# File 'lib/v20190116/models.rb', line 3473 def initialize(service=nil, action=nil, policy=nil) @Service = service @Action = action @Policy = policy end |
Instance Attribute Details
#Action ⇒ Object
3471 3472 3473 |
# File 'lib/v20190116/models.rb', line 3471 def Action @Action end |
#Policy ⇒ Object
3471 3472 3473 |
# File 'lib/v20190116/models.rb', line 3471 def Policy @Policy end |
#Service ⇒ Object
3471 3472 3473 |
# File 'lib/v20190116/models.rb', line 3471 def Service @Service end |
Instance Method Details
#deserialize(params) ⇒ Object
3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 |
# File 'lib/v20190116/models.rb', line 3479 def deserialize(params) unless params['Service'].nil? @Service = ListGrantServiceAccessService.new @Service.deserialize(params['Service']) end unless params['Action'].nil? @Action = [] params['Action'].each do |i| listgrantserviceaccessactionnode_tmp = ListGrantServiceAccessActionNode.new listgrantserviceaccessactionnode_tmp.deserialize(i) @Action << listgrantserviceaccessactionnode_tmp end end unless params['Policy'].nil? @Policy = [] params['Policy'].each do |i| listgrantserviceaccesspolicy_tmp = ListGrantServiceAccessPolicy.new listgrantserviceaccesspolicy_tmp.deserialize(i) @Policy << listgrantserviceaccesspolicy_tmp end end end |