tencentcloud-sdk-tem 1.0.362 → 3.0.371

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: 199f8434276d71a68340d519cc4ff64f116593f8
4
- data.tar.gz: 48217b715e203e859462095a3a28486be94bf206
3
+ metadata.gz: 713ea27aebdd79298ac3cfebc572f9933c31f407
4
+ data.tar.gz: 5180c870201222b3aba2fa4b2c6e1f0ba9aedadb
5
5
  SHA512:
6
- metadata.gz: e3404d14368f6b085c5a7edd46be279995a987ff6f7832ff0bb301b2350958a4fab48fd96dd0c3157b285706b26f929483f96c02861a192671d8d554d206e6c1
7
- data.tar.gz: 0d155be5a96981d51f90bb26cb3f2f4217408342c0bac1e550883a15c121824ad239ff04c0d9e1fdf76d3ab45b1b15d33e0f72be418e34170c539ada36903ce3
6
+ metadata.gz: 9f77eb61fa48e3fa90bd6ed4975f38546f460b3372b2eaf10081e3788d9142e6493f17e468216219ce50970ce896edd478b7c846ecc246e48153254107eb9344
7
+ data.tar.gz: 8ca584ca443c24bfba3068f1d07ff19a52ca278d0af815af5a0320944bdfbb3b9622bac37e52b25c3988295ef8d0c836a55b23af8a1213214e0d01df871bfe4b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.362
1
+ 3.0.371
@@ -224,6 +224,30 @@ module TencentCloud
224
224
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
225
225
  end
226
226
 
227
+ # 获取运行服务列表
228
+
229
+ # @param request: Request instance for DescribeApplications.
230
+ # @type request: :class:`Tencentcloud::tem::V20210701::DescribeApplicationsRequest`
231
+ # @rtype: :class:`Tencentcloud::tem::V20210701::DescribeApplicationsResponse`
232
+ def DescribeApplications(request)
233
+ body = send_request('DescribeApplications', request.serialize)
234
+ response = JSON.parse(body)
235
+ if response['Response'].key?('Error') == false
236
+ model = DescribeApplicationsResponse.new
237
+ model.deserialize(response['Response'])
238
+ model
239
+ else
240
+ code = response['Response']['Error']['Code']
241
+ message = response['Response']['Error']['Message']
242
+ reqid = response['Response']['RequestId']
243
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
244
+ end
245
+ rescue TencentCloud::Common::TencentCloudSDKException => e
246
+ raise e
247
+ rescue StandardError => e
248
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
249
+ end
250
+
227
251
  # 单环境下所有应用状态查看
228
252
 
229
253
  # @param request: Request instance for DescribeApplicationsStatus.
@@ -272,6 +296,30 @@ module TencentCloud
272
296
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
273
297
  end
274
298
 
299
+ # 获取环境状态
300
+
301
+ # @param request: Request instance for DescribeEnvironmentStatus.
302
+ # @type request: :class:`Tencentcloud::tem::V20210701::DescribeEnvironmentStatusRequest`
303
+ # @rtype: :class:`Tencentcloud::tem::V20210701::DescribeEnvironmentStatusResponse`
304
+ def DescribeEnvironmentStatus(request)
305
+ body = send_request('DescribeEnvironmentStatus', request.serialize)
306
+ response = JSON.parse(body)
307
+ if response['Response'].key?('Error') == false
308
+ model = DescribeEnvironmentStatusResponse.new
309
+ model.deserialize(response['Response'])
310
+ model
311
+ else
312
+ code = response['Response']['Error']['Code']
313
+ message = response['Response']['Error']['Message']
314
+ reqid = response['Response']['RequestId']
315
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
316
+ end
317
+ rescue TencentCloud::Common::TencentCloudSDKException => e
318
+ raise e
319
+ rescue StandardError => e
320
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
321
+ end
322
+
275
323
  # 获取租户环境列表
276
324
 
277
325
  # @param request: Request instance for DescribeEnvironments.
@@ -987,6 +987,65 @@ module TencentCloud
987
987
  end
988
988
  end
989
989
 
990
+ # DescribeApplications请求参数结构体
991
+ class DescribeApplicationsRequest < TencentCloud::Common::AbstractModel
992
+ # @param EnvironmentId: 命名空间ID
993
+ # @type EnvironmentId: String
994
+ # @param Limit: 分页Limit
995
+ # @type Limit: Integer
996
+ # @param Offset: 分页offset
997
+ # @type Offset: Integer
998
+ # @param SourceChannel: 来源渠道
999
+ # @type SourceChannel: Integer
1000
+ # @param ApplicationId: 服务id
1001
+ # @type ApplicationId: String
1002
+ # @param Keyword: 搜索关键字
1003
+ # @type Keyword: String
1004
+
1005
+ attr_accessor :EnvironmentId, :Limit, :Offset, :SourceChannel, :ApplicationId, :Keyword
1006
+
1007
+ def initialize(environmentid=nil, limit=nil, offset=nil, sourcechannel=nil, applicationid=nil, keyword=nil)
1008
+ @EnvironmentId = environmentid
1009
+ @Limit = limit
1010
+ @Offset = offset
1011
+ @SourceChannel = sourcechannel
1012
+ @ApplicationId = applicationid
1013
+ @Keyword = keyword
1014
+ end
1015
+
1016
+ def deserialize(params)
1017
+ @EnvironmentId = params['EnvironmentId']
1018
+ @Limit = params['Limit']
1019
+ @Offset = params['Offset']
1020
+ @SourceChannel = params['SourceChannel']
1021
+ @ApplicationId = params['ApplicationId']
1022
+ @Keyword = params['Keyword']
1023
+ end
1024
+ end
1025
+
1026
+ # DescribeApplications返回参数结构体
1027
+ class DescribeApplicationsResponse < TencentCloud::Common::AbstractModel
1028
+ # @param Result: 返回结果
1029
+ # @type Result: :class:`Tencentcloud::Tem.v20210701.models.ServicePage`
1030
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1031
+ # @type RequestId: String
1032
+
1033
+ attr_accessor :Result, :RequestId
1034
+
1035
+ def initialize(result=nil, requestid=nil)
1036
+ @Result = result
1037
+ @RequestId = requestid
1038
+ end
1039
+
1040
+ def deserialize(params)
1041
+ unless params['Result'].nil?
1042
+ @Result = ServicePage.new
1043
+ @Result.deserialize(params['Result'])
1044
+ end
1045
+ @RequestId = params['RequestId']
1046
+ end
1047
+ end
1048
+
990
1049
  # DescribeApplicationsStatus请求参数结构体
991
1050
  class DescribeApplicationsStatusRequest < TencentCloud::Common::AbstractModel
992
1051
  # @param SourceChannel: 来源渠道
@@ -1081,6 +1140,53 @@ module TencentCloud
1081
1140
  end
1082
1141
  end
1083
1142
 
1143
+ # DescribeEnvironmentStatus请求参数结构体
1144
+ class DescribeEnvironmentStatusRequest < TencentCloud::Common::AbstractModel
1145
+ # @param EnvironmentIds: 命名空间id
1146
+ # @type EnvironmentIds: Array
1147
+ # @param SourceChannel: 来源Channel
1148
+ # @type SourceChannel: Integer
1149
+
1150
+ attr_accessor :EnvironmentIds, :SourceChannel
1151
+
1152
+ def initialize(environmentids=nil, sourcechannel=nil)
1153
+ @EnvironmentIds = environmentids
1154
+ @SourceChannel = sourcechannel
1155
+ end
1156
+
1157
+ def deserialize(params)
1158
+ @EnvironmentIds = params['EnvironmentIds']
1159
+ @SourceChannel = params['SourceChannel']
1160
+ end
1161
+ end
1162
+
1163
+ # DescribeEnvironmentStatus返回参数结构体
1164
+ class DescribeEnvironmentStatusResponse < TencentCloud::Common::AbstractModel
1165
+ # @param Result: 返回状态列表
1166
+ # @type Result: Array
1167
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1168
+ # @type RequestId: String
1169
+
1170
+ attr_accessor :Result, :RequestId
1171
+
1172
+ def initialize(result=nil, requestid=nil)
1173
+ @Result = result
1174
+ @RequestId = requestid
1175
+ end
1176
+
1177
+ def deserialize(params)
1178
+ unless params['Result'].nil?
1179
+ @Result = []
1180
+ params['Result'].each do |i|
1181
+ namespacestatusinfo_tmp = NamespaceStatusInfo.new
1182
+ namespacestatusinfo_tmp.deserialize(i)
1183
+ @Result << namespacestatusinfo_tmp
1184
+ end
1185
+ end
1186
+ @RequestId = params['RequestId']
1187
+ end
1188
+ end
1189
+
1084
1190
  # DescribeEnvironments请求参数结构体
1085
1191
  class DescribeEnvironmentsRequest < TencentCloud::Common::AbstractModel
1086
1192
  # @param Limit: 分页limit
@@ -2118,6 +2224,50 @@ module TencentCloud
2118
2224
  end
2119
2225
  end
2120
2226
 
2227
+ # 命名空间状态
2228
+ class NamespaceStatusInfo < TencentCloud::Common::AbstractModel
2229
+ # @param EnvironmentId: 命名空间id
2230
+ # @type EnvironmentId: String
2231
+ # @param EnvironmentName: 命名空间名称
2232
+ # @type EnvironmentName: String
2233
+ # @param ClusterId: TCB envId | EKS clusterId
2234
+ # @type ClusterId: String
2235
+ # @param ClusterStatus: 环境状态
2236
+ # @type ClusterStatus: String
2237
+ # @param EnvironmentStartingStatus: 环境启动状态(不在启动中为null)
2238
+ # 注意:此字段可能返回 null,表示取不到有效值。
2239
+ # @type EnvironmentStartingStatus: :class:`Tencentcloud::Tem.v20210701.models.TemEnvironmentStartingStatus`
2240
+ # @param EnvironmentStoppingStatus: 环境停止状态(不在停止中为null)
2241
+ # 注意:此字段可能返回 null,表示取不到有效值。
2242
+ # @type EnvironmentStoppingStatus: :class:`Tencentcloud::Tem.v20210701.models.TemEnvironmentStoppingStatus`
2243
+
2244
+ attr_accessor :EnvironmentId, :EnvironmentName, :ClusterId, :ClusterStatus, :EnvironmentStartingStatus, :EnvironmentStoppingStatus
2245
+
2246
+ def initialize(environmentid=nil, environmentname=nil, clusterid=nil, clusterstatus=nil, environmentstartingstatus=nil, environmentstoppingstatus=nil)
2247
+ @EnvironmentId = environmentid
2248
+ @EnvironmentName = environmentname
2249
+ @ClusterId = clusterid
2250
+ @ClusterStatus = clusterstatus
2251
+ @EnvironmentStartingStatus = environmentstartingstatus
2252
+ @EnvironmentStoppingStatus = environmentstoppingstatus
2253
+ end
2254
+
2255
+ def deserialize(params)
2256
+ @EnvironmentId = params['EnvironmentId']
2257
+ @EnvironmentName = params['EnvironmentName']
2258
+ @ClusterId = params['ClusterId']
2259
+ @ClusterStatus = params['ClusterStatus']
2260
+ unless params['EnvironmentStartingStatus'].nil?
2261
+ @EnvironmentStartingStatus = TemEnvironmentStartingStatus.new
2262
+ @EnvironmentStartingStatus.deserialize(params['EnvironmentStartingStatus'])
2263
+ end
2264
+ unless params['EnvironmentStoppingStatus'].nil?
2265
+ @EnvironmentStoppingStatus = TemEnvironmentStoppingStatus.new
2266
+ @EnvironmentStoppingStatus.deserialize(params['EnvironmentStoppingStatus'])
2267
+ end
2268
+ end
2269
+ end
2270
+
2121
2271
  # 键值对
2122
2272
  class Pair < TencentCloud::Common::AbstractModel
2123
2273
  # @param Key: 键
@@ -2495,6 +2645,41 @@ module TencentCloud
2495
2645
  end
2496
2646
  end
2497
2647
 
2648
+ # 服务分页
2649
+ class ServicePage < TencentCloud::Common::AbstractModel
2650
+ # @param Records: 条目
2651
+ # @type Records: Array
2652
+ # @param Total: 总数
2653
+ # @type Total: Integer
2654
+ # @param Size: 条目
2655
+ # @type Size: Integer
2656
+ # @param Pages: 页数
2657
+ # @type Pages: Integer
2658
+
2659
+ attr_accessor :Records, :Total, :Size, :Pages
2660
+
2661
+ def initialize(records=nil, total=nil, size=nil, pages=nil)
2662
+ @Records = records
2663
+ @Total = total
2664
+ @Size = size
2665
+ @Pages = pages
2666
+ end
2667
+
2668
+ def deserialize(params)
2669
+ unless params['Records'].nil?
2670
+ @Records = []
2671
+ params['Records'].each do |i|
2672
+ temservice_tmp = TemService.new
2673
+ temservice_tmp.deserialize(i)
2674
+ @Records << temservice_tmp
2675
+ end
2676
+ end
2677
+ @Total = params['Total']
2678
+ @Size = params['Size']
2679
+ @Pages = params['Pages']
2680
+ end
2681
+ end
2682
+
2498
2683
  # 服务版本信息列表
2499
2684
  class ServiceVersionBrief < TencentCloud::Common::AbstractModel
2500
2685
  # @param VersionName: 版本名称
@@ -2762,6 +2947,50 @@ module TencentCloud
2762
2947
  end
2763
2948
  end
2764
2949
 
2950
+ # 环境启动进程(只统计由环境启动操作触发的应用数量)
2951
+ class TemEnvironmentStartingStatus < TencentCloud::Common::AbstractModel
2952
+ # @param ApplicationNumNeedToStart: 需要启动的应用数量
2953
+ # 注意:此字段可能返回 null,表示取不到有效值。
2954
+ # @type ApplicationNumNeedToStart: Integer
2955
+ # @param StartedApplicationNum: 已经启动的应用数量
2956
+ # 注意:此字段可能返回 null,表示取不到有效值。
2957
+ # @type StartedApplicationNum: Integer
2958
+
2959
+ attr_accessor :ApplicationNumNeedToStart, :StartedApplicationNum
2960
+
2961
+ def initialize(applicationnumneedtostart=nil, startedapplicationnum=nil)
2962
+ @ApplicationNumNeedToStart = applicationnumneedtostart
2963
+ @StartedApplicationNum = startedapplicationnum
2964
+ end
2965
+
2966
+ def deserialize(params)
2967
+ @ApplicationNumNeedToStart = params['ApplicationNumNeedToStart']
2968
+ @StartedApplicationNum = params['StartedApplicationNum']
2969
+ end
2970
+ end
2971
+
2972
+ # 环境停止进程(只统计由环境停止操作触发的应用数量)
2973
+ class TemEnvironmentStoppingStatus < TencentCloud::Common::AbstractModel
2974
+ # @param ApplicationNumNeedToStop: 需要停止的应用数量
2975
+ # 注意:此字段可能返回 null,表示取不到有效值。
2976
+ # @type ApplicationNumNeedToStop: Integer
2977
+ # @param StoppedApplicationNum: 已经停止的应用数量
2978
+ # 注意:此字段可能返回 null,表示取不到有效值。
2979
+ # @type StoppedApplicationNum: Integer
2980
+
2981
+ attr_accessor :ApplicationNumNeedToStop, :StoppedApplicationNum
2982
+
2983
+ def initialize(applicationnumneedtostop=nil, stoppedapplicationnum=nil)
2984
+ @ApplicationNumNeedToStop = applicationnumneedtostop
2985
+ @StoppedApplicationNum = stoppedapplicationnum
2986
+ end
2987
+
2988
+ def deserialize(params)
2989
+ @ApplicationNumNeedToStop = params['ApplicationNumNeedToStop']
2990
+ @StoppedApplicationNum = params['StoppedApplicationNum']
2991
+ end
2992
+ end
2993
+
2765
2994
  # 命名空间对象
2766
2995
  class TemNamespaceInfo < TencentCloud::Common::AbstractModel
2767
2996
  # @param EnvironmentId: 环境id
@@ -2843,6 +3072,105 @@ module TencentCloud
2843
3072
  end
2844
3073
  end
2845
3074
 
3075
+ # 服务
3076
+ class TemService < TencentCloud::Common::AbstractModel
3077
+ # @param ApplicationId: 主键
3078
+ # 注意:此字段可能返回 null,表示取不到有效值。
3079
+ # @type ApplicationId: String
3080
+ # @param ApplicationName: 服务名
3081
+ # 注意:此字段可能返回 null,表示取不到有效值。
3082
+ # @type ApplicationName: String
3083
+ # @param Description: 描述
3084
+ # 注意:此字段可能返回 null,表示取不到有效值。
3085
+ # @type Description: String
3086
+ # @param EnvironmentId: 命名空间id
3087
+ # 注意:此字段可能返回 null,表示取不到有效值。
3088
+ # @type EnvironmentId: String
3089
+ # @param CreateDate: 创建时间
3090
+ # 注意:此字段可能返回 null,表示取不到有效值。
3091
+ # @type CreateDate: String
3092
+ # @param ModifyDate: 修改时间
3093
+ # 注意:此字段可能返回 null,表示取不到有效值。
3094
+ # @type ModifyDate: String
3095
+ # @param Modifier: 修改人
3096
+ # 注意:此字段可能返回 null,表示取不到有效值。
3097
+ # @type Modifier: String
3098
+ # @param Creator: 创建者
3099
+ # 注意:此字段可能返回 null,表示取不到有效值。
3100
+ # @type Creator: String
3101
+ # @param RepoType: tcr个人版or企业版
3102
+ # 注意:此字段可能返回 null,表示取不到有效值。
3103
+ # @type RepoType: Integer
3104
+ # @param InstanceId: 企业版实例id
3105
+ # 注意:此字段可能返回 null,表示取不到有效值。
3106
+ # @type InstanceId: String
3107
+ # @param RepoName: 镜像仓库名
3108
+ # 注意:此字段可能返回 null,表示取不到有效值。
3109
+ # @type RepoName: String
3110
+ # @param CodingLanguage: 编程语言
3111
+ # 注意:此字段可能返回 null,表示取不到有效值。
3112
+ # @type CodingLanguage: String
3113
+ # @param DeployMode: 部署方式
3114
+ # 注意:此字段可能返回 null,表示取不到有效值。
3115
+ # @type DeployMode: String
3116
+ # @param EnvironmentName: 环境名称
3117
+ # 注意:此字段可能返回 null,表示取不到有效值。
3118
+ # @type EnvironmentName: String
3119
+ # @param ActiveVersions: 服务当前运行环境的实例信息
3120
+ # 注意:此字段可能返回 null,表示取不到有效值。
3121
+ # @type ActiveVersions: Array
3122
+ # @param EnableTracing: 是否启用链路追踪
3123
+ # 注意:此字段可能返回 null,表示取不到有效值。
3124
+ # @type EnableTracing: Integer
3125
+
3126
+ attr_accessor :ApplicationId, :ApplicationName, :Description, :EnvironmentId, :CreateDate, :ModifyDate, :Modifier, :Creator, :RepoType, :InstanceId, :RepoName, :CodingLanguage, :DeployMode, :EnvironmentName, :ActiveVersions, :EnableTracing
3127
+
3128
+ def initialize(applicationid=nil, applicationname=nil, description=nil, environmentid=nil, createdate=nil, modifydate=nil, modifier=nil, creator=nil, repotype=nil, instanceid=nil, reponame=nil, codinglanguage=nil, deploymode=nil, environmentname=nil, activeversions=nil, enabletracing=nil)
3129
+ @ApplicationId = applicationid
3130
+ @ApplicationName = applicationname
3131
+ @Description = description
3132
+ @EnvironmentId = environmentid
3133
+ @CreateDate = createdate
3134
+ @ModifyDate = modifydate
3135
+ @Modifier = modifier
3136
+ @Creator = creator
3137
+ @RepoType = repotype
3138
+ @InstanceId = instanceid
3139
+ @RepoName = reponame
3140
+ @CodingLanguage = codinglanguage
3141
+ @DeployMode = deploymode
3142
+ @EnvironmentName = environmentname
3143
+ @ActiveVersions = activeversions
3144
+ @EnableTracing = enabletracing
3145
+ end
3146
+
3147
+ def deserialize(params)
3148
+ @ApplicationId = params['ApplicationId']
3149
+ @ApplicationName = params['ApplicationName']
3150
+ @Description = params['Description']
3151
+ @EnvironmentId = params['EnvironmentId']
3152
+ @CreateDate = params['CreateDate']
3153
+ @ModifyDate = params['ModifyDate']
3154
+ @Modifier = params['Modifier']
3155
+ @Creator = params['Creator']
3156
+ @RepoType = params['RepoType']
3157
+ @InstanceId = params['InstanceId']
3158
+ @RepoName = params['RepoName']
3159
+ @CodingLanguage = params['CodingLanguage']
3160
+ @DeployMode = params['DeployMode']
3161
+ @EnvironmentName = params['EnvironmentName']
3162
+ unless params['ActiveVersions'].nil?
3163
+ @ActiveVersions = []
3164
+ params['ActiveVersions'].each do |i|
3165
+ serviceversionbrief_tmp = ServiceVersionBrief.new
3166
+ serviceversionbrief_tmp.deserialize(i)
3167
+ @ActiveVersions << serviceversionbrief_tmp
3168
+ end
3169
+ end
3170
+ @EnableTracing = params['EnableTracing']
3171
+ end
3172
+ end
3173
+
2846
3174
  # 创建应用,创建仓库参数
2847
3175
  class UseDefaultRepoParameters < TencentCloud::Common::AbstractModel
2848
3176
  # @param EnterpriseInstanceName: 企业版实例名
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.362
4
+ version: 3.0.371
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-07-24 00:00:00.000000000 Z
11
+ date: 2022-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common