lib/v20191018/models.rb in tencentcloud-sdk-dasb-3.0.387 vs lib/v20191018/models.rb in tencentcloud-sdk-dasb-3.0.388

- old
+ new

@@ -71,14 +71,17 @@ # @param ValidateTo: 访问权限失效时间,如:"2021-09-23T00:00:00+00:00" # 生效、失效时间不填则访问权限长期有效 # @type ValidateTo: String # @param Status: 访问权限状态,1 - 已生效,2 - 未生效,3 - 已过期 # @type Status: Integer + # @param Department: 所属部门的信息 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Department: :class:`Tencentcloud::Dasb.v20191018.models.Department` - attr_accessor :Id, :Name, :AllowDiskRedirect, :AllowClipFileUp, :AllowClipFileDown, :AllowClipTextUp, :AllowClipTextDown, :AllowFileUp, :MaxFileUpSize, :AllowFileDown, :MaxFileDownSize, :AllowAnyAccount, :UserSet, :UserGroupSet, :DeviceSet, :DeviceGroupSet, :AccountSet, :CmdTemplateSet, :AllowDiskFileUp, :AllowDiskFileDown, :AllowShellFileUp, :AllowShellFileDown, :AllowFileDel, :ValidateFrom, :ValidateTo, :Status + attr_accessor :Id, :Name, :AllowDiskRedirect, :AllowClipFileUp, :AllowClipFileDown, :AllowClipTextUp, :AllowClipTextDown, :AllowFileUp, :MaxFileUpSize, :AllowFileDown, :MaxFileDownSize, :AllowAnyAccount, :UserSet, :UserGroupSet, :DeviceSet, :DeviceGroupSet, :AccountSet, :CmdTemplateSet, :AllowDiskFileUp, :AllowDiskFileDown, :AllowShellFileUp, :AllowShellFileDown, :AllowFileDel, :ValidateFrom, :ValidateTo, :Status, :Department - def initialize(id=nil, name=nil, allowdiskredirect=nil, allowclipfileup=nil, allowclipfiledown=nil, allowcliptextup=nil, allowcliptextdown=nil, allowfileup=nil, maxfileupsize=nil, allowfiledown=nil, maxfiledownsize=nil, allowanyaccount=nil, userset=nil, usergroupset=nil, deviceset=nil, devicegroupset=nil, accountset=nil, cmdtemplateset=nil, allowdiskfileup=nil, allowdiskfiledown=nil, allowshellfileup=nil, allowshellfiledown=nil, allowfiledel=nil, validatefrom=nil, validateto=nil, status=nil) + def initialize(id=nil, name=nil, allowdiskredirect=nil, allowclipfileup=nil, allowclipfiledown=nil, allowcliptextup=nil, allowcliptextdown=nil, allowfileup=nil, maxfileupsize=nil, allowfiledown=nil, maxfiledownsize=nil, allowanyaccount=nil, userset=nil, usergroupset=nil, deviceset=nil, devicegroupset=nil, accountset=nil, cmdtemplateset=nil, allowdiskfileup=nil, allowdiskfiledown=nil, allowshellfileup=nil, allowshellfiledown=nil, allowfiledel=nil, validatefrom=nil, validateto=nil, status=nil, department=nil) @Id = id @Name = name @AllowDiskRedirect = allowdiskredirect @AllowClipFileUp = allowclipfileup @AllowClipFileDown = allowclipfiledown @@ -101,10 +104,11 @@ @AllowShellFileDown = allowshellfiledown @AllowFileDel = allowfiledel @ValidateFrom = validatefrom @ValidateTo = validateto @Status = status + @Department = department end def deserialize(params) @Id = params['Id'] @Name = params['Name'] @@ -165,10 +169,14 @@ @AllowShellFileDown = params['AllowShellFileDown'] @AllowFileDel = params['AllowFileDel'] @ValidateFrom = params['ValidateFrom'] @ValidateTo = params['ValidateTo'] @Status = params['Status'] + unless params['Department'].nil? + @Department = Department.new + @Department.deserialize(params['Department']) + end end end # AddDeviceGroupMembers请求参数结构体 class AddDeviceGroupMembersRequest < TencentCloud::Common::AbstractModel @@ -352,14 +360,16 @@ # 生效、失效时间不填则访问权限长期有效 # @type ValidateFrom: String # @param ValidateTo: 访问权限失效时间,如:"2021-09-23T00:00:00+00:00" # 生效、失效时间不填则访问权限长期有效 # @type ValidateTo: String + # @param DepartmentId: 访问权限所属部门的ID + # @type DepartmentId: String - attr_accessor :Name, :AllowDiskRedirect, :AllowAnyAccount, :AllowClipFileUp, :AllowClipFileDown, :AllowClipTextUp, :AllowClipTextDown, :AllowFileUp, :MaxFileUpSize, :AllowFileDown, :MaxFileDownSize, :UserIdSet, :UserGroupIdSet, :DeviceIdSet, :DeviceGroupIdSet, :AccountSet, :CmdTemplateIdSet, :AllowDiskFileUp, :AllowDiskFileDown, :AllowShellFileUp, :AllowShellFileDown, :AllowFileDel, :ValidateFrom, :ValidateTo + attr_accessor :Name, :AllowDiskRedirect, :AllowAnyAccount, :AllowClipFileUp, :AllowClipFileDown, :AllowClipTextUp, :AllowClipTextDown, :AllowFileUp, :MaxFileUpSize, :AllowFileDown, :MaxFileDownSize, :UserIdSet, :UserGroupIdSet, :DeviceIdSet, :DeviceGroupIdSet, :AccountSet, :CmdTemplateIdSet, :AllowDiskFileUp, :AllowDiskFileDown, :AllowShellFileUp, :AllowShellFileDown, :AllowFileDel, :ValidateFrom, :ValidateTo, :DepartmentId - def initialize(name=nil, allowdiskredirect=nil, allowanyaccount=nil, allowclipfileup=nil, allowclipfiledown=nil, allowcliptextup=nil, allowcliptextdown=nil, allowfileup=nil, maxfileupsize=nil, allowfiledown=nil, maxfiledownsize=nil, useridset=nil, usergroupidset=nil, deviceidset=nil, devicegroupidset=nil, accountset=nil, cmdtemplateidset=nil, allowdiskfileup=nil, allowdiskfiledown=nil, allowshellfileup=nil, allowshellfiledown=nil, allowfiledel=nil, validatefrom=nil, validateto=nil) + def initialize(name=nil, allowdiskredirect=nil, allowanyaccount=nil, allowclipfileup=nil, allowclipfiledown=nil, allowcliptextup=nil, allowcliptextdown=nil, allowfileup=nil, maxfileupsize=nil, allowfiledown=nil, maxfiledownsize=nil, useridset=nil, usergroupidset=nil, deviceidset=nil, devicegroupidset=nil, accountset=nil, cmdtemplateidset=nil, allowdiskfileup=nil, allowdiskfiledown=nil, allowshellfileup=nil, allowshellfiledown=nil, allowfiledel=nil, validatefrom=nil, validateto=nil, departmentid=nil) @Name = name @AllowDiskRedirect = allowdiskredirect @AllowAnyAccount = allowanyaccount @AllowClipFileUp = allowclipfileup @AllowClipFileDown = allowclipfiledown @@ -380,10 +390,11 @@ @AllowShellFileUp = allowshellfileup @AllowShellFileDown = allowshellfiledown @AllowFileDel = allowfiledel @ValidateFrom = validatefrom @ValidateTo = validateto + @DepartmentId = departmentid end def deserialize(params) @Name = params['Name'] @AllowDiskRedirect = params['AllowDiskRedirect'] @@ -407,10 +418,11 @@ @AllowShellFileUp = params['AllowShellFileUp'] @AllowShellFileDown = params['AllowShellFileDown'] @AllowFileDel = params['AllowFileDel'] @ValidateFrom = params['ValidateFrom'] @ValidateTo = params['ValidateTo'] + @DepartmentId = params['DepartmentId'] end end # CreateAcl返回参数结构体 class CreateAclResponse < TencentCloud::Common::AbstractModel @@ -434,19 +446,23 @@ # CreateDeviceGroup请求参数结构体 class CreateDeviceGroupRequest < TencentCloud::Common::AbstractModel # @param Name: 资产组名,最大长度32字符 # @type Name: String + # @param DepartmentId: 资产组所属部门ID,如:1.2.3 + # @type DepartmentId: String - attr_accessor :Name + attr_accessor :Name, :DepartmentId - def initialize(name=nil) + def initialize(name=nil, departmentid=nil) @Name = name + @DepartmentId = departmentid end def deserialize(params) @Name = params['Name'] + @DepartmentId = params['DepartmentId'] end end # CreateDeviceGroup返回参数结构体 class CreateDeviceGroupResponse < TencentCloud::Common::AbstractModel @@ -470,19 +486,23 @@ # CreateUserGroup请求参数结构体 class CreateUserGroupRequest < TencentCloud::Common::AbstractModel # @param Name: 用户组名,最大长度32字符 # @type Name: String + # @param DepartmentId: 用户组所属部门的ID,如:1.2.3 + # @type DepartmentId: String - attr_accessor :Name + attr_accessor :Name, :DepartmentId - def initialize(name=nil) + def initialize(name=nil, departmentid=nil) @Name = name + @DepartmentId = departmentid end def deserialize(params) @Name = params['Name'] + @DepartmentId = params['DepartmentId'] end end # CreateUserGroup返回参数结构体 class CreateUserGroupResponse < TencentCloud::Common::AbstractModel @@ -524,23 +544,26 @@ # @type GroupIdSet: Array # @param AuthType: 认证方式,0 - 本地, 1 - LDAP, 2 - OAuth 不传则默认为0 # @type AuthType: Integer # @param ValidateTime: 访问时间段限制, 由0、1组成的字符串,长度168(7 × 24),代表该用户在一周中允许访问的时间段。字符串中第N个字符代表在一周中的第N个小时, 0 - 代表不允许访问,1 - 代表允许访问 # @type ValidateTime: String + # @param DepartmentId: 所属部门ID,如:“1.2.3” + # @type DepartmentId: String - attr_accessor :UserName, :RealName, :Phone, :Email, :ValidateFrom, :ValidateTo, :GroupIdSet, :AuthType, :ValidateTime + attr_accessor :UserName, :RealName, :Phone, :Email, :ValidateFrom, :ValidateTo, :GroupIdSet, :AuthType, :ValidateTime, :DepartmentId - def initialize(username=nil, realname=nil, phone=nil, email=nil, validatefrom=nil, validateto=nil, groupidset=nil, authtype=nil, validatetime=nil) + def initialize(username=nil, realname=nil, phone=nil, email=nil, validatefrom=nil, validateto=nil, groupidset=nil, authtype=nil, validatetime=nil, departmentid=nil) @UserName = username @RealName = realname @Phone = phone @Email = email @ValidateFrom = validatefrom @ValidateTo = validateto @GroupIdSet = groupidset @AuthType = authtype @ValidateTime = validatetime + @DepartmentId = departmentid end def deserialize(params) @UserName = params['UserName'] @RealName = params['RealName'] @@ -549,10 +572,11 @@ @ValidateFrom = params['ValidateFrom'] @ValidateTo = params['ValidateTo'] @GroupIdSet = params['GroupIdSet'] @AuthType = params['AuthType'] @ValidateTime = params['ValidateTime'] + @DepartmentId = params['DepartmentId'] end end # CreateUser返回参数结构体 class CreateUserResponse < TencentCloud::Common::AbstractModel @@ -772,10 +796,35 @@ def deserialize(params) @RequestId = params['RequestId'] end end + # 部门信息 + class Department < TencentCloud::Common::AbstractModel + # @param Id: 部门ID + # @type Id: String + # @param Name: 部门名称,1 - 256个字符 + # @type Name: String + # @param Managers: 部门管理员账号ID + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Managers: Array + + attr_accessor :Id, :Name, :Managers + + def initialize(id=nil, name=nil, managers=nil) + @Id = id + @Name = name + @Managers = managers + end + + def deserialize(params) + @Id = params['Id'] + @Name = params['Name'] + @Managers = params['Managers'] + end + end + # DescribeAcls请求参数结构体 class DescribeAclsRequest < TencentCloud::Common::AbstractModel # @param IdSet: 访问权限ID集合 # @type IdSet: Array # @param Name: 访问权限名称,模糊查询,最长64字符 @@ -790,22 +839,25 @@ # @type AuthorizedUserIdSet: Array # @param AuthorizedDeviceIdSet: 有访问权限的资产ID集合 # @type AuthorizedDeviceIdSet: Array # @param Status: 访问权限状态,1 - 已生效,2 - 未生效,3 - 已过期 # @type Status: Integer + # @param DepartmentId: 部门ID,用于过滤属于某个部门的访问权限 + # @type DepartmentId: String - attr_accessor :IdSet, :Name, :Offset, :Limit, :Exact, :AuthorizedUserIdSet, :AuthorizedDeviceIdSet, :Status + attr_accessor :IdSet, :Name, :Offset, :Limit, :Exact, :AuthorizedUserIdSet, :AuthorizedDeviceIdSet, :Status, :DepartmentId - def initialize(idset=nil, name=nil, offset=nil, limit=nil, exact=nil, authorizeduseridset=nil, authorizeddeviceidset=nil, status=nil) + def initialize(idset=nil, name=nil, offset=nil, limit=nil, exact=nil, authorizeduseridset=nil, authorizeddeviceidset=nil, status=nil, departmentid=nil) @IdSet = idset @Name = name @Offset = offset @Limit = limit @Exact = exact @AuthorizedUserIdSet = authorizeduseridset @AuthorizedDeviceIdSet = authorizeddeviceidset @Status = status + @DepartmentId = departmentid end def deserialize(params) @IdSet = params['IdSet'] @Name = params['Name'] @@ -813,10 +865,11 @@ @Limit = params['Limit'] @Exact = params['Exact'] @AuthorizedUserIdSet = params['AuthorizedUserIdSet'] @AuthorizedDeviceIdSet = params['AuthorizedDeviceIdSet'] @Status = params['Status'] + @DepartmentId = params['DepartmentId'] end end # DescribeAcls返回参数结构体 class DescribeAclsResponse < TencentCloud::Common::AbstractModel @@ -896,29 +949,33 @@ # @type Offset: Integer # @param Limit: 每页条目数,默认20, 最大500 # @type Limit: Integer # @param Kind: 资产类型,1 - Linux,2 - Windows,3 - MySQL,4 - SQLServer # @type Kind: Integer + # @param DepartmentId: 所属部门ID + # @type DepartmentId: String - attr_accessor :Id, :Bound, :Name, :Offset, :Limit, :Kind + attr_accessor :Id, :Bound, :Name, :Offset, :Limit, :Kind, :DepartmentId - def initialize(id=nil, bound=nil, name=nil, offset=nil, limit=nil, kind=nil) + def initialize(id=nil, bound=nil, name=nil, offset=nil, limit=nil, kind=nil, departmentid=nil) @Id = id @Bound = bound @Name = name @Offset = offset @Limit = limit @Kind = kind + @DepartmentId = departmentid end def deserialize(params) @Id = params['Id'] @Bound = params['Bound'] @Name = params['Name'] @Offset = params['Offset'] @Limit = params['Limit'] @Kind = params['Kind'] + @DepartmentId = params['DepartmentId'] end end # DescribeDeviceGroupMembers返回参数结构体 class DescribeDeviceGroupMembersResponse < TencentCloud::Common::AbstractModel @@ -959,25 +1016,29 @@ # @type Name: String # @param Offset: 分页偏移位置 # @type Offset: Integer # @param Limit: 每页条目数量,缺省20,最大500 # @type Limit: Integer + # @param DepartmentId: 部门ID,用于过滤属于某个部门的资产组 + # @type DepartmentId: String - attr_accessor :IdSet, :Name, :Offset, :Limit + attr_accessor :IdSet, :Name, :Offset, :Limit, :DepartmentId - def initialize(idset=nil, name=nil, offset=nil, limit=nil) + def initialize(idset=nil, name=nil, offset=nil, limit=nil, departmentid=nil) @IdSet = idset @Name = name @Offset = offset @Limit = limit + @DepartmentId = departmentid end def deserialize(params) @IdSet = params['IdSet'] @Name = params['Name'] @Offset = params['Offset'] @Limit = params['Limit'] + @DepartmentId = params['DepartmentId'] end end # DescribeDeviceGroups返回参数结构体 class DescribeDeviceGroupsResponse < TencentCloud::Common::AbstractModel @@ -1030,24 +1091,27 @@ # @type AuthorizedUserIdSet: Array # @param ResourceIdSet: 过滤条件,资产绑定的堡垒机服务ID集合 # @type ResourceIdSet: Array # @param KindSet: 可提供按照多种类型过滤, 1 - Linux, 2 - Windows, 3 - MySQL, 4 - SQLServer # @type KindSet: Array + # @param DepartmentId: 过滤条件,可按照部门ID进行过滤 + # @type DepartmentId: String - attr_accessor :IdSet, :Name, :Ip, :ApCodeSet, :Kind, :Offset, :Limit, :AuthorizedUserIdSet, :ResourceIdSet, :KindSet + attr_accessor :IdSet, :Name, :Ip, :ApCodeSet, :Kind, :Offset, :Limit, :AuthorizedUserIdSet, :ResourceIdSet, :KindSet, :DepartmentId - def initialize(idset=nil, name=nil, ip=nil, apcodeset=nil, kind=nil, offset=nil, limit=nil, authorizeduseridset=nil, resourceidset=nil, kindset=nil) + def initialize(idset=nil, name=nil, ip=nil, apcodeset=nil, kind=nil, offset=nil, limit=nil, authorizeduseridset=nil, resourceidset=nil, kindset=nil, departmentid=nil) @IdSet = idset @Name = name @Ip = ip @ApCodeSet = apcodeset @Kind = kind @Offset = offset @Limit = limit @AuthorizedUserIdSet = authorizeduseridset @ResourceIdSet = resourceidset @KindSet = kindset + @DepartmentId = departmentid end def deserialize(params) @IdSet = params['IdSet'] @Name = params['Name'] @@ -1057,10 +1121,11 @@ @Offset = params['Offset'] @Limit = params['Limit'] @AuthorizedUserIdSet = params['AuthorizedUserIdSet'] @ResourceIdSet = params['ResourceIdSet'] @KindSet = params['KindSet'] + @DepartmentId = params['DepartmentId'] end end # DescribeDevices返回参数结构体 class DescribeDevicesResponse < TencentCloud::Common::AbstractModel @@ -1154,27 +1219,31 @@ # @type Name: String # @param Offset: 分页偏移位置 # @type Offset: Integer # @param Limit: 每页条目数量,默认20, 最大500 # @type Limit: Integer + # @param DepartmentId: 所属部门ID + # @type DepartmentId: String - attr_accessor :Id, :Bound, :Name, :Offset, :Limit + attr_accessor :Id, :Bound, :Name, :Offset, :Limit, :DepartmentId - def initialize(id=nil, bound=nil, name=nil, offset=nil, limit=nil) + def initialize(id=nil, bound=nil, name=nil, offset=nil, limit=nil, departmentid=nil) @Id = id @Bound = bound @Name = name @Offset = offset @Limit = limit + @DepartmentId = departmentid end def deserialize(params) @Id = params['Id'] @Bound = params['Bound'] @Name = params['Name'] @Offset = params['Offset'] @Limit = params['Limit'] + @DepartmentId = params['DepartmentId'] end end # DescribeUserGroupMembers返回参数结构体 class DescribeUserGroupMembersResponse < TencentCloud::Common::AbstractModel @@ -1215,25 +1284,29 @@ # @type Name: String # @param Offset: 分页偏移位置 # @type Offset: Integer # @param Limit: 每页条目数量,缺省20,最大500 # @type Limit: Integer + # @param DepartmentId: 部门ID,用于过滤属于某个部门的用户组 + # @type DepartmentId: String - attr_accessor :IdSet, :Name, :Offset, :Limit + attr_accessor :IdSet, :Name, :Offset, :Limit, :DepartmentId - def initialize(idset=nil, name=nil, offset=nil, limit=nil) + def initialize(idset=nil, name=nil, offset=nil, limit=nil, departmentid=nil) @IdSet = idset @Name = name @Offset = offset @Limit = limit + @DepartmentId = departmentid end def deserialize(params) @IdSet = params['IdSet'] @Name = params['Name'] @Offset = params['Offset'] @Limit = params['Limit'] + @DepartmentId = params['DepartmentId'] end end # DescribeUserGroups返回参数结构体 class DescribeUserGroupsResponse < TencentCloud::Common::AbstractModel @@ -1283,22 +1356,25 @@ # @type Phone: String # @param AuthorizedDeviceIdSet: 查询具有指定资产ID访问权限的用户 # @type AuthorizedDeviceIdSet: Array # @param AuthTypeSet: 认证方式,0 - 本地, 1 - LDAP, 2 - OAuth, 不传为全部 # @type AuthTypeSet: Array + # @param DepartmentId: 部门ID,用于过滤属于某个部门的用户 + # @type DepartmentId: String - attr_accessor :IdSet, :Name, :Offset, :Limit, :UserName, :Phone, :AuthorizedDeviceIdSet, :AuthTypeSet + attr_accessor :IdSet, :Name, :Offset, :Limit, :UserName, :Phone, :AuthorizedDeviceIdSet, :AuthTypeSet, :DepartmentId - def initialize(idset=nil, name=nil, offset=nil, limit=nil, username=nil, phone=nil, authorizeddeviceidset=nil, authtypeset=nil) + def initialize(idset=nil, name=nil, offset=nil, limit=nil, username=nil, phone=nil, authorizeddeviceidset=nil, authtypeset=nil, departmentid=nil) @IdSet = idset @Name = name @Offset = offset @Limit = limit @UserName = username @Phone = phone @AuthorizedDeviceIdSet = authorizeddeviceidset @AuthTypeSet = authtypeset + @DepartmentId = departmentid end def deserialize(params) @IdSet = params['IdSet'] @Name = params['Name'] @@ -1306,10 +1382,11 @@ @Limit = params['Limit'] @UserName = params['UserName'] @Phone = params['Phone'] @AuthorizedDeviceIdSet = params['AuthorizedDeviceIdSet'] @AuthTypeSet = params['AuthTypeSet'] + @DepartmentId = params['DepartmentId'] end end # DescribeUsers返回参数结构体 class DescribeUsersResponse < TencentCloud::Common::AbstractModel @@ -1371,14 +1448,17 @@ # @param SubnetId: 子网ID # @type SubnetId: String # @param Resource: 堡垒机服务信息,注意没有绑定服务时为null # 注意:此字段可能返回 null,表示取不到有效值。 # @type Resource: :class:`Tencentcloud::Dasb.v20191018.models.Resource` + # @param Department: 资产所属部门 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Department: :class:`Tencentcloud::Dasb.v20191018.models.Department` - attr_accessor :Id, :InstanceId, :Name, :PublicIp, :PrivateIp, :ApCode, :OsName, :Kind, :Port, :GroupSet, :AccountCount, :VpcId, :SubnetId, :Resource + attr_accessor :Id, :InstanceId, :Name, :PublicIp, :PrivateIp, :ApCode, :OsName, :Kind, :Port, :GroupSet, :AccountCount, :VpcId, :SubnetId, :Resource, :Department - def initialize(id=nil, instanceid=nil, name=nil, publicip=nil, privateip=nil, apcode=nil, osname=nil, kind=nil, port=nil, groupset=nil, accountcount=nil, vpcid=nil, subnetid=nil, resource=nil) + def initialize(id=nil, instanceid=nil, name=nil, publicip=nil, privateip=nil, apcode=nil, osname=nil, kind=nil, port=nil, groupset=nil, accountcount=nil, vpcid=nil, subnetid=nil, resource=nil, department=nil) @Id = id @InstanceId = instanceid @Name = name @PublicIp = publicip @PrivateIp = privateip @@ -1389,10 +1469,11 @@ @GroupSet = groupset @AccountCount = accountcount @VpcId = vpcid @SubnetId = subnetid @Resource = resource + @Department = department end def deserialize(params) @Id = params['Id'] @InstanceId = params['InstanceId'] @@ -1416,30 +1497,42 @@ @SubnetId = params['SubnetId'] unless params['Resource'].nil? @Resource = Resource.new @Resource.deserialize(params['Resource']) end + unless params['Department'].nil? + @Department = Department.new + @Department.deserialize(params['Department']) + end end end # 组信息,用于用户组、主机组 class Group < TencentCloud::Common::AbstractModel # @param Id: 组ID # @type Id: Integer # @param Name: 组名称 # @type Name: String + # @param Department: 所属部门信息 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Department: :class:`Tencentcloud::Dasb.v20191018.models.Department` - attr_accessor :Id, :Name + attr_accessor :Id, :Name, :Department - def initialize(id=nil, name=nil) + def initialize(id=nil, name=nil, department=nil) @Id = id @Name = name + @Department = department end def deserialize(params) @Id = params['Id'] @Name = params['Name'] + unless params['Department'].nil? + @Department = Department.new + @Department.deserialize(params['Department']) + end end end # ModifyAcl请求参数结构体 class ModifyAclRequest < TencentCloud::Common::AbstractModel @@ -1493,14 +1586,16 @@ # 生效、失效时间不填则访问权限长期有效 # @type ValidateFrom: String # @param ValidateTo: 访问权限失效时间,如:"2021-09-23T00:00:00+00:00" # 生效、失效时间不填则访问权限长期有效 # @type ValidateTo: String + # @param DepartmentId: 权限所属部门的ID,如:1.2.3 + # @type DepartmentId: String - attr_accessor :Name, :AllowDiskRedirect, :AllowAnyAccount, :Id, :AllowClipFileUp, :AllowClipFileDown, :AllowClipTextUp, :AllowClipTextDown, :AllowFileUp, :MaxFileUpSize, :AllowFileDown, :MaxFileDownSize, :UserIdSet, :UserGroupIdSet, :DeviceIdSet, :DeviceGroupIdSet, :AccountSet, :CmdTemplateIdSet, :AllowDiskFileUp, :AllowDiskFileDown, :AllowShellFileUp, :AllowShellFileDown, :AllowFileDel, :ValidateFrom, :ValidateTo + attr_accessor :Name, :AllowDiskRedirect, :AllowAnyAccount, :Id, :AllowClipFileUp, :AllowClipFileDown, :AllowClipTextUp, :AllowClipTextDown, :AllowFileUp, :MaxFileUpSize, :AllowFileDown, :MaxFileDownSize, :UserIdSet, :UserGroupIdSet, :DeviceIdSet, :DeviceGroupIdSet, :AccountSet, :CmdTemplateIdSet, :AllowDiskFileUp, :AllowDiskFileDown, :AllowShellFileUp, :AllowShellFileDown, :AllowFileDel, :ValidateFrom, :ValidateTo, :DepartmentId - def initialize(name=nil, allowdiskredirect=nil, allowanyaccount=nil, id=nil, allowclipfileup=nil, allowclipfiledown=nil, allowcliptextup=nil, allowcliptextdown=nil, allowfileup=nil, maxfileupsize=nil, allowfiledown=nil, maxfiledownsize=nil, useridset=nil, usergroupidset=nil, deviceidset=nil, devicegroupidset=nil, accountset=nil, cmdtemplateidset=nil, allowdiskfileup=nil, allowdiskfiledown=nil, allowshellfileup=nil, allowshellfiledown=nil, allowfiledel=nil, validatefrom=nil, validateto=nil) + def initialize(name=nil, allowdiskredirect=nil, allowanyaccount=nil, id=nil, allowclipfileup=nil, allowclipfiledown=nil, allowcliptextup=nil, allowcliptextdown=nil, allowfileup=nil, maxfileupsize=nil, allowfiledown=nil, maxfiledownsize=nil, useridset=nil, usergroupidset=nil, deviceidset=nil, devicegroupidset=nil, accountset=nil, cmdtemplateidset=nil, allowdiskfileup=nil, allowdiskfiledown=nil, allowshellfileup=nil, allowshellfiledown=nil, allowfiledel=nil, validatefrom=nil, validateto=nil, departmentid=nil) @Name = name @AllowDiskRedirect = allowdiskredirect @AllowAnyAccount = allowanyaccount @Id = id @AllowClipFileUp = allowclipfileup @@ -1522,10 +1617,11 @@ @AllowShellFileUp = allowshellfileup @AllowShellFileDown = allowshellfiledown @AllowFileDel = allowfiledel @ValidateFrom = validatefrom @ValidateTo = validateto + @DepartmentId = departmentid end def deserialize(params) @Name = params['Name'] @AllowDiskRedirect = params['AllowDiskRedirect'] @@ -1550,10 +1646,11 @@ @AllowShellFileUp = params['AllowShellFileUp'] @AllowShellFileDown = params['AllowShellFileDown'] @AllowFileDel = params['AllowFileDel'] @ValidateFrom = params['ValidateFrom'] @ValidateTo = params['ValidateTo'] + @DepartmentId = params['DepartmentId'] end end # ModifyAcl返回参数结构体 class ModifyAclResponse < TencentCloud::Common::AbstractModel @@ -1591,23 +1688,26 @@ # @type GroupIdSet: Array # @param AuthType: 认证方式,0 - 本地,1 - LDAP,2 - OAuth 不传则默认为0 # @type AuthType: Integer # @param ValidateTime: 访问时间段限制, 由0、1组成的字符串,长度168(7 × 24),代表该用户在一周中允许访问的时间段。字符串中第N个字符代表在一周中的第N个小时, 0 - 代表不允许访问,1 - 代表允许访问 # @type ValidateTime: String + # @param DepartmentId: 用户所属部门的ID,如1.2.3 + # @type DepartmentId: String - attr_accessor :Id, :RealName, :Phone, :Email, :ValidateFrom, :ValidateTo, :GroupIdSet, :AuthType, :ValidateTime + attr_accessor :Id, :RealName, :Phone, :Email, :ValidateFrom, :ValidateTo, :GroupIdSet, :AuthType, :ValidateTime, :DepartmentId - def initialize(id=nil, realname=nil, phone=nil, email=nil, validatefrom=nil, validateto=nil, groupidset=nil, authtype=nil, validatetime=nil) + def initialize(id=nil, realname=nil, phone=nil, email=nil, validatefrom=nil, validateto=nil, groupidset=nil, authtype=nil, validatetime=nil, departmentid=nil) @Id = id @RealName = realname @Phone = phone @Email = email @ValidateFrom = validatefrom @ValidateTo = validateto @GroupIdSet = groupidset @AuthType = authtype @ValidateTime = validatetime + @DepartmentId = departmentid end def deserialize(params) @Id = params['Id'] @RealName = params['RealName'] @@ -1616,10 +1716,11 @@ @ValidateFrom = params['ValidateFrom'] @ValidateTo = params['ValidateTo'] @GroupIdSet = params['GroupIdSet'] @AuthType = params['AuthType'] @ValidateTime = params['ValidateTime'] + @DepartmentId = params['DepartmentId'] end end # ModifyUser返回参数结构体 class ModifyUserResponse < TencentCloud::Common::AbstractModel @@ -1783,24 +1884,32 @@ # @type GroupSet: Array # @param AuthType: 认证方式,0 - 本地,1 - LDAP,2 - OAuth # @type AuthType: Integer # @param ValidateTime: 访问时间段限制, 由0、1组成的字符串,长度168(7 × 24),代表该用户在一周中允许访问的时间段。字符串中第N个字符代表在一周中的第N个小时, 0 - 代表不允许访问,1 - 代表允许访问 # @type ValidateTime: String + # @param Department: 用户所属部门(用于出参) + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Department: :class:`Tencentcloud::Dasb.v20191018.models.Department` + # @param DepartmentId: 用户所属部门(用于入参) + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type DepartmentId: String - attr_accessor :UserName, :RealName, :Phone, :Id, :Email, :ValidateFrom, :ValidateTo, :GroupSet, :AuthType, :ValidateTime + attr_accessor :UserName, :RealName, :Phone, :Id, :Email, :ValidateFrom, :ValidateTo, :GroupSet, :AuthType, :ValidateTime, :Department, :DepartmentId - def initialize(username=nil, realname=nil, phone=nil, id=nil, email=nil, validatefrom=nil, validateto=nil, groupset=nil, authtype=nil, validatetime=nil) + def initialize(username=nil, realname=nil, phone=nil, id=nil, email=nil, validatefrom=nil, validateto=nil, groupset=nil, authtype=nil, validatetime=nil, department=nil, departmentid=nil) @UserName = username @RealName = realname @Phone = phone @Id = id @Email = email @ValidateFrom = validatefrom @ValidateTo = validateto @GroupSet = groupset @AuthType = authtype @ValidateTime = validatetime + @Department = department + @DepartmentId = departmentid end def deserialize(params) @UserName = params['UserName'] @RealName = params['RealName'] @@ -1817,9 +1926,14 @@ @GroupSet << group_tmp end end @AuthType = params['AuthType'] @ValidateTime = params['ValidateTime'] + unless params['Department'].nil? + @Department = Department.new + @Department.deserialize(params['Department']) + end + @DepartmentId = params['DepartmentId'] end end end end