tencentcloud-sdk-tem 3.0.385 → 3.0.386
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210701/client.rb +48 -0
- data/lib/v20210701/models.rb +107 -4
- 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: ea03f0e58cc1c68191969f3502f08ac663bcdada
|
4
|
+
data.tar.gz: b3ff09de3e6a005e59b04ea07620f0466f542013
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 680f313be3804d9e11cefaaf8b0352ebab29a0dca69b01a4130c4f191b3d310c6bf2af6bc99f51deece8384d5a02d9dbafc5346bd76059b884a09fe285d332ca
|
7
|
+
data.tar.gz: 0846968d639e6a28ef252e4d2ba583fbd84b9b09e46b92e2e94c6212cb43c8394a478890d10a1beaeaad53771e45f050ae17e0cf8147d698759f790a1395ebae
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.386
|
data/lib/v20210701/client.rb
CHANGED
@@ -752,6 +752,54 @@ module TencentCloud
|
|
752
752
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
753
753
|
end
|
754
754
|
|
755
|
+
# 关闭应用弹性策略组合
|
756
|
+
|
757
|
+
# @param request: Request instance for DisableApplicationAutoscaler.
|
758
|
+
# @type request: :class:`Tencentcloud::tem::V20210701::DisableApplicationAutoscalerRequest`
|
759
|
+
# @rtype: :class:`Tencentcloud::tem::V20210701::DisableApplicationAutoscalerResponse`
|
760
|
+
def DisableApplicationAutoscaler(request)
|
761
|
+
body = send_request('DisableApplicationAutoscaler', request.serialize)
|
762
|
+
response = JSON.parse(body)
|
763
|
+
if response['Response'].key?('Error') == false
|
764
|
+
model = DisableApplicationAutoscalerResponse.new
|
765
|
+
model.deserialize(response['Response'])
|
766
|
+
model
|
767
|
+
else
|
768
|
+
code = response['Response']['Error']['Code']
|
769
|
+
message = response['Response']['Error']['Message']
|
770
|
+
reqid = response['Response']['RequestId']
|
771
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
772
|
+
end
|
773
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
774
|
+
raise e
|
775
|
+
rescue StandardError => e
|
776
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
777
|
+
end
|
778
|
+
|
779
|
+
# 启用应用弹性策略组合
|
780
|
+
|
781
|
+
# @param request: Request instance for EnableApplicationAutoscaler.
|
782
|
+
# @type request: :class:`Tencentcloud::tem::V20210701::EnableApplicationAutoscalerRequest`
|
783
|
+
# @rtype: :class:`Tencentcloud::tem::V20210701::EnableApplicationAutoscalerResponse`
|
784
|
+
def EnableApplicationAutoscaler(request)
|
785
|
+
body = send_request('EnableApplicationAutoscaler', request.serialize)
|
786
|
+
response = JSON.parse(body)
|
787
|
+
if response['Response'].key?('Error') == false
|
788
|
+
model = EnableApplicationAutoscalerResponse.new
|
789
|
+
model.deserialize(response['Response'])
|
790
|
+
model
|
791
|
+
else
|
792
|
+
code = response['Response']['Error']['Code']
|
793
|
+
message = response['Response']['Error']['Message']
|
794
|
+
reqid = response['Response']['RequestId']
|
795
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
796
|
+
end
|
797
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
798
|
+
raise e
|
799
|
+
rescue StandardError => e
|
800
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
801
|
+
end
|
802
|
+
|
755
803
|
# 生成应用程序包预签名下载链接
|
756
804
|
|
757
805
|
# @param request: Request instance for GenerateApplicationPackageDownloadUrl.
|
data/lib/v20210701/models.rb
CHANGED
@@ -937,15 +937,18 @@ module TencentCloud
|
|
937
937
|
# - ALPINE
|
938
938
|
# - TENCENTOS
|
939
939
|
# @type OsFlavour: String
|
940
|
-
# @param EnablePrometheusConf:
|
940
|
+
# @param EnablePrometheusConf: metrics业务指标监控配置
|
941
941
|
# @type EnablePrometheusConf: :class:`Tencentcloud::Tem.v20210701.models.EnablePrometheusConf`
|
942
|
-
# @param EnableTracing: 1
|
942
|
+
# @param EnableTracing: 1:开始自动apm采集(skywalking);
|
943
943
|
# 0:关闭apm采集;
|
944
944
|
# @type EnableTracing: Integer
|
945
|
+
# @param EnableMetrics: 1:开始自动metrics采集(open-telemetry);
|
946
|
+
# 0:关闭metrics采集;
|
947
|
+
# @type EnableMetrics: Integer
|
945
948
|
|
946
|
-
attr_accessor :ApplicationId, :InitPodNum, :CpuSpec, :MemorySpec, :EnvironmentId, :ImgRepo, :VersionDesc, :JvmOpts, :EsInfo, :EnvConf, :LogConfs, :StorageConfs, :StorageMountConfs, :DeployMode, :DeployVersion, :PkgName, :JdkVersion, :SecurityGroupIds, :LogOutputConf, :SourceChannel, :Description, :ImageCommand, :ImageArgs, :UseRegistryDefaultConfig, :SettingConfs, :Service, :VersionId, :PostStart, :PreStop, :Liveness, :Readiness, :DeployStrategyConf, :HorizontalAutoscaler, :CronHorizontalAutoscaler, :LogEnable, :ConfEdited, :SpeedUp, :StartupProbe, :OsFlavour, :EnablePrometheusConf, :EnableTracing
|
949
|
+
attr_accessor :ApplicationId, :InitPodNum, :CpuSpec, :MemorySpec, :EnvironmentId, :ImgRepo, :VersionDesc, :JvmOpts, :EsInfo, :EnvConf, :LogConfs, :StorageConfs, :StorageMountConfs, :DeployMode, :DeployVersion, :PkgName, :JdkVersion, :SecurityGroupIds, :LogOutputConf, :SourceChannel, :Description, :ImageCommand, :ImageArgs, :UseRegistryDefaultConfig, :SettingConfs, :Service, :VersionId, :PostStart, :PreStop, :Liveness, :Readiness, :DeployStrategyConf, :HorizontalAutoscaler, :CronHorizontalAutoscaler, :LogEnable, :ConfEdited, :SpeedUp, :StartupProbe, :OsFlavour, :EnablePrometheusConf, :EnableTracing, :EnableMetrics
|
947
950
|
|
948
|
-
def initialize(applicationid=nil, initpodnum=nil, cpuspec=nil, memoryspec=nil, environmentid=nil, imgrepo=nil, versiondesc=nil, jvmopts=nil, esinfo=nil, envconf=nil, logconfs=nil, storageconfs=nil, storagemountconfs=nil, deploymode=nil, deployversion=nil, pkgname=nil, jdkversion=nil, securitygroupids=nil, logoutputconf=nil, sourcechannel=nil, description=nil, imagecommand=nil, imageargs=nil, useregistrydefaultconfig=nil, settingconfs=nil, service=nil, versionid=nil, poststart=nil, prestop=nil, liveness=nil, readiness=nil, deploystrategyconf=nil, horizontalautoscaler=nil, cronhorizontalautoscaler=nil, logenable=nil, confedited=nil, speedup=nil, startupprobe=nil, osflavour=nil, enableprometheusconf=nil, enabletracing=nil)
|
951
|
+
def initialize(applicationid=nil, initpodnum=nil, cpuspec=nil, memoryspec=nil, environmentid=nil, imgrepo=nil, versiondesc=nil, jvmopts=nil, esinfo=nil, envconf=nil, logconfs=nil, storageconfs=nil, storagemountconfs=nil, deploymode=nil, deployversion=nil, pkgname=nil, jdkversion=nil, securitygroupids=nil, logoutputconf=nil, sourcechannel=nil, description=nil, imagecommand=nil, imageargs=nil, useregistrydefaultconfig=nil, settingconfs=nil, service=nil, versionid=nil, poststart=nil, prestop=nil, liveness=nil, readiness=nil, deploystrategyconf=nil, horizontalautoscaler=nil, cronhorizontalautoscaler=nil, logenable=nil, confedited=nil, speedup=nil, startupprobe=nil, osflavour=nil, enableprometheusconf=nil, enabletracing=nil, enablemetrics=nil)
|
949
952
|
@ApplicationId = applicationid
|
950
953
|
@InitPodNum = initpodnum
|
951
954
|
@CpuSpec = cpuspec
|
@@ -987,6 +990,7 @@ module TencentCloud
|
|
987
990
|
@OsFlavour = osflavour
|
988
991
|
@EnablePrometheusConf = enableprometheusconf
|
989
992
|
@EnableTracing = enabletracing
|
993
|
+
@EnableMetrics = enablemetrics
|
990
994
|
end
|
991
995
|
|
992
996
|
def deserialize(params)
|
@@ -1097,6 +1101,7 @@ module TencentCloud
|
|
1097
1101
|
@EnablePrometheusConf.deserialize(params['EnablePrometheusConf'])
|
1098
1102
|
end
|
1099
1103
|
@EnableTracing = params['EnableTracing']
|
1104
|
+
@EnableMetrics = params['EnableMetrics']
|
1100
1105
|
end
|
1101
1106
|
end
|
1102
1107
|
|
@@ -2292,6 +2297,55 @@ module TencentCloud
|
|
2292
2297
|
end
|
2293
2298
|
end
|
2294
2299
|
|
2300
|
+
# DisableApplicationAutoscaler请求参数结构体
|
2301
|
+
class DisableApplicationAutoscalerRequest < TencentCloud::Common::AbstractModel
|
2302
|
+
# @param ApplicationId: 服务id
|
2303
|
+
# @type ApplicationId: String
|
2304
|
+
# @param EnvironmentId: 环境ID
|
2305
|
+
# @type EnvironmentId: String
|
2306
|
+
# @param SourceChannel: 来源渠道
|
2307
|
+
# @type SourceChannel: Integer
|
2308
|
+
# @param AutoscalerId: 弹性伸缩策略ID
|
2309
|
+
# @type AutoscalerId: String
|
2310
|
+
|
2311
|
+
attr_accessor :ApplicationId, :EnvironmentId, :SourceChannel, :AutoscalerId
|
2312
|
+
|
2313
|
+
def initialize(applicationid=nil, environmentid=nil, sourcechannel=nil, autoscalerid=nil)
|
2314
|
+
@ApplicationId = applicationid
|
2315
|
+
@EnvironmentId = environmentid
|
2316
|
+
@SourceChannel = sourcechannel
|
2317
|
+
@AutoscalerId = autoscalerid
|
2318
|
+
end
|
2319
|
+
|
2320
|
+
def deserialize(params)
|
2321
|
+
@ApplicationId = params['ApplicationId']
|
2322
|
+
@EnvironmentId = params['EnvironmentId']
|
2323
|
+
@SourceChannel = params['SourceChannel']
|
2324
|
+
@AutoscalerId = params['AutoscalerId']
|
2325
|
+
end
|
2326
|
+
end
|
2327
|
+
|
2328
|
+
# DisableApplicationAutoscaler返回参数结构体
|
2329
|
+
class DisableApplicationAutoscalerResponse < TencentCloud::Common::AbstractModel
|
2330
|
+
# @param Result: 是否成功
|
2331
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2332
|
+
# @type Result: Boolean
|
2333
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2334
|
+
# @type RequestId: String
|
2335
|
+
|
2336
|
+
attr_accessor :Result, :RequestId
|
2337
|
+
|
2338
|
+
def initialize(result=nil, requestid=nil)
|
2339
|
+
@Result = result
|
2340
|
+
@RequestId = requestid
|
2341
|
+
end
|
2342
|
+
|
2343
|
+
def deserialize(params)
|
2344
|
+
@Result = params['Result']
|
2345
|
+
@RequestId = params['RequestId']
|
2346
|
+
end
|
2347
|
+
end
|
2348
|
+
|
2295
2349
|
# eks service info
|
2296
2350
|
class EksService < TencentCloud::Common::AbstractModel
|
2297
2351
|
# @param Name: service name
|
@@ -2398,6 +2452,55 @@ module TencentCloud
|
|
2398
2452
|
end
|
2399
2453
|
end
|
2400
2454
|
|
2455
|
+
# EnableApplicationAutoscaler请求参数结构体
|
2456
|
+
class EnableApplicationAutoscalerRequest < TencentCloud::Common::AbstractModel
|
2457
|
+
# @param ApplicationId: 服务id
|
2458
|
+
# @type ApplicationId: String
|
2459
|
+
# @param EnvironmentId: 环境ID
|
2460
|
+
# @type EnvironmentId: String
|
2461
|
+
# @param SourceChannel: 来源渠道
|
2462
|
+
# @type SourceChannel: Integer
|
2463
|
+
# @param AutoscalerId: 弹性伸缩策略ID
|
2464
|
+
# @type AutoscalerId: String
|
2465
|
+
|
2466
|
+
attr_accessor :ApplicationId, :EnvironmentId, :SourceChannel, :AutoscalerId
|
2467
|
+
|
2468
|
+
def initialize(applicationid=nil, environmentid=nil, sourcechannel=nil, autoscalerid=nil)
|
2469
|
+
@ApplicationId = applicationid
|
2470
|
+
@EnvironmentId = environmentid
|
2471
|
+
@SourceChannel = sourcechannel
|
2472
|
+
@AutoscalerId = autoscalerid
|
2473
|
+
end
|
2474
|
+
|
2475
|
+
def deserialize(params)
|
2476
|
+
@ApplicationId = params['ApplicationId']
|
2477
|
+
@EnvironmentId = params['EnvironmentId']
|
2478
|
+
@SourceChannel = params['SourceChannel']
|
2479
|
+
@AutoscalerId = params['AutoscalerId']
|
2480
|
+
end
|
2481
|
+
end
|
2482
|
+
|
2483
|
+
# EnableApplicationAutoscaler返回参数结构体
|
2484
|
+
class EnableApplicationAutoscalerResponse < TencentCloud::Common::AbstractModel
|
2485
|
+
# @param Result: 是否成功
|
2486
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2487
|
+
# @type Result: Boolean
|
2488
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2489
|
+
# @type RequestId: String
|
2490
|
+
|
2491
|
+
attr_accessor :Result, :RequestId
|
2492
|
+
|
2493
|
+
def initialize(result=nil, requestid=nil)
|
2494
|
+
@Result = result
|
2495
|
+
@RequestId = requestid
|
2496
|
+
end
|
2497
|
+
|
2498
|
+
def deserialize(params)
|
2499
|
+
@Result = params['Result']
|
2500
|
+
@RequestId = params['RequestId']
|
2501
|
+
end
|
2502
|
+
end
|
2503
|
+
|
2401
2504
|
# 开启prometheus监控配置
|
2402
2505
|
class EnablePrometheusConf < TencentCloud::Common::AbstractModel
|
2403
2506
|
# @param Port: 应用开放的监听端口
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.386
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|