tencentcloud-sdk-tem 1.0.226 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 466c554c7429928837b3de3c83a6e456fb160f7b
4
- data.tar.gz: e55717616924097949a70efe5e195251cb2b3a6a
3
+ metadata.gz: 93dd72f4a27f59471c9351e34e0896c7518f5d49
4
+ data.tar.gz: b731f6cd3e9e4c8bfbae09c76f5bc70d8d98a893
5
5
  SHA512:
6
- metadata.gz: 067a6f4073ea4602ad794d8109a0fa918e9299c153c1e9131121e109bd539aa55e9447b7a63186126bf82266f3111513cce139d4d7d0b7315433f6b4d73ccc53
7
- data.tar.gz: d9597ac8b513be61c34fbb2856f946c68b698b22179a97744dac1158df0593e43ed5bbabd8acd816c3796796c541fac62c5383db32f6384c885bab481016937f
6
+ metadata.gz: 67978289b4fd20d78e4b78bcbd2d94fb6be0e2fc514a6078e7f3842e1a15d7329308328ee6f3e3089dd67f7ffaa882f6004d9259220feaae518128b68e60c3f9
7
+ data.tar.gz: f3e7676769f363c4198b19c33e9476b402468bcce61817959362d96c53566a23f9e71168c81db1a624b9aceaf116d895376245cf9d64708e4284b0e8807b0a6f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.226
1
+ 1.0.230
@@ -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.
@@ -509,6 +560,54 @@ module TencentCloud
509
560
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
561
  end
511
562
 
563
+ # 更新应用部署版本
564
+
565
+ # @param request: Request instance for RollingUpdateApplicationByVersion.
566
+ # @type request: :class:`Tencentcloud::tem::V20210701::RollingUpdateApplicationByVersionRequest`
567
+ # @rtype: :class:`Tencentcloud::tem::V20210701::RollingUpdateApplicationByVersionResponse`
568
+ def RollingUpdateApplicationByVersion(request)
569
+ body = send_request('RollingUpdateApplicationByVersion', request.serialize)
570
+ response = JSON.parse(body)
571
+ if response['Response'].key?('Error') == false
572
+ model = RollingUpdateApplicationByVersionResponse.new
573
+ model.deserialize(response['Response'])
574
+ model
575
+ else
576
+ code = response['Response']['Error']['Code']
577
+ message = response['Response']['Error']['Message']
578
+ reqid = response['Response']['RequestId']
579
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
580
+ end
581
+ rescue TencentCloud::Common::TencentCloudSDKException => e
582
+ raise e
583
+ rescue StandardError => e
584
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
585
+ end
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
+
512
611
 
513
612
  end
514
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
@@ -2071,6 +2163,58 @@ module TencentCloud
2071
2163
  end
2072
2164
  end
2073
2165
 
2166
+ # RollingUpdateApplicationByVersion请求参数结构体
2167
+ class RollingUpdateApplicationByVersionRequest < TencentCloud::Common::AbstractModel
2168
+ # @param ApplicationId: 应用ID
2169
+ # @type ApplicationId: String
2170
+ # @param EnvironmentId: 环境ID
2171
+ # @type EnvironmentId: String
2172
+ # @param DeployVersion: 更新版本,IMAGE 部署为 tag 值;JAR/WAR 部署 为 Version
2173
+ # @type DeployVersion: String
2174
+ # @param PackageName: JAR/WAR 包名,仅 JAR/WAR 部署时必填
2175
+ # @type PackageName: String
2176
+ # @param From: 请求来源平台,含 IntelliJ,Coding
2177
+ # @type From: String
2178
+
2179
+ attr_accessor :ApplicationId, :EnvironmentId, :DeployVersion, :PackageName, :From
2180
+
2181
+ def initialize(applicationid=nil, environmentid=nil, deployversion=nil, packagename=nil, from=nil)
2182
+ @ApplicationId = applicationid
2183
+ @EnvironmentId = environmentid
2184
+ @DeployVersion = deployversion
2185
+ @PackageName = packagename
2186
+ @From = from
2187
+ end
2188
+
2189
+ def deserialize(params)
2190
+ @ApplicationId = params['ApplicationId']
2191
+ @EnvironmentId = params['EnvironmentId']
2192
+ @DeployVersion = params['DeployVersion']
2193
+ @PackageName = params['PackageName']
2194
+ @From = params['From']
2195
+ end
2196
+ end
2197
+
2198
+ # RollingUpdateApplicationByVersion返回参数结构体
2199
+ class RollingUpdateApplicationByVersionResponse < TencentCloud::Common::AbstractModel
2200
+ # @param Result: 版本ID
2201
+ # @type Result: String
2202
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2203
+ # @type RequestId: String
2204
+
2205
+ attr_accessor :Result, :RequestId
2206
+
2207
+ def initialize(result=nil, requestid=nil)
2208
+ @Result = result
2209
+ @RequestId = requestid
2210
+ end
2211
+
2212
+ def deserialize(params)
2213
+ @Result = params['Result']
2214
+ @RequestId = params['RequestId']
2215
+ end
2216
+ end
2217
+
2074
2218
  # 应用实例
2075
2219
  class RunVersionPod < TencentCloud::Common::AbstractModel
2076
2220
  # @param Webshell: shell地址
@@ -2128,6 +2272,50 @@ module TencentCloud
2128
2272
  end
2129
2273
  end
2130
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
+
2131
2319
  # 存储卷配置
2132
2320
  class StorageConf < TencentCloud::Common::AbstractModel
2133
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.226
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-17 00:00:00.000000000 Z
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