tencentcloud-sdk-scf 3.0.616 → 3.0.618

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20180416/models.rb +144 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ccd806dc3be67bf333878d949bc7403283e3120a
4
- data.tar.gz: 960818f587dcbc68d48044fce40c60eaff4f682f
3
+ metadata.gz: 4ca4f64294d40810ac72454e46fd98814cf431e3
4
+ data.tar.gz: ec486b198466b1634af4ec93759149b15f84a93e
5
5
  SHA512:
6
- metadata.gz: 2f355d944d5c8aeeaeb4308453ba62303da63d0ff58d0cf4d8ddaf1a19a9901c22befa61c230faf1161082f921ff39a32c970b6aacb76d1d0b9513d23f8cc309
7
- data.tar.gz: d722e28dd236936af74366c0c9778a7f36f986be639992ba13d3a422bcf76a0631b1a23b3cf0553dd53ef9c53ccec83855c258c2a8eb45a10ef1a28af8fb9433
6
+ metadata.gz: 714f778781b1c6787d4cb929bba0b0a9f4b305a7342546fd026363f3f0d4a676978a66bde3882600457ae1cdc2cd94f6e75db29f058a66d4f5a2ff5237fa2172
7
+ data.tar.gz: 04b6a406a1741e9532a1e764e7c6417275f5ca7c588a46fbc266a8f3e5164def4f120e63795b0bc740ac02c8ec88b7cea4c41dc7dc15387cb377a12253491535
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.616
1
+ 3.0.618
@@ -627,17 +627,24 @@ module TencentCloud
627
627
  # @type Namespace: String
628
628
  # @param Description: 命名空间描述
629
629
  # @type Description: String
630
+ # @param ResourceEnv: 资源池配置
631
+ # @type ResourceEnv: :class:`Tencentcloud::Scf.v20180416.models.NamespaceResourceEnv`
630
632
 
631
- attr_accessor :Namespace, :Description
633
+ attr_accessor :Namespace, :Description, :ResourceEnv
632
634
 
633
- def initialize(namespace=nil, description=nil)
635
+ def initialize(namespace=nil, description=nil, resourceenv=nil)
634
636
  @Namespace = namespace
635
637
  @Description = description
638
+ @ResourceEnv = resourceenv
636
639
  end
637
640
 
638
641
  def deserialize(params)
639
642
  @Namespace = params['Namespace']
640
643
  @Description = params['Description']
644
+ unless params['ResourceEnv'].nil?
645
+ @ResourceEnv = NamespaceResourceEnv.new
646
+ @ResourceEnv.deserialize(params['ResourceEnv'])
647
+ end
641
648
  end
642
649
  end
643
650
 
@@ -2392,6 +2399,63 @@ module TencentCloud
2392
2399
  end
2393
2400
  end
2394
2401
 
2402
+ # k8s label
2403
+ class K8SLabel < TencentCloud::Common::AbstractModel
2404
+ # @param Key: label的名称
2405
+ # @type Key: String
2406
+ # @param Value: label的值
2407
+ # @type Value: String
2408
+
2409
+ attr_accessor :Key, :Value
2410
+
2411
+ def initialize(key=nil, value=nil)
2412
+ @Key = key
2413
+ @Value = value
2414
+ end
2415
+
2416
+ def deserialize(params)
2417
+ @Key = params['Key']
2418
+ @Value = params['Value']
2419
+ end
2420
+ end
2421
+
2422
+ # Kubernetes污点容忍,使用时请注意您的Kubernetes版本所支持的字段情况。
2423
+ # 可参考 https://kubernetes.io/zh-cn/docs/concepts/scheduling-eviction/taint-and-toleration/
2424
+ class K8SToleration < TencentCloud::Common::AbstractModel
2425
+ # @param Key: 匹配的污点名
2426
+ # @type Key: String
2427
+ # @param Operator: 匹配方式,默认值为: Equal
2428
+ # 注意:此字段可能返回 null,表示取不到有效值。
2429
+ # @type Operator: String
2430
+ # @param Effect: 执行策略
2431
+ # 注意:此字段可能返回 null,表示取不到有效值。
2432
+ # @type Effect: String
2433
+ # @param Value: 匹配的污点值,当Operator为Equal时必填
2434
+ # 注意:此字段可能返回 null,表示取不到有效值。
2435
+ # @type Value: String
2436
+ # @param TolerationSeconds: 当污点不被容忍时,Pod还能在节点上运行多久
2437
+ # 注意:此字段可能返回 null,表示取不到有效值。
2438
+ # @type TolerationSeconds: Integer
2439
+
2440
+ attr_accessor :Key, :Operator, :Effect, :Value, :TolerationSeconds
2441
+
2442
+ def initialize(key=nil, operator=nil, effect=nil, value=nil, tolerationseconds=nil)
2443
+ @Key = key
2444
+ @Operator = operator
2445
+ @Effect = effect
2446
+ @Value = value
2447
+ @TolerationSeconds = tolerationseconds
2448
+ end
2449
+
2450
+ def deserialize(params)
2451
+ @Key = params['Key']
2452
+ @Operator = params['Operator']
2453
+ @Effect = params['Effect']
2454
+ @Value = params['Value']
2455
+ @TolerationSeconds = params['TolerationSeconds']
2456
+ end
2457
+ end
2458
+
2395
2459
  # 层版本信息
2396
2460
  class LayerVersionInfo < TencentCloud::Common::AbstractModel
2397
2461
  # @param CompatibleRuntimes: 版本适用的运行时
@@ -3200,6 +3264,84 @@ module TencentCloud
3200
3264
  end
3201
3265
  end
3202
3266
 
3267
+ # 命名空间资源池配置
3268
+ class NamespaceResourceEnv < TencentCloud::Common::AbstractModel
3269
+ # @param TKE: 基于TKE集群的资源池
3270
+ # 注意:此字段可能返回 null,表示取不到有效值。
3271
+ # @type TKE: :class:`Tencentcloud::Scf.v20180416.models.NamespaceResourceEnvTKE`
3272
+
3273
+ attr_accessor :TKE
3274
+
3275
+ def initialize(tke=nil)
3276
+ @TKE = tke
3277
+ end
3278
+
3279
+ def deserialize(params)
3280
+ unless params['TKE'].nil?
3281
+ @TKE = NamespaceResourceEnvTKE.new
3282
+ @TKE.deserialize(params['TKE'])
3283
+ end
3284
+ end
3285
+ end
3286
+
3287
+ # 基于TKE的资源池选项
3288
+ class NamespaceResourceEnvTKE < TencentCloud::Common::AbstractModel
3289
+ # @param ClusterID: 集群ID
3290
+ # @type ClusterID: String
3291
+ # @param SubnetID: 子网ID
3292
+ # @type SubnetID: String
3293
+ # @param Namespace: 命名空间
3294
+ # @type Namespace: String
3295
+ # @param DataPath: 数据存储地址
3296
+ # 注意:此字段可能返回 null,表示取不到有效值。
3297
+ # @type DataPath: String
3298
+ # @param NodeSelector: node选择器
3299
+ # 注意:此字段可能返回 null,表示取不到有效值。
3300
+ # @type NodeSelector: Array
3301
+ # @param Tolerations: 污点容忍
3302
+ # 注意:此字段可能返回 null,表示取不到有效值。
3303
+ # @type Tolerations: Array
3304
+ # @param Port: scf组件将占用的节点端口起始号
3305
+ # 注意:此字段可能返回 null,表示取不到有效值。
3306
+ # @type Port: Integer
3307
+
3308
+ attr_accessor :ClusterID, :SubnetID, :Namespace, :DataPath, :NodeSelector, :Tolerations, :Port
3309
+
3310
+ def initialize(clusterid=nil, subnetid=nil, namespace=nil, datapath=nil, nodeselector=nil, tolerations=nil, port=nil)
3311
+ @ClusterID = clusterid
3312
+ @SubnetID = subnetid
3313
+ @Namespace = namespace
3314
+ @DataPath = datapath
3315
+ @NodeSelector = nodeselector
3316
+ @Tolerations = tolerations
3317
+ @Port = port
3318
+ end
3319
+
3320
+ def deserialize(params)
3321
+ @ClusterID = params['ClusterID']
3322
+ @SubnetID = params['SubnetID']
3323
+ @Namespace = params['Namespace']
3324
+ @DataPath = params['DataPath']
3325
+ unless params['NodeSelector'].nil?
3326
+ @NodeSelector = []
3327
+ params['NodeSelector'].each do |i|
3328
+ k8slabel_tmp = K8SLabel.new
3329
+ k8slabel_tmp.deserialize(i)
3330
+ @NodeSelector << k8slabel_tmp
3331
+ end
3332
+ end
3333
+ unless params['Tolerations'].nil?
3334
+ @Tolerations = []
3335
+ params['Tolerations'].each do |i|
3336
+ k8stoleration_tmp = K8SToleration.new
3337
+ k8stoleration_tmp.deserialize(i)
3338
+ @Tolerations << k8stoleration_tmp
3339
+ end
3340
+ end
3341
+ @Port = params['Port']
3342
+ end
3343
+ end
3344
+
3203
3345
  # 名称空间已使用信息
3204
3346
  class NamespaceUsage < TencentCloud::Common::AbstractModel
3205
3347
  # @param Functions: 函数数组
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-scf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.616
4
+ version: 3.0.618
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-07-19 00:00:00.000000000 Z
11
+ date: 2023-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common