tencentcloud-sdk-tcr 3.0.1203 → 3.0.1209

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190924/models.rb +131 -41
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a154260e2b3e4ec486b83789fde848377dbb4aa2
4
- data.tar.gz: cfb4ed6667d0148ae5b9fc52a94bc4dcd6962adc
3
+ metadata.gz: 975c1c36fcf66f2ecc7cf859e4ede4b12547b58a
4
+ data.tar.gz: 5e1ca09008bc73df1222320ad30f799917dce2d0
5
5
  SHA512:
6
- metadata.gz: d6b7b7456741fe0a87cc61fb5eabaebdd82335ad551e417a2eff5e7c544181d73abf6cdbf45c44774eda89c305b0c449debef3c9f978fc511a85b77cd299ceb7
7
- data.tar.gz: 88aeb9da60ab5bc0be3d87ed598d05408d7682d7d1f3ccb610583941ad76fa0ebec68c20978138734a4c3a94cd4fc799dbc2b564681c350b485cd06253b60f60
6
+ metadata.gz: 0eac9ff4914ee2b2b84cd151ebb464ffc2b4722ac72b2f3791c4db3b8ade5d4d5ff46ba49ce353571a4c52a3b427af5a7d4e1928e3a2c1f5146a8a4665fa741e
7
+ data.tar.gz: 7a628c330635339fa9d3322fdb8722a296ab75650443e968f501afebfadeacd0006ba9f2576551a47e2f880a12004660200a7f22897de5dafe0e681605430f51
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1203
1
+ 3.0.1209
@@ -1218,35 +1218,46 @@ module TencentCloud
1218
1218
 
1219
1219
  # CreateTagRetentionRule请求参数结构体
1220
1220
  class CreateTagRetentionRuleRequest < TencentCloud::Common::AbstractModel
1221
- # @param RegistryId: 主实例iD
1221
+ # @param RegistryId: <p>主实例iD</p>
1222
1222
  # @type RegistryId: String
1223
- # @param NamespaceId: 命名空间的Id
1223
+ # @param NamespaceId: <p>命名空间的Id</p>
1224
1224
  # @type NamespaceId: Integer
1225
- # @param RetentionRule: 保留策略
1226
- # @type RetentionRule: :class:`Tencentcloud::Tcr.v20190924.models.RetentionRule`
1227
- # @param CronSetting: 执行周期,当前只能选择: manual;daily;weekly;monthly
1225
+ # @param CronSetting: <p>执行周期,当前只能选择: manual;daily;weekly;monthly</p>
1228
1226
  # @type CronSetting: String
1229
- # @param Disabled: 是否禁用规则,默认值为false
1227
+ # @param RetentionRule: <p>保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
1228
+ # @type RetentionRule: :class:`Tencentcloud::Tcr.v20190924.models.RetentionRule`
1229
+ # @param AdvancedRuleItems: <p>高级版本保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
1230
+ # @type AdvancedRuleItems: Array
1231
+ # @param Disabled: <p>是否禁用规则,默认值为false</p>
1230
1232
  # @type Disabled: Boolean
1231
1233
 
1232
- attr_accessor :RegistryId, :NamespaceId, :RetentionRule, :CronSetting, :Disabled
1234
+ attr_accessor :RegistryId, :NamespaceId, :CronSetting, :RetentionRule, :AdvancedRuleItems, :Disabled
1233
1235
 
1234
- def initialize(registryid=nil, namespaceid=nil, retentionrule=nil, cronsetting=nil, disabled=nil)
1236
+ def initialize(registryid=nil, namespaceid=nil, cronsetting=nil, retentionrule=nil, advancedruleitems=nil, disabled=nil)
1235
1237
  @RegistryId = registryid
1236
1238
  @NamespaceId = namespaceid
1237
- @RetentionRule = retentionrule
1238
1239
  @CronSetting = cronsetting
1240
+ @RetentionRule = retentionrule
1241
+ @AdvancedRuleItems = advancedruleitems
1239
1242
  @Disabled = disabled
1240
1243
  end
1241
1244
 
1242
1245
  def deserialize(params)
1243
1246
  @RegistryId = params['RegistryId']
1244
1247
  @NamespaceId = params['NamespaceId']
1248
+ @CronSetting = params['CronSetting']
1245
1249
  unless params['RetentionRule'].nil?
1246
1250
  @RetentionRule = RetentionRule.new
1247
1251
  @RetentionRule.deserialize(params['RetentionRule'])
1248
1252
  end
1249
- @CronSetting = params['CronSetting']
1253
+ unless params['AdvancedRuleItems'].nil?
1254
+ @AdvancedRuleItems = []
1255
+ params['AdvancedRuleItems'].each do |i|
1256
+ retentionruleitem_tmp = RetentionRuleItem.new
1257
+ retentionruleitem_tmp.deserialize(i)
1258
+ @AdvancedRuleItems << retentionruleitem_tmp
1259
+ end
1260
+ end
1250
1261
  @Disabled = params['Disabled']
1251
1262
  end
1252
1263
  end
@@ -1982,25 +1993,29 @@ module TencentCloud
1982
1993
 
1983
1994
  # DeleteRepository请求参数结构体
1984
1995
  class DeleteRepositoryRequest < TencentCloud::Common::AbstractModel
1985
- # @param RegistryId: 实例Id
1996
+ # @param RegistryId: <p>实例Id</p>
1986
1997
  # @type RegistryId: String
1987
- # @param NamespaceName: 命名空间的名称
1998
+ # @param NamespaceName: <p>命名空间的名称</p>
1988
1999
  # @type NamespaceName: String
1989
- # @param RepositoryName: 镜像仓库的名称
2000
+ # @param RepositoryName: <p>镜像仓库的名称</p>
1990
2001
  # @type RepositoryName: String
2002
+ # @param ForceDelete: <p>默认值为true,表示无论仓库是否存在镜像都直接删除;false代表删除仓库前需检查是否存在镜像。</p>
2003
+ # @type ForceDelete: Boolean
1991
2004
 
1992
- attr_accessor :RegistryId, :NamespaceName, :RepositoryName
2005
+ attr_accessor :RegistryId, :NamespaceName, :RepositoryName, :ForceDelete
1993
2006
 
1994
- def initialize(registryid=nil, namespacename=nil, repositoryname=nil)
2007
+ def initialize(registryid=nil, namespacename=nil, repositoryname=nil, forcedelete=nil)
1995
2008
  @RegistryId = registryid
1996
2009
  @NamespaceName = namespacename
1997
2010
  @RepositoryName = repositoryname
2011
+ @ForceDelete = forcedelete
1998
2012
  end
1999
2013
 
2000
2014
  def deserialize(params)
2001
2015
  @RegistryId = params['RegistryId']
2002
2016
  @NamespaceName = params['NamespaceName']
2003
2017
  @RepositoryName = params['RepositoryName']
2018
+ @ForceDelete = params['ForceDelete']
2004
2019
  end
2005
2020
  end
2006
2021
 
@@ -4223,13 +4238,13 @@ module TencentCloud
4223
4238
 
4224
4239
  # DescribeTagRetentionRules请求参数结构体
4225
4240
  class DescribeTagRetentionRulesRequest < TencentCloud::Common::AbstractModel
4226
- # @param RegistryId: 主实例iD
4241
+ # @param RegistryId: <p>主实例iD</p>
4227
4242
  # @type RegistryId: String
4228
- # @param NamespaceName: 命名空间的名称
4243
+ # @param NamespaceName: <p>命名空间的名称</p>
4229
4244
  # @type NamespaceName: String
4230
- # @param Limit: 分页PageSize
4245
+ # @param Limit: <p>分页PageSize</p>
4231
4246
  # @type Limit: Integer
4232
- # @param Offset: 分页Page
4247
+ # @param Offset: <p>分页Page</p>
4233
4248
  # @type Offset: Integer
4234
4249
 
4235
4250
  attr_accessor :RegistryId, :NamespaceName, :Limit, :Offset
@@ -4251,9 +4266,9 @@ module TencentCloud
4251
4266
 
4252
4267
  # DescribeTagRetentionRules返回参数结构体
4253
4268
  class DescribeTagRetentionRulesResponse < TencentCloud::Common::AbstractModel
4254
- # @param RetentionPolicyList: 版本保留策略列表
4269
+ # @param RetentionPolicyList: <p>版本保留策略列表</p>
4255
4270
  # @type RetentionPolicyList: Array
4256
- # @param TotalCount: 版本保留策略总数
4271
+ # @param TotalCount: <p>版本保留策略总数</p>
4257
4272
  # @type TotalCount: Integer
4258
4273
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4259
4274
  # @type RequestId: String
@@ -4730,6 +4745,26 @@ module TencentCloud
4730
4745
  end
4731
4746
  end
4732
4747
 
4748
+ # 过滤选择器
4749
+ class FilterSelector < TencentCloud::Common::AbstractModel
4750
+ # @param Decoration: <p>过滤规则类型,在tag过滤中,可选值为matches(匹配),excludes(排除),在仓库过滤中,可选值为repoMatches(仓库匹配),repoExcludes(仓库排除)</p>
4751
+ # @type Decoration: String
4752
+ # @param Pattern: <p>过滤表达式</p>
4753
+ # @type Pattern: String
4754
+
4755
+ attr_accessor :Decoration, :Pattern
4756
+
4757
+ def initialize(decoration=nil, pattern=nil)
4758
+ @Decoration = decoration
4759
+ @Pattern = pattern
4760
+ end
4761
+
4762
+ def deserialize(params)
4763
+ @Decoration = params['Decoration']
4764
+ @Pattern = params['Pattern']
4765
+ end
4766
+ end
4767
+
4733
4768
  # GC 执行信息
4734
4769
  class GCJobInfo < TencentCloud::Common::AbstractModel
4735
4770
  # @param ID: 作业 ID
@@ -5653,39 +5688,50 @@ module TencentCloud
5653
5688
 
5654
5689
  # ModifyTagRetentionRule请求参数结构体
5655
5690
  class ModifyTagRetentionRuleRequest < TencentCloud::Common::AbstractModel
5656
- # @param RegistryId: 主实例iD
5691
+ # @param RegistryId: <p>主实例iD</p>
5657
5692
  # @type RegistryId: String
5658
- # @param NamespaceId: 命名空间的Id,必须填写原有的命名空间id
5693
+ # @param NamespaceId: <p>命名空间的Id,必须填写原有的命名空间id</p>
5659
5694
  # @type NamespaceId: Integer
5660
- # @param RetentionRule: 保留策略
5661
- # @type RetentionRule: :class:`Tencentcloud::Tcr.v20190924.models.RetentionRule`
5662
- # @param CronSetting: 执行周期,必须填写为原来的设置
5695
+ # @param CronSetting: <p>执行周期,必须填写为原来的设置</p>
5663
5696
  # @type CronSetting: String
5664
- # @param RetentionId: 规则Id
5697
+ # @param RetentionId: <p>规则Id</p>
5665
5698
  # @type RetentionId: Integer
5666
- # @param Disabled: 是否禁用规则
5699
+ # @param RetentionRule: <p>保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
5700
+ # @type RetentionRule: :class:`Tencentcloud::Tcr.v20190924.models.RetentionRule`
5701
+ # @param AdvancedRuleItems: <p>高级保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
5702
+ # @type AdvancedRuleItems: Array
5703
+ # @param Disabled: <p>是否禁用规则</p>
5667
5704
  # @type Disabled: Boolean
5668
5705
 
5669
- attr_accessor :RegistryId, :NamespaceId, :RetentionRule, :CronSetting, :RetentionId, :Disabled
5706
+ attr_accessor :RegistryId, :NamespaceId, :CronSetting, :RetentionId, :RetentionRule, :AdvancedRuleItems, :Disabled
5670
5707
 
5671
- def initialize(registryid=nil, namespaceid=nil, retentionrule=nil, cronsetting=nil, retentionid=nil, disabled=nil)
5708
+ def initialize(registryid=nil, namespaceid=nil, cronsetting=nil, retentionid=nil, retentionrule=nil, advancedruleitems=nil, disabled=nil)
5672
5709
  @RegistryId = registryid
5673
5710
  @NamespaceId = namespaceid
5674
- @RetentionRule = retentionrule
5675
5711
  @CronSetting = cronsetting
5676
5712
  @RetentionId = retentionid
5713
+ @RetentionRule = retentionrule
5714
+ @AdvancedRuleItems = advancedruleitems
5677
5715
  @Disabled = disabled
5678
5716
  end
5679
5717
 
5680
5718
  def deserialize(params)
5681
5719
  @RegistryId = params['RegistryId']
5682
5720
  @NamespaceId = params['NamespaceId']
5721
+ @CronSetting = params['CronSetting']
5722
+ @RetentionId = params['RetentionId']
5683
5723
  unless params['RetentionRule'].nil?
5684
5724
  @RetentionRule = RetentionRule.new
5685
5725
  @RetentionRule.deserialize(params['RetentionRule'])
5686
5726
  end
5687
- @CronSetting = params['CronSetting']
5688
- @RetentionId = params['RetentionId']
5727
+ unless params['AdvancedRuleItems'].nil?
5728
+ @AdvancedRuleItems = []
5729
+ params['AdvancedRuleItems'].each do |i|
5730
+ retentionruleitem_tmp = RetentionRuleItem.new
5731
+ retentionruleitem_tmp.deserialize(i)
5732
+ @AdvancedRuleItems << retentionruleitem_tmp
5733
+ end
5734
+ end
5689
5735
  @Disabled = params['Disabled']
5690
5736
  end
5691
5737
  end
@@ -6586,25 +6632,28 @@ module TencentCloud
6586
6632
 
6587
6633
  # 版本保留策略
6588
6634
  class RetentionPolicy < TencentCloud::Common::AbstractModel
6589
- # @param RetentionId: 版本保留策略Id
6635
+ # @param RetentionId: <p>版本保留策略Id</p>
6590
6636
  # @type RetentionId: Integer
6591
- # @param NamespaceName: 命名空间的名称
6637
+ # @param NamespaceName: <p>命名空间的名称</p>
6592
6638
  # @type NamespaceName: String
6593
- # @param RetentionRuleList: 规则列表
6639
+ # @param RetentionRuleList: <p>规则列表</p>
6594
6640
  # @type RetentionRuleList: Array
6595
- # @param CronSetting: 定期执行方式
6641
+ # @param AdvancedRuleItems: <p>高级保留规则列表</p>
6642
+ # @type AdvancedRuleItems: Array
6643
+ # @param CronSetting: <p>定期执行方式</p>
6596
6644
  # @type CronSetting: String
6597
- # @param Disabled: 是否启用规则
6645
+ # @param Disabled: <p>是否启用规则</p>
6598
6646
  # @type Disabled: Boolean
6599
- # @param NextExecutionTime: 基于当前时间根据cronSetting后下一次任务要执行的时间,仅做参考使用
6647
+ # @param NextExecutionTime: <p>基于当前时间根据cronSetting后下一次任务要执行的时间,仅做参考使用</p>
6600
6648
  # @type NextExecutionTime: String
6601
6649
 
6602
- attr_accessor :RetentionId, :NamespaceName, :RetentionRuleList, :CronSetting, :Disabled, :NextExecutionTime
6650
+ attr_accessor :RetentionId, :NamespaceName, :RetentionRuleList, :AdvancedRuleItems, :CronSetting, :Disabled, :NextExecutionTime
6603
6651
 
6604
- def initialize(retentionid=nil, namespacename=nil, retentionrulelist=nil, cronsetting=nil, disabled=nil, nextexecutiontime=nil)
6652
+ def initialize(retentionid=nil, namespacename=nil, retentionrulelist=nil, advancedruleitems=nil, cronsetting=nil, disabled=nil, nextexecutiontime=nil)
6605
6653
  @RetentionId = retentionid
6606
6654
  @NamespaceName = namespacename
6607
6655
  @RetentionRuleList = retentionrulelist
6656
+ @AdvancedRuleItems = advancedruleitems
6608
6657
  @CronSetting = cronsetting
6609
6658
  @Disabled = disabled
6610
6659
  @NextExecutionTime = nextexecutiontime
@@ -6621,6 +6670,14 @@ module TencentCloud
6621
6670
  @RetentionRuleList << retentionrule_tmp
6622
6671
  end
6623
6672
  end
6673
+ unless params['AdvancedRuleItems'].nil?
6674
+ @AdvancedRuleItems = []
6675
+ params['AdvancedRuleItems'].each do |i|
6676
+ retentionruleitem_tmp = RetentionRuleItem.new
6677
+ retentionruleitem_tmp.deserialize(i)
6678
+ @AdvancedRuleItems << retentionruleitem_tmp
6679
+ end
6680
+ end
6624
6681
  @CronSetting = params['CronSetting']
6625
6682
  @Disabled = params['Disabled']
6626
6683
  @NextExecutionTime = params['NextExecutionTime']
@@ -6647,6 +6704,39 @@ module TencentCloud
6647
6704
  end
6648
6705
  end
6649
6706
 
6707
+ # 版本保留规则
6708
+ class RetentionRuleItem < TencentCloud::Common::AbstractModel
6709
+ # @param RetentionPolicy: <p>版本保留规则</p>
6710
+ # @type RetentionPolicy: :class:`Tencentcloud::Tcr.v20190924.models.RetentionRule`
6711
+ # @param TagFilter: <p>标签过滤器</p>
6712
+ # @type TagFilter: :class:`Tencentcloud::Tcr.v20190924.models.FilterSelector`
6713
+ # @param RepositoryFilter: <p>仓库过滤器</p>
6714
+ # @type RepositoryFilter: :class:`Tencentcloud::Tcr.v20190924.models.FilterSelector`
6715
+
6716
+ attr_accessor :RetentionPolicy, :TagFilter, :RepositoryFilter
6717
+
6718
+ def initialize(retentionpolicy=nil, tagfilter=nil, repositoryfilter=nil)
6719
+ @RetentionPolicy = retentionpolicy
6720
+ @TagFilter = tagfilter
6721
+ @RepositoryFilter = repositoryfilter
6722
+ end
6723
+
6724
+ def deserialize(params)
6725
+ unless params['RetentionPolicy'].nil?
6726
+ @RetentionPolicy = RetentionRule.new
6727
+ @RetentionPolicy.deserialize(params['RetentionPolicy'])
6728
+ end
6729
+ unless params['TagFilter'].nil?
6730
+ @TagFilter = FilterSelector.new
6731
+ @TagFilter.deserialize(params['TagFilter'])
6732
+ end
6733
+ unless params['RepositoryFilter'].nil?
6734
+ @RepositoryFilter = FilterSelector.new
6735
+ @RepositoryFilter.deserialize(params['RepositoryFilter'])
6736
+ end
6737
+ end
6738
+ end
6739
+
6650
6740
  # 版本保留执行的规则
6651
6741
  class RetentionTask < TencentCloud::Common::AbstractModel
6652
6742
  # @param TaskId: 任务Id
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.1203
4
+ version: 3.0.1209
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-18 00:00:00.000000000 Z
11
+ date: 2026-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common