Class: TencentCloud::Organization::V20210331::AddOrganizationNodeRequest

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

Overview

AddOrganizationNode请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parentnodeid = nil, name = nil, remark = nil, tags = nil) ⇒ AddOrganizationNodeRequest

Returns a new instance of AddOrganizationNodeRequest.



153
154
155
156
157
158
# File 'lib/v20210331/models.rb', line 153

def initialize(parentnodeid=nil, name=nil, remark=nil, tags=nil)
  @ParentNodeId = parentnodeid
  @Name = name
  @Remark = remark
  @Tags = tags
end

Instance Attribute Details

#NameObject

Parameters:



151
152
153
# File 'lib/v20210331/models.rb', line 151

def Name
  @Name
end

#ParentNodeIdObject

Parameters:



151
152
153
# File 'lib/v20210331/models.rb', line 151

def ParentNodeId
  @ParentNodeId
end

#RemarkObject

Parameters:



151
152
153
# File 'lib/v20210331/models.rb', line 151

def Remark
  @Remark
end

#TagsObject

Parameters:



151
152
153
# File 'lib/v20210331/models.rb', line 151

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/v20210331/models.rb', line 160

def deserialize(params)
  @ParentNodeId = params['ParentNodeId']
  @Name = params['Name']
  @Remark = params['Remark']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
end