tencentcloud-sdk-tem 1.0.228 → 1.0.232

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5864fb866a1a8b747240011880cb57afc564632d
4
- data.tar.gz: a3f4d0c378d82d83acf034e9c51f232ff06ddcf2
3
+ metadata.gz: 15501ac826d4a3aabec162997c5711ce7b2bc11d
4
+ data.tar.gz: 99cf5d20ba1b8ddc0b89276394be42a493a1e533
5
5
  SHA512:
6
- metadata.gz: 0fa06b09a78feda8ac0ce48db2ad23bb82af4ed152640bd57a03955c47e8d7df2036f627e8f263e07c67ac6af5772c457ac40ef5770311ff76292ef27219ccf6
7
- data.tar.gz: 73202cc721a6308127baa564e4e9fd6f9a51c2ea03d155df0370264f51cf13d84050a00743d9a0fdd1609595810f60a89c3f05a1507974b6b5a00a0f82ca592a
6
+ metadata.gz: 0e060091022e15d013483a971981a2dc2cf3b61480f8d49015758932e5abd2e2f3c63ce15bfa0bc8d6b88fb05d8ee8798ce677b5ef360c7d1d447cbca3401125
7
+ data.tar.gz: c884ff3be91976d44e2d48d04bdd19655dc67ab459a02f54a754b9618f92c82535df035fff017cb6f0d8c6697c30fda7f49b83501911dcb25e976b7f14ec97f0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.228
1
+ 1.0.232
@@ -125,6 +125,33 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # 服务删除
129
+ # - 停止当前运行服务
130
+ # - 删除服务相关资源
131
+ # - 删除服务
132
+
133
+ # @param request: Request instance for DeleteApplication.
134
+ # @type request: :class:`Tencentcloud::tem::V20210701::DeleteApplicationRequest`
135
+ # @rtype: :class:`Tencentcloud::tem::V20210701::DeleteApplicationResponse`
136
+ def DeleteApplication(request)
137
+ body = send_request('DeleteApplication', request.serialize)
138
+ response = JSON.parse(body)
139
+ if response['Response'].key?('Error') == false
140
+ model = DeleteApplicationResponse.new
141
+ model.deserialize(response['Response'])
142
+ model
143
+ else
144
+ code = response['Response']['Error']['Code']
145
+ message = response['Response']['Error']['Message']
146
+ reqid = response['Response']['RequestId']
147
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
148
+ end
149
+ rescue TencentCloud::Common::TencentCloudSDKException => e
150
+ raise e
151
+ rescue StandardError => e
152
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
153
+ end
154
+
128
155
  # 删除 Ingress 规则
129
156
 
130
157
  # @param request: Request instance for DeleteIngress.
@@ -437,6 +464,30 @@ module TencentCloud
437
464
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
465
  end
439
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
+
440
491
  # 重启应用实例
441
492
 
442
493
  # @param request: Request instance for RestartApplicationPod.
@@ -533,6 +584,30 @@ module TencentCloud
533
584
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
585
  end
535
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
+
536
611
 
537
612
  end
538
613
  end
@@ -383,6 +383,54 @@ module TencentCloud
383
383
  end
384
384
  end
385
385
 
386
+ # DeleteApplication请求参数结构体
387
+ class DeleteApplicationRequest < TencentCloud::Common::AbstractModel
388
+ # @param ApplicationId: 服务Id
389
+ # @type ApplicationId: String
390
+ # @param EnvironmentId: 环境ID
391
+ # @type EnvironmentId: String
392
+ # @param SourceChannel: 来源渠道
393
+ # @type SourceChannel: Integer
394
+ # @param DeleteApplicationIfNoRunningVersion: 当服务没有任何运行版本时,是否删除此服务
395
+ # @type DeleteApplicationIfNoRunningVersion: Boolean
396
+
397
+ attr_accessor :ApplicationId, :EnvironmentId, :SourceChannel, :DeleteApplicationIfNoRunningVersion
398
+
399
+ def initialize(applicationid=nil, environmentid=nil, sourcechannel=nil, deleteapplicationifnorunningversion=nil)
400
+ @ApplicationId = applicationid
401
+ @EnvironmentId = environmentid
402
+ @SourceChannel = sourcechannel
403
+ @DeleteApplicationIfNoRunningVersion = deleteapplicationifnorunningversion
404
+ end
405
+
406
+ def deserialize(params)
407
+ @ApplicationId = params['ApplicationId']
408
+ @EnvironmentId = params['EnvironmentId']
409
+ @SourceChannel = params['SourceChannel']
410
+ @DeleteApplicationIfNoRunningVersion = params['DeleteApplicationIfNoRunningVersion']
411
+ end
412
+ end
413
+
414
+ # DeleteApplication返回参数结构体
415
+ class DeleteApplicationResponse < TencentCloud::Common::AbstractModel
416
+ # @param Result: 返回结果
417
+ # @type Result: Boolean
418
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
419
+ # @type RequestId: String
420
+
421
+ attr_accessor :Result, :RequestId
422
+
423
+ def initialize(result=nil, requestid=nil)
424
+ @Result = result
425
+ @RequestId = requestid
426
+ end
427
+
428
+ def deserialize(params)
429
+ @Result = params['Result']
430
+ @RequestId = params['RequestId']
431
+ end
432
+ end
433
+
386
434
  # DeleteIngress请求参数结构体
387
435
  class DeleteIngressRequest < TencentCloud::Common::AbstractModel
388
436
  # @param EnvironmentId: 环境ID
@@ -1991,6 +2039,50 @@ module TencentCloud
1991
2039
  end
1992
2040
  end
1993
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
+
1994
2086
  # ResumeDeployApplication请求参数结构体
1995
2087
  class ResumeDeployApplicationRequest < TencentCloud::Common::AbstractModel
1996
2088
  # @param ApplicationId: 需要开始下一批次的服务id
@@ -2180,6 +2272,50 @@ module TencentCloud
2180
2272
  end
2181
2273
  end
2182
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
+
2183
2319
  # 存储卷配置
2184
2320
  class StorageConf < TencentCloud::Common::AbstractModel
2185
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.228
4
+ version: 1.0.232
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-21 00:00:00.000000000 Z
11
+ date: 2021-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common