Class: TencentCloud::Yunjing::V20180228::BashRule

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

Overview

高危命令规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, uuid = nil, name = nil, level = nil, rule = nil, decription = nil, operator = nil, isglobal = nil, status = nil, createtime = nil, modifytime = nil, hostip = nil) ⇒ BashRule

Returns a new instance of BashRule.



312
313
314
315
316
317
318
319
320
321
322
323
324
325
# File 'lib/v20180228/models.rb', line 312

def initialize(id=nil, uuid=nil, name=nil, level=nil, rule=nil, decription=nil, operator=nil, isglobal=nil, status=nil, createtime=nil, modifytime=nil, hostip=nil)
  @Id = id
  @Uuid = uuid
  @Name = name
  @Level = level
  @Rule = rule
  @Decription = decription
  @Operator = operator
  @IsGlobal = isglobal
  @Status = status
  @CreateTime = createtime
  @ModifyTime = modifytime
  @Hostip = hostip
end

Instance Attribute Details

#CreateTimeObject

Parameters:

  • Id:

    规则ID

  • Uuid:

    客户端ID

  • Name:

    规则名称

  • Level:

    危险等级(1: 高危 2:中危 3: 低危)

  • Rule:

    正则表达式

  • Decription:

    规则描述

  • Operator:

    操作人

  • IsGlobal:

    是否全局规则

  • Status:

    状态 (0: 有效 1: 无效)

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • Hostip:

    主机IP



310
311
312
# File 'lib/v20180228/models.rb', line 310

def CreateTime
  @CreateTime
end

#DecriptionObject

Parameters:

  • Id:

    规则ID

  • Uuid:

    客户端ID

  • Name:

    规则名称

  • Level:

    危险等级(1: 高危 2:中危 3: 低危)

  • Rule:

    正则表达式

  • Decription:

    规则描述

  • Operator:

    操作人

  • IsGlobal:

    是否全局规则

  • Status:

    状态 (0: 有效 1: 无效)

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • Hostip:

    主机IP



310
311
312
# File 'lib/v20180228/models.rb', line 310

def Decription
  @Decription
end

#HostipObject

Parameters:

  • Id:

    规则ID

  • Uuid:

    客户端ID

  • Name:

    规则名称

  • Level:

    危险等级(1: 高危 2:中危 3: 低危)

  • Rule:

    正则表达式

  • Decription:

    规则描述

  • Operator:

    操作人

  • IsGlobal:

    是否全局规则

  • Status:

    状态 (0: 有效 1: 无效)

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • Hostip:

    主机IP



310
311
312
# File 'lib/v20180228/models.rb', line 310

def Hostip
  @Hostip
end

#IdObject

Parameters:

  • Id:

    规则ID

  • Uuid:

    客户端ID

  • Name:

    规则名称

  • Level:

    危险等级(1: 高危 2:中危 3: 低危)

  • Rule:

    正则表达式

  • Decription:

    规则描述

  • Operator:

    操作人

  • IsGlobal:

    是否全局规则

  • Status:

    状态 (0: 有效 1: 无效)

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • Hostip:

    主机IP



310
311
312
# File 'lib/v20180228/models.rb', line 310

def Id
  @Id
end

#IsGlobalObject

Parameters:

  • Id:

    规则ID

  • Uuid:

    客户端ID

  • Name:

    规则名称

  • Level:

    危险等级(1: 高危 2:中危 3: 低危)

  • Rule:

    正则表达式

  • Decription:

    规则描述

  • Operator:

    操作人

  • IsGlobal:

    是否全局规则

  • Status:

    状态 (0: 有效 1: 无效)

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • Hostip:

    主机IP



310
311
312
# File 'lib/v20180228/models.rb', line 310

def IsGlobal
  @IsGlobal
end

#LevelObject

Parameters:

  • Id:

    规则ID

  • Uuid:

    客户端ID

  • Name:

    规则名称

  • Level:

    危险等级(1: 高危 2:中危 3: 低危)

  • Rule:

    正则表达式

  • Decription:

    规则描述

  • Operator:

    操作人

  • IsGlobal:

    是否全局规则

  • Status:

    状态 (0: 有效 1: 无效)

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • Hostip:

    主机IP



310
311
312
# File 'lib/v20180228/models.rb', line 310

def Level
  @Level
end

#ModifyTimeObject

Parameters:

  • Id:

    规则ID

  • Uuid:

    客户端ID

  • Name:

    规则名称

  • Level:

    危险等级(1: 高危 2:中危 3: 低危)

  • Rule:

    正则表达式

  • Decription:

    规则描述

  • Operator:

    操作人

  • IsGlobal:

    是否全局规则

  • Status:

    状态 (0: 有效 1: 无效)

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • Hostip:

    主机IP



310
311
312
# File 'lib/v20180228/models.rb', line 310

def ModifyTime
  @ModifyTime
end

#NameObject

Parameters:

  • Id:

    规则ID

  • Uuid:

    客户端ID

  • Name:

    规则名称

  • Level:

    危险等级(1: 高危 2:中危 3: 低危)

  • Rule:

    正则表达式

  • Decription:

    规则描述

  • Operator:

    操作人

  • IsGlobal:

    是否全局规则

  • Status:

    状态 (0: 有效 1: 无效)

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • Hostip:

    主机IP



310
311
312
# File 'lib/v20180228/models.rb', line 310

def Name
  @Name
end

#OperatorObject

Parameters:

  • Id:

    规则ID

  • Uuid:

    客户端ID

  • Name:

    规则名称

  • Level:

    危险等级(1: 高危 2:中危 3: 低危)

  • Rule:

    正则表达式

  • Decription:

    规则描述

  • Operator:

    操作人

  • IsGlobal:

    是否全局规则

  • Status:

    状态 (0: 有效 1: 无效)

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • Hostip:

    主机IP



310
311
312
# File 'lib/v20180228/models.rb', line 310

def Operator
  @Operator
end

#RuleObject

Parameters:

  • Id:

    规则ID

  • Uuid:

    客户端ID

  • Name:

    规则名称

  • Level:

    危险等级(1: 高危 2:中危 3: 低危)

  • Rule:

    正则表达式

  • Decription:

    规则描述

  • Operator:

    操作人

  • IsGlobal:

    是否全局规则

  • Status:

    状态 (0: 有效 1: 无效)

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • Hostip:

    主机IP



310
311
312
# File 'lib/v20180228/models.rb', line 310

def Rule
  @Rule
end

#StatusObject

Parameters:

  • Id:

    规则ID

  • Uuid:

    客户端ID

  • Name:

    规则名称

  • Level:

    危险等级(1: 高危 2:中危 3: 低危)

  • Rule:

    正则表达式

  • Decription:

    规则描述

  • Operator:

    操作人

  • IsGlobal:

    是否全局规则

  • Status:

    状态 (0: 有效 1: 无效)

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • Hostip:

    主机IP



310
311
312
# File 'lib/v20180228/models.rb', line 310

def Status
  @Status
end

#UuidObject

Parameters:

  • Id:

    规则ID

  • Uuid:

    客户端ID

  • Name:

    规则名称

  • Level:

    危险等级(1: 高危 2:中危 3: 低危)

  • Rule:

    正则表达式

  • Decription:

    规则描述

  • Operator:

    操作人

  • IsGlobal:

    是否全局规则

  • Status:

    状态 (0: 有效 1: 无效)

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • Hostip:

    主机IP



310
311
312
# File 'lib/v20180228/models.rb', line 310

def Uuid
  @Uuid
end

Instance Method Details

#deserialize(params) ⇒ Object



327
328
329
330
331
332
333
334
335
336
337
338
339
340
# File 'lib/v20180228/models.rb', line 327

def deserialize(params)
  @Id = params['Id']
  @Uuid = params['Uuid']
  @Name = params['Name']
  @Level = params['Level']
  @Rule = params['Rule']
  @Decription = params['Decription']
  @Operator = params['Operator']
  @IsGlobal = params['IsGlobal']
  @Status = params['Status']
  @CreateTime = params['CreateTime']
  @ModifyTime = params['ModifyTime']
  @Hostip = params['Hostip']
end