Class: TencentCloud::Cwp::V20180228::BashPolicy
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::BashPolicy
- Defined in:
- lib/v20180228/models.rb
Overview
高危命令策略
Instance Attribute Summary collapse
- #BashAction ⇒ Object
- #Category ⇒ Object
- #CreateTime ⇒ Object
- #DealOldEvents ⇒ Object
- #Descript ⇒ Object
- #Enable ⇒ Object
- #EventId ⇒ Object
- #Id ⇒ Object
- #Level ⇒ Object
- #ModifyTime ⇒ Object
- #Name ⇒ Object
- #Quuids ⇒ Object
- #Rule ⇒ Object
- #Rules ⇒ Object
- #Scope ⇒ Object
- #Uuids ⇒ Object
- #White ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, enable = nil, white = nil, bashaction = nil, rule = nil, level = nil, scope = nil, id = nil, descript = nil, eventid = nil, dealoldevents = nil, quuids = nil, category = nil, createtime = nil, modifytime = nil, uuids = nil, rules = nil) ⇒ BashPolicy
constructor
A new instance of BashPolicy.
Constructor Details
#initialize(name = nil, enable = nil, white = nil, bashaction = nil, rule = nil, level = nil, scope = nil, id = nil, descript = nil, eventid = nil, dealoldevents = nil, quuids = nil, category = nil, createtime = nil, modifytime = nil, uuids = nil, rules = nil) ⇒ BashPolicy
Returns a new instance of BashPolicy.
4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 |
# File 'lib/v20180228/models.rb', line 4345 def initialize(name=nil, enable=nil, white=nil, bashaction=nil, rule=nil, level=nil, scope=nil, id=nil, descript=nil, eventid=nil, dealoldevents=nil, quuids=nil, category=nil, createtime=nil, modifytime=nil, uuids=nil, rules=nil) @Name = name @Enable = enable @White = white @BashAction = bashaction @Rule = rule @Level = level @Scope = scope @Id = id @Descript = descript @EventId = eventid @DealOldEvents = dealoldevents @Quuids = quuids @Category = category @CreateTime = createtime @ModifyTime = modifytime @Uuids = uuids @Rules = rules end |
Instance Attribute Details
#BashAction ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def BashAction @BashAction end |
#Category ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def Category @Category end |
#CreateTime ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def CreateTime @CreateTime end |
#DealOldEvents ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def DealOldEvents @DealOldEvents end |
#Descript ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def Descript @Descript end |
#Enable ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def Enable @Enable end |
#EventId ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def EventId @EventId end |
#Id ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def Id @Id end |
#Level ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def Level @Level end |
#ModifyTime ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def ModifyTime @ModifyTime end |
#Name ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def Name @Name end |
#Quuids ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def Quuids @Quuids end |
#Rule ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def Rule @Rule end |
#Rules ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def Rules @Rules end |
#Scope ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def Scope @Scope end |
#Uuids ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def Uuids @Uuids end |
#White ⇒ Object
4343 4344 4345 |
# File 'lib/v20180228/models.rb', line 4343 def White @White end |
Instance Method Details
#deserialize(params) ⇒ Object
4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 |
# File 'lib/v20180228/models.rb', line 4365 def deserialize(params) @Name = params['Name'] @Enable = params['Enable'] @White = params['White'] @BashAction = params['BashAction'] @Rule = params['Rule'] @Level = params['Level'] @Scope = params['Scope'] @Id = params['Id'] @Descript = params['Descript'] @EventId = params['EventId'] @DealOldEvents = params['DealOldEvents'] @Quuids = params['Quuids'] @Category = params['Category'] @CreateTime = params['CreateTime'] @ModifyTime = params['ModifyTime'] @Uuids = params['Uuids'] unless params['Rules'].nil? @Rules = PolicyRules.new @Rules.deserialize(params['Rules']) end end |