tencentcloud-sdk-tcm 3.0.424 → 3.0.425

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e86aaa927c9ac028ed0d7efc38be0c37f4090a5b
4
- data.tar.gz: 78ffdc13a2e7b571cbcd9802833b809e7678ce9f
3
+ metadata.gz: 2710d0b6d9ae7b2f7d593f2a6d122a7db185192e
4
+ data.tar.gz: e0edcc0bb8b19ffea90a747989645ef3c274b914
5
5
  SHA512:
6
- metadata.gz: 625f8619c94e8d76c2de1e951ee6276d59ad9106c6f8c01aeb89a8c160bfe1c1ad3533f72c60b294e383d68c2a0fafc3508e5dfdafc2d65c9295a0372393fe66
7
- data.tar.gz: 7992dae553c07defb5147a7c81277782ae2b5b10ee623a7c615a0c4d3cc1fcb154e393ebcfd31b7b59f4c72465943dad2401a4eb5f289b8e168d42df3895220b
6
+ metadata.gz: bfb7033b01b63d562540825098516cb48dcddf4e70886a833b5bdd79cfba459433c25946cd303c96d0864968c039e102b373b3100c08b7b08f5962aaf35af506
7
+ data.tar.gz: 0e29c5de5d56e04563e2f14d135b7e13796c71e650f0650fab3bacd8b094b65393f6af9e8cf1a4d5c205ebfc7d4ba58a766569dbb0c46ef3030d5b7c0e13ad8b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.424
1
+ 3.0.425
@@ -29,6 +29,54 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 创建网格
33
+
34
+ # @param request: Request instance for CreateMesh.
35
+ # @type request: :class:`Tencentcloud::tcm::V20210413::CreateMeshRequest`
36
+ # @rtype: :class:`Tencentcloud::tcm::V20210413::CreateMeshResponse`
37
+ def CreateMesh(request)
38
+ body = send_request('CreateMesh', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateMeshResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 删除网格
57
+
58
+ # @param request: Request instance for DeleteMesh.
59
+ # @type request: :class:`Tencentcloud::tcm::V20210413::DeleteMeshRequest`
60
+ # @rtype: :class:`Tencentcloud::tcm::V20210413::DeleteMeshResponse`
61
+ def DeleteMesh(request)
62
+ body = send_request('DeleteMesh', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DeleteMeshResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
32
80
  # 查询网格详情
33
81
 
34
82
  # @param request: Request instance for DescribeMesh.
@@ -77,6 +125,30 @@ module TencentCloud
77
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
126
  end
79
127
 
128
+ # 修改网格
129
+
130
+ # @param request: Request instance for ModifyMesh.
131
+ # @type request: :class:`Tencentcloud::tcm::V20210413::ModifyMeshRequest`
132
+ # @rtype: :class:`Tencentcloud::tcm::V20210413::ModifyMeshResponse`
133
+ def ModifyMesh(request)
134
+ body = send_request('ModifyMesh', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = ModifyMeshResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
80
152
 
81
153
  end
82
154
  end
@@ -330,6 +330,80 @@ module TencentCloud
330
330
  end
331
331
  end
332
332
 
333
+ # CreateMesh请求参数结构体
334
+ class CreateMeshRequest < TencentCloud::Common::AbstractModel
335
+ # @param DisplayName: Mesh名称
336
+ # @type DisplayName: String
337
+ # @param MeshVersion: Mesh版本
338
+ # @type MeshVersion: String
339
+ # @param Type: Mesh类型,取值范围:
340
+ # - HOSTED:托管网格
341
+ # @type Type: String
342
+ # @param Config: Mesh配置
343
+ # @type Config: :class:`Tencentcloud::Tcm.v20210413.models.MeshConfig`
344
+ # @param ClusterList: 关联集群
345
+ # @type ClusterList: Array
346
+ # @param TagList: 标签列表
347
+ # @type TagList: Array
348
+
349
+ attr_accessor :DisplayName, :MeshVersion, :Type, :Config, :ClusterList, :TagList
350
+
351
+ def initialize(displayname=nil, meshversion=nil, type=nil, config=nil, clusterlist=nil, taglist=nil)
352
+ @DisplayName = displayname
353
+ @MeshVersion = meshversion
354
+ @Type = type
355
+ @Config = config
356
+ @ClusterList = clusterlist
357
+ @TagList = taglist
358
+ end
359
+
360
+ def deserialize(params)
361
+ @DisplayName = params['DisplayName']
362
+ @MeshVersion = params['MeshVersion']
363
+ @Type = params['Type']
364
+ unless params['Config'].nil?
365
+ @Config = MeshConfig.new
366
+ @Config.deserialize(params['Config'])
367
+ end
368
+ unless params['ClusterList'].nil?
369
+ @ClusterList = []
370
+ params['ClusterList'].each do |i|
371
+ cluster_tmp = Cluster.new
372
+ cluster_tmp.deserialize(i)
373
+ @ClusterList << cluster_tmp
374
+ end
375
+ end
376
+ unless params['TagList'].nil?
377
+ @TagList = []
378
+ params['TagList'].each do |i|
379
+ tag_tmp = Tag.new
380
+ tag_tmp.deserialize(i)
381
+ @TagList << tag_tmp
382
+ end
383
+ end
384
+ end
385
+ end
386
+
387
+ # CreateMesh返回参数结构体
388
+ class CreateMeshResponse < TencentCloud::Common::AbstractModel
389
+ # @param MeshId: 创建的Mesh的Id
390
+ # @type MeshId: String
391
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
392
+ # @type RequestId: String
393
+
394
+ attr_accessor :MeshId, :RequestId
395
+
396
+ def initialize(meshid=nil, requestid=nil)
397
+ @MeshId = meshid
398
+ @RequestId = requestid
399
+ end
400
+
401
+ def deserialize(params)
402
+ @MeshId = params['MeshId']
403
+ @RequestId = params['RequestId']
404
+ end
405
+ end
406
+
333
407
  # 负载均衡跨域设置
334
408
  class CrossRegionConfig < TencentCloud::Common::AbstractModel
335
409
 
@@ -377,6 +451,54 @@ module TencentCloud
377
451
  end
378
452
  end
379
453
 
454
+ # DeleteMesh请求参数结构体
455
+ class DeleteMeshRequest < TencentCloud::Common::AbstractModel
456
+ # @param MeshId: 需要删除的MeshId
457
+ # @type MeshId: String
458
+ # @param NeedDeleteCLS: CLS组件是否被删除
459
+ # @type NeedDeleteCLS: Boolean
460
+ # @param NeedDeleteTMP: TMP组件是否被删除
461
+ # @type NeedDeleteTMP: Boolean
462
+ # @param NeedDeleteAPM: APM组件是否被删除
463
+ # @type NeedDeleteAPM: Boolean
464
+ # @param NeedDeleteGrafana: Grafana组件是否被删除
465
+ # @type NeedDeleteGrafana: Boolean
466
+
467
+ attr_accessor :MeshId, :NeedDeleteCLS, :NeedDeleteTMP, :NeedDeleteAPM, :NeedDeleteGrafana
468
+
469
+ def initialize(meshid=nil, needdeletecls=nil, needdeletetmp=nil, needdeleteapm=nil, needdeletegrafana=nil)
470
+ @MeshId = meshid
471
+ @NeedDeleteCLS = needdeletecls
472
+ @NeedDeleteTMP = needdeletetmp
473
+ @NeedDeleteAPM = needdeleteapm
474
+ @NeedDeleteGrafana = needdeletegrafana
475
+ end
476
+
477
+ def deserialize(params)
478
+ @MeshId = params['MeshId']
479
+ @NeedDeleteCLS = params['NeedDeleteCLS']
480
+ @NeedDeleteTMP = params['NeedDeleteTMP']
481
+ @NeedDeleteAPM = params['NeedDeleteAPM']
482
+ @NeedDeleteGrafana = params['NeedDeleteGrafana']
483
+ end
484
+ end
485
+
486
+ # DeleteMesh返回参数结构体
487
+ class DeleteMeshResponse < TencentCloud::Common::AbstractModel
488
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
489
+ # @type RequestId: String
490
+
491
+ attr_accessor :RequestId
492
+
493
+ def initialize(requestid=nil)
494
+ @RequestId = requestid
495
+ end
496
+
497
+ def deserialize(params)
498
+ @RequestId = params['RequestId']
499
+ end
500
+ end
501
+
380
502
  # 部署配置
381
503
  class DeployConfig < TencentCloud::Common::AbstractModel
382
504
  # @param NodeSelectType: 部署类型,取值范围:
@@ -1171,6 +1293,60 @@ module TencentCloud
1171
1293
  end
1172
1294
  end
1173
1295
 
1296
+ # ModifyMesh请求参数结构体
1297
+ class ModifyMeshRequest < TencentCloud::Common::AbstractModel
1298
+ # @param MeshId: 需要修改的网格Id
1299
+ # @type MeshId: String
1300
+ # @param DisplayName: 修改的网格名称
1301
+ # @type DisplayName: String
1302
+ # @param Config: 修改的网格配置
1303
+ # @type Config: :class:`Tencentcloud::Tcm.v20210413.models.MeshConfig`
1304
+ # @param ClusterList: 修改的集群配置
1305
+ # @type ClusterList: Array
1306
+
1307
+ attr_accessor :MeshId, :DisplayName, :Config, :ClusterList
1308
+
1309
+ def initialize(meshid=nil, displayname=nil, config=nil, clusterlist=nil)
1310
+ @MeshId = meshid
1311
+ @DisplayName = displayname
1312
+ @Config = config
1313
+ @ClusterList = clusterlist
1314
+ end
1315
+
1316
+ def deserialize(params)
1317
+ @MeshId = params['MeshId']
1318
+ @DisplayName = params['DisplayName']
1319
+ unless params['Config'].nil?
1320
+ @Config = MeshConfig.new
1321
+ @Config.deserialize(params['Config'])
1322
+ end
1323
+ unless params['ClusterList'].nil?
1324
+ @ClusterList = []
1325
+ params['ClusterList'].each do |i|
1326
+ cluster_tmp = Cluster.new
1327
+ cluster_tmp.deserialize(i)
1328
+ @ClusterList << cluster_tmp
1329
+ end
1330
+ end
1331
+ end
1332
+ end
1333
+
1334
+ # ModifyMesh返回参数结构体
1335
+ class ModifyMeshResponse < TencentCloud::Common::AbstractModel
1336
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1337
+ # @type RequestId: String
1338
+
1339
+ attr_accessor :RequestId
1340
+
1341
+ def initialize(requestid=nil)
1342
+ @RequestId = requestid
1343
+ end
1344
+
1345
+ def deserialize(params)
1346
+ @RequestId = params['RequestId']
1347
+ end
1348
+ end
1349
+
1174
1350
  # PodsMetricSource 定义了如何根据特定指标进行扩缩容
1175
1351
  class PodsMetricSource < TencentCloud::Common::AbstractModel
1176
1352
  # @param MetricName: 指标名
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tcm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.424
4
+ version: 3.0.425
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-10-09 00:00:00.000000000 Z
11
+ date: 2022-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common