tencentcloud-sdk-tcr 3.0.390 → 3.0.393
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190924/client.rb +384 -0
- data/lib/v20190924/models.rb +879 -33
- 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: 96f360bf913fbcf2fdde6102177e26c4e38d9f9d
|
4
|
+
data.tar.gz: 9b80748b63c1689f4ee65c8c888e7794e7460224
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd0fb27eded5d8abb9a2d9fb73f435dc010ff0baceb2a254fb6adb4bcfdd1675ab514de9d29fe2e3e5a113da55092ba96cd342f1b83ab5a3618e587dd776798d
|
7
|
+
data.tar.gz: ad6c1a3d444df5ddafeceb3df73352ed8dd227e4060570849669482cedc4744c92e11d2000d4d5ed31dae07bc2d462495eeeff276d5efd36c88cb9a7859fe690
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.393
|
data/lib/v20190924/client.rb
CHANGED
@@ -149,6 +149,30 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 创建镜像加速服务
|
153
|
+
|
154
|
+
# @param request: Request instance for CreateImageAccelerationService.
|
155
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::CreateImageAccelerationServiceRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::CreateImageAccelerationServiceResponse`
|
157
|
+
def CreateImageAccelerationService(request)
|
158
|
+
body = send_request('CreateImageAccelerationService', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = CreateImageAccelerationServiceResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
152
176
|
# 用于在个人版中创建清理策略
|
153
177
|
|
154
178
|
# @param request: Request instance for CreateImageLifecyclePersonal.
|
@@ -221,6 +245,30 @@ module TencentCloud
|
|
221
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
246
|
end
|
223
247
|
|
248
|
+
# 创建自定义域名
|
249
|
+
|
250
|
+
# @param request: Request instance for CreateInstanceCustomizedDomain.
|
251
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::CreateInstanceCustomizedDomainRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::CreateInstanceCustomizedDomainResponse`
|
253
|
+
def CreateInstanceCustomizedDomain(request)
|
254
|
+
body = send_request('CreateInstanceCustomizedDomain', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = CreateInstanceCustomizedDomainResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
224
272
|
# 创建实例的临时或长期访问凭证
|
225
273
|
|
226
274
|
# @param request: Request instance for CreateInstanceToken.
|
@@ -415,6 +463,30 @@ module TencentCloud
|
|
415
463
|
|
416
464
|
# 创建实例公网访问白名单策略
|
417
465
|
|
466
|
+
# @param request: Request instance for CreateSecurityPolicies.
|
467
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::CreateSecurityPoliciesRequest`
|
468
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::CreateSecurityPoliciesResponse`
|
469
|
+
def CreateSecurityPolicies(request)
|
470
|
+
body = send_request('CreateSecurityPolicies', request.serialize)
|
471
|
+
response = JSON.parse(body)
|
472
|
+
if response['Response'].key?('Error') == false
|
473
|
+
model = CreateSecurityPoliciesResponse.new
|
474
|
+
model.deserialize(response['Response'])
|
475
|
+
model
|
476
|
+
else
|
477
|
+
code = response['Response']['Error']['Code']
|
478
|
+
message = response['Response']['Error']['Message']
|
479
|
+
reqid = response['Response']['RequestId']
|
480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
481
|
+
end
|
482
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
483
|
+
raise e
|
484
|
+
rescue StandardError => e
|
485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
|
+
end
|
487
|
+
|
488
|
+
# 创建实例公网访问白名单策略
|
489
|
+
|
418
490
|
# @param request: Request instance for CreateSecurityPolicy.
|
419
491
|
# @type request: :class:`Tencentcloud::tcr::V20190924::CreateSecurityPolicyRequest`
|
420
492
|
# @rtype: :class:`Tencentcloud::tcr::V20190924::CreateSecurityPolicyResponse`
|
@@ -437,6 +509,54 @@ module TencentCloud
|
|
437
509
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
510
|
end
|
439
511
|
|
512
|
+
# 为一个镜像版本创建签名
|
513
|
+
|
514
|
+
# @param request: Request instance for CreateSignature.
|
515
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::CreateSignatureRequest`
|
516
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::CreateSignatureResponse`
|
517
|
+
def CreateSignature(request)
|
518
|
+
body = send_request('CreateSignature', request.serialize)
|
519
|
+
response = JSON.parse(body)
|
520
|
+
if response['Response'].key?('Error') == false
|
521
|
+
model = CreateSignatureResponse.new
|
522
|
+
model.deserialize(response['Response'])
|
523
|
+
model
|
524
|
+
else
|
525
|
+
code = response['Response']['Error']['Code']
|
526
|
+
message = response['Response']['Error']['Message']
|
527
|
+
reqid = response['Response']['RequestId']
|
528
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
529
|
+
end
|
530
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
531
|
+
raise e
|
532
|
+
rescue StandardError => e
|
533
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
|
+
end
|
535
|
+
|
536
|
+
# 创建镜像签名策略
|
537
|
+
|
538
|
+
# @param request: Request instance for CreateSignaturePolicy.
|
539
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::CreateSignaturePolicyRequest`
|
540
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::CreateSignaturePolicyResponse`
|
541
|
+
def CreateSignaturePolicy(request)
|
542
|
+
body = send_request('CreateSignaturePolicy', request.serialize)
|
543
|
+
response = JSON.parse(body)
|
544
|
+
if response['Response'].key?('Error') == false
|
545
|
+
model = CreateSignaturePolicyResponse.new
|
546
|
+
model.deserialize(response['Response'])
|
547
|
+
model
|
548
|
+
else
|
549
|
+
code = response['Response']['Error']['Code']
|
550
|
+
message = response['Response']['Error']['Message']
|
551
|
+
reqid = response['Response']['RequestId']
|
552
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
553
|
+
end
|
554
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
555
|
+
raise e
|
556
|
+
rescue StandardError => e
|
557
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
|
+
end
|
559
|
+
|
440
560
|
# 手动执行版本保留
|
441
561
|
|
442
562
|
# @param request: Request instance for CreateTagRetentionExecution.
|
@@ -581,6 +701,30 @@ module TencentCloud
|
|
581
701
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
702
|
end
|
583
703
|
|
704
|
+
# 删除镜像加速服务
|
705
|
+
|
706
|
+
# @param request: Request instance for DeleteImageAccelerateService.
|
707
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DeleteImageAccelerateServiceRequest`
|
708
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DeleteImageAccelerateServiceResponse`
|
709
|
+
def DeleteImageAccelerateService(request)
|
710
|
+
body = send_request('DeleteImageAccelerateService', request.serialize)
|
711
|
+
response = JSON.parse(body)
|
712
|
+
if response['Response'].key?('Error') == false
|
713
|
+
model = DeleteImageAccelerateServiceResponse.new
|
714
|
+
model.deserialize(response['Response'])
|
715
|
+
model
|
716
|
+
else
|
717
|
+
code = response['Response']['Error']['Code']
|
718
|
+
message = response['Response']['Error']['Message']
|
719
|
+
reqid = response['Response']['RequestId']
|
720
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
721
|
+
end
|
722
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
723
|
+
raise e
|
724
|
+
rescue StandardError => e
|
725
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
|
+
end
|
727
|
+
|
584
728
|
# 用于删除个人版全局镜像版本自动清理策略
|
585
729
|
|
586
730
|
# @param request: Request instance for DeleteImageLifecycleGlobalPersonal.
|
@@ -701,6 +845,30 @@ module TencentCloud
|
|
701
845
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
846
|
end
|
703
847
|
|
848
|
+
# 删除自定义域名
|
849
|
+
|
850
|
+
# @param request: Request instance for DeleteInstanceCustomizedDomain.
|
851
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DeleteInstanceCustomizedDomainRequest`
|
852
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DeleteInstanceCustomizedDomainResponse`
|
853
|
+
def DeleteInstanceCustomizedDomain(request)
|
854
|
+
body = send_request('DeleteInstanceCustomizedDomain', request.serialize)
|
855
|
+
response = JSON.parse(body)
|
856
|
+
if response['Response'].key?('Error') == false
|
857
|
+
model = DeleteInstanceCustomizedDomainResponse.new
|
858
|
+
model.deserialize(response['Response'])
|
859
|
+
model
|
860
|
+
else
|
861
|
+
code = response['Response']['Error']['Code']
|
862
|
+
message = response['Response']['Error']['Message']
|
863
|
+
reqid = response['Response']['RequestId']
|
864
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
865
|
+
end
|
866
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
867
|
+
raise e
|
868
|
+
rescue StandardError => e
|
869
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
|
+
end
|
871
|
+
|
704
872
|
# 删除长期访问凭证
|
705
873
|
|
706
874
|
# @param request: Request instance for DeleteInstanceToken.
|
@@ -821,6 +989,30 @@ module TencentCloud
|
|
821
989
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
990
|
end
|
823
991
|
|
992
|
+
# 删除从实例
|
993
|
+
|
994
|
+
# @param request: Request instance for DeleteReplicationInstance.
|
995
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DeleteReplicationInstanceRequest`
|
996
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DeleteReplicationInstanceResponse`
|
997
|
+
def DeleteReplicationInstance(request)
|
998
|
+
body = send_request('DeleteReplicationInstance', request.serialize)
|
999
|
+
response = JSON.parse(body)
|
1000
|
+
if response['Response'].key?('Error') == false
|
1001
|
+
model = DeleteReplicationInstanceResponse.new
|
1002
|
+
model.deserialize(response['Response'])
|
1003
|
+
model
|
1004
|
+
else
|
1005
|
+
code = response['Response']['Error']['Code']
|
1006
|
+
message = response['Response']['Error']['Message']
|
1007
|
+
reqid = response['Response']['RequestId']
|
1008
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1009
|
+
end
|
1010
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1011
|
+
raise e
|
1012
|
+
rescue StandardError => e
|
1013
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1014
|
+
end
|
1015
|
+
|
824
1016
|
# 删除镜像仓库
|
825
1017
|
|
826
1018
|
# @param request: Request instance for DeleteRepository.
|
@@ -869,6 +1061,30 @@ module TencentCloud
|
|
869
1061
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
1062
|
end
|
871
1063
|
|
1064
|
+
# 用于企业版批量删除Repository Tag
|
1065
|
+
|
1066
|
+
# @param request: Request instance for DeleteRepositoryTags.
|
1067
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DeleteRepositoryTagsRequest`
|
1068
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DeleteRepositoryTagsResponse`
|
1069
|
+
def DeleteRepositoryTags(request)
|
1070
|
+
body = send_request('DeleteRepositoryTags', request.serialize)
|
1071
|
+
response = JSON.parse(body)
|
1072
|
+
if response['Response'].key?('Error') == false
|
1073
|
+
model = DeleteRepositoryTagsResponse.new
|
1074
|
+
model.deserialize(response['Response'])
|
1075
|
+
model
|
1076
|
+
else
|
1077
|
+
code = response['Response']['Error']['Code']
|
1078
|
+
message = response['Response']['Error']['Message']
|
1079
|
+
reqid = response['Response']['RequestId']
|
1080
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1081
|
+
end
|
1082
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1083
|
+
raise e
|
1084
|
+
rescue StandardError => e
|
1085
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1086
|
+
end
|
1087
|
+
|
872
1088
|
# 删除实例公网访问白名单策略
|
873
1089
|
|
874
1090
|
# @param request: Request instance for DeleteSecurityPolicy.
|
@@ -893,6 +1109,30 @@ module TencentCloud
|
|
893
1109
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
1110
|
end
|
895
1111
|
|
1112
|
+
# 删除命名空间加签策略
|
1113
|
+
|
1114
|
+
# @param request: Request instance for DeleteSignaturePolicy.
|
1115
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DeleteSignaturePolicyRequest`
|
1116
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DeleteSignaturePolicyResponse`
|
1117
|
+
def DeleteSignaturePolicy(request)
|
1118
|
+
body = send_request('DeleteSignaturePolicy', request.serialize)
|
1119
|
+
response = JSON.parse(body)
|
1120
|
+
if response['Response'].key?('Error') == false
|
1121
|
+
model = DeleteSignaturePolicyResponse.new
|
1122
|
+
model.deserialize(response['Response'])
|
1123
|
+
model
|
1124
|
+
else
|
1125
|
+
code = response['Response']['Error']['Code']
|
1126
|
+
message = response['Response']['Error']['Message']
|
1127
|
+
reqid = response['Response']['RequestId']
|
1128
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1129
|
+
end
|
1130
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1131
|
+
raise e
|
1132
|
+
rescue StandardError => e
|
1133
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1134
|
+
end
|
1135
|
+
|
896
1136
|
# 删除版本保留规则
|
897
1137
|
|
898
1138
|
# @param request: Request instance for DeleteTagRetentionRule.
|
@@ -1061,6 +1301,54 @@ module TencentCloud
|
|
1061
1301
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1062
1302
|
end
|
1063
1303
|
|
1304
|
+
# GC 最近10条历史
|
1305
|
+
|
1306
|
+
# @param request: Request instance for DescribeGCJobs.
|
1307
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DescribeGCJobsRequest`
|
1308
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DescribeGCJobsResponse`
|
1309
|
+
def DescribeGCJobs(request)
|
1310
|
+
body = send_request('DescribeGCJobs', request.serialize)
|
1311
|
+
response = JSON.parse(body)
|
1312
|
+
if response['Response'].key?('Error') == false
|
1313
|
+
model = DescribeGCJobsResponse.new
|
1314
|
+
model.deserialize(response['Response'])
|
1315
|
+
model
|
1316
|
+
else
|
1317
|
+
code = response['Response']['Error']['Code']
|
1318
|
+
message = response['Response']['Error']['Message']
|
1319
|
+
reqid = response['Response']['RequestId']
|
1320
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1321
|
+
end
|
1322
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1323
|
+
raise e
|
1324
|
+
rescue StandardError => e
|
1325
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
# 查询镜像加速服务状态
|
1329
|
+
|
1330
|
+
# @param request: Request instance for DescribeImageAccelerateService.
|
1331
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DescribeImageAccelerateServiceRequest`
|
1332
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DescribeImageAccelerateServiceResponse`
|
1333
|
+
def DescribeImageAccelerateService(request)
|
1334
|
+
body = send_request('DescribeImageAccelerateService', request.serialize)
|
1335
|
+
response = JSON.parse(body)
|
1336
|
+
if response['Response'].key?('Error') == false
|
1337
|
+
model = DescribeImageAccelerateServiceResponse.new
|
1338
|
+
model.deserialize(response['Response'])
|
1339
|
+
model
|
1340
|
+
else
|
1341
|
+
code = response['Response']['Error']['Code']
|
1342
|
+
message = response['Response']['Error']['Message']
|
1343
|
+
reqid = response['Response']['RequestId']
|
1344
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1345
|
+
end
|
1346
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1347
|
+
raise e
|
1348
|
+
rescue StandardError => e
|
1349
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1350
|
+
end
|
1351
|
+
|
1064
1352
|
# 用于在个人版中查询与指定tag镜像内容相同的tag列表
|
1065
1353
|
|
1066
1354
|
# @param request: Request instance for DescribeImageFilterPersonal.
|
@@ -1229,6 +1517,78 @@ module TencentCloud
|
|
1229
1517
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1230
1518
|
end
|
1231
1519
|
|
1520
|
+
# 查询全部实例信息
|
1521
|
+
|
1522
|
+
# @param request: Request instance for DescribeInstanceAll.
|
1523
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DescribeInstanceAllRequest`
|
1524
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DescribeInstanceAllResponse`
|
1525
|
+
def DescribeInstanceAll(request)
|
1526
|
+
body = send_request('DescribeInstanceAll', request.serialize)
|
1527
|
+
response = JSON.parse(body)
|
1528
|
+
if response['Response'].key?('Error') == false
|
1529
|
+
model = DescribeInstanceAllResponse.new
|
1530
|
+
model.deserialize(response['Response'])
|
1531
|
+
model
|
1532
|
+
else
|
1533
|
+
code = response['Response']['Error']['Code']
|
1534
|
+
message = response['Response']['Error']['Message']
|
1535
|
+
reqid = response['Response']['RequestId']
|
1536
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1537
|
+
end
|
1538
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1539
|
+
raise e
|
1540
|
+
rescue StandardError => e
|
1541
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
# 查询所有有实例命名空间列表
|
1545
|
+
|
1546
|
+
# @param request: Request instance for DescribeInstanceAllNamespaces.
|
1547
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DescribeInstanceAllNamespacesRequest`
|
1548
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DescribeInstanceAllNamespacesResponse`
|
1549
|
+
def DescribeInstanceAllNamespaces(request)
|
1550
|
+
body = send_request('DescribeInstanceAllNamespaces', request.serialize)
|
1551
|
+
response = JSON.parse(body)
|
1552
|
+
if response['Response'].key?('Error') == false
|
1553
|
+
model = DescribeInstanceAllNamespacesResponse.new
|
1554
|
+
model.deserialize(response['Response'])
|
1555
|
+
model
|
1556
|
+
else
|
1557
|
+
code = response['Response']['Error']['Code']
|
1558
|
+
message = response['Response']['Error']['Message']
|
1559
|
+
reqid = response['Response']['RequestId']
|
1560
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1561
|
+
end
|
1562
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1563
|
+
raise e
|
1564
|
+
rescue StandardError => e
|
1565
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1566
|
+
end
|
1567
|
+
|
1568
|
+
# 查询实例自定义域名列表
|
1569
|
+
|
1570
|
+
# @param request: Request instance for DescribeInstanceCustomizedDomain.
|
1571
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DescribeInstanceCustomizedDomainRequest`
|
1572
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DescribeInstanceCustomizedDomainResponse`
|
1573
|
+
def DescribeInstanceCustomizedDomain(request)
|
1574
|
+
body = send_request('DescribeInstanceCustomizedDomain', request.serialize)
|
1575
|
+
response = JSON.parse(body)
|
1576
|
+
if response['Response'].key?('Error') == false
|
1577
|
+
model = DescribeInstanceCustomizedDomainResponse.new
|
1578
|
+
model.deserialize(response['Response'])
|
1579
|
+
model
|
1580
|
+
else
|
1581
|
+
code = response['Response']['Error']['Code']
|
1582
|
+
message = response['Response']['Error']['Message']
|
1583
|
+
reqid = response['Response']['RequestId']
|
1584
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1585
|
+
end
|
1586
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1587
|
+
raise e
|
1588
|
+
rescue StandardError => e
|
1589
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1590
|
+
end
|
1591
|
+
|
1232
1592
|
# 查询实例当前状态以及过程信息
|
1233
1593
|
|
1234
1594
|
# @param request: Request instance for DescribeInstanceStatus.
|
@@ -1397,6 +1757,30 @@ module TencentCloud
|
|
1397
1757
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1398
1758
|
end
|
1399
1759
|
|
1760
|
+
# 用于在TCR中获取可用区域
|
1761
|
+
|
1762
|
+
# @param request: Request instance for DescribeRegions.
|
1763
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DescribeRegionsRequest`
|
1764
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DescribeRegionsResponse`
|
1765
|
+
def DescribeRegions(request)
|
1766
|
+
body = send_request('DescribeRegions', request.serialize)
|
1767
|
+
response = JSON.parse(body)
|
1768
|
+
if response['Response'].key?('Error') == false
|
1769
|
+
model = DescribeRegionsResponse.new
|
1770
|
+
model.deserialize(response['Response'])
|
1771
|
+
model
|
1772
|
+
else
|
1773
|
+
code = response['Response']['Error']['Code']
|
1774
|
+
message = response['Response']['Error']['Message']
|
1775
|
+
reqid = response['Response']['RequestId']
|
1776
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1777
|
+
end
|
1778
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1779
|
+
raise e
|
1780
|
+
rescue StandardError => e
|
1781
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1782
|
+
end
|
1783
|
+
|
1400
1784
|
# 查询创建从实例任务状态
|
1401
1785
|
|
1402
1786
|
# @param request: Request instance for DescribeReplicationInstanceCreateTasks.
|