tencentcloud-sdk-tse 3.0.650 → 3.0.651

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20201207/models.rb +125 -9
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13681bc91c723a38b5a32c8d65470c7c9f52078e
4
- data.tar.gz: 4499d90b7e9a2bb9426a9bc1694157a1a015eafb
3
+ metadata.gz: efe8002101c8576758e000cad62ee40f2da276df
4
+ data.tar.gz: 193d2bec5b1d66dfd5ec2b4017f5a5fb19a3b7f9
5
5
  SHA512:
6
- metadata.gz: 923631c19573879c58d0f77c14291d4f71c0296c672a06ff8daa8dc4bf08b99d308a87146f0075b1dfc2a6195ee2853b1de93ab01aef1dbc4ac6b67cbde36e70
7
- data.tar.gz: fea80c80dc9005d9299e7db6bb5750fc2d1694ceffbd3539d9fdd48e36f0ceef82ba61da2e7f61e4b5968e686d276f444802346914f0b9f638fa7e539eddd50f
6
+ metadata.gz: 0739a83fff1eaa4e1c337d3947f6965daa119594949f48b28f3a70e7807c847ecd9d64a8ff88d6708110293fa63cd378ac086c449347619f20f09b9f5912e417
7
+ data.tar.gz: e0a88b9f2d096e6e8fdc66150473c33bc8935626886fe46a51d9a0ab157af46d1a1667c82d6e59907ebf2b09fb33ee32ba99e5db7b05df1f3b458d5d1750d810
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.650
1
+ 3.0.651
@@ -60,6 +60,95 @@ module TencentCloud
60
60
  end
61
61
  end
62
62
 
63
+ # 指标伸缩行为
64
+ class AutoScalerBehavior < TencentCloud::Common::AbstractModel
65
+ # @param ScaleUp: 扩容行为配置
66
+ # 注意:此字段可能返回 null,表示取不到有效值。
67
+ # @type ScaleUp: :class:`Tencentcloud::Tse.v20201207.models.AutoScalerRules`
68
+ # @param ScaleDown: 缩容行为配置
69
+ # 注意:此字段可能返回 null,表示取不到有效值。
70
+ # @type ScaleDown: :class:`Tencentcloud::Tse.v20201207.models.AutoScalerRules`
71
+
72
+ attr_accessor :ScaleUp, :ScaleDown
73
+
74
+ def initialize(scaleup=nil, scaledown=nil)
75
+ @ScaleUp = scaleup
76
+ @ScaleDown = scaledown
77
+ end
78
+
79
+ def deserialize(params)
80
+ unless params['ScaleUp'].nil?
81
+ @ScaleUp = AutoScalerRules.new
82
+ @ScaleUp.deserialize(params['ScaleUp'])
83
+ end
84
+ unless params['ScaleDown'].nil?
85
+ @ScaleDown = AutoScalerRules.new
86
+ @ScaleDown.deserialize(params['ScaleDown'])
87
+ end
88
+ end
89
+ end
90
+
91
+ # 扩容策略
92
+ class AutoScalerPolicy < TencentCloud::Common::AbstractModel
93
+ # @param Type: 类型,Pods或Percent
94
+ # 注意:此字段可能返回 null,表示取不到有效值。
95
+ # @type Type: String
96
+ # @param Value: 数量
97
+ # 注意:此字段可能返回 null,表示取不到有效值。
98
+ # @type Value: Integer
99
+ # @param PeriodSeconds: 扩容周期
100
+ # 注意:此字段可能返回 null,表示取不到有效值。
101
+ # @type PeriodSeconds: Integer
102
+
103
+ attr_accessor :Type, :Value, :PeriodSeconds
104
+
105
+ def initialize(type=nil, value=nil, periodseconds=nil)
106
+ @Type = type
107
+ @Value = value
108
+ @PeriodSeconds = periodseconds
109
+ end
110
+
111
+ def deserialize(params)
112
+ @Type = params['Type']
113
+ @Value = params['Value']
114
+ @PeriodSeconds = params['PeriodSeconds']
115
+ end
116
+ end
117
+
118
+ # 指标伸缩的规则
119
+ class AutoScalerRules < TencentCloud::Common::AbstractModel
120
+ # @param StabilizationWindowSeconds: 稳定窗口时间
121
+ # 注意:此字段可能返回 null,表示取不到有效值。
122
+ # @type StabilizationWindowSeconds: Integer
123
+ # @param SelectPolicy: 选择策略依据
124
+ # 注意:此字段可能返回 null,表示取不到有效值。
125
+ # @type SelectPolicy: String
126
+ # @param Policies: 扩容策略
127
+ # 注意:此字段可能返回 null,表示取不到有效值。
128
+ # @type Policies: Array
129
+
130
+ attr_accessor :StabilizationWindowSeconds, :SelectPolicy, :Policies
131
+
132
+ def initialize(stabilizationwindowseconds=nil, selectpolicy=nil, policies=nil)
133
+ @StabilizationWindowSeconds = stabilizationwindowseconds
134
+ @SelectPolicy = selectpolicy
135
+ @Policies = policies
136
+ end
137
+
138
+ def deserialize(params)
139
+ @StabilizationWindowSeconds = params['StabilizationWindowSeconds']
140
+ @SelectPolicy = params['SelectPolicy']
141
+ unless params['Policies'].nil?
142
+ @Policies = []
143
+ params['Policies'].each do |i|
144
+ autoscalerpolicy_tmp = AutoScalerPolicy.new
145
+ autoscalerpolicy_tmp.deserialize(i)
146
+ @Policies << autoscalerpolicy_tmp
147
+ end
148
+ end
149
+ end
150
+ end
151
+
63
152
  # 服务治理引擎绑定的kubernetes信息
64
153
  class BoundK8SInfo < TencentCloud::Common::AbstractModel
65
154
  # @param BoundClusterId: 绑定的kubernetes集群ID
@@ -439,6 +528,9 @@ module TencentCloud
439
528
  # @type MaxReplicas: Integer
440
529
 
441
530
  attr_accessor :StrategyId, :StrategyName, :CreateTime, :ModifyTime, :Description, :Config, :GatewayId, :CronConfig, :MaxReplicas
531
+ extend Gem::Deprecate
532
+ deprecate :MaxReplicas, :none, 2023, 9
533
+ deprecate :MaxReplicas=, :none, 2023, 9
442
534
 
443
535
  def initialize(strategyid=nil, strategyname=nil, createtime=nil, modifytime=nil, description=nil, config=nil, gatewayid=nil, cronconfig=nil, maxreplicas=nil)
444
536
  @StrategyId = strategyid
@@ -494,10 +586,22 @@ module TencentCloud
494
586
  # @param AutoScalerId: 指标配置ID
495
587
  # 注意:此字段可能返回 null,表示取不到有效值。
496
588
  # @type AutoScalerId: String
589
+ # @param Behavior: 指标伸缩行为配置
590
+ # 注意:此字段可能返回 null,表示取不到有效值。
591
+ # @type Behavior: :class:`Tencentcloud::Tse.v20201207.models.AutoScalerBehavior`
497
592
 
498
- attr_accessor :MaxReplicas, :Metrics, :Enabled, :CreateTime, :ModifyTime, :StrategyId, :AutoScalerId
499
-
500
- def initialize(maxreplicas=nil, metrics=nil, enabled=nil, createtime=nil, modifytime=nil, strategyid=nil, autoscalerid=nil)
593
+ attr_accessor :MaxReplicas, :Metrics, :Enabled, :CreateTime, :ModifyTime, :StrategyId, :AutoScalerId, :Behavior
594
+ extend Gem::Deprecate
595
+ deprecate :CreateTime, :none, 2023, 9
596
+ deprecate :CreateTime=, :none, 2023, 9
597
+ deprecate :ModifyTime, :none, 2023, 9
598
+ deprecate :ModifyTime=, :none, 2023, 9
599
+ deprecate :StrategyId, :none, 2023, 9
600
+ deprecate :StrategyId=, :none, 2023, 9
601
+ deprecate :AutoScalerId, :none, 2023, 9
602
+ deprecate :AutoScalerId=, :none, 2023, 9
603
+
604
+ def initialize(maxreplicas=nil, metrics=nil, enabled=nil, createtime=nil, modifytime=nil, strategyid=nil, autoscalerid=nil, behavior=nil)
501
605
  @MaxReplicas = maxreplicas
502
606
  @Metrics = metrics
503
607
  @Enabled = enabled
@@ -505,6 +609,7 @@ module TencentCloud
505
609
  @ModifyTime = modifytime
506
610
  @StrategyId = strategyid
507
611
  @AutoScalerId = autoscalerid
612
+ @Behavior = behavior
508
613
  end
509
614
 
510
615
  def deserialize(params)
@@ -522,6 +627,10 @@ module TencentCloud
522
627
  @ModifyTime = params['ModifyTime']
523
628
  @StrategyId = params['StrategyId']
524
629
  @AutoScalerId = params['AutoScalerId']
630
+ unless params['Behavior'].nil?
631
+ @Behavior = AutoScalerBehavior.new
632
+ @Behavior.deserialize(params['Behavior'])
633
+ end
525
634
  end
526
635
  end
527
636
 
@@ -576,6 +685,13 @@ module TencentCloud
576
685
  # @type StrategyId: String
577
686
 
578
687
  attr_accessor :Enabled, :Params, :CreateTime, :ModifyTime, :StrategyId
688
+ extend Gem::Deprecate
689
+ deprecate :CreateTime, :none, 2023, 9
690
+ deprecate :CreateTime=, :none, 2023, 9
691
+ deprecate :ModifyTime, :none, 2023, 9
692
+ deprecate :ModifyTime=, :none, 2023, 9
693
+ deprecate :StrategyId, :none, 2023, 9
694
+ deprecate :StrategyId=, :none, 2023, 9
579
695
 
580
696
  def initialize(enabled=nil, params=nil, createtime=nil, modifytime=nil, strategyid=nil)
581
697
  @Enabled = enabled
@@ -930,8 +1046,8 @@ module TencentCloud
930
1046
 
931
1047
  attr_accessor :GatewayId, :ServiceID, :RouteName, :Methods, :Hosts, :Paths, :Protocols, :PreserveHost, :HttpsRedirectStatusCode, :StripPath, :ForceHttps, :DestinationPorts, :Headers
932
1048
  extend Gem::Deprecate
933
- deprecate :ForceHttps, :none, 2023, 8
934
- deprecate :ForceHttps=, :none, 2023, 8
1049
+ deprecate :ForceHttps, :none, 2023, 9
1050
+ deprecate :ForceHttps=, :none, 2023, 9
935
1051
 
936
1052
  def initialize(gatewayid=nil, serviceid=nil, routename=nil, methods=nil, hosts=nil, paths=nil, protocols=nil, preservehost=nil, httpsredirectstatuscode=nil, strippath=nil, forcehttps=nil, destinationports=nil, headers=nil)
937
1053
  @GatewayId = gatewayid
@@ -3347,8 +3463,8 @@ module TencentCloud
3347
3463
 
3348
3464
  attr_accessor :ID, :Name, :Methods, :Paths, :Hosts, :Protocols, :PreserveHost, :HttpsRedirectStatusCode, :StripPath, :CreatedTime, :ForceHttps, :ServiceName, :ServiceID, :DestinationPorts, :Headers
3349
3465
  extend Gem::Deprecate
3350
- deprecate :ForceHttps, :none, 2023, 8
3351
- deprecate :ForceHttps=, :none, 2023, 8
3466
+ deprecate :ForceHttps, :none, 2023, 9
3467
+ deprecate :ForceHttps=, :none, 2023, 9
3352
3468
 
3353
3469
  def initialize(id=nil, name=nil, methods=nil, paths=nil, hosts=nil, protocols=nil, preservehost=nil, httpsredirectstatuscode=nil, strippath=nil, createdtime=nil, forcehttps=nil, servicename=nil, serviceid=nil, destinationports=nil, headers=nil)
3354
3470
  @ID = id
@@ -3940,8 +4056,8 @@ module TencentCloud
3940
4056
 
3941
4057
  attr_accessor :GatewayId, :ServiceID, :RouteID, :RouteName, :Methods, :Hosts, :Paths, :Protocols, :PreserveHost, :HttpsRedirectStatusCode, :StripPath, :ForceHttps, :DestinationPorts, :Headers
3942
4058
  extend Gem::Deprecate
3943
- deprecate :ForceHttps, :none, 2023, 8
3944
- deprecate :ForceHttps=, :none, 2023, 8
4059
+ deprecate :ForceHttps, :none, 2023, 9
4060
+ deprecate :ForceHttps=, :none, 2023, 9
3945
4061
 
3946
4062
  def initialize(gatewayid=nil, serviceid=nil, routeid=nil, routename=nil, methods=nil, hosts=nil, paths=nil, protocols=nil, preservehost=nil, httpsredirectstatuscode=nil, strippath=nil, forcehttps=nil, destinationports=nil, headers=nil)
3947
4063
  @GatewayId = gatewayid
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tse
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.650
4
+ version: 3.0.651
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-31 00:00:00.000000000 Z
11
+ date: 2023-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common