tencentcloud-sdk-tem 1.0.229 → 1.0.230
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210701/client.rb +48 -0
- data/lib/v20210701/models.rb +88 -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: 93dd72f4a27f59471c9351e34e0896c7518f5d49
|
4
|
+
data.tar.gz: b731f6cd3e9e4c8bfbae09c76f5bc70d8d98a893
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67978289b4fd20d78e4b78bcbd2d94fb6be0e2fc514a6078e7f3842e1a15d7329308328ee6f3e3089dd67f7ffaa882f6004d9259220feaae518128b68e60c3f9
|
7
|
+
data.tar.gz: f3e7676769f363c4198b19c33e9476b402468bcce61817959362d96c53566a23f9e71168c81db1a624b9aceaf116d895376245cf9d64708e4284b0e8807b0a6f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.230
|
data/lib/v20210701/client.rb
CHANGED
@@ -464,6 +464,30 @@ module TencentCloud
|
|
464
464
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
465
465
|
end
|
466
466
|
|
467
|
+
# 服务重启
|
468
|
+
|
469
|
+
# @param request: Request instance for RestartApplication.
|
470
|
+
# @type request: :class:`Tencentcloud::tem::V20210701::RestartApplicationRequest`
|
471
|
+
# @rtype: :class:`Tencentcloud::tem::V20210701::RestartApplicationResponse`
|
472
|
+
def RestartApplication(request)
|
473
|
+
body = send_request('RestartApplication', request.serialize)
|
474
|
+
response = JSON.parse(body)
|
475
|
+
if response['Response'].key?('Error') == false
|
476
|
+
model = RestartApplicationResponse.new
|
477
|
+
model.deserialize(response['Response'])
|
478
|
+
model
|
479
|
+
else
|
480
|
+
code = response['Response']['Error']['Code']
|
481
|
+
message = response['Response']['Error']['Message']
|
482
|
+
reqid = response['Response']['RequestId']
|
483
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
484
|
+
end
|
485
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
486
|
+
raise e
|
487
|
+
rescue StandardError => e
|
488
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
489
|
+
end
|
490
|
+
|
467
491
|
# 重启应用实例
|
468
492
|
|
469
493
|
# @param request: Request instance for RestartApplicationPod.
|
@@ -560,6 +584,30 @@ module TencentCloud
|
|
560
584
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
561
585
|
end
|
562
586
|
|
587
|
+
# 服务停止
|
588
|
+
|
589
|
+
# @param request: Request instance for StopApplication.
|
590
|
+
# @type request: :class:`Tencentcloud::tem::V20210701::StopApplicationRequest`
|
591
|
+
# @rtype: :class:`Tencentcloud::tem::V20210701::StopApplicationResponse`
|
592
|
+
def StopApplication(request)
|
593
|
+
body = send_request('StopApplication', request.serialize)
|
594
|
+
response = JSON.parse(body)
|
595
|
+
if response['Response'].key?('Error') == false
|
596
|
+
model = StopApplicationResponse.new
|
597
|
+
model.deserialize(response['Response'])
|
598
|
+
model
|
599
|
+
else
|
600
|
+
code = response['Response']['Error']['Code']
|
601
|
+
message = response['Response']['Error']['Message']
|
602
|
+
reqid = response['Response']['RequestId']
|
603
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
604
|
+
end
|
605
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
606
|
+
raise e
|
607
|
+
rescue StandardError => e
|
608
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
609
|
+
end
|
610
|
+
|
563
611
|
|
564
612
|
end
|
565
613
|
end
|
data/lib/v20210701/models.rb
CHANGED
@@ -2039,6 +2039,50 @@ module TencentCloud
|
|
2039
2039
|
end
|
2040
2040
|
end
|
2041
2041
|
|
2042
|
+
# RestartApplication请求参数结构体
|
2043
|
+
class RestartApplicationRequest < TencentCloud::Common::AbstractModel
|
2044
|
+
# @param ApplicationId: 服务id
|
2045
|
+
# @type ApplicationId: String
|
2046
|
+
# @param SourceChannel: 来源渠道
|
2047
|
+
# @type SourceChannel: Integer
|
2048
|
+
# @param EnvironmentId: 环境ID
|
2049
|
+
# @type EnvironmentId: String
|
2050
|
+
|
2051
|
+
attr_accessor :ApplicationId, :SourceChannel, :EnvironmentId
|
2052
|
+
|
2053
|
+
def initialize(applicationid=nil, sourcechannel=nil, environmentid=nil)
|
2054
|
+
@ApplicationId = applicationid
|
2055
|
+
@SourceChannel = sourcechannel
|
2056
|
+
@EnvironmentId = environmentid
|
2057
|
+
end
|
2058
|
+
|
2059
|
+
def deserialize(params)
|
2060
|
+
@ApplicationId = params['ApplicationId']
|
2061
|
+
@SourceChannel = params['SourceChannel']
|
2062
|
+
@EnvironmentId = params['EnvironmentId']
|
2063
|
+
end
|
2064
|
+
end
|
2065
|
+
|
2066
|
+
# RestartApplication返回参数结构体
|
2067
|
+
class RestartApplicationResponse < TencentCloud::Common::AbstractModel
|
2068
|
+
# @param Result: 返回结果
|
2069
|
+
# @type Result: Boolean
|
2070
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2071
|
+
# @type RequestId: String
|
2072
|
+
|
2073
|
+
attr_accessor :Result, :RequestId
|
2074
|
+
|
2075
|
+
def initialize(result=nil, requestid=nil)
|
2076
|
+
@Result = result
|
2077
|
+
@RequestId = requestid
|
2078
|
+
end
|
2079
|
+
|
2080
|
+
def deserialize(params)
|
2081
|
+
@Result = params['Result']
|
2082
|
+
@RequestId = params['RequestId']
|
2083
|
+
end
|
2084
|
+
end
|
2085
|
+
|
2042
2086
|
# ResumeDeployApplication请求参数结构体
|
2043
2087
|
class ResumeDeployApplicationRequest < TencentCloud::Common::AbstractModel
|
2044
2088
|
# @param ApplicationId: 需要开始下一批次的服务id
|
@@ -2228,6 +2272,50 @@ module TencentCloud
|
|
2228
2272
|
end
|
2229
2273
|
end
|
2230
2274
|
|
2275
|
+
# StopApplication请求参数结构体
|
2276
|
+
class StopApplicationRequest < TencentCloud::Common::AbstractModel
|
2277
|
+
# @param ApplicationId: 服务id
|
2278
|
+
# @type ApplicationId: String
|
2279
|
+
# @param SourceChannel: 来源渠道
|
2280
|
+
# @type SourceChannel: Integer
|
2281
|
+
# @param EnvironmentId: 环境ID
|
2282
|
+
# @type EnvironmentId: String
|
2283
|
+
|
2284
|
+
attr_accessor :ApplicationId, :SourceChannel, :EnvironmentId
|
2285
|
+
|
2286
|
+
def initialize(applicationid=nil, sourcechannel=nil, environmentid=nil)
|
2287
|
+
@ApplicationId = applicationid
|
2288
|
+
@SourceChannel = sourcechannel
|
2289
|
+
@EnvironmentId = environmentid
|
2290
|
+
end
|
2291
|
+
|
2292
|
+
def deserialize(params)
|
2293
|
+
@ApplicationId = params['ApplicationId']
|
2294
|
+
@SourceChannel = params['SourceChannel']
|
2295
|
+
@EnvironmentId = params['EnvironmentId']
|
2296
|
+
end
|
2297
|
+
end
|
2298
|
+
|
2299
|
+
# StopApplication返回参数结构体
|
2300
|
+
class StopApplicationResponse < TencentCloud::Common::AbstractModel
|
2301
|
+
# @param Result: 返回结果
|
2302
|
+
# @type Result: Boolean
|
2303
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2304
|
+
# @type RequestId: String
|
2305
|
+
|
2306
|
+
attr_accessor :Result, :RequestId
|
2307
|
+
|
2308
|
+
def initialize(result=nil, requestid=nil)
|
2309
|
+
@Result = result
|
2310
|
+
@RequestId = requestid
|
2311
|
+
end
|
2312
|
+
|
2313
|
+
def deserialize(params)
|
2314
|
+
@Result = params['Result']
|
2315
|
+
@RequestId = params['RequestId']
|
2316
|
+
end
|
2317
|
+
end
|
2318
|
+
|
2231
2319
|
# 存储卷配置
|
2232
2320
|
class StorageConf < TencentCloud::Common::AbstractModel
|
2233
2321
|
# @param StorageVolName: 存储卷名称
|
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.230
|
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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|