Class: TencentCloud::Organization::V20210331::OrgNode
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Organization::V20210331::OrgNode
- Defined in:
- lib/v20210331/models.rb
Overview
企业组织单元
Instance Attribute Summary collapse
- #CreateTime ⇒ Object
- #Name ⇒ Object
- #NodeId ⇒ Object
- #ParentNodeId ⇒ Object
- #Remark ⇒ Object
- #Tags ⇒ Object
- #UpdateTime ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(nodeid = nil, name = nil, parentnodeid = nil, remark = nil, createtime = nil, updatetime = nil, tags = nil) ⇒ OrgNode
constructor
A new instance of OrgNode.
Constructor Details
#initialize(nodeid = nil, name = nil, parentnodeid = nil, remark = nil, createtime = nil, updatetime = nil, tags = nil) ⇒ OrgNode
Returns a new instance of OrgNode.
6290 6291 6292 6293 6294 6295 6296 6297 6298 |
# File 'lib/v20210331/models.rb', line 6290 def initialize(nodeid=nil, name=nil, parentnodeid=nil, remark=nil, createtime=nil, updatetime=nil, =nil) @NodeId = nodeid @Name = name @ParentNodeId = parentnodeid @Remark = remark @CreateTime = createtime @UpdateTime = updatetime @Tags = end |
Instance Attribute Details
#CreateTime ⇒ Object
6288 6289 6290 |
# File 'lib/v20210331/models.rb', line 6288 def CreateTime @CreateTime end |
#Name ⇒ Object
6288 6289 6290 |
# File 'lib/v20210331/models.rb', line 6288 def Name @Name end |
#NodeId ⇒ Object
6288 6289 6290 |
# File 'lib/v20210331/models.rb', line 6288 def NodeId @NodeId end |
#ParentNodeId ⇒ Object
6288 6289 6290 |
# File 'lib/v20210331/models.rb', line 6288 def ParentNodeId @ParentNodeId end |
#Remark ⇒ Object
6288 6289 6290 |
# File 'lib/v20210331/models.rb', line 6288 def Remark @Remark end |
#Tags ⇒ Object
6288 6289 6290 |
# File 'lib/v20210331/models.rb', line 6288 def Tags @Tags end |
#UpdateTime ⇒ Object
6288 6289 6290 |
# File 'lib/v20210331/models.rb', line 6288 def UpdateTime @UpdateTime end |
Instance Method Details
#deserialize(params) ⇒ Object
6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 |
# File 'lib/v20210331/models.rb', line 6300 def deserialize(params) @NodeId = params['NodeId'] @Name = params['Name'] @ParentNodeId = params['ParentNodeId'] @Remark = params['Remark'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |