tencentcloud-sdk-tcr 3.0.600 → 3.0.602
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190924/client.rb +96 -0
- data/lib/v20190924/models.rb +329 -0
- 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: f599c2f3f67ac075065c9ca767e86fca93a1744e
|
4
|
+
data.tar.gz: f4595497698abd623f2c71f21b1ce89fd2b2770b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47bf2fa4f90ea7d5e4bc2e1f0c43f2c51dc1f9a0d164607bd9ff16a58bf054f784df1a3dd388690d3339b1ca6e91d26ed2c58e73f76d42bc1d2da16d4d188db8
|
7
|
+
data.tar.gz: 8cabb105320b8e03b66e576e13bbc78f8b232918f92e2402990a8579f89e561d00abdb25eb25f10673a7039f75702993f937d48340deec2606e6cf44b588831e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.602
|
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 CreateCustomAccount.
|
155
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::CreateCustomAccountRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::CreateCustomAccountResponse`
|
157
|
+
def CreateCustomAccount(request)
|
158
|
+
body = send_request('CreateCustomAccount', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = CreateCustomAccountResponse.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 CreateImageAccelerationService.
|
@@ -655,6 +679,30 @@ module TencentCloud
|
|
655
679
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
656
680
|
end
|
657
681
|
|
682
|
+
# 删除自定义账号
|
683
|
+
|
684
|
+
# @param request: Request instance for DeleteCustomAccount.
|
685
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DeleteCustomAccountRequest`
|
686
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DeleteCustomAccountResponse`
|
687
|
+
def DeleteCustomAccount(request)
|
688
|
+
body = send_request('DeleteCustomAccount', request.serialize)
|
689
|
+
response = JSON.parse(body)
|
690
|
+
if response['Response'].key?('Error') == false
|
691
|
+
model = DeleteCustomAccountResponse.new
|
692
|
+
model.deserialize(response['Response'])
|
693
|
+
model
|
694
|
+
else
|
695
|
+
code = response['Response']['Error']['Code']
|
696
|
+
message = response['Response']['Error']['Message']
|
697
|
+
reqid = response['Response']['RequestId']
|
698
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
699
|
+
end
|
700
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
701
|
+
raise e
|
702
|
+
rescue StandardError => e
|
703
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
704
|
+
end
|
705
|
+
|
658
706
|
# 删除指定镜像
|
659
707
|
|
660
708
|
# @param request: Request instance for DeleteImage.
|
@@ -1235,6 +1283,30 @@ module TencentCloud
|
|
1235
1283
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1236
1284
|
end
|
1237
1285
|
|
1286
|
+
# 查询自定义账号
|
1287
|
+
|
1288
|
+
# @param request: Request instance for DescribeCustomAccounts.
|
1289
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DescribeCustomAccountsRequest`
|
1290
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DescribeCustomAccountsResponse`
|
1291
|
+
def DescribeCustomAccounts(request)
|
1292
|
+
body = send_request('DescribeCustomAccounts', request.serialize)
|
1293
|
+
response = JSON.parse(body)
|
1294
|
+
if response['Response'].key?('Error') == false
|
1295
|
+
model = DescribeCustomAccountsResponse.new
|
1296
|
+
model.deserialize(response['Response'])
|
1297
|
+
model
|
1298
|
+
else
|
1299
|
+
code = response['Response']['Error']['Code']
|
1300
|
+
message = response['Response']['Error']['Message']
|
1301
|
+
reqid = response['Response']['RequestId']
|
1302
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1303
|
+
end
|
1304
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1305
|
+
raise e
|
1306
|
+
rescue StandardError => e
|
1307
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1308
|
+
end
|
1309
|
+
|
1238
1310
|
# 查询实例公网访问入口状态
|
1239
1311
|
|
1240
1312
|
# @param request: Request instance for DescribeExternalEndpointStatus.
|
@@ -2243,6 +2315,30 @@ module TencentCloud
|
|
2243
2315
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2244
2316
|
end
|
2245
2317
|
|
2318
|
+
# 更新自定义账户
|
2319
|
+
|
2320
|
+
# @param request: Request instance for ModifyCustomAccount.
|
2321
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::ModifyCustomAccountRequest`
|
2322
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::ModifyCustomAccountResponse`
|
2323
|
+
def ModifyCustomAccount(request)
|
2324
|
+
body = send_request('ModifyCustomAccount', request.serialize)
|
2325
|
+
response = JSON.parse(body)
|
2326
|
+
if response['Response'].key?('Error') == false
|
2327
|
+
model = ModifyCustomAccountResponse.new
|
2328
|
+
model.deserialize(response['Response'])
|
2329
|
+
model
|
2330
|
+
else
|
2331
|
+
code = response['Response']['Error']['Code']
|
2332
|
+
message = response['Response']['Error']['Message']
|
2333
|
+
reqid = response['Response']['RequestId']
|
2334
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2335
|
+
end
|
2336
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2337
|
+
raise e
|
2338
|
+
rescue StandardError => e
|
2339
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2340
|
+
end
|
2341
|
+
|
2246
2342
|
# 更新镜像不可变规则
|
2247
2343
|
|
2248
2344
|
# @param request: Request instance for ModifyImmutableTagRules.
|
data/lib/v20190924/models.rb
CHANGED
@@ -338,6 +338,85 @@ module TencentCloud
|
|
338
338
|
end
|
339
339
|
end
|
340
340
|
|
341
|
+
# CreateCustomAccount请求参数结构体
|
342
|
+
class CreateCustomAccountRequest < TencentCloud::Common::AbstractModel
|
343
|
+
# @param RegistryId: 实例Id
|
344
|
+
# @type RegistryId: String
|
345
|
+
# @param Name: 自定义的账户名
|
346
|
+
# @type Name: String
|
347
|
+
# @param Permissions: 策略列表
|
348
|
+
# @type Permissions: Array
|
349
|
+
# @param Description: 自定义的账户描述
|
350
|
+
# @type Description: String
|
351
|
+
# @param Duration: 有效期(单位:天),从当前时间开始计算,优先级高于ExpiresAt
|
352
|
+
# @type Duration: Integer
|
353
|
+
# @param ExpiresAt: 自定义的账户过期时间(时间戳,单位:毫秒)
|
354
|
+
# @type ExpiresAt: Integer
|
355
|
+
# @param Disable: 是否禁用自定义的账户
|
356
|
+
# @type Disable: Boolean
|
357
|
+
|
358
|
+
attr_accessor :RegistryId, :Name, :Permissions, :Description, :Duration, :ExpiresAt, :Disable
|
359
|
+
|
360
|
+
def initialize(registryid=nil, name=nil, permissions=nil, description=nil, duration=nil, expiresat=nil, disable=nil)
|
361
|
+
@RegistryId = registryid
|
362
|
+
@Name = name
|
363
|
+
@Permissions = permissions
|
364
|
+
@Description = description
|
365
|
+
@Duration = duration
|
366
|
+
@ExpiresAt = expiresat
|
367
|
+
@Disable = disable
|
368
|
+
end
|
369
|
+
|
370
|
+
def deserialize(params)
|
371
|
+
@RegistryId = params['RegistryId']
|
372
|
+
@Name = params['Name']
|
373
|
+
unless params['Permissions'].nil?
|
374
|
+
@Permissions = []
|
375
|
+
params['Permissions'].each do |i|
|
376
|
+
permission_tmp = Permission.new
|
377
|
+
permission_tmp.deserialize(i)
|
378
|
+
@Permissions << permission_tmp
|
379
|
+
end
|
380
|
+
end
|
381
|
+
@Description = params['Description']
|
382
|
+
@Duration = params['Duration']
|
383
|
+
@ExpiresAt = params['ExpiresAt']
|
384
|
+
@Disable = params['Disable']
|
385
|
+
end
|
386
|
+
end
|
387
|
+
|
388
|
+
# CreateCustomAccount返回参数结构体
|
389
|
+
class CreateCustomAccountResponse < TencentCloud::Common::AbstractModel
|
390
|
+
# @param Name: 自定义用户名(会自动加上前缀tcr$)
|
391
|
+
# @type Name: String
|
392
|
+
# @param Password: 自定义用户密码,仅展示一次,请注意留存
|
393
|
+
# @type Password: String
|
394
|
+
# @param ExpiresAt: 自定义用户失效时间(时间戳)
|
395
|
+
# @type ExpiresAt: Integer
|
396
|
+
# @param CreateTime: 自定义用户创建时间
|
397
|
+
# @type CreateTime: String
|
398
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
399
|
+
# @type RequestId: String
|
400
|
+
|
401
|
+
attr_accessor :Name, :Password, :ExpiresAt, :CreateTime, :RequestId
|
402
|
+
|
403
|
+
def initialize(name=nil, password=nil, expiresat=nil, createtime=nil, requestid=nil)
|
404
|
+
@Name = name
|
405
|
+
@Password = password
|
406
|
+
@ExpiresAt = expiresat
|
407
|
+
@CreateTime = createtime
|
408
|
+
@RequestId = requestid
|
409
|
+
end
|
410
|
+
|
411
|
+
def deserialize(params)
|
412
|
+
@Name = params['Name']
|
413
|
+
@Password = params['Password']
|
414
|
+
@ExpiresAt = params['ExpiresAt']
|
415
|
+
@CreateTime = params['CreateTime']
|
416
|
+
@RequestId = params['RequestId']
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
341
420
|
# CreateImageAccelerationService请求参数结构体
|
342
421
|
class CreateImageAccelerationServiceRequest < TencentCloud::Common::AbstractModel
|
343
422
|
# @param RegistryId: 实例Id
|
@@ -1304,6 +1383,60 @@ module TencentCloud
|
|
1304
1383
|
end
|
1305
1384
|
end
|
1306
1385
|
|
1386
|
+
# 自定义账户
|
1387
|
+
class CustomAccount < TencentCloud::Common::AbstractModel
|
1388
|
+
# @param Name: 自定义账户名
|
1389
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1390
|
+
# @type Name: String
|
1391
|
+
# @param Description: 描述
|
1392
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1393
|
+
# @type Description: String
|
1394
|
+
# @param Disable: 是否禁用
|
1395
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1396
|
+
# @type Disable: Boolean
|
1397
|
+
# @param ExpiresAt: 过期时间
|
1398
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1399
|
+
# @type ExpiresAt: Integer
|
1400
|
+
# @param CreateTime: 创建时间
|
1401
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1402
|
+
# @type CreateTime: String
|
1403
|
+
# @param UpdateTime: 更新时间
|
1404
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1405
|
+
# @type UpdateTime: String
|
1406
|
+
# @param Permissions: 策略
|
1407
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1408
|
+
# @type Permissions: Array
|
1409
|
+
|
1410
|
+
attr_accessor :Name, :Description, :Disable, :ExpiresAt, :CreateTime, :UpdateTime, :Permissions
|
1411
|
+
|
1412
|
+
def initialize(name=nil, description=nil, disable=nil, expiresat=nil, createtime=nil, updatetime=nil, permissions=nil)
|
1413
|
+
@Name = name
|
1414
|
+
@Description = description
|
1415
|
+
@Disable = disable
|
1416
|
+
@ExpiresAt = expiresat
|
1417
|
+
@CreateTime = createtime
|
1418
|
+
@UpdateTime = updatetime
|
1419
|
+
@Permissions = permissions
|
1420
|
+
end
|
1421
|
+
|
1422
|
+
def deserialize(params)
|
1423
|
+
@Name = params['Name']
|
1424
|
+
@Description = params['Description']
|
1425
|
+
@Disable = params['Disable']
|
1426
|
+
@ExpiresAt = params['ExpiresAt']
|
1427
|
+
@CreateTime = params['CreateTime']
|
1428
|
+
@UpdateTime = params['UpdateTime']
|
1429
|
+
unless params['Permissions'].nil?
|
1430
|
+
@Permissions = []
|
1431
|
+
params['Permissions'].each do |i|
|
1432
|
+
permission_tmp = Permission.new
|
1433
|
+
permission_tmp.deserialize(i)
|
1434
|
+
@Permissions << permission_tmp
|
1435
|
+
end
|
1436
|
+
end
|
1437
|
+
end
|
1438
|
+
end
|
1439
|
+
|
1307
1440
|
# 自定义域名信息
|
1308
1441
|
class CustomizedDomainInfo < TencentCloud::Common::AbstractModel
|
1309
1442
|
# @param RegistryId: 实例ID
|
@@ -1364,6 +1497,42 @@ module TencentCloud
|
|
1364
1497
|
end
|
1365
1498
|
end
|
1366
1499
|
|
1500
|
+
# DeleteCustomAccount请求参数结构体
|
1501
|
+
class DeleteCustomAccountRequest < TencentCloud::Common::AbstractModel
|
1502
|
+
# @param RegistryId: 实例Id
|
1503
|
+
# @type RegistryId: String
|
1504
|
+
# @param Name: 自定义的账户名
|
1505
|
+
# @type Name: String
|
1506
|
+
|
1507
|
+
attr_accessor :RegistryId, :Name
|
1508
|
+
|
1509
|
+
def initialize(registryid=nil, name=nil)
|
1510
|
+
@RegistryId = registryid
|
1511
|
+
@Name = name
|
1512
|
+
end
|
1513
|
+
|
1514
|
+
def deserialize(params)
|
1515
|
+
@RegistryId = params['RegistryId']
|
1516
|
+
@Name = params['Name']
|
1517
|
+
end
|
1518
|
+
end
|
1519
|
+
|
1520
|
+
# DeleteCustomAccount返回参数结构体
|
1521
|
+
class DeleteCustomAccountResponse < TencentCloud::Common::AbstractModel
|
1522
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1523
|
+
# @type RequestId: String
|
1524
|
+
|
1525
|
+
attr_accessor :RequestId
|
1526
|
+
|
1527
|
+
def initialize(requestid=nil)
|
1528
|
+
@RequestId = requestid
|
1529
|
+
end
|
1530
|
+
|
1531
|
+
def deserialize(params)
|
1532
|
+
@RequestId = params['RequestId']
|
1533
|
+
end
|
1534
|
+
end
|
1535
|
+
|
1367
1536
|
# DeleteImageAccelerateService请求参数结构体
|
1368
1537
|
class DeleteImageAccelerateServiceRequest < TencentCloud::Common::AbstractModel
|
1369
1538
|
# @param RegistryId: 实例Id
|
@@ -2380,6 +2549,81 @@ module TencentCloud
|
|
2380
2549
|
end
|
2381
2550
|
end
|
2382
2551
|
|
2552
|
+
# DescribeCustomAccounts请求参数结构体
|
2553
|
+
class DescribeCustomAccountsRequest < TencentCloud::Common::AbstractModel
|
2554
|
+
# @param RegistryId: 实例Id
|
2555
|
+
# @type RegistryId: String
|
2556
|
+
# @param All: 列出所有自定义账户
|
2557
|
+
# @type All: Boolean
|
2558
|
+
# @param EmbedPermission: 填充策略
|
2559
|
+
# @type EmbedPermission: Boolean
|
2560
|
+
# @param Filters: 过滤条件
|
2561
|
+
# @type Filters: Array
|
2562
|
+
# @param Offset: 偏移量,默认0
|
2563
|
+
# @type Offset: Integer
|
2564
|
+
# @param Limit: 最大输出条数,默认20,最大为100
|
2565
|
+
# @type Limit: Integer
|
2566
|
+
|
2567
|
+
attr_accessor :RegistryId, :All, :EmbedPermission, :Filters, :Offset, :Limit
|
2568
|
+
|
2569
|
+
def initialize(registryid=nil, all=nil, embedpermission=nil, filters=nil, offset=nil, limit=nil)
|
2570
|
+
@RegistryId = registryid
|
2571
|
+
@All = all
|
2572
|
+
@EmbedPermission = embedpermission
|
2573
|
+
@Filters = filters
|
2574
|
+
@Offset = offset
|
2575
|
+
@Limit = limit
|
2576
|
+
end
|
2577
|
+
|
2578
|
+
def deserialize(params)
|
2579
|
+
@RegistryId = params['RegistryId']
|
2580
|
+
@All = params['All']
|
2581
|
+
@EmbedPermission = params['EmbedPermission']
|
2582
|
+
unless params['Filters'].nil?
|
2583
|
+
@Filters = []
|
2584
|
+
params['Filters'].each do |i|
|
2585
|
+
filter_tmp = Filter.new
|
2586
|
+
filter_tmp.deserialize(i)
|
2587
|
+
@Filters << filter_tmp
|
2588
|
+
end
|
2589
|
+
end
|
2590
|
+
@Offset = params['Offset']
|
2591
|
+
@Limit = params['Limit']
|
2592
|
+
end
|
2593
|
+
end
|
2594
|
+
|
2595
|
+
# DescribeCustomAccounts返回参数结构体
|
2596
|
+
class DescribeCustomAccountsResponse < TencentCloud::Common::AbstractModel
|
2597
|
+
# @param CustomAccounts: 自定义账户列表
|
2598
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2599
|
+
# @type CustomAccounts: Array
|
2600
|
+
# @param TotalCount: 自定义账户数量
|
2601
|
+
# @type TotalCount: Integer
|
2602
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2603
|
+
# @type RequestId: String
|
2604
|
+
|
2605
|
+
attr_accessor :CustomAccounts, :TotalCount, :RequestId
|
2606
|
+
|
2607
|
+
def initialize(customaccounts=nil, totalcount=nil, requestid=nil)
|
2608
|
+
@CustomAccounts = customaccounts
|
2609
|
+
@TotalCount = totalcount
|
2610
|
+
@RequestId = requestid
|
2611
|
+
end
|
2612
|
+
|
2613
|
+
def deserialize(params)
|
2614
|
+
unless params['CustomAccounts'].nil?
|
2615
|
+
@CustomAccounts = []
|
2616
|
+
params['CustomAccounts'].each do |i|
|
2617
|
+
customaccount_tmp = CustomAccount.new
|
2618
|
+
customaccount_tmp.deserialize(i)
|
2619
|
+
@CustomAccounts << customaccount_tmp
|
2620
|
+
end
|
2621
|
+
end
|
2622
|
+
@TotalCount = params['TotalCount']
|
2623
|
+
@RequestId = params['RequestId']
|
2624
|
+
end
|
2625
|
+
end
|
2626
|
+
|
2383
2627
|
# DescribeExternalEndpointStatus请求参数结构体
|
2384
2628
|
class DescribeExternalEndpointStatusRequest < TencentCloud::Common::AbstractModel
|
2385
2629
|
# @param RegistryId: 实例Id
|
@@ -4837,6 +5081,69 @@ module TencentCloud
|
|
4837
5081
|
end
|
4838
5082
|
end
|
4839
5083
|
|
5084
|
+
# ModifyCustomAccount请求参数结构体
|
5085
|
+
class ModifyCustomAccountRequest < TencentCloud::Common::AbstractModel
|
5086
|
+
# @param RegistryId: 实例Id
|
5087
|
+
# @type RegistryId: String
|
5088
|
+
# @param Name: 自定义的账户名
|
5089
|
+
# @type Name: String
|
5090
|
+
# @param Description: 自定义的账户描述
|
5091
|
+
# @type Description: String
|
5092
|
+
# @param Duration: 有效期(单位:天),从当前时间开始计算,优先级高于ExpiresAt
|
5093
|
+
# @type Duration: Integer
|
5094
|
+
# @param ExpiresAt: 自定义的账户过期时间(时间戳)
|
5095
|
+
# @type ExpiresAt: Integer
|
5096
|
+
# @param Disable: 是否禁用自定义的账户
|
5097
|
+
# @type Disable: Boolean
|
5098
|
+
# @param Permissions: 策略列表
|
5099
|
+
# @type Permissions: Array
|
5100
|
+
|
5101
|
+
attr_accessor :RegistryId, :Name, :Description, :Duration, :ExpiresAt, :Disable, :Permissions
|
5102
|
+
|
5103
|
+
def initialize(registryid=nil, name=nil, description=nil, duration=nil, expiresat=nil, disable=nil, permissions=nil)
|
5104
|
+
@RegistryId = registryid
|
5105
|
+
@Name = name
|
5106
|
+
@Description = description
|
5107
|
+
@Duration = duration
|
5108
|
+
@ExpiresAt = expiresat
|
5109
|
+
@Disable = disable
|
5110
|
+
@Permissions = permissions
|
5111
|
+
end
|
5112
|
+
|
5113
|
+
def deserialize(params)
|
5114
|
+
@RegistryId = params['RegistryId']
|
5115
|
+
@Name = params['Name']
|
5116
|
+
@Description = params['Description']
|
5117
|
+
@Duration = params['Duration']
|
5118
|
+
@ExpiresAt = params['ExpiresAt']
|
5119
|
+
@Disable = params['Disable']
|
5120
|
+
unless params['Permissions'].nil?
|
5121
|
+
@Permissions = []
|
5122
|
+
params['Permissions'].each do |i|
|
5123
|
+
permission_tmp = Permission.new
|
5124
|
+
permission_tmp.deserialize(i)
|
5125
|
+
@Permissions << permission_tmp
|
5126
|
+
end
|
5127
|
+
end
|
5128
|
+
end
|
5129
|
+
end
|
5130
|
+
|
5131
|
+
# ModifyCustomAccount返回参数结构体
|
5132
|
+
class ModifyCustomAccountResponse < TencentCloud::Common::AbstractModel
|
5133
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5134
|
+
# @type RequestId: String
|
5135
|
+
|
5136
|
+
attr_accessor :RequestId
|
5137
|
+
|
5138
|
+
def initialize(requestid=nil)
|
5139
|
+
@RequestId = requestid
|
5140
|
+
end
|
5141
|
+
|
5142
|
+
def deserialize(params)
|
5143
|
+
@RequestId = params['RequestId']
|
5144
|
+
end
|
5145
|
+
end
|
5146
|
+
|
4840
5147
|
# ModifyImmutableTagRules请求参数结构体
|
4841
5148
|
class ModifyImmutableTagRulesRequest < TencentCloud::Common::AbstractModel
|
4842
5149
|
# @param RegistryId: 实例 Id
|
@@ -5424,6 +5731,28 @@ module TencentCloud
|
|
5424
5731
|
end
|
5425
5732
|
end
|
5426
5733
|
|
5734
|
+
# 策略
|
5735
|
+
class Permission < TencentCloud::Common::AbstractModel
|
5736
|
+
# @param Resource: 资源路径,目前仅支持Namespace
|
5737
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5738
|
+
# @type Resource: String
|
5739
|
+
# @param Actions: 动作,目前仅支持:tcr:PushRepository、tcr:PullRepository
|
5740
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5741
|
+
# @type Actions: Array
|
5742
|
+
|
5743
|
+
attr_accessor :Resource, :Actions
|
5744
|
+
|
5745
|
+
def initialize(resource=nil, actions=nil)
|
5746
|
+
@Resource = resource
|
5747
|
+
@Actions = actions
|
5748
|
+
end
|
5749
|
+
|
5750
|
+
def deserialize(params)
|
5751
|
+
@Resource = params['Resource']
|
5752
|
+
@Actions = params['Actions']
|
5753
|
+
end
|
5754
|
+
end
|
5755
|
+
|
5427
5756
|
# 地域信息
|
5428
5757
|
class Region < TencentCloud::Common::AbstractModel
|
5429
5758
|
# @param Alias: gz
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tcr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.602
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|