lib/v20191018/models.rb in tencentcloud-sdk-dasb-3.0.636 vs lib/v20191018/models.rb in tencentcloud-sdk-dasb-3.0.637

- old
+ new

@@ -15,10 +15,37 @@ # limitations under the License. module TencentCloud module Dasb module V20191018 + # 权限控制模版对象 + class ACTemplate < TencentCloud::Common::AbstractModel + # @param TemplateId: 模版id + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type TemplateId: String + # @param TemplateName: 模版名称 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type TemplateName: String + # @param Description: 模版描述 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Description: String + + attr_accessor :TemplateId, :TemplateName, :Description + + def initialize(templateid=nil, templatename=nil, description=nil) + @TemplateId = templateid + @TemplateName = templatename + @Description = description + end + + def deserialize(params) + @TemplateId = params['TemplateId'] + @TemplateName = params['TemplateName'] + @Description = params['Description'] + end + end + # 访问权限 class Acl < TencentCloud::Common::AbstractModel # @param Id: 访问权限ID # @type Id: Integer # @param Name: 访问权限名称 @@ -74,14 +101,20 @@ # @param Status: 访问权限状态,1 - 已生效,2 - 未生效,3 - 已过期 # @type Status: Integer # @param Department: 所属部门的信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Department: :class:`Tencentcloud::Dasb.v20191018.models.Department` + # @param AllowAccessCredential: 是否允许使用访问串,默认允许 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type AllowAccessCredential: Boolean + # @param ACTemplateSet: 关联的数据库高危命令列表 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ACTemplateSet: Array - 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 + 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, :AllowAccessCredential, :ACTemplateSet - 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) + 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, allowaccesscredential=nil, actemplateset=nil) @Id = id @Name = name @AllowDiskRedirect = allowdiskredirect @AllowClipFileUp = allowclipfileup @AllowClipFileDown = allowclipfiledown @@ -105,10 +138,12 @@ @AllowFileDel = allowfiledel @ValidateFrom = validatefrom @ValidateTo = validateto @Status = status @Department = department + @AllowAccessCredential = allowaccesscredential + @ACTemplateSet = actemplateset end def deserialize(params) @Id = params['Id'] @Name = params['Name'] @@ -173,10 +208,19 @@ @Status = params['Status'] unless params['Department'].nil? @Department = Department.new @Department.deserialize(params['Department']) end + @AllowAccessCredential = params['AllowAccessCredential'] + unless params['ACTemplateSet'].nil? + @ACTemplateSet = [] + params['ACTemplateSet'].each do |i| + actemplate_tmp = ACTemplate.new + actemplate_tmp.deserialize(i) + @ACTemplateSet << actemplate_tmp + end + end end end # AddDeviceGroupMembers请求参数结构体 class AddDeviceGroupMembersRequest < TencentCloud::Common::AbstractModel @@ -603,14 +647,16 @@ # @param ValidateTo: 访问权限失效时间,如:"2021-09-23T00:00:00+00:00" # 生效、失效时间不填则访问权限长期有效 # @type ValidateTo: String # @param DepartmentId: 访问权限所属部门的ID # @type DepartmentId: String + # @param AllowAccessCredential: 是否允许使用访问串,默认允许 + # @type AllowAccessCredential: Boolean - attr_accessor :Name, :AllowDiskRedirect, :AllowAnyAccount, :AllowClipFileUp, :AllowClipFileDown, :AllowClipTextUp, :AllowClipTextDown, :AllowFileUp, :MaxFileUpSize, :AllowFileDown, :MaxFileDownSize, :UserIdSet, :UserGroupIdSet, :DeviceIdSet, :DeviceGroupIdSet, :AccountSet, :CmdTemplateIdSet, :ACTemplateIdSet, :AllowDiskFileUp, :AllowDiskFileDown, :AllowShellFileUp, :AllowShellFileDown, :AllowFileDel, :ValidateFrom, :ValidateTo, :DepartmentId + attr_accessor :Name, :AllowDiskRedirect, :AllowAnyAccount, :AllowClipFileUp, :AllowClipFileDown, :AllowClipTextUp, :AllowClipTextDown, :AllowFileUp, :MaxFileUpSize, :AllowFileDown, :MaxFileDownSize, :UserIdSet, :UserGroupIdSet, :DeviceIdSet, :DeviceGroupIdSet, :AccountSet, :CmdTemplateIdSet, :ACTemplateIdSet, :AllowDiskFileUp, :AllowDiskFileDown, :AllowShellFileUp, :AllowShellFileDown, :AllowFileDel, :ValidateFrom, :ValidateTo, :DepartmentId, :AllowAccessCredential - 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, actemplateidset=nil, allowdiskfileup=nil, allowdiskfiledown=nil, allowshellfileup=nil, allowshellfiledown=nil, allowfiledel=nil, validatefrom=nil, validateto=nil, departmentid=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, actemplateidset=nil, allowdiskfileup=nil, allowdiskfiledown=nil, allowshellfileup=nil, allowshellfiledown=nil, allowfiledel=nil, validatefrom=nil, validateto=nil, departmentid=nil, allowaccesscredential=nil) @Name = name @AllowDiskRedirect = allowdiskredirect @AllowAnyAccount = allowanyaccount @AllowClipFileUp = allowclipfileup @AllowClipFileDown = allowclipfiledown @@ -633,10 +679,11 @@ @AllowShellFileDown = allowshellfiledown @AllowFileDel = allowfiledel @ValidateFrom = validatefrom @ValidateTo = validateto @DepartmentId = departmentid + @AllowAccessCredential = allowaccesscredential end def deserialize(params) @Name = params['Name'] @AllowDiskRedirect = params['AllowDiskRedirect'] @@ -662,10 +709,11 @@ @AllowShellFileDown = params['AllowShellFileDown'] @AllowFileDel = params['AllowFileDel'] @ValidateFrom = params['ValidateFrom'] @ValidateTo = params['ValidateTo'] @DepartmentId = params['DepartmentId'] + @AllowAccessCredential = params['AllowAccessCredential'] end end # CreateAcl返回参数结构体 class CreateAclResponse < TencentCloud::Common::AbstractModel @@ -1262,26 +1310,60 @@ # @param Name: 部门名称,1 - 256个字符 # @type Name: String # @param Managers: 部门管理员账号ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type Managers: Array + # @param ManagerUsers: 管理员用户 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ManagerUsers: Array - attr_accessor :Id, :Name, :Managers + attr_accessor :Id, :Name, :Managers, :ManagerUsers - def initialize(id=nil, name=nil, managers=nil) + def initialize(id=nil, name=nil, managers=nil, managerusers=nil) @Id = id @Name = name @Managers = managers + @ManagerUsers = managerusers end def deserialize(params) @Id = params['Id'] @Name = params['Name'] @Managers = params['Managers'] + unless params['ManagerUsers'].nil? + @ManagerUsers = [] + params['ManagerUsers'].each do |i| + departmentmanageruser_tmp = DepartmentManagerUser.new + departmentmanageruser_tmp.deserialize(i) + @ManagerUsers << departmentmanageruser_tmp + end + end end end + # 部门管理员信息 + class DepartmentManagerUser < TencentCloud::Common::AbstractModel + # @param ManagerId: 管理员Id + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ManagerId: String + # @param ManagerName: 管理员姓名 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ManagerName: String + + attr_accessor :ManagerId, :ManagerName + + def initialize(managerid=nil, managername=nil) + @ManagerId = managerid + @ManagerName = managername + end + + def deserialize(params) + @ManagerId = params['ManagerId'] + @ManagerName = params['ManagerName'] + end + end + # DeployResource请求参数结构体 class DeployResourceRequest < TencentCloud::Common::AbstractModel # @param ResourceId: 需要开通服务的资源ID # @type ResourceId: String # @param ApCode: 需要开通服务的地域 @@ -2238,24 +2320,27 @@ # @type AuthorizedDeviceIdSet: Array # @param AuthTypeSet: 认证方式,0 - 本地, 1 - LDAP, 2 - OAuth, 不传为全部 # @type AuthTypeSet: Array # @param DepartmentId: 部门ID,用于过滤属于某个部门的用户 # @type DepartmentId: String + # @param Filters: 参数过滤数组 + # @type Filters: Array - attr_accessor :IdSet, :Name, :Offset, :Limit, :UserName, :Phone, :Email, :AuthorizedDeviceIdSet, :AuthTypeSet, :DepartmentId + attr_accessor :IdSet, :Name, :Offset, :Limit, :UserName, :Phone, :Email, :AuthorizedDeviceIdSet, :AuthTypeSet, :DepartmentId, :Filters - def initialize(idset=nil, name=nil, offset=nil, limit=nil, username=nil, phone=nil, email=nil, authorizeddeviceidset=nil, authtypeset=nil, departmentid=nil) + def initialize(idset=nil, name=nil, offset=nil, limit=nil, username=nil, phone=nil, email=nil, authorizeddeviceidset=nil, authtypeset=nil, departmentid=nil, filters=nil) @IdSet = idset @Name = name @Offset = offset @Limit = limit @UserName = username @Phone = phone @Email = email @AuthorizedDeviceIdSet = authorizeddeviceidset @AuthTypeSet = authtypeset @DepartmentId = departmentid + @Filters = filters end def deserialize(params) @IdSet = params['IdSet'] @Name = params['Name'] @@ -2265,10 +2350,18 @@ @Phone = params['Phone'] @Email = params['Email'] @AuthorizedDeviceIdSet = params['AuthorizedDeviceIdSet'] @AuthTypeSet = params['AuthTypeSet'] @DepartmentId = params['DepartmentId'] + unless params['Filters'].nil? + @Filters = [] + params['Filters'].each do |i| + filter_tmp = Filter.new + filter_tmp.deserialize(i) + @Filters << filter_tmp + end + end end end # DescribeUsers返回参数结构体 class DescribeUsersResponse < TencentCloud::Common::AbstractModel @@ -2647,14 +2740,16 @@ # @param ValidateTo: 访问权限失效时间,如:"2021-09-23T00:00:00+00:00" # 生效、失效时间不填则访问权限长期有效 # @type ValidateTo: String # @param DepartmentId: 权限所属部门的ID,如:1.2.3 # @type DepartmentId: String + # @param AllowAccessCredential: 是否允许使用访问串 + # @type AllowAccessCredential: Boolean - attr_accessor :Name, :AllowDiskRedirect, :AllowAnyAccount, :Id, :AllowClipFileUp, :AllowClipFileDown, :AllowClipTextUp, :AllowClipTextDown, :AllowFileUp, :MaxFileUpSize, :AllowFileDown, :MaxFileDownSize, :UserIdSet, :UserGroupIdSet, :DeviceIdSet, :DeviceGroupIdSet, :AccountSet, :CmdTemplateIdSet, :ACTemplateIdSet, :AllowDiskFileUp, :AllowDiskFileDown, :AllowShellFileUp, :AllowShellFileDown, :AllowFileDel, :ValidateFrom, :ValidateTo, :DepartmentId + attr_accessor :Name, :AllowDiskRedirect, :AllowAnyAccount, :Id, :AllowClipFileUp, :AllowClipFileDown, :AllowClipTextUp, :AllowClipTextDown, :AllowFileUp, :MaxFileUpSize, :AllowFileDown, :MaxFileDownSize, :UserIdSet, :UserGroupIdSet, :DeviceIdSet, :DeviceGroupIdSet, :AccountSet, :CmdTemplateIdSet, :ACTemplateIdSet, :AllowDiskFileUp, :AllowDiskFileDown, :AllowShellFileUp, :AllowShellFileDown, :AllowFileDel, :ValidateFrom, :ValidateTo, :DepartmentId, :AllowAccessCredential - 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, actemplateidset=nil, allowdiskfileup=nil, allowdiskfiledown=nil, allowshellfileup=nil, allowshellfiledown=nil, allowfiledel=nil, validatefrom=nil, validateto=nil, departmentid=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, actemplateidset=nil, allowdiskfileup=nil, allowdiskfiledown=nil, allowshellfileup=nil, allowshellfiledown=nil, allowfiledel=nil, validatefrom=nil, validateto=nil, departmentid=nil, allowaccesscredential=nil) @Name = name @AllowDiskRedirect = allowdiskredirect @AllowAnyAccount = allowanyaccount @Id = id @AllowClipFileUp = allowclipfileup @@ -2678,10 +2773,11 @@ @AllowShellFileDown = allowshellfiledown @AllowFileDel = allowfiledel @ValidateFrom = validatefrom @ValidateTo = validateto @DepartmentId = departmentid + @AllowAccessCredential = allowaccesscredential end def deserialize(params) @Name = params['Name'] @AllowDiskRedirect = params['AllowDiskRedirect'] @@ -2708,10 +2804,11 @@ @AllowShellFileDown = params['AllowShellFileDown'] @AllowFileDel = params['AllowFileDel'] @ValidateFrom = params['ValidateFrom'] @ValidateTo = params['ValidateTo'] @DepartmentId = params['DepartmentId'] + @AllowAccessCredential = params['AllowAccessCredential'] end end # ModifyAcl返回参数结构体 class ModifyAclResponse < TencentCloud::Common::AbstractModel @@ -4126,14 +4223,23 @@ # 注意:此字段可能返回 null,表示取不到有效值。 # @type Department: :class:`Tencentcloud::Dasb.v20191018.models.Department` # @param DepartmentId: 用户所属部门(用于入参) # 注意:此字段可能返回 null,表示取不到有效值。 # @type DepartmentId: String + # @param ActiveStatus: 激活状态 0 - 未激活 1 - 激活 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ActiveStatus: Integer + # @param LockStatus: 锁定状态 0 - 未锁定 1 - 锁定 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type LockStatus: Integer + # @param Status: 状态 与Filter中一致 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Status: String - attr_accessor :UserName, :RealName, :Id, :Phone, :Email, :ValidateFrom, :ValidateTo, :GroupSet, :AuthType, :ValidateTime, :Department, :DepartmentId + attr_accessor :UserName, :RealName, :Id, :Phone, :Email, :ValidateFrom, :ValidateTo, :GroupSet, :AuthType, :ValidateTime, :Department, :DepartmentId, :ActiveStatus, :LockStatus, :Status - def initialize(username=nil, realname=nil, id=nil, phone=nil, email=nil, validatefrom=nil, validateto=nil, groupset=nil, authtype=nil, validatetime=nil, department=nil, departmentid=nil) + def initialize(username=nil, realname=nil, id=nil, phone=nil, email=nil, validatefrom=nil, validateto=nil, groupset=nil, authtype=nil, validatetime=nil, department=nil, departmentid=nil, activestatus=nil, lockstatus=nil, status=nil) @UserName = username @RealName = realname @Id = id @Phone = phone @Email = email @@ -4142,10 +4248,13 @@ @GroupSet = groupset @AuthType = authtype @ValidateTime = validatetime @Department = department @DepartmentId = departmentid + @ActiveStatus = activestatus + @LockStatus = lockstatus + @Status = status end def deserialize(params) @UserName = params['UserName'] @RealName = params['RealName'] @@ -4167,9 +4276,12 @@ unless params['Department'].nil? @Department = Department.new @Department.deserialize(params['Department']) end @DepartmentId = params['DepartmentId'] + @ActiveStatus = params['ActiveStatus'] + @LockStatus = params['LockStatus'] + @Status = params['Status'] end end end end