tencentcloud-sdk-tem 1.0.219 → 1.0.220
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 +24 -0
- data/lib/v20210701/models.rb +44 -0
- 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: 7087716105bffb5c8322d56095d2f0d584c6f3da
|
4
|
+
data.tar.gz: b6053376fd63c4c8c94dd1c25d7dc16df8a149de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4d3299949e1b0b995b0889e6808f40b69c3980d62b06d930a06e6bed84cd14dd86e1e7ce73641543e3d337c0ac3202125141b0ceced5f41113610934d3838f0
|
7
|
+
data.tar.gz: 300bcd26055369066a772403b0105b919ace13698782862d718317cf955256e9416eb0854b5134136e726c3dea37badcf1196cfbcfa9673df0fd62e02aa8b30a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.220
|
data/lib/v20210701/client.rb
CHANGED
@@ -365,6 +365,30 @@ module TencentCloud
|
|
365
365
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
366
|
end
|
367
367
|
|
368
|
+
# 修改应用实例数量
|
369
|
+
|
370
|
+
# @param request: Request instance for ModifyApplicationReplicas.
|
371
|
+
# @type request: :class:`Tencentcloud::tem::V20210701::ModifyApplicationReplicasRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::tem::V20210701::ModifyApplicationReplicasResponse`
|
373
|
+
def ModifyApplicationReplicas(request)
|
374
|
+
body = send_request('ModifyApplicationReplicas', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = ModifyApplicationReplicasResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
368
392
|
# 编辑环境
|
369
393
|
|
370
394
|
# @param request: Request instance for ModifyEnvironment.
|
data/lib/v20210701/models.rb
CHANGED
@@ -1675,6 +1675,50 @@ module TencentCloud
|
|
1675
1675
|
end
|
1676
1676
|
end
|
1677
1677
|
|
1678
|
+
# ModifyApplicationReplicas请求参数结构体
|
1679
|
+
class ModifyApplicationReplicasRequest < TencentCloud::Common::AbstractModel
|
1680
|
+
# @param ApplicationId: 服务id
|
1681
|
+
# @type ApplicationId: String
|
1682
|
+
# @param EnvironmentId: 环境ID
|
1683
|
+
# @type EnvironmentId: String
|
1684
|
+
# @param Replicas: 实例数量
|
1685
|
+
# @type Replicas: Integer
|
1686
|
+
# @param SourceChannel: 来源渠道
|
1687
|
+
# @type SourceChannel: Integer
|
1688
|
+
|
1689
|
+
attr_accessor :ApplicationId, :EnvironmentId, :Replicas, :SourceChannel
|
1690
|
+
|
1691
|
+
def initialize(applicationid=nil, environmentid=nil, replicas=nil, sourcechannel=nil)
|
1692
|
+
@ApplicationId = applicationid
|
1693
|
+
@EnvironmentId = environmentid
|
1694
|
+
@Replicas = replicas
|
1695
|
+
@SourceChannel = sourcechannel
|
1696
|
+
end
|
1697
|
+
|
1698
|
+
def deserialize(params)
|
1699
|
+
@ApplicationId = params['ApplicationId']
|
1700
|
+
@EnvironmentId = params['EnvironmentId']
|
1701
|
+
@Replicas = params['Replicas']
|
1702
|
+
@SourceChannel = params['SourceChannel']
|
1703
|
+
end
|
1704
|
+
end
|
1705
|
+
|
1706
|
+
# ModifyApplicationReplicas返回参数结构体
|
1707
|
+
class ModifyApplicationReplicasResponse < TencentCloud::Common::AbstractModel
|
1708
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1709
|
+
# @type RequestId: String
|
1710
|
+
|
1711
|
+
attr_accessor :RequestId
|
1712
|
+
|
1713
|
+
def initialize(requestid=nil)
|
1714
|
+
@RequestId = requestid
|
1715
|
+
end
|
1716
|
+
|
1717
|
+
def deserialize(params)
|
1718
|
+
@RequestId = params['RequestId']
|
1719
|
+
end
|
1720
|
+
end
|
1721
|
+
|
1678
1722
|
# ModifyEnvironment请求参数结构体
|
1679
1723
|
class ModifyEnvironmentRequest < TencentCloud::Common::AbstractModel
|
1680
1724
|
# @param EnvironmentId: 环境id
|
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: 1.0.
|
4
|
+
version: 1.0.220
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|