tencentcloud-sdk-tse 3.0.643 → 3.0.644

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15bf0d8e6acd6ab5b3857020eae42f5945d9011c
4
- data.tar.gz: ad7d6f631320b35fc894d049e63579cfa15fbd4f
3
+ metadata.gz: 0470ad59c36cb106f111940b3baa8cffa9dafd99
4
+ data.tar.gz: 75105df4832456f79dc8a64b1189667fc55fc691
5
5
  SHA512:
6
- metadata.gz: 56ebaa9b36dd7499fe05e8dc4d49161943d347310911d1dc42608e044a70a21d59b1f3055740cef02baae2d3218dd9cc9357357a4fa230043d195b0f346db6a8
7
- data.tar.gz: 34a08306c0fe87c369811cd545d657be74f2c2b3d3d531711313014149367672e0997885b768f466a33fc1b7e3dfeb3ec9b6d4a6552cd9da8af6e1fed8dbc148
6
+ metadata.gz: 7ed3aef8d1882daae79b7cc0c0ba662e170b81578b08116740b1d8dee44e5c8449d563c8ceaea12dcf69d1d8a7326fc5defc0a8b0d77f9f79b1256ca57f7fd00
7
+ data.tar.gz: d6ef03026bd8b3dce12e767c0ee66840f0a466115d408ab57f2842b5859e15e5c0be2739c6c0347f8740ca26b6007eecb5df91372721783ae194d0a7e3a76f00
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.643
1
+ 3.0.644
@@ -677,6 +677,30 @@ module TencentCloud
677
677
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
678
  end
679
679
 
680
+ # 查询云原生网关分组信息
681
+
682
+ # @param request: Request instance for DescribeNativeGatewayServerGroups.
683
+ # @type request: :class:`Tencentcloud::tse::V20201207::DescribeNativeGatewayServerGroupsRequest`
684
+ # @rtype: :class:`Tencentcloud::tse::V20201207::DescribeNativeGatewayServerGroupsResponse`
685
+ def DescribeNativeGatewayServerGroups(request)
686
+ body = send_request('DescribeNativeGatewayServerGroups', request.serialize)
687
+ response = JSON.parse(body)
688
+ if response['Response'].key?('Error') == false
689
+ model = DescribeNativeGatewayServerGroupsResponse.new
690
+ model.deserialize(response['Response'])
691
+ model
692
+ else
693
+ code = response['Response']['Error']['Code']
694
+ message = response['Response']['Error']['Message']
695
+ reqid = response['Response']['RequestId']
696
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
697
+ end
698
+ rescue TencentCloud::Common::TencentCloudSDKException => e
699
+ raise e
700
+ rescue StandardError => e
701
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
702
+ end
703
+
680
704
  # 获取云原生网关服务详情
681
705
 
682
706
  # @param request: Request instance for DescribeOneCloudNativeAPIGatewayService.
@@ -409,6 +409,230 @@ module TencentCloud
409
409
  end
410
410
  end
411
411
 
412
+ # 网关实例策略
413
+ class CloudNativeAPIGatewayStrategy < TencentCloud::Common::AbstractModel
414
+ # @param StrategyId: 策略ID
415
+ # @type StrategyId: String
416
+ # @param StrategyName: 策略名称
417
+ # 注意:此字段可能返回 null,表示取不到有效值。
418
+ # @type StrategyName: String
419
+ # @param CreateTime: 创建时间
420
+ # 注意:此字段可能返回 null,表示取不到有效值。
421
+ # @type CreateTime: String
422
+ # @param ModifyTime: 更新时间
423
+ # 注意:此字段可能返回 null,表示取不到有效值。
424
+ # @type ModifyTime: String
425
+ # @param Description: 策略描述
426
+ # 注意:此字段可能返回 null,表示取不到有效值。
427
+ # @type Description: String
428
+ # @param Config: 弹性伸缩配置
429
+ # 注意:此字段可能返回 null,表示取不到有效值。
430
+ # @type Config: :class:`Tencentcloud::Tse.v20201207.models.CloudNativeAPIGatewayStrategyAutoScalerConfig`
431
+ # @param GatewayId: 网关实例ID
432
+ # 注意:此字段可能返回 null,表示取不到有效值。
433
+ # @type GatewayId: String
434
+ # @param CronConfig: 定时伸缩配置
435
+ # 注意:此字段可能返回 null,表示取不到有效值。
436
+ # @type CronConfig: :class:`Tencentcloud::Tse.v20201207.models.CloudNativeAPIGatewayStrategyCronScalerConfig`
437
+ # @param MaxReplicas: 最大节点数
438
+ # 注意:此字段可能返回 null,表示取不到有效值。
439
+ # @type MaxReplicas: Integer
440
+
441
+ attr_accessor :StrategyId, :StrategyName, :CreateTime, :ModifyTime, :Description, :Config, :GatewayId, :CronConfig, :MaxReplicas
442
+
443
+ def initialize(strategyid=nil, strategyname=nil, createtime=nil, modifytime=nil, description=nil, config=nil, gatewayid=nil, cronconfig=nil, maxreplicas=nil)
444
+ @StrategyId = strategyid
445
+ @StrategyName = strategyname
446
+ @CreateTime = createtime
447
+ @ModifyTime = modifytime
448
+ @Description = description
449
+ @Config = config
450
+ @GatewayId = gatewayid
451
+ @CronConfig = cronconfig
452
+ @MaxReplicas = maxreplicas
453
+ end
454
+
455
+ def deserialize(params)
456
+ @StrategyId = params['StrategyId']
457
+ @StrategyName = params['StrategyName']
458
+ @CreateTime = params['CreateTime']
459
+ @ModifyTime = params['ModifyTime']
460
+ @Description = params['Description']
461
+ unless params['Config'].nil?
462
+ @Config = CloudNativeAPIGatewayStrategyAutoScalerConfig.new
463
+ @Config.deserialize(params['Config'])
464
+ end
465
+ @GatewayId = params['GatewayId']
466
+ unless params['CronConfig'].nil?
467
+ @CronConfig = CloudNativeAPIGatewayStrategyCronScalerConfig.new
468
+ @CronConfig.deserialize(params['CronConfig'])
469
+ end
470
+ @MaxReplicas = params['MaxReplicas']
471
+ end
472
+ end
473
+
474
+ # 弹性伸缩策略
475
+ class CloudNativeAPIGatewayStrategyAutoScalerConfig < TencentCloud::Common::AbstractModel
476
+ # @param MaxReplicas: 最大副本数
477
+ # 注意:此字段可能返回 null,表示取不到有效值。
478
+ # @type MaxReplicas: Integer
479
+ # @param Metrics: 指标列表
480
+ # 注意:此字段可能返回 null,表示取不到有效值。
481
+ # @type Metrics: Array
482
+ # @param Enabled: 是否开启指标伸缩
483
+ # 注意:此字段可能返回 null,表示取不到有效值。
484
+ # @type Enabled: Boolean
485
+ # @param CreateTime: 创建时间
486
+ # 注意:此字段可能返回 null,表示取不到有效值。
487
+ # @type CreateTime: String
488
+ # @param ModifyTime: 修改时间
489
+ # 注意:此字段可能返回 null,表示取不到有效值。
490
+ # @type ModifyTime: String
491
+ # @param StrategyId: 弹性策略ID
492
+ # 注意:此字段可能返回 null,表示取不到有效值。
493
+ # @type StrategyId: String
494
+ # @param AutoScalerId: 指标配置ID
495
+ # 注意:此字段可能返回 null,表示取不到有效值。
496
+ # @type AutoScalerId: String
497
+
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)
501
+ @MaxReplicas = maxreplicas
502
+ @Metrics = metrics
503
+ @Enabled = enabled
504
+ @CreateTime = createtime
505
+ @ModifyTime = modifytime
506
+ @StrategyId = strategyid
507
+ @AutoScalerId = autoscalerid
508
+ end
509
+
510
+ def deserialize(params)
511
+ @MaxReplicas = params['MaxReplicas']
512
+ unless params['Metrics'].nil?
513
+ @Metrics = []
514
+ params['Metrics'].each do |i|
515
+ cloudnativeapigatewaystrategyautoscalerconfigmetric_tmp = CloudNativeAPIGatewayStrategyAutoScalerConfigMetric.new
516
+ cloudnativeapigatewaystrategyautoscalerconfigmetric_tmp.deserialize(i)
517
+ @Metrics << cloudnativeapigatewaystrategyautoscalerconfigmetric_tmp
518
+ end
519
+ end
520
+ @Enabled = params['Enabled']
521
+ @CreateTime = params['CreateTime']
522
+ @ModifyTime = params['ModifyTime']
523
+ @StrategyId = params['StrategyId']
524
+ @AutoScalerId = params['AutoScalerId']
525
+ end
526
+ end
527
+
528
+ # 弹性伸缩配置指标
529
+ class CloudNativeAPIGatewayStrategyAutoScalerConfigMetric < TencentCloud::Common::AbstractModel
530
+ # @param Type: 指标类型
531
+ # 注意:此字段可能返回 null,表示取不到有效值。
532
+ # @type Type: String
533
+ # @param ResourceName: 指标资源名称
534
+ # 注意:此字段可能返回 null,表示取不到有效值。
535
+ # @type ResourceName: String
536
+ # @param TargetType: 指标目标类型
537
+ # 注意:此字段可能返回 null,表示取不到有效值。
538
+ # @type TargetType: String
539
+ # @param TargetValue: 指标目标值
540
+ # 注意:此字段可能返回 null,表示取不到有效值。
541
+ # @type TargetValue: Integer
542
+
543
+ attr_accessor :Type, :ResourceName, :TargetType, :TargetValue
544
+
545
+ def initialize(type=nil, resourcename=nil, targettype=nil, targetvalue=nil)
546
+ @Type = type
547
+ @ResourceName = resourcename
548
+ @TargetType = targettype
549
+ @TargetValue = targetvalue
550
+ end
551
+
552
+ def deserialize(params)
553
+ @Type = params['Type']
554
+ @ResourceName = params['ResourceName']
555
+ @TargetType = params['TargetType']
556
+ @TargetValue = params['TargetValue']
557
+ end
558
+ end
559
+
560
+ # 定时伸缩策略配置
561
+ class CloudNativeAPIGatewayStrategyCronScalerConfig < TencentCloud::Common::AbstractModel
562
+ # @param Enabled: 是否开启定时伸缩
563
+ # 注意:此字段可能返回 null,表示取不到有效值。
564
+ # @type Enabled: Boolean
565
+ # @param Params: 定时伸缩配置参数列表
566
+ # 注意:此字段可能返回 null,表示取不到有效值。
567
+ # @type Params: Array
568
+ # @param CreateTime: 创建时间
569
+ # 注意:此字段可能返回 null,表示取不到有效值。
570
+ # @type CreateTime: String
571
+ # @param ModifyTime: 修改时间
572
+ # 注意:此字段可能返回 null,表示取不到有效值。
573
+ # @type ModifyTime: String
574
+ # @param StrategyId: 弹性策略ID
575
+ # 注意:此字段可能返回 null,表示取不到有效值。
576
+ # @type StrategyId: String
577
+
578
+ attr_accessor :Enabled, :Params, :CreateTime, :ModifyTime, :StrategyId
579
+
580
+ def initialize(enabled=nil, params=nil, createtime=nil, modifytime=nil, strategyid=nil)
581
+ @Enabled = enabled
582
+ @Params = params
583
+ @CreateTime = createtime
584
+ @ModifyTime = modifytime
585
+ @StrategyId = strategyid
586
+ end
587
+
588
+ def deserialize(params)
589
+ @Enabled = params['Enabled']
590
+ unless params['Params'].nil?
591
+ @Params = []
592
+ params['Params'].each do |i|
593
+ cloudnativeapigatewaystrategycronscalerconfigparam_tmp = CloudNativeAPIGatewayStrategyCronScalerConfigParam.new
594
+ cloudnativeapigatewaystrategycronscalerconfigparam_tmp.deserialize(i)
595
+ @Params << cloudnativeapigatewaystrategycronscalerconfigparam_tmp
596
+ end
597
+ end
598
+ @CreateTime = params['CreateTime']
599
+ @ModifyTime = params['ModifyTime']
600
+ @StrategyId = params['StrategyId']
601
+ end
602
+ end
603
+
604
+ # 定时伸缩配置参数
605
+ class CloudNativeAPIGatewayStrategyCronScalerConfigParam < TencentCloud::Common::AbstractModel
606
+ # @param Period: 定时伸缩周期
607
+ # 注意:此字段可能返回 null,表示取不到有效值。
608
+ # @type Period: String
609
+ # @param StartAt: 定时伸缩开始时间
610
+ # 注意:此字段可能返回 null,表示取不到有效值。
611
+ # @type StartAt: String
612
+ # @param TargetReplicas: 定时伸缩目标节点数
613
+ # 注意:此字段可能返回 null,表示取不到有效值。
614
+ # @type TargetReplicas: Integer
615
+ # @param Crontab: 定时伸缩cron表达式
616
+ # 注意:此字段可能返回 null,表示取不到有效值。
617
+ # @type Crontab: String
618
+
619
+ attr_accessor :Period, :StartAt, :TargetReplicas, :Crontab
620
+
621
+ def initialize(period=nil, startat=nil, targetreplicas=nil, crontab=nil)
622
+ @Period = period
623
+ @StartAt = startat
624
+ @TargetReplicas = targetreplicas
625
+ @Crontab = crontab
626
+ end
627
+
628
+ def deserialize(params)
629
+ @Period = params['Period']
630
+ @StartAt = params['StartAt']
631
+ @TargetReplicas = params['TargetReplicas']
632
+ @Crontab = params['Crontab']
633
+ end
634
+ end
635
+
412
636
  # 云原生API网关vpc配置。
413
637
  class CloudNativeAPIGatewayVpcConfig < TencentCloud::Common::AbstractModel
414
638
  # @param VpcId: 私有网络ID。
@@ -2316,6 +2540,64 @@ module TencentCloud
2316
2540
  end
2317
2541
  end
2318
2542
 
2543
+ # DescribeNativeGatewayServerGroups请求参数结构体
2544
+ class DescribeNativeGatewayServerGroupsRequest < TencentCloud::Common::AbstractModel
2545
+ # @param GatewayId: 云原生API网关实例ID。
2546
+ # @type GatewayId: String
2547
+ # @param Offset: 翻页从第几个开始获取
2548
+ # @type Offset: Integer
2549
+ # @param Limit: 翻页获取多少个
2550
+ # @type Limit: Integer
2551
+ # @param Filters: 过滤参数
2552
+ # @type Filters: Array
2553
+
2554
+ attr_accessor :GatewayId, :Offset, :Limit, :Filters
2555
+
2556
+ def initialize(gatewayid=nil, offset=nil, limit=nil, filters=nil)
2557
+ @GatewayId = gatewayid
2558
+ @Offset = offset
2559
+ @Limit = limit
2560
+ @Filters = filters
2561
+ end
2562
+
2563
+ def deserialize(params)
2564
+ @GatewayId = params['GatewayId']
2565
+ @Offset = params['Offset']
2566
+ @Limit = params['Limit']
2567
+ unless params['Filters'].nil?
2568
+ @Filters = []
2569
+ params['Filters'].each do |i|
2570
+ filter_tmp = Filter.new
2571
+ filter_tmp.deserialize(i)
2572
+ @Filters << filter_tmp
2573
+ end
2574
+ end
2575
+ end
2576
+ end
2577
+
2578
+ # DescribeNativeGatewayServerGroups返回参数结构体
2579
+ class DescribeNativeGatewayServerGroupsResponse < TencentCloud::Common::AbstractModel
2580
+ # @param Result: 分组列表信息
2581
+ # @type Result: :class:`Tencentcloud::Tse.v20201207.models.NativeGatewayServerGroups`
2582
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2583
+ # @type RequestId: String
2584
+
2585
+ attr_accessor :Result, :RequestId
2586
+
2587
+ def initialize(result=nil, requestid=nil)
2588
+ @Result = result
2589
+ @RequestId = requestid
2590
+ end
2591
+
2592
+ def deserialize(params)
2593
+ unless params['Result'].nil?
2594
+ @Result = NativeGatewayServerGroups.new
2595
+ @Result.deserialize(params['Result'])
2596
+ end
2597
+ @RequestId = params['RequestId']
2598
+ end
2599
+ end
2600
+
2319
2601
  # DescribeOneCloudNativeAPIGatewayService请求参数结构体
2320
2602
  class DescribeOneCloudNativeAPIGatewayServiceRequest < TencentCloud::Common::AbstractModel
2321
2603
  # @param GatewayId: 网关ID
@@ -3943,6 +4225,106 @@ module TencentCloud
3943
4225
  end
3944
4226
  end
3945
4227
 
4228
+ # 云原生网关分组信息
4229
+ class NativeGatewayServerGroup < TencentCloud::Common::AbstractModel
4230
+ # @param GroupId: 云原生网关分组唯一id
4231
+ # @type GroupId: String
4232
+ # @param Name: 分组名
4233
+ # @type Name: String
4234
+ # @param Description: 描述信息
4235
+ # @type Description: String
4236
+ # @param NodeConfig: 节点规格、节点数信息
4237
+ # @type NodeConfig: :class:`Tencentcloud::Tse.v20201207.models.CloudNativeAPIGatewayNodeConfig`
4238
+ # @param Status: 网关分组状态。
4239
+ # @type Status: String
4240
+ # @param CreateTime: 创建时间
4241
+ # @type CreateTime: String
4242
+ # @param IsFirstGroup: 是否是默认分组。
4243
+ # 0:否。
4244
+ # 1:是。
4245
+ # @type IsFirstGroup: Integer
4246
+ # @param BindingStrategy: 关联策略信息
4247
+ # 注意:此字段可能返回 null,表示取不到有效值。
4248
+ # @type BindingStrategy: :class:`Tencentcloud::Tse.v20201207.models.CloudNativeAPIGatewayStrategy`
4249
+ # @param GatewayId: 网关实例 id
4250
+ # 注意:此字段可能返回 null,表示取不到有效值。
4251
+ # @type GatewayId: String
4252
+ # @param InternetMaxBandwidthOut: 带宽
4253
+ # 注意:此字段可能返回 null,表示取不到有效值。
4254
+ # @type InternetMaxBandwidthOut: Integer
4255
+ # @param ModifyTime: 修改时间
4256
+ # 注意:此字段可能返回 null,表示取不到有效值。
4257
+ # @type ModifyTime: String
4258
+ # @param SubnetIds: 子网id
4259
+ # 注意:此字段可能返回 null,表示取不到有效值。
4260
+ # @type SubnetIds: String
4261
+
4262
+ attr_accessor :GroupId, :Name, :Description, :NodeConfig, :Status, :CreateTime, :IsFirstGroup, :BindingStrategy, :GatewayId, :InternetMaxBandwidthOut, :ModifyTime, :SubnetIds
4263
+
4264
+ def initialize(groupid=nil, name=nil, description=nil, nodeconfig=nil, status=nil, createtime=nil, isfirstgroup=nil, bindingstrategy=nil, gatewayid=nil, internetmaxbandwidthout=nil, modifytime=nil, subnetids=nil)
4265
+ @GroupId = groupid
4266
+ @Name = name
4267
+ @Description = description
4268
+ @NodeConfig = nodeconfig
4269
+ @Status = status
4270
+ @CreateTime = createtime
4271
+ @IsFirstGroup = isfirstgroup
4272
+ @BindingStrategy = bindingstrategy
4273
+ @GatewayId = gatewayid
4274
+ @InternetMaxBandwidthOut = internetmaxbandwidthout
4275
+ @ModifyTime = modifytime
4276
+ @SubnetIds = subnetids
4277
+ end
4278
+
4279
+ def deserialize(params)
4280
+ @GroupId = params['GroupId']
4281
+ @Name = params['Name']
4282
+ @Description = params['Description']
4283
+ unless params['NodeConfig'].nil?
4284
+ @NodeConfig = CloudNativeAPIGatewayNodeConfig.new
4285
+ @NodeConfig.deserialize(params['NodeConfig'])
4286
+ end
4287
+ @Status = params['Status']
4288
+ @CreateTime = params['CreateTime']
4289
+ @IsFirstGroup = params['IsFirstGroup']
4290
+ unless params['BindingStrategy'].nil?
4291
+ @BindingStrategy = CloudNativeAPIGatewayStrategy.new
4292
+ @BindingStrategy.deserialize(params['BindingStrategy'])
4293
+ end
4294
+ @GatewayId = params['GatewayId']
4295
+ @InternetMaxBandwidthOut = params['InternetMaxBandwidthOut']
4296
+ @ModifyTime = params['ModifyTime']
4297
+ @SubnetIds = params['SubnetIds']
4298
+ end
4299
+ end
4300
+
4301
+ # 网关分组列表
4302
+ class NativeGatewayServerGroups < TencentCloud::Common::AbstractModel
4303
+ # @param TotalCount: 总数
4304
+ # @type TotalCount: Integer
4305
+ # @param GatewayGroupList: 分组信息数组。
4306
+ # @type GatewayGroupList: Array
4307
+
4308
+ attr_accessor :TotalCount, :GatewayGroupList
4309
+
4310
+ def initialize(totalcount=nil, gatewaygrouplist=nil)
4311
+ @TotalCount = totalcount
4312
+ @GatewayGroupList = gatewaygrouplist
4313
+ end
4314
+
4315
+ def deserialize(params)
4316
+ @TotalCount = params['TotalCount']
4317
+ unless params['GatewayGroupList'].nil?
4318
+ @GatewayGroupList = []
4319
+ params['GatewayGroupList'].each do |i|
4320
+ nativegatewayservergroup_tmp = NativeGatewayServerGroup.new
4321
+ nativegatewayservergroup_tmp.deserialize(i)
4322
+ @GatewayGroupList << nativegatewayservergroup_tmp
4323
+ end
4324
+ end
4325
+ end
4326
+ end
4327
+
3946
4328
  # 查询Limiter的接入地址
3947
4329
  class PolarisLimiterAddress < TencentCloud::Common::AbstractModel
3948
4330
  # @param IntranetAddress: VPC接入IP列表
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.643
4
+ version: 3.0.644
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-24 00:00:00.000000000 Z
11
+ date: 2023-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common