Class: TencentCloud::Tke::V20180525::OpenPolicySwitch
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::OpenPolicySwitch
- Defined in:
- lib/v20180525/models.rb
Overview
opa策略开关
Instance Attribute Summary collapse
- #EnabledStatus ⇒ Object
- #EnforcementAction ⇒ Object
- #Kind ⇒ Object
- #Name ⇒ Object
- #OpenConstraintInfoList ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(enforcementaction = nil, name = nil, kind = nil, enabledstatus = nil, openconstraintinfolist = nil) ⇒ OpenPolicySwitch
constructor
A new instance of OpenPolicySwitch.
Constructor Details
#initialize(enforcementaction = nil, name = nil, kind = nil, enabledstatus = nil, openconstraintinfolist = nil) ⇒ OpenPolicySwitch
Returns a new instance of OpenPolicySwitch.
15314 15315 15316 15317 15318 15319 15320 |
# File 'lib/v20180525/models.rb', line 15314 def initialize(enforcementaction=nil, name=nil, kind=nil, enabledstatus=nil, openconstraintinfolist=nil) @EnforcementAction = enforcementaction @Name = name @Kind = kind @EnabledStatus = enabledstatus @OpenConstraintInfoList = openconstraintinfolist end |
Instance Attribute Details
#EnabledStatus ⇒ Object
15312 15313 15314 |
# File 'lib/v20180525/models.rb', line 15312 def EnabledStatus @EnabledStatus end |
#EnforcementAction ⇒ Object
15312 15313 15314 |
# File 'lib/v20180525/models.rb', line 15312 def EnforcementAction @EnforcementAction end |
#Kind ⇒ Object
15312 15313 15314 |
# File 'lib/v20180525/models.rb', line 15312 def Kind @Kind end |
#Name ⇒ Object
15312 15313 15314 |
# File 'lib/v20180525/models.rb', line 15312 def Name @Name end |
#OpenConstraintInfoList ⇒ Object
15312 15313 15314 |
# File 'lib/v20180525/models.rb', line 15312 def OpenConstraintInfoList @OpenConstraintInfoList end |
Instance Method Details
#deserialize(params) ⇒ Object
15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 |
# File 'lib/v20180525/models.rb', line 15322 def deserialize(params) @EnforcementAction = params['EnforcementAction'] @Name = params['Name'] @Kind = params['Kind'] @EnabledStatus = params['EnabledStatus'] unless params['OpenConstraintInfoList'].nil? @OpenConstraintInfoList = [] params['OpenConstraintInfoList'].each do |i| openconstraintinfo_tmp = OpenConstraintInfo.new openconstraintinfo_tmp.deserialize(i) @OpenConstraintInfoList << openconstraintinfo_tmp end end end |