Class: TencentCloud::Tke::V20180525::ModifyOpenPolicyListRequest

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

Overview

ModifyOpenPolicyList请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, openpolicyinfolist = nil, category = nil) ⇒ ModifyOpenPolicyListRequest

Returns a new instance of ModifyOpenPolicyListRequest.



14434
14435
14436
14437
14438
# File 'lib/v20180525/models.rb', line 14434

def initialize(clusterid=nil, openpolicyinfolist=nil, category=nil)
  @ClusterId = clusterid
  @OpenPolicyInfoList = openpolicyinfolist
  @Category = category
end

Instance Attribute Details

#CategoryObject

Parameters:

  • ClusterId:

    集群ID

  • OpenPolicyInfoList:

    修改的策略列表,目前仅支持修改EnforcementAction字段

  • Category:

    策略分类 基线:baseline 优选:priority 可选:optional



14432
14433
14434
# File 'lib/v20180525/models.rb', line 14432

def Category
  @Category
end

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID

  • OpenPolicyInfoList:

    修改的策略列表,目前仅支持修改EnforcementAction字段

  • Category:

    策略分类 基线:baseline 优选:priority 可选:optional



14432
14433
14434
# File 'lib/v20180525/models.rb', line 14432

def ClusterId
  @ClusterId
end

#OpenPolicyInfoListObject

Parameters:

  • ClusterId:

    集群ID

  • OpenPolicyInfoList:

    修改的策略列表,目前仅支持修改EnforcementAction字段

  • Category:

    策略分类 基线:baseline 优选:priority 可选:optional



14432
14433
14434
# File 'lib/v20180525/models.rb', line 14432

def OpenPolicyInfoList
  @OpenPolicyInfoList
end

Instance Method Details

#deserialize(params) ⇒ Object



14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
# File 'lib/v20180525/models.rb', line 14440

def deserialize(params)
  @ClusterId = params['ClusterId']
  unless params['OpenPolicyInfoList'].nil?
    @OpenPolicyInfoList = []
    params['OpenPolicyInfoList'].each do |i|
      openpolicyswitch_tmp = OpenPolicySwitch.new
      openpolicyswitch_tmp.deserialize(i)
      @OpenPolicyInfoList << openpolicyswitch_tmp
    end
  end
  @Category = params['Category']
end