tencentcloud-sdk-tke 3.0.906 → 3.0.908
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180525/client.rb +48 -0
- data/lib/v20180525/models.rb +245 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33c9c910cfc51150318e51dc70b99a9a3f3da0c6
|
4
|
+
data.tar.gz: d5903329b1fed375026246501c72832ae5508c1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5cd645cb8206a1ef36c57347bb7136321fdbdd868abc5fb9aae0c4261c44f6cbee9d24edf7297b04f8ba7afdb98855cb22a322eb3234592b5adb082723cfd1f
|
7
|
+
data.tar.gz: 77d3b845f28429393a752c8f69b3b7b5f89b7a7c6c6d5afdb6ef3bce1bc8baacf5e0ad2c3d3e7b247488170685d88e7a4b3ccd98bc90ef48d40def1fe052e6a3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.908
|
data/lib/v20180525/client.rb
CHANGED
@@ -2935,6 +2935,30 @@ module TencentCloud
|
|
2935
2935
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2936
2936
|
end
|
2937
2937
|
|
2938
|
+
# 查询opa策略列表
|
2939
|
+
|
2940
|
+
# @param request: Request instance for DescribeOpenPolicyList.
|
2941
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::DescribeOpenPolicyListRequest`
|
2942
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::DescribeOpenPolicyListResponse`
|
2943
|
+
def DescribeOpenPolicyList(request)
|
2944
|
+
body = send_request('DescribeOpenPolicyList', request.serialize)
|
2945
|
+
response = JSON.parse(body)
|
2946
|
+
if response['Response'].key?('Error') == false
|
2947
|
+
model = DescribeOpenPolicyListResponse.new
|
2948
|
+
model.deserialize(response['Response'])
|
2949
|
+
model
|
2950
|
+
else
|
2951
|
+
code = response['Response']['Error']['Code']
|
2952
|
+
message = response['Response']['Error']['Message']
|
2953
|
+
reqid = response['Response']['RequestId']
|
2954
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2955
|
+
end
|
2956
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2957
|
+
raise e
|
2958
|
+
rescue StandardError => e
|
2959
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2960
|
+
end
|
2961
|
+
|
2938
2962
|
# 查询正在运行中Pod的计费信息。可以通过 Namespace 和 Name 来查询某个 Pod 的信息,也可以通过 Pod 的 Uid 批量查询。
|
2939
2963
|
|
2940
2964
|
# @param request: Request instance for DescribePodChargeInfo.
|
@@ -4591,6 +4615,30 @@ module TencentCloud
|
|
4591
4615
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4592
4616
|
end
|
4593
4617
|
|
4618
|
+
# 批量修改opa策略
|
4619
|
+
|
4620
|
+
# @param request: Request instance for ModifyOpenPolicyList.
|
4621
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::ModifyOpenPolicyListRequest`
|
4622
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::ModifyOpenPolicyListResponse`
|
4623
|
+
def ModifyOpenPolicyList(request)
|
4624
|
+
body = send_request('ModifyOpenPolicyList', request.serialize)
|
4625
|
+
response = JSON.parse(body)
|
4626
|
+
if response['Response'].key?('Error') == false
|
4627
|
+
model = ModifyOpenPolicyListResponse.new
|
4628
|
+
model.deserialize(response['Response'])
|
4629
|
+
model
|
4630
|
+
else
|
4631
|
+
code = response['Response']['Error']['Code']
|
4632
|
+
message = response['Response']['Error']['Message']
|
4633
|
+
reqid = response['Response']['RequestId']
|
4634
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4635
|
+
end
|
4636
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4637
|
+
raise e
|
4638
|
+
rescue StandardError => e
|
4639
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4640
|
+
end
|
4641
|
+
|
4594
4642
|
# 修改被关联集群的external labels
|
4595
4643
|
|
4596
4644
|
# @param request: Request instance for ModifyPrometheusAgentExternalLabels.
|
data/lib/v20180525/models.rb
CHANGED
@@ -812,10 +812,13 @@ module TencentCloud
|
|
812
812
|
# @param ClusterEtcdNodeNum: 集群当前etcd数量
|
813
813
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
814
814
|
# @type ClusterEtcdNodeNum: Integer
|
815
|
+
# @param CdcId: 本地专用集群Id
|
816
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
817
|
+
# @type CdcId: String
|
815
818
|
|
816
|
-
attr_accessor :ClusterId, :ClusterName, :ClusterDescription, :ClusterVersion, :ClusterOs, :ClusterType, :ClusterNetworkSettings, :ClusterNodeNum, :ProjectId, :TagSpecification, :ClusterStatus, :Property, :ClusterMaterNodeNum, :ImageId, :OsCustomizeType, :ContainerRuntime, :CreatedTime, :DeletionProtection, :EnableExternalNode, :ClusterLevel, :AutoUpgradeClusterLevel, :QGPUShareEnable, :RuntimeVersion, :ClusterEtcdNodeNum
|
819
|
+
attr_accessor :ClusterId, :ClusterName, :ClusterDescription, :ClusterVersion, :ClusterOs, :ClusterType, :ClusterNetworkSettings, :ClusterNodeNum, :ProjectId, :TagSpecification, :ClusterStatus, :Property, :ClusterMaterNodeNum, :ImageId, :OsCustomizeType, :ContainerRuntime, :CreatedTime, :DeletionProtection, :EnableExternalNode, :ClusterLevel, :AutoUpgradeClusterLevel, :QGPUShareEnable, :RuntimeVersion, :ClusterEtcdNodeNum, :CdcId
|
817
820
|
|
818
|
-
def initialize(clusterid=nil, clustername=nil, clusterdescription=nil, clusterversion=nil, clusteros=nil, clustertype=nil, clusternetworksettings=nil, clusternodenum=nil, projectid=nil, tagspecification=nil, clusterstatus=nil, property=nil, clustermaternodenum=nil, imageid=nil, oscustomizetype=nil, containerruntime=nil, createdtime=nil, deletionprotection=nil, enableexternalnode=nil, clusterlevel=nil, autoupgradeclusterlevel=nil, qgpushareenable=nil, runtimeversion=nil, clusteretcdnodenum=nil)
|
821
|
+
def initialize(clusterid=nil, clustername=nil, clusterdescription=nil, clusterversion=nil, clusteros=nil, clustertype=nil, clusternetworksettings=nil, clusternodenum=nil, projectid=nil, tagspecification=nil, clusterstatus=nil, property=nil, clustermaternodenum=nil, imageid=nil, oscustomizetype=nil, containerruntime=nil, createdtime=nil, deletionprotection=nil, enableexternalnode=nil, clusterlevel=nil, autoupgradeclusterlevel=nil, qgpushareenable=nil, runtimeversion=nil, clusteretcdnodenum=nil, cdcid=nil)
|
819
822
|
@ClusterId = clusterid
|
820
823
|
@ClusterName = clustername
|
821
824
|
@ClusterDescription = clusterdescription
|
@@ -840,6 +843,7 @@ module TencentCloud
|
|
840
843
|
@QGPUShareEnable = qgpushareenable
|
841
844
|
@RuntimeVersion = runtimeversion
|
842
845
|
@ClusterEtcdNodeNum = clusteretcdnodenum
|
846
|
+
@CdcId = cdcid
|
843
847
|
end
|
844
848
|
|
845
849
|
def deserialize(params)
|
@@ -877,6 +881,7 @@ module TencentCloud
|
|
877
881
|
@QGPUShareEnable = params['QGPUShareEnable']
|
878
882
|
@RuntimeVersion = params['RuntimeVersion']
|
879
883
|
@ClusterEtcdNodeNum = params['ClusterEtcdNodeNum']
|
884
|
+
@CdcId = params['CdcId']
|
880
885
|
end
|
881
886
|
end
|
882
887
|
|
@@ -7780,14 +7785,17 @@ module TencentCloud
|
|
7780
7785
|
# @type Progress: Array
|
7781
7786
|
# @param EnabledPublicConnect: 是否开启第三方节点公网连接支持
|
7782
7787
|
# @type EnabledPublicConnect: Boolean
|
7783
|
-
# @param PublicConnectUrl:
|
7788
|
+
# @param PublicConnectUrl: 注册节点公网版公网连接地址
|
7784
7789
|
# @type PublicConnectUrl: String
|
7790
|
+
# @param PublicCustomDomain: 注册节点公网版自定义域名
|
7791
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7792
|
+
# @type PublicCustomDomain: String
|
7785
7793
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7786
7794
|
# @type RequestId: String
|
7787
7795
|
|
7788
|
-
attr_accessor :ClusterCIDR, :NetworkType, :SubnetId, :Enabled, :AS, :SwitchIP, :Status, :FailedReason, :Master, :Proxy, :Progress, :EnabledPublicConnect, :PublicConnectUrl, :RequestId
|
7796
|
+
attr_accessor :ClusterCIDR, :NetworkType, :SubnetId, :Enabled, :AS, :SwitchIP, :Status, :FailedReason, :Master, :Proxy, :Progress, :EnabledPublicConnect, :PublicConnectUrl, :PublicCustomDomain, :RequestId
|
7789
7797
|
|
7790
|
-
def initialize(clustercidr=nil, networktype=nil, subnetid=nil, enabled=nil, as=nil, switchip=nil, status=nil, failedreason=nil, master=nil, proxy=nil, progress=nil, enabledpublicconnect=nil, publicconnecturl=nil, requestid=nil)
|
7798
|
+
def initialize(clustercidr=nil, networktype=nil, subnetid=nil, enabled=nil, as=nil, switchip=nil, status=nil, failedreason=nil, master=nil, proxy=nil, progress=nil, enabledpublicconnect=nil, publicconnecturl=nil, publiccustomdomain=nil, requestid=nil)
|
7791
7799
|
@ClusterCIDR = clustercidr
|
7792
7800
|
@NetworkType = networktype
|
7793
7801
|
@SubnetId = subnetid
|
@@ -7801,6 +7809,7 @@ module TencentCloud
|
|
7801
7809
|
@Progress = progress
|
7802
7810
|
@EnabledPublicConnect = enabledpublicconnect
|
7803
7811
|
@PublicConnectUrl = publicconnecturl
|
7812
|
+
@PublicCustomDomain = publiccustomdomain
|
7804
7813
|
@RequestId = requestid
|
7805
7814
|
end
|
7806
7815
|
|
@@ -7825,6 +7834,7 @@ module TencentCloud
|
|
7825
7834
|
end
|
7826
7835
|
@EnabledPublicConnect = params['EnabledPublicConnect']
|
7827
7836
|
@PublicConnectUrl = params['PublicConnectUrl']
|
7837
|
+
@PublicCustomDomain = params['PublicCustomDomain']
|
7828
7838
|
@RequestId = params['RequestId']
|
7829
7839
|
end
|
7830
7840
|
end
|
@@ -8065,6 +8075,54 @@ module TencentCloud
|
|
8065
8075
|
end
|
8066
8076
|
end
|
8067
8077
|
|
8078
|
+
# DescribeOpenPolicyList请求参数结构体
|
8079
|
+
class DescribeOpenPolicyListRequest < TencentCloud::Common::AbstractModel
|
8080
|
+
# @param ClusterId: 集群ID
|
8081
|
+
# @type ClusterId: String
|
8082
|
+
# @param Category: 策略分类 基线:baseline 优选:priority 可选:optional
|
8083
|
+
# @type Category: String
|
8084
|
+
|
8085
|
+
attr_accessor :ClusterId, :Category
|
8086
|
+
|
8087
|
+
def initialize(clusterid=nil, category=nil)
|
8088
|
+
@ClusterId = clusterid
|
8089
|
+
@Category = category
|
8090
|
+
end
|
8091
|
+
|
8092
|
+
def deserialize(params)
|
8093
|
+
@ClusterId = params['ClusterId']
|
8094
|
+
@Category = params['Category']
|
8095
|
+
end
|
8096
|
+
end
|
8097
|
+
|
8098
|
+
# DescribeOpenPolicyList返回参数结构体
|
8099
|
+
class DescribeOpenPolicyListResponse < TencentCloud::Common::AbstractModel
|
8100
|
+
# @param OpenPolicyInfoList: 策略信息列表
|
8101
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8102
|
+
# @type OpenPolicyInfoList: Array
|
8103
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8104
|
+
# @type RequestId: String
|
8105
|
+
|
8106
|
+
attr_accessor :OpenPolicyInfoList, :RequestId
|
8107
|
+
|
8108
|
+
def initialize(openpolicyinfolist=nil, requestid=nil)
|
8109
|
+
@OpenPolicyInfoList = openpolicyinfolist
|
8110
|
+
@RequestId = requestid
|
8111
|
+
end
|
8112
|
+
|
8113
|
+
def deserialize(params)
|
8114
|
+
unless params['OpenPolicyInfoList'].nil?
|
8115
|
+
@OpenPolicyInfoList = []
|
8116
|
+
params['OpenPolicyInfoList'].each do |i|
|
8117
|
+
openpolicyinfo_tmp = OpenPolicyInfo.new
|
8118
|
+
openpolicyinfo_tmp.deserialize(i)
|
8119
|
+
@OpenPolicyInfoList << openpolicyinfo_tmp
|
8120
|
+
end
|
8121
|
+
end
|
8122
|
+
@RequestId = params['RequestId']
|
8123
|
+
end
|
8124
|
+
end
|
8125
|
+
|
8068
8126
|
# DescribePodChargeInfo请求参数结构体
|
8069
8127
|
class DescribePodChargeInfoRequest < TencentCloud::Common::AbstractModel
|
8070
8128
|
# @param ClusterId: 集群ID
|
@@ -14119,6 +14177,53 @@ module TencentCloud
|
|
14119
14177
|
end
|
14120
14178
|
end
|
14121
14179
|
|
14180
|
+
# ModifyOpenPolicyList请求参数结构体
|
14181
|
+
class ModifyOpenPolicyListRequest < TencentCloud::Common::AbstractModel
|
14182
|
+
# @param ClusterId: 集群ID
|
14183
|
+
# @type ClusterId: String
|
14184
|
+
# @param OpenPolicyInfoList: 修改的策略列表,目前仅支持修改EnforcementAction字段
|
14185
|
+
# @type OpenPolicyInfoList: Array
|
14186
|
+
# @param Category: 策略分类 基线:baseline 优选:priority 可选:optional
|
14187
|
+
# @type Category: String
|
14188
|
+
|
14189
|
+
attr_accessor :ClusterId, :OpenPolicyInfoList, :Category
|
14190
|
+
|
14191
|
+
def initialize(clusterid=nil, openpolicyinfolist=nil, category=nil)
|
14192
|
+
@ClusterId = clusterid
|
14193
|
+
@OpenPolicyInfoList = openpolicyinfolist
|
14194
|
+
@Category = category
|
14195
|
+
end
|
14196
|
+
|
14197
|
+
def deserialize(params)
|
14198
|
+
@ClusterId = params['ClusterId']
|
14199
|
+
unless params['OpenPolicyInfoList'].nil?
|
14200
|
+
@OpenPolicyInfoList = []
|
14201
|
+
params['OpenPolicyInfoList'].each do |i|
|
14202
|
+
openpolicyswitch_tmp = OpenPolicySwitch.new
|
14203
|
+
openpolicyswitch_tmp.deserialize(i)
|
14204
|
+
@OpenPolicyInfoList << openpolicyswitch_tmp
|
14205
|
+
end
|
14206
|
+
end
|
14207
|
+
@Category = params['Category']
|
14208
|
+
end
|
14209
|
+
end
|
14210
|
+
|
14211
|
+
# ModifyOpenPolicyList返回参数结构体
|
14212
|
+
class ModifyOpenPolicyListResponse < TencentCloud::Common::AbstractModel
|
14213
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
14214
|
+
# @type RequestId: String
|
14215
|
+
|
14216
|
+
attr_accessor :RequestId
|
14217
|
+
|
14218
|
+
def initialize(requestid=nil)
|
14219
|
+
@RequestId = requestid
|
14220
|
+
end
|
14221
|
+
|
14222
|
+
def deserialize(params)
|
14223
|
+
@RequestId = params['RequestId']
|
14224
|
+
end
|
14225
|
+
end
|
14226
|
+
|
14122
14227
|
# ModifyPrometheusAgentExternalLabels请求参数结构体
|
14123
14228
|
class ModifyPrometheusAgentExternalLabelsRequest < TencentCloud::Common::AbstractModel
|
14124
14229
|
# @param InstanceId: 实例ID
|
@@ -14852,6 +14957,141 @@ module TencentCloud
|
|
14852
14957
|
end
|
14853
14958
|
end
|
14854
14959
|
|
14960
|
+
# 策略实例信息
|
14961
|
+
class OpenConstraintInfo < TencentCloud::Common::AbstractModel
|
14962
|
+
# @param Name: 策略实例名称
|
14963
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
14964
|
+
# @type Name: String
|
14965
|
+
# @param EventNums: 策略实例关联事件数
|
14966
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
14967
|
+
# @type EventNums: Integer
|
14968
|
+
# @param YamlDetail: 实例yaml详情base64编码
|
14969
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
14970
|
+
# @type YamlDetail: String
|
14971
|
+
|
14972
|
+
attr_accessor :Name, :EventNums, :YamlDetail
|
14973
|
+
|
14974
|
+
def initialize(name=nil, eventnums=nil, yamldetail=nil)
|
14975
|
+
@Name = name
|
14976
|
+
@EventNums = eventnums
|
14977
|
+
@YamlDetail = yamldetail
|
14978
|
+
end
|
14979
|
+
|
14980
|
+
def deserialize(params)
|
14981
|
+
@Name = params['Name']
|
14982
|
+
@EventNums = params['EventNums']
|
14983
|
+
@YamlDetail = params['YamlDetail']
|
14984
|
+
end
|
14985
|
+
end
|
14986
|
+
|
14987
|
+
# opa策略信息
|
14988
|
+
class OpenPolicyInfo < TencentCloud::Common::AbstractModel
|
14989
|
+
# @param PolicyCategory: 策略分类:cluster集群策略、node节点策略、namespace命名空间策略、configuration配置相关策略、compute计算资源策略、storage存储资源策略、network网络资源策略
|
14990
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
14991
|
+
# @type PolicyCategory: String
|
14992
|
+
# @param PolicyName: 策略中文名称
|
14993
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
14994
|
+
# @type PolicyName: String
|
14995
|
+
# @param PolicyDesc: 策略描述
|
14996
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
14997
|
+
# @type PolicyDesc: String
|
14998
|
+
# @param EnforcementAction: 策略运行模式:dryrun空跑不生效,deny拦截生效
|
14999
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
15000
|
+
# @type EnforcementAction: String
|
15001
|
+
# @param EventNums: 关联的事件数量(最近7d)
|
15002
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
15003
|
+
# @type EventNums: Integer
|
15004
|
+
# @param Name: 策略英文名称
|
15005
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
15006
|
+
# @type Name: String
|
15007
|
+
# @param Kind: 策略模版类型
|
15008
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
15009
|
+
# @type Kind: String
|
15010
|
+
# @param EnabledStatus: 策略开关状态:open打开,close关闭
|
15011
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
15012
|
+
# @type EnabledStatus: String
|
15013
|
+
# @param ConstraintYamlExample: 策略的实例的yaml示例base64编码
|
15014
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
15015
|
+
# @type ConstraintYamlExample: String
|
15016
|
+
# @param OpenConstraintInfoList: 策略关联的实例列表
|
15017
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
15018
|
+
# @type OpenConstraintInfoList: Array
|
15019
|
+
|
15020
|
+
attr_accessor :PolicyCategory, :PolicyName, :PolicyDesc, :EnforcementAction, :EventNums, :Name, :Kind, :EnabledStatus, :ConstraintYamlExample, :OpenConstraintInfoList
|
15021
|
+
|
15022
|
+
def initialize(policycategory=nil, policyname=nil, policydesc=nil, enforcementaction=nil, eventnums=nil, name=nil, kind=nil, enabledstatus=nil, constraintyamlexample=nil, openconstraintinfolist=nil)
|
15023
|
+
@PolicyCategory = policycategory
|
15024
|
+
@PolicyName = policyname
|
15025
|
+
@PolicyDesc = policydesc
|
15026
|
+
@EnforcementAction = enforcementaction
|
15027
|
+
@EventNums = eventnums
|
15028
|
+
@Name = name
|
15029
|
+
@Kind = kind
|
15030
|
+
@EnabledStatus = enabledstatus
|
15031
|
+
@ConstraintYamlExample = constraintyamlexample
|
15032
|
+
@OpenConstraintInfoList = openconstraintinfolist
|
15033
|
+
end
|
15034
|
+
|
15035
|
+
def deserialize(params)
|
15036
|
+
@PolicyCategory = params['PolicyCategory']
|
15037
|
+
@PolicyName = params['PolicyName']
|
15038
|
+
@PolicyDesc = params['PolicyDesc']
|
15039
|
+
@EnforcementAction = params['EnforcementAction']
|
15040
|
+
@EventNums = params['EventNums']
|
15041
|
+
@Name = params['Name']
|
15042
|
+
@Kind = params['Kind']
|
15043
|
+
@EnabledStatus = params['EnabledStatus']
|
15044
|
+
@ConstraintYamlExample = params['ConstraintYamlExample']
|
15045
|
+
unless params['OpenConstraintInfoList'].nil?
|
15046
|
+
@OpenConstraintInfoList = []
|
15047
|
+
params['OpenConstraintInfoList'].each do |i|
|
15048
|
+
openconstraintinfo_tmp = OpenConstraintInfo.new
|
15049
|
+
openconstraintinfo_tmp.deserialize(i)
|
15050
|
+
@OpenConstraintInfoList << openconstraintinfo_tmp
|
15051
|
+
end
|
15052
|
+
end
|
15053
|
+
end
|
15054
|
+
end
|
15055
|
+
|
15056
|
+
# opa策略开关
|
15057
|
+
class OpenPolicySwitch < TencentCloud::Common::AbstractModel
|
15058
|
+
# @param EnforcementAction: 策略运行模式:dryrun空跑不生效,deny拦截生效
|
15059
|
+
# @type EnforcementAction: String
|
15060
|
+
# @param Name: 策略英文名称
|
15061
|
+
# @type Name: String
|
15062
|
+
# @param Kind: 策略模版类型
|
15063
|
+
# @type Kind: String
|
15064
|
+
# @param EnabledStatus: 策略开关状态:open打开,close关闭
|
15065
|
+
# @type EnabledStatus: String
|
15066
|
+
# @param OpenConstraintInfoList: 策略关联的实例列表
|
15067
|
+
# @type OpenConstraintInfoList: Array
|
15068
|
+
|
15069
|
+
attr_accessor :EnforcementAction, :Name, :Kind, :EnabledStatus, :OpenConstraintInfoList
|
15070
|
+
|
15071
|
+
def initialize(enforcementaction=nil, name=nil, kind=nil, enabledstatus=nil, openconstraintinfolist=nil)
|
15072
|
+
@EnforcementAction = enforcementaction
|
15073
|
+
@Name = name
|
15074
|
+
@Kind = kind
|
15075
|
+
@EnabledStatus = enabledstatus
|
15076
|
+
@OpenConstraintInfoList = openconstraintinfolist
|
15077
|
+
end
|
15078
|
+
|
15079
|
+
def deserialize(params)
|
15080
|
+
@EnforcementAction = params['EnforcementAction']
|
15081
|
+
@Name = params['Name']
|
15082
|
+
@Kind = params['Kind']
|
15083
|
+
@EnabledStatus = params['EnabledStatus']
|
15084
|
+
unless params['OpenConstraintInfoList'].nil?
|
15085
|
+
@OpenConstraintInfoList = []
|
15086
|
+
params['OpenConstraintInfoList'].each do |i|
|
15087
|
+
openconstraintinfo_tmp = OpenConstraintInfo.new
|
15088
|
+
openconstraintinfo_tmp.deserialize(i)
|
15089
|
+
@OpenConstraintInfoList << openconstraintinfo_tmp
|
15090
|
+
end
|
15091
|
+
end
|
15092
|
+
end
|
15093
|
+
end
|
15094
|
+
|
14855
15095
|
# 可选运行时
|
14856
15096
|
class OptionalRuntimes < TencentCloud::Common::AbstractModel
|
14857
15097
|
# @param RuntimeType: 运行时类型
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.908
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|