lib/v20180525/models.rb in tencentcloud-sdk-tke-3.0.851 vs lib/v20180525/models.rb in tencentcloud-sdk-tke-3.0.852

- old
+ new

@@ -3371,20 +3371,23 @@ # @type ServiceMonitors: Array # @param PodMonitors: PodMonitors配置 # @type PodMonitors: Array # @param RawJobs: prometheus原生Job配置 # @type RawJobs: Array + # @param Probes: Probe 配置 + # @type Probes: Array - attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs + attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs, :Probes - def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil) + def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, probes=nil) @InstanceId = instanceid @ClusterType = clustertype @ClusterId = clusterid @ServiceMonitors = servicemonitors @PodMonitors = podmonitors @RawJobs = rawjobs + @Probes = probes end def deserialize(params) @InstanceId = params['InstanceId'] @ClusterType = params['ClusterType'] @@ -3411,10 +3414,18 @@ prometheusconfigitem_tmp = PrometheusConfigItem.new prometheusconfigitem_tmp.deserialize(i) @RawJobs << prometheusconfigitem_tmp end end + unless params['Probes'].nil? + @Probes = [] + params['Probes'].each do |i| + prometheusconfigitem_tmp = PrometheusConfigItem.new + prometheusconfigitem_tmp.deserialize(i) + @Probes << prometheusconfigitem_tmp + end + end end end # CreatePrometheusConfig返回参数结构体 class CreatePrometheusConfigResponse < TencentCloud::Common::AbstractModel @@ -4667,16 +4678,19 @@ class DeletePrometheusClusterAgentRequest < TencentCloud::Common::AbstractModel # @param Agents: agent列表 # @type Agents: Array # @param InstanceId: 实例id # @type InstanceId: String + # @param Force: 在7天可回收期间,强制解除绑定 + # @type Force: Boolean - attr_accessor :Agents, :InstanceId + attr_accessor :Agents, :InstanceId, :Force - def initialize(agents=nil, instanceid=nil) + def initialize(agents=nil, instanceid=nil, force=nil) @Agents = agents @InstanceId = instanceid + @Force = force end def deserialize(params) unless params['Agents'].nil? @Agents = [] @@ -4685,10 +4699,11 @@ prometheusagentinfo_tmp.deserialize(i) @Agents << prometheusagentinfo_tmp end end @InstanceId = params['InstanceId'] + @Force = params['Force'] end end # DeletePrometheusClusterAgent返回参数结构体 class DeletePrometheusClusterAgentResponse < TencentCloud::Common::AbstractModel @@ -4718,29 +4733,33 @@ # @type ServiceMonitors: Array # @param PodMonitors: 要删除的PodMonitor名字列表 # @type PodMonitors: Array # @param RawJobs: 要删除的RawJobs名字列表 # @type RawJobs: Array + # @param Probes: 要删除的Probe名字列表 + # @type Probes: Array - attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs + attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs, :Probes - def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil) + def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, probes=nil) @InstanceId = instanceid @ClusterType = clustertype @ClusterId = clusterid @ServiceMonitors = servicemonitors @PodMonitors = podmonitors @RawJobs = rawjobs + @Probes = probes end def deserialize(params) @InstanceId = params['InstanceId'] @ClusterType = params['ClusterType'] @ClusterId = params['ClusterId'] @ServiceMonitors = params['ServiceMonitors'] @PodMonitors = params['PodMonitors'] @RawJobs = params['RawJobs'] + @Probes = params['Probes'] end end # DeletePrometheusConfig返回参数结构体 class DeletePrometheusConfigResponse < TencentCloud::Common::AbstractModel @@ -8689,20 +8708,23 @@ # @type ServiceMonitors: Array # @param PodMonitors: PodMonitor配置 # @type PodMonitors: Array # @param RawJobs: 原生Job # @type RawJobs: Array + # @param Probes: Probe配置 + # @type Probes: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String - attr_accessor :Config, :ServiceMonitors, :PodMonitors, :RawJobs, :RequestId + attr_accessor :Config, :ServiceMonitors, :PodMonitors, :RawJobs, :Probes, :RequestId - def initialize(config=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, requestid=nil) + def initialize(config=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, probes=nil, requestid=nil) @Config = config @ServiceMonitors = servicemonitors @PodMonitors = podmonitors @RawJobs = rawjobs + @Probes = probes @RequestId = requestid end def deserialize(params) @Config = params['Config'] @@ -8728,10 +8750,18 @@ prometheusconfigitem_tmp = PrometheusConfigItem.new prometheusconfigitem_tmp.deserialize(i) @RawJobs << prometheusconfigitem_tmp end end + unless params['Probes'].nil? + @Probes = [] + params['Probes'].each do |i| + prometheusconfigitem_tmp = PrometheusConfigItem.new + prometheusconfigitem_tmp.deserialize(i) + @Probes << prometheusconfigitem_tmp + end + end @RequestId = params['RequestId'] end end # DescribePrometheusGlobalConfig请求参数结构体 @@ -14159,20 +14189,23 @@ # @type ServiceMonitors: Array # @param PodMonitors: PodMonitors配置 # @type PodMonitors: Array # @param RawJobs: prometheus原生Job配置 # @type RawJobs: Array + # @param Probes: Probes 配置 + # @type Probes: Array - attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs + attr_accessor :InstanceId, :ClusterType, :ClusterId, :ServiceMonitors, :PodMonitors, :RawJobs, :Probes - def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil) + def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, probes=nil) @InstanceId = instanceid @ClusterType = clustertype @ClusterId = clusterid @ServiceMonitors = servicemonitors @PodMonitors = podmonitors @RawJobs = rawjobs + @Probes = probes end def deserialize(params) @InstanceId = params['InstanceId'] @ClusterType = params['ClusterType'] @@ -14197,9 +14230,17 @@ @RawJobs = [] params['RawJobs'].each do |i| prometheusconfigitem_tmp = PrometheusConfigItem.new prometheusconfigitem_tmp.deserialize(i) @RawJobs << prometheusconfigitem_tmp + end + end + unless params['Probes'].nil? + @Probes = [] + params['Probes'].each do |i| + prometheusconfigitem_tmp = PrometheusConfigItem.new + prometheusconfigitem_tmp.deserialize(i) + @Probes << prometheusconfigitem_tmp end end end end