Class: TencentCloud::Cam::V20190116::AttachedUserPolicy
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cam::V20190116::AttachedUserPolicy
- Defined in:
- lib/v20190116/models.rb
Overview
用户关联的策略详情
Instance Attribute Summary collapse
- #AddTime ⇒ Object
- #CreateMode ⇒ Object
- #Deactived ⇒ Object
- #DeactivedDetail ⇒ Object
- #Description ⇒ Object
- #Groups ⇒ Object
- #PolicyId ⇒ Object
- #PolicyName ⇒ Object
- #StrategyType ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(policyid = nil, policyname = nil, description = nil, addtime = nil, strategytype = nil, createmode = nil, groups = nil, deactived = nil, deactiveddetail = nil) ⇒ AttachedUserPolicy
constructor
A new instance of AttachedUserPolicy.
Constructor Details
#initialize(policyid = nil, policyname = nil, description = nil, addtime = nil, strategytype = nil, createmode = nil, groups = nil, deactived = nil, deactiveddetail = nil) ⇒ AttachedUserPolicy
Returns a new instance of AttachedUserPolicy.
483 484 485 486 487 488 489 490 491 492 493 |
# File 'lib/v20190116/models.rb', line 483 def initialize(policyid=nil, policyname=nil, description=nil, addtime=nil, strategytype=nil, createmode=nil, groups=nil, deactived=nil, deactiveddetail=nil) @PolicyId = policyid @PolicyName = policyname @Description = description @AddTime = addtime @StrategyType = strategytype @CreateMode = createmode @Groups = groups @Deactived = deactived @DeactivedDetail = deactiveddetail end |
Instance Attribute Details
#AddTime ⇒ Object
481 482 483 |
# File 'lib/v20190116/models.rb', line 481 def AddTime @AddTime end |
#CreateMode ⇒ Object
481 482 483 |
# File 'lib/v20190116/models.rb', line 481 def CreateMode @CreateMode end |
#Deactived ⇒ Object
481 482 483 |
# File 'lib/v20190116/models.rb', line 481 def Deactived @Deactived end |
#DeactivedDetail ⇒ Object
481 482 483 |
# File 'lib/v20190116/models.rb', line 481 def DeactivedDetail @DeactivedDetail end |
#Description ⇒ Object
481 482 483 |
# File 'lib/v20190116/models.rb', line 481 def Description @Description end |
#Groups ⇒ Object
481 482 483 |
# File 'lib/v20190116/models.rb', line 481 def Groups @Groups end |
#PolicyId ⇒ Object
481 482 483 |
# File 'lib/v20190116/models.rb', line 481 def PolicyId @PolicyId end |
#PolicyName ⇒ Object
481 482 483 |
# File 'lib/v20190116/models.rb', line 481 def PolicyName @PolicyName end |
#StrategyType ⇒ Object
481 482 483 |
# File 'lib/v20190116/models.rb', line 481 def StrategyType @StrategyType end |
Instance Method Details
#deserialize(params) ⇒ Object
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 |
# File 'lib/v20190116/models.rb', line 495 def deserialize(params) @PolicyId = params['PolicyId'] @PolicyName = params['PolicyName'] @Description = params['Description'] @AddTime = params['AddTime'] @StrategyType = params['StrategyType'] @CreateMode = params['CreateMode'] unless params['Groups'].nil? @Groups = [] params['Groups'].each do |i| attacheduserpolicygroupinfo_tmp = AttachedUserPolicyGroupInfo.new attacheduserpolicygroupinfo_tmp.deserialize(i) @Groups << attacheduserpolicygroupinfo_tmp end end @Deactived = params['Deactived'] @DeactivedDetail = params['DeactivedDetail'] end |