Class: TencentCloud::Iss::V20230517::AddOrganizationRequest

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

Overview

AddOrganization请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, parentid = nil) ⇒ AddOrganizationRequest

Returns a new instance of AddOrganizationRequest.



475
476
477
478
# File 'lib/v20230517/models.rb', line 475

def initialize(name=nil, parentid=nil)
  @Name = name
  @ParentId = parentid
end

Instance Attribute Details

#NameObject

Parameters:

  • Name:

    组织名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过64位,且组织名称不能重复)

  • ParentId:

    组织父节点 ID(从查询组织接口DescribeOrganization中获取,填0代表根组织)



473
474
475
# File 'lib/v20230517/models.rb', line 473

def Name
  @Name
end

#ParentIdObject

Parameters:

  • Name:

    组织名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过64位,且组织名称不能重复)

  • ParentId:

    组织父节点 ID(从查询组织接口DescribeOrganization中获取,填0代表根组织)



473
474
475
# File 'lib/v20230517/models.rb', line 473

def ParentId
  @ParentId
end

Instance Method Details

#deserialize(params) ⇒ Object



480
481
482
483
# File 'lib/v20230517/models.rb', line 480

def deserialize(params)
  @Name = params['Name']
  @ParentId = params['ParentId']
end