tencentcloud-sdk-python-tcr 3.1.33__tar.gz → 3.1.39__tar.gz
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.
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/setup.py +1 -1
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/tencentcloud/tcr/v20190924/models.py +273 -75
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/tencentcloud_sdk_python_tcr.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tcr-3.1.39/tencentcloud_sdk_python_tcr.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tcr-3.1.33/tencentcloud_sdk_python_tcr.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/README.rst +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/tencentcloud/tcr/__init__.py +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/tencentcloud/tcr/v20190924/__init__.py +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/tencentcloud/tcr/v20190924/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/tencentcloud/tcr/v20190924/tcr_client.py +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/tencentcloud/tcr/v20190924/tcr_client_async.py +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/tencentcloud_sdk_python_tcr.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/tencentcloud_sdk_python_tcr.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.39}/tencentcloud_sdk_python_tcr.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tcr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.39
|
|
4
4
|
Summary: Tencent Cloud Tcr SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.39
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-tcr',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.39,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tcr SDK for Python',
|
|
@@ -3055,26 +3055,29 @@ class CreateTagRetentionRuleRequest(AbstractModel):
|
|
|
3055
3055
|
|
|
3056
3056
|
def __init__(self):
|
|
3057
3057
|
r"""
|
|
3058
|
-
:param _RegistryId:
|
|
3058
|
+
:param _RegistryId: <p>主实例iD</p>
|
|
3059
3059
|
:type RegistryId: str
|
|
3060
|
-
:param _NamespaceId:
|
|
3060
|
+
:param _NamespaceId: <p>命名空间的Id</p>
|
|
3061
3061
|
:type NamespaceId: int
|
|
3062
|
-
:param
|
|
3063
|
-
:type RetentionRule: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
3064
|
-
:param _CronSetting: 执行周期,当前只能选择: manual;daily;weekly;monthly
|
|
3062
|
+
:param _CronSetting: <p>执行周期,当前只能选择: manual;daily;weekly;monthly</p>
|
|
3065
3063
|
:type CronSetting: str
|
|
3066
|
-
:param
|
|
3064
|
+
:param _RetentionRule: <p>保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
3065
|
+
:type RetentionRule: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
3066
|
+
:param _AdvancedRuleItems: <p>高级版本保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
3067
|
+
:type AdvancedRuleItems: list of RetentionRuleItem
|
|
3068
|
+
:param _Disabled: <p>是否禁用规则,默认值为false</p>
|
|
3067
3069
|
:type Disabled: bool
|
|
3068
3070
|
"""
|
|
3069
3071
|
self._RegistryId = None
|
|
3070
3072
|
self._NamespaceId = None
|
|
3071
|
-
self._RetentionRule = None
|
|
3072
3073
|
self._CronSetting = None
|
|
3074
|
+
self._RetentionRule = None
|
|
3075
|
+
self._AdvancedRuleItems = None
|
|
3073
3076
|
self._Disabled = None
|
|
3074
3077
|
|
|
3075
3078
|
@property
|
|
3076
3079
|
def RegistryId(self):
|
|
3077
|
-
r"""
|
|
3080
|
+
r"""<p>主实例iD</p>
|
|
3078
3081
|
:rtype: str
|
|
3079
3082
|
"""
|
|
3080
3083
|
return self._RegistryId
|
|
@@ -3085,7 +3088,7 @@ class CreateTagRetentionRuleRequest(AbstractModel):
|
|
|
3085
3088
|
|
|
3086
3089
|
@property
|
|
3087
3090
|
def NamespaceId(self):
|
|
3088
|
-
r"""
|
|
3091
|
+
r"""<p>命名空间的Id</p>
|
|
3089
3092
|
:rtype: int
|
|
3090
3093
|
"""
|
|
3091
3094
|
return self._NamespaceId
|
|
@@ -3094,9 +3097,20 @@ class CreateTagRetentionRuleRequest(AbstractModel):
|
|
|
3094
3097
|
def NamespaceId(self, NamespaceId):
|
|
3095
3098
|
self._NamespaceId = NamespaceId
|
|
3096
3099
|
|
|
3100
|
+
@property
|
|
3101
|
+
def CronSetting(self):
|
|
3102
|
+
r"""<p>执行周期,当前只能选择: manual;daily;weekly;monthly</p>
|
|
3103
|
+
:rtype: str
|
|
3104
|
+
"""
|
|
3105
|
+
return self._CronSetting
|
|
3106
|
+
|
|
3107
|
+
@CronSetting.setter
|
|
3108
|
+
def CronSetting(self, CronSetting):
|
|
3109
|
+
self._CronSetting = CronSetting
|
|
3110
|
+
|
|
3097
3111
|
@property
|
|
3098
3112
|
def RetentionRule(self):
|
|
3099
|
-
r"""
|
|
3113
|
+
r"""<p>保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
3100
3114
|
:rtype: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
3101
3115
|
"""
|
|
3102
3116
|
return self._RetentionRule
|
|
@@ -3106,19 +3120,19 @@ class CreateTagRetentionRuleRequest(AbstractModel):
|
|
|
3106
3120
|
self._RetentionRule = RetentionRule
|
|
3107
3121
|
|
|
3108
3122
|
@property
|
|
3109
|
-
def
|
|
3110
|
-
r"""
|
|
3111
|
-
:rtype:
|
|
3123
|
+
def AdvancedRuleItems(self):
|
|
3124
|
+
r"""<p>高级版本保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
3125
|
+
:rtype: list of RetentionRuleItem
|
|
3112
3126
|
"""
|
|
3113
|
-
return self.
|
|
3127
|
+
return self._AdvancedRuleItems
|
|
3114
3128
|
|
|
3115
|
-
@
|
|
3116
|
-
def
|
|
3117
|
-
self.
|
|
3129
|
+
@AdvancedRuleItems.setter
|
|
3130
|
+
def AdvancedRuleItems(self, AdvancedRuleItems):
|
|
3131
|
+
self._AdvancedRuleItems = AdvancedRuleItems
|
|
3118
3132
|
|
|
3119
3133
|
@property
|
|
3120
3134
|
def Disabled(self):
|
|
3121
|
-
r"""
|
|
3135
|
+
r"""<p>是否禁用规则,默认值为false</p>
|
|
3122
3136
|
:rtype: bool
|
|
3123
3137
|
"""
|
|
3124
3138
|
return self._Disabled
|
|
@@ -3131,10 +3145,16 @@ class CreateTagRetentionRuleRequest(AbstractModel):
|
|
|
3131
3145
|
def _deserialize(self, params):
|
|
3132
3146
|
self._RegistryId = params.get("RegistryId")
|
|
3133
3147
|
self._NamespaceId = params.get("NamespaceId")
|
|
3148
|
+
self._CronSetting = params.get("CronSetting")
|
|
3134
3149
|
if params.get("RetentionRule") is not None:
|
|
3135
3150
|
self._RetentionRule = RetentionRule()
|
|
3136
3151
|
self._RetentionRule._deserialize(params.get("RetentionRule"))
|
|
3137
|
-
|
|
3152
|
+
if params.get("AdvancedRuleItems") is not None:
|
|
3153
|
+
self._AdvancedRuleItems = []
|
|
3154
|
+
for item in params.get("AdvancedRuleItems"):
|
|
3155
|
+
obj = RetentionRuleItem()
|
|
3156
|
+
obj._deserialize(item)
|
|
3157
|
+
self._AdvancedRuleItems.append(obj)
|
|
3138
3158
|
self._Disabled = params.get("Disabled")
|
|
3139
3159
|
memeber_set = set(params.keys())
|
|
3140
3160
|
for name, value in vars(self).items():
|
|
@@ -4770,20 +4790,23 @@ class DeleteRepositoryRequest(AbstractModel):
|
|
|
4770
4790
|
|
|
4771
4791
|
def __init__(self):
|
|
4772
4792
|
r"""
|
|
4773
|
-
:param _RegistryId:
|
|
4793
|
+
:param _RegistryId: <p>实例Id</p>
|
|
4774
4794
|
:type RegistryId: str
|
|
4775
|
-
:param _NamespaceName:
|
|
4795
|
+
:param _NamespaceName: <p>命名空间的名称</p>
|
|
4776
4796
|
:type NamespaceName: str
|
|
4777
|
-
:param _RepositoryName:
|
|
4797
|
+
:param _RepositoryName: <p>镜像仓库的名称</p>
|
|
4778
4798
|
:type RepositoryName: str
|
|
4799
|
+
:param _ForceDelete: <p>默认值为true,表示无论仓库是否存在镜像都直接删除;false代表删除仓库前需检查是否存在镜像。</p>
|
|
4800
|
+
:type ForceDelete: bool
|
|
4779
4801
|
"""
|
|
4780
4802
|
self._RegistryId = None
|
|
4781
4803
|
self._NamespaceName = None
|
|
4782
4804
|
self._RepositoryName = None
|
|
4805
|
+
self._ForceDelete = None
|
|
4783
4806
|
|
|
4784
4807
|
@property
|
|
4785
4808
|
def RegistryId(self):
|
|
4786
|
-
r"""
|
|
4809
|
+
r"""<p>实例Id</p>
|
|
4787
4810
|
:rtype: str
|
|
4788
4811
|
"""
|
|
4789
4812
|
return self._RegistryId
|
|
@@ -4794,7 +4817,7 @@ class DeleteRepositoryRequest(AbstractModel):
|
|
|
4794
4817
|
|
|
4795
4818
|
@property
|
|
4796
4819
|
def NamespaceName(self):
|
|
4797
|
-
r"""
|
|
4820
|
+
r"""<p>命名空间的名称</p>
|
|
4798
4821
|
:rtype: str
|
|
4799
4822
|
"""
|
|
4800
4823
|
return self._NamespaceName
|
|
@@ -4805,7 +4828,7 @@ class DeleteRepositoryRequest(AbstractModel):
|
|
|
4805
4828
|
|
|
4806
4829
|
@property
|
|
4807
4830
|
def RepositoryName(self):
|
|
4808
|
-
r"""
|
|
4831
|
+
r"""<p>镜像仓库的名称</p>
|
|
4809
4832
|
:rtype: str
|
|
4810
4833
|
"""
|
|
4811
4834
|
return self._RepositoryName
|
|
@@ -4814,11 +4837,23 @@ class DeleteRepositoryRequest(AbstractModel):
|
|
|
4814
4837
|
def RepositoryName(self, RepositoryName):
|
|
4815
4838
|
self._RepositoryName = RepositoryName
|
|
4816
4839
|
|
|
4840
|
+
@property
|
|
4841
|
+
def ForceDelete(self):
|
|
4842
|
+
r"""<p>默认值为true,表示无论仓库是否存在镜像都直接删除;false代表删除仓库前需检查是否存在镜像。</p>
|
|
4843
|
+
:rtype: bool
|
|
4844
|
+
"""
|
|
4845
|
+
return self._ForceDelete
|
|
4846
|
+
|
|
4847
|
+
@ForceDelete.setter
|
|
4848
|
+
def ForceDelete(self, ForceDelete):
|
|
4849
|
+
self._ForceDelete = ForceDelete
|
|
4850
|
+
|
|
4817
4851
|
|
|
4818
4852
|
def _deserialize(self, params):
|
|
4819
4853
|
self._RegistryId = params.get("RegistryId")
|
|
4820
4854
|
self._NamespaceName = params.get("NamespaceName")
|
|
4821
4855
|
self._RepositoryName = params.get("RepositoryName")
|
|
4856
|
+
self._ForceDelete = params.get("ForceDelete")
|
|
4822
4857
|
memeber_set = set(params.keys())
|
|
4823
4858
|
for name, value in vars(self).items():
|
|
4824
4859
|
property_name = name[1:]
|
|
@@ -10011,13 +10046,13 @@ class DescribeTagRetentionRulesRequest(AbstractModel):
|
|
|
10011
10046
|
|
|
10012
10047
|
def __init__(self):
|
|
10013
10048
|
r"""
|
|
10014
|
-
:param _RegistryId:
|
|
10049
|
+
:param _RegistryId: <p>主实例iD</p>
|
|
10015
10050
|
:type RegistryId: str
|
|
10016
|
-
:param _NamespaceName:
|
|
10051
|
+
:param _NamespaceName: <p>命名空间的名称</p>
|
|
10017
10052
|
:type NamespaceName: str
|
|
10018
|
-
:param _Limit:
|
|
10053
|
+
:param _Limit: <p>分页PageSize</p>
|
|
10019
10054
|
:type Limit: int
|
|
10020
|
-
:param _Offset:
|
|
10055
|
+
:param _Offset: <p>分页Page</p>
|
|
10021
10056
|
:type Offset: int
|
|
10022
10057
|
"""
|
|
10023
10058
|
self._RegistryId = None
|
|
@@ -10027,7 +10062,7 @@ class DescribeTagRetentionRulesRequest(AbstractModel):
|
|
|
10027
10062
|
|
|
10028
10063
|
@property
|
|
10029
10064
|
def RegistryId(self):
|
|
10030
|
-
r"""
|
|
10065
|
+
r"""<p>主实例iD</p>
|
|
10031
10066
|
:rtype: str
|
|
10032
10067
|
"""
|
|
10033
10068
|
return self._RegistryId
|
|
@@ -10038,7 +10073,7 @@ class DescribeTagRetentionRulesRequest(AbstractModel):
|
|
|
10038
10073
|
|
|
10039
10074
|
@property
|
|
10040
10075
|
def NamespaceName(self):
|
|
10041
|
-
r"""
|
|
10076
|
+
r"""<p>命名空间的名称</p>
|
|
10042
10077
|
:rtype: str
|
|
10043
10078
|
"""
|
|
10044
10079
|
return self._NamespaceName
|
|
@@ -10049,7 +10084,7 @@ class DescribeTagRetentionRulesRequest(AbstractModel):
|
|
|
10049
10084
|
|
|
10050
10085
|
@property
|
|
10051
10086
|
def Limit(self):
|
|
10052
|
-
r"""
|
|
10087
|
+
r"""<p>分页PageSize</p>
|
|
10053
10088
|
:rtype: int
|
|
10054
10089
|
"""
|
|
10055
10090
|
return self._Limit
|
|
@@ -10060,7 +10095,7 @@ class DescribeTagRetentionRulesRequest(AbstractModel):
|
|
|
10060
10095
|
|
|
10061
10096
|
@property
|
|
10062
10097
|
def Offset(self):
|
|
10063
|
-
r"""
|
|
10098
|
+
r"""<p>分页Page</p>
|
|
10064
10099
|
:rtype: int
|
|
10065
10100
|
"""
|
|
10066
10101
|
return self._Offset
|
|
@@ -10092,9 +10127,9 @@ class DescribeTagRetentionRulesResponse(AbstractModel):
|
|
|
10092
10127
|
|
|
10093
10128
|
def __init__(self):
|
|
10094
10129
|
r"""
|
|
10095
|
-
:param _RetentionPolicyList:
|
|
10130
|
+
:param _RetentionPolicyList: <p>版本保留策略列表</p>
|
|
10096
10131
|
:type RetentionPolicyList: list of RetentionPolicy
|
|
10097
|
-
:param _TotalCount:
|
|
10132
|
+
:param _TotalCount: <p>版本保留策略总数</p>
|
|
10098
10133
|
:type TotalCount: int
|
|
10099
10134
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10100
10135
|
:type RequestId: str
|
|
@@ -10105,7 +10140,7 @@ class DescribeTagRetentionRulesResponse(AbstractModel):
|
|
|
10105
10140
|
|
|
10106
10141
|
@property
|
|
10107
10142
|
def RetentionPolicyList(self):
|
|
10108
|
-
r"""
|
|
10143
|
+
r"""<p>版本保留策略列表</p>
|
|
10109
10144
|
:rtype: list of RetentionPolicy
|
|
10110
10145
|
"""
|
|
10111
10146
|
return self._RetentionPolicyList
|
|
@@ -10116,7 +10151,7 @@ class DescribeTagRetentionRulesResponse(AbstractModel):
|
|
|
10116
10151
|
|
|
10117
10152
|
@property
|
|
10118
10153
|
def TotalCount(self):
|
|
10119
|
-
r"""
|
|
10154
|
+
r"""<p>版本保留策略总数</p>
|
|
10120
10155
|
:rtype: int
|
|
10121
10156
|
"""
|
|
10122
10157
|
return self._TotalCount
|
|
@@ -11310,6 +11345,57 @@ class Filter(AbstractModel):
|
|
|
11310
11345
|
|
|
11311
11346
|
|
|
11312
11347
|
|
|
11348
|
+
class FilterSelector(AbstractModel):
|
|
11349
|
+
r"""过滤选择器
|
|
11350
|
+
|
|
11351
|
+
"""
|
|
11352
|
+
|
|
11353
|
+
def __init__(self):
|
|
11354
|
+
r"""
|
|
11355
|
+
:param _Decoration: <p>过滤规则类型,在tag过滤中,可选值为matches(匹配),excludes(排除),在仓库过滤中,可选值为repoMatches(仓库匹配),repoExcludes(仓库排除)</p>
|
|
11356
|
+
:type Decoration: str
|
|
11357
|
+
:param _Pattern: <p>过滤表达式</p>
|
|
11358
|
+
:type Pattern: str
|
|
11359
|
+
"""
|
|
11360
|
+
self._Decoration = None
|
|
11361
|
+
self._Pattern = None
|
|
11362
|
+
|
|
11363
|
+
@property
|
|
11364
|
+
def Decoration(self):
|
|
11365
|
+
r"""<p>过滤规则类型,在tag过滤中,可选值为matches(匹配),excludes(排除),在仓库过滤中,可选值为repoMatches(仓库匹配),repoExcludes(仓库排除)</p>
|
|
11366
|
+
:rtype: str
|
|
11367
|
+
"""
|
|
11368
|
+
return self._Decoration
|
|
11369
|
+
|
|
11370
|
+
@Decoration.setter
|
|
11371
|
+
def Decoration(self, Decoration):
|
|
11372
|
+
self._Decoration = Decoration
|
|
11373
|
+
|
|
11374
|
+
@property
|
|
11375
|
+
def Pattern(self):
|
|
11376
|
+
r"""<p>过滤表达式</p>
|
|
11377
|
+
:rtype: str
|
|
11378
|
+
"""
|
|
11379
|
+
return self._Pattern
|
|
11380
|
+
|
|
11381
|
+
@Pattern.setter
|
|
11382
|
+
def Pattern(self, Pattern):
|
|
11383
|
+
self._Pattern = Pattern
|
|
11384
|
+
|
|
11385
|
+
|
|
11386
|
+
def _deserialize(self, params):
|
|
11387
|
+
self._Decoration = params.get("Decoration")
|
|
11388
|
+
self._Pattern = params.get("Pattern")
|
|
11389
|
+
memeber_set = set(params.keys())
|
|
11390
|
+
for name, value in vars(self).items():
|
|
11391
|
+
property_name = name[1:]
|
|
11392
|
+
if property_name in memeber_set:
|
|
11393
|
+
memeber_set.remove(property_name)
|
|
11394
|
+
if len(memeber_set) > 0:
|
|
11395
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11396
|
+
|
|
11397
|
+
|
|
11398
|
+
|
|
11313
11399
|
class GCJobInfo(AbstractModel):
|
|
11314
11400
|
r"""GC 执行信息
|
|
11315
11401
|
|
|
@@ -13670,29 +13756,32 @@ class ModifyTagRetentionRuleRequest(AbstractModel):
|
|
|
13670
13756
|
|
|
13671
13757
|
def __init__(self):
|
|
13672
13758
|
r"""
|
|
13673
|
-
:param _RegistryId:
|
|
13759
|
+
:param _RegistryId: <p>主实例iD</p>
|
|
13674
13760
|
:type RegistryId: str
|
|
13675
|
-
:param _NamespaceId:
|
|
13761
|
+
:param _NamespaceId: <p>命名空间的Id,必须填写原有的命名空间id</p>
|
|
13676
13762
|
:type NamespaceId: int
|
|
13677
|
-
:param
|
|
13678
|
-
:type RetentionRule: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
13679
|
-
:param _CronSetting: 执行周期,必须填写为原来的设置
|
|
13763
|
+
:param _CronSetting: <p>执行周期,必须填写为原来的设置</p>
|
|
13680
13764
|
:type CronSetting: str
|
|
13681
|
-
:param _RetentionId:
|
|
13765
|
+
:param _RetentionId: <p>规则Id</p>
|
|
13682
13766
|
:type RetentionId: int
|
|
13683
|
-
:param
|
|
13767
|
+
:param _RetentionRule: <p>保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
13768
|
+
:type RetentionRule: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
13769
|
+
:param _AdvancedRuleItems: <p>高级保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
13770
|
+
:type AdvancedRuleItems: list of RetentionRuleItem
|
|
13771
|
+
:param _Disabled: <p>是否禁用规则</p>
|
|
13684
13772
|
:type Disabled: bool
|
|
13685
13773
|
"""
|
|
13686
13774
|
self._RegistryId = None
|
|
13687
13775
|
self._NamespaceId = None
|
|
13688
|
-
self._RetentionRule = None
|
|
13689
13776
|
self._CronSetting = None
|
|
13690
13777
|
self._RetentionId = None
|
|
13778
|
+
self._RetentionRule = None
|
|
13779
|
+
self._AdvancedRuleItems = None
|
|
13691
13780
|
self._Disabled = None
|
|
13692
13781
|
|
|
13693
13782
|
@property
|
|
13694
13783
|
def RegistryId(self):
|
|
13695
|
-
r"""
|
|
13784
|
+
r"""<p>主实例iD</p>
|
|
13696
13785
|
:rtype: str
|
|
13697
13786
|
"""
|
|
13698
13787
|
return self._RegistryId
|
|
@@ -13703,7 +13792,7 @@ class ModifyTagRetentionRuleRequest(AbstractModel):
|
|
|
13703
13792
|
|
|
13704
13793
|
@property
|
|
13705
13794
|
def NamespaceId(self):
|
|
13706
|
-
r"""
|
|
13795
|
+
r"""<p>命名空间的Id,必须填写原有的命名空间id</p>
|
|
13707
13796
|
:rtype: int
|
|
13708
13797
|
"""
|
|
13709
13798
|
return self._NamespaceId
|
|
@@ -13712,20 +13801,9 @@ class ModifyTagRetentionRuleRequest(AbstractModel):
|
|
|
13712
13801
|
def NamespaceId(self, NamespaceId):
|
|
13713
13802
|
self._NamespaceId = NamespaceId
|
|
13714
13803
|
|
|
13715
|
-
@property
|
|
13716
|
-
def RetentionRule(self):
|
|
13717
|
-
r"""保留策略
|
|
13718
|
-
:rtype: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
13719
|
-
"""
|
|
13720
|
-
return self._RetentionRule
|
|
13721
|
-
|
|
13722
|
-
@RetentionRule.setter
|
|
13723
|
-
def RetentionRule(self, RetentionRule):
|
|
13724
|
-
self._RetentionRule = RetentionRule
|
|
13725
|
-
|
|
13726
13804
|
@property
|
|
13727
13805
|
def CronSetting(self):
|
|
13728
|
-
r"""
|
|
13806
|
+
r"""<p>执行周期,必须填写为原来的设置</p>
|
|
13729
13807
|
:rtype: str
|
|
13730
13808
|
"""
|
|
13731
13809
|
return self._CronSetting
|
|
@@ -13736,7 +13814,7 @@ class ModifyTagRetentionRuleRequest(AbstractModel):
|
|
|
13736
13814
|
|
|
13737
13815
|
@property
|
|
13738
13816
|
def RetentionId(self):
|
|
13739
|
-
r"""
|
|
13817
|
+
r"""<p>规则Id</p>
|
|
13740
13818
|
:rtype: int
|
|
13741
13819
|
"""
|
|
13742
13820
|
return self._RetentionId
|
|
@@ -13745,9 +13823,31 @@ class ModifyTagRetentionRuleRequest(AbstractModel):
|
|
|
13745
13823
|
def RetentionId(self, RetentionId):
|
|
13746
13824
|
self._RetentionId = RetentionId
|
|
13747
13825
|
|
|
13826
|
+
@property
|
|
13827
|
+
def RetentionRule(self):
|
|
13828
|
+
r"""<p>保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
13829
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
13830
|
+
"""
|
|
13831
|
+
return self._RetentionRule
|
|
13832
|
+
|
|
13833
|
+
@RetentionRule.setter
|
|
13834
|
+
def RetentionRule(self, RetentionRule):
|
|
13835
|
+
self._RetentionRule = RetentionRule
|
|
13836
|
+
|
|
13837
|
+
@property
|
|
13838
|
+
def AdvancedRuleItems(self):
|
|
13839
|
+
r"""<p>高级保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
13840
|
+
:rtype: list of RetentionRuleItem
|
|
13841
|
+
"""
|
|
13842
|
+
return self._AdvancedRuleItems
|
|
13843
|
+
|
|
13844
|
+
@AdvancedRuleItems.setter
|
|
13845
|
+
def AdvancedRuleItems(self, AdvancedRuleItems):
|
|
13846
|
+
self._AdvancedRuleItems = AdvancedRuleItems
|
|
13847
|
+
|
|
13748
13848
|
@property
|
|
13749
13849
|
def Disabled(self):
|
|
13750
|
-
r"""
|
|
13850
|
+
r"""<p>是否禁用规则</p>
|
|
13751
13851
|
:rtype: bool
|
|
13752
13852
|
"""
|
|
13753
13853
|
return self._Disabled
|
|
@@ -13760,11 +13860,17 @@ class ModifyTagRetentionRuleRequest(AbstractModel):
|
|
|
13760
13860
|
def _deserialize(self, params):
|
|
13761
13861
|
self._RegistryId = params.get("RegistryId")
|
|
13762
13862
|
self._NamespaceId = params.get("NamespaceId")
|
|
13863
|
+
self._CronSetting = params.get("CronSetting")
|
|
13864
|
+
self._RetentionId = params.get("RetentionId")
|
|
13763
13865
|
if params.get("RetentionRule") is not None:
|
|
13764
13866
|
self._RetentionRule = RetentionRule()
|
|
13765
13867
|
self._RetentionRule._deserialize(params.get("RetentionRule"))
|
|
13766
|
-
|
|
13767
|
-
|
|
13868
|
+
if params.get("AdvancedRuleItems") is not None:
|
|
13869
|
+
self._AdvancedRuleItems = []
|
|
13870
|
+
for item in params.get("AdvancedRuleItems"):
|
|
13871
|
+
obj = RetentionRuleItem()
|
|
13872
|
+
obj._deserialize(item)
|
|
13873
|
+
self._AdvancedRuleItems.append(obj)
|
|
13768
13874
|
self._Disabled = params.get("Disabled")
|
|
13769
13875
|
memeber_set = set(params.keys())
|
|
13770
13876
|
for name, value in vars(self).items():
|
|
@@ -16212,29 +16318,32 @@ class RetentionPolicy(AbstractModel):
|
|
|
16212
16318
|
|
|
16213
16319
|
def __init__(self):
|
|
16214
16320
|
r"""
|
|
16215
|
-
:param _RetentionId:
|
|
16321
|
+
:param _RetentionId: <p>版本保留策略Id</p>
|
|
16216
16322
|
:type RetentionId: int
|
|
16217
|
-
:param _NamespaceName:
|
|
16323
|
+
:param _NamespaceName: <p>命名空间的名称</p>
|
|
16218
16324
|
:type NamespaceName: str
|
|
16219
|
-
:param _RetentionRuleList:
|
|
16325
|
+
:param _RetentionRuleList: <p>规则列表</p>
|
|
16220
16326
|
:type RetentionRuleList: list of RetentionRule
|
|
16221
|
-
:param
|
|
16327
|
+
:param _AdvancedRuleItems: <p>高级保留规则列表</p>
|
|
16328
|
+
:type AdvancedRuleItems: list of RetentionRuleItem
|
|
16329
|
+
:param _CronSetting: <p>定期执行方式</p>
|
|
16222
16330
|
:type CronSetting: str
|
|
16223
|
-
:param _Disabled:
|
|
16331
|
+
:param _Disabled: <p>是否启用规则</p>
|
|
16224
16332
|
:type Disabled: bool
|
|
16225
|
-
:param _NextExecutionTime:
|
|
16333
|
+
:param _NextExecutionTime: <p>基于当前时间根据cronSetting后下一次任务要执行的时间,仅做参考使用</p>
|
|
16226
16334
|
:type NextExecutionTime: str
|
|
16227
16335
|
"""
|
|
16228
16336
|
self._RetentionId = None
|
|
16229
16337
|
self._NamespaceName = None
|
|
16230
16338
|
self._RetentionRuleList = None
|
|
16339
|
+
self._AdvancedRuleItems = None
|
|
16231
16340
|
self._CronSetting = None
|
|
16232
16341
|
self._Disabled = None
|
|
16233
16342
|
self._NextExecutionTime = None
|
|
16234
16343
|
|
|
16235
16344
|
@property
|
|
16236
16345
|
def RetentionId(self):
|
|
16237
|
-
r"""
|
|
16346
|
+
r"""<p>版本保留策略Id</p>
|
|
16238
16347
|
:rtype: int
|
|
16239
16348
|
"""
|
|
16240
16349
|
return self._RetentionId
|
|
@@ -16245,7 +16354,7 @@ class RetentionPolicy(AbstractModel):
|
|
|
16245
16354
|
|
|
16246
16355
|
@property
|
|
16247
16356
|
def NamespaceName(self):
|
|
16248
|
-
r"""
|
|
16357
|
+
r"""<p>命名空间的名称</p>
|
|
16249
16358
|
:rtype: str
|
|
16250
16359
|
"""
|
|
16251
16360
|
return self._NamespaceName
|
|
@@ -16256,7 +16365,7 @@ class RetentionPolicy(AbstractModel):
|
|
|
16256
16365
|
|
|
16257
16366
|
@property
|
|
16258
16367
|
def RetentionRuleList(self):
|
|
16259
|
-
r"""
|
|
16368
|
+
r"""<p>规则列表</p>
|
|
16260
16369
|
:rtype: list of RetentionRule
|
|
16261
16370
|
"""
|
|
16262
16371
|
return self._RetentionRuleList
|
|
@@ -16265,9 +16374,20 @@ class RetentionPolicy(AbstractModel):
|
|
|
16265
16374
|
def RetentionRuleList(self, RetentionRuleList):
|
|
16266
16375
|
self._RetentionRuleList = RetentionRuleList
|
|
16267
16376
|
|
|
16377
|
+
@property
|
|
16378
|
+
def AdvancedRuleItems(self):
|
|
16379
|
+
r"""<p>高级保留规则列表</p>
|
|
16380
|
+
:rtype: list of RetentionRuleItem
|
|
16381
|
+
"""
|
|
16382
|
+
return self._AdvancedRuleItems
|
|
16383
|
+
|
|
16384
|
+
@AdvancedRuleItems.setter
|
|
16385
|
+
def AdvancedRuleItems(self, AdvancedRuleItems):
|
|
16386
|
+
self._AdvancedRuleItems = AdvancedRuleItems
|
|
16387
|
+
|
|
16268
16388
|
@property
|
|
16269
16389
|
def CronSetting(self):
|
|
16270
|
-
r"""
|
|
16390
|
+
r"""<p>定期执行方式</p>
|
|
16271
16391
|
:rtype: str
|
|
16272
16392
|
"""
|
|
16273
16393
|
return self._CronSetting
|
|
@@ -16278,7 +16398,7 @@ class RetentionPolicy(AbstractModel):
|
|
|
16278
16398
|
|
|
16279
16399
|
@property
|
|
16280
16400
|
def Disabled(self):
|
|
16281
|
-
r"""
|
|
16401
|
+
r"""<p>是否启用规则</p>
|
|
16282
16402
|
:rtype: bool
|
|
16283
16403
|
"""
|
|
16284
16404
|
return self._Disabled
|
|
@@ -16289,7 +16409,7 @@ class RetentionPolicy(AbstractModel):
|
|
|
16289
16409
|
|
|
16290
16410
|
@property
|
|
16291
16411
|
def NextExecutionTime(self):
|
|
16292
|
-
r"""
|
|
16412
|
+
r"""<p>基于当前时间根据cronSetting后下一次任务要执行的时间,仅做参考使用</p>
|
|
16293
16413
|
:rtype: str
|
|
16294
16414
|
"""
|
|
16295
16415
|
return self._NextExecutionTime
|
|
@@ -16308,6 +16428,12 @@ class RetentionPolicy(AbstractModel):
|
|
|
16308
16428
|
obj = RetentionRule()
|
|
16309
16429
|
obj._deserialize(item)
|
|
16310
16430
|
self._RetentionRuleList.append(obj)
|
|
16431
|
+
if params.get("AdvancedRuleItems") is not None:
|
|
16432
|
+
self._AdvancedRuleItems = []
|
|
16433
|
+
for item in params.get("AdvancedRuleItems"):
|
|
16434
|
+
obj = RetentionRuleItem()
|
|
16435
|
+
obj._deserialize(item)
|
|
16436
|
+
self._AdvancedRuleItems.append(obj)
|
|
16311
16437
|
self._CronSetting = params.get("CronSetting")
|
|
16312
16438
|
self._Disabled = params.get("Disabled")
|
|
16313
16439
|
self._NextExecutionTime = params.get("NextExecutionTime")
|
|
@@ -16372,6 +16498,78 @@ class RetentionRule(AbstractModel):
|
|
|
16372
16498
|
|
|
16373
16499
|
|
|
16374
16500
|
|
|
16501
|
+
class RetentionRuleItem(AbstractModel):
|
|
16502
|
+
r"""版本保留规则
|
|
16503
|
+
|
|
16504
|
+
"""
|
|
16505
|
+
|
|
16506
|
+
def __init__(self):
|
|
16507
|
+
r"""
|
|
16508
|
+
:param _RetentionPolicy: <p>版本保留规则</p>
|
|
16509
|
+
:type RetentionPolicy: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
16510
|
+
:param _TagFilter: <p>标签过滤器</p>
|
|
16511
|
+
:type TagFilter: :class:`tencentcloud.tcr.v20190924.models.FilterSelector`
|
|
16512
|
+
:param _RepositoryFilter: <p>仓库过滤器</p>
|
|
16513
|
+
:type RepositoryFilter: :class:`tencentcloud.tcr.v20190924.models.FilterSelector`
|
|
16514
|
+
"""
|
|
16515
|
+
self._RetentionPolicy = None
|
|
16516
|
+
self._TagFilter = None
|
|
16517
|
+
self._RepositoryFilter = None
|
|
16518
|
+
|
|
16519
|
+
@property
|
|
16520
|
+
def RetentionPolicy(self):
|
|
16521
|
+
r"""<p>版本保留规则</p>
|
|
16522
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
16523
|
+
"""
|
|
16524
|
+
return self._RetentionPolicy
|
|
16525
|
+
|
|
16526
|
+
@RetentionPolicy.setter
|
|
16527
|
+
def RetentionPolicy(self, RetentionPolicy):
|
|
16528
|
+
self._RetentionPolicy = RetentionPolicy
|
|
16529
|
+
|
|
16530
|
+
@property
|
|
16531
|
+
def TagFilter(self):
|
|
16532
|
+
r"""<p>标签过滤器</p>
|
|
16533
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.FilterSelector`
|
|
16534
|
+
"""
|
|
16535
|
+
return self._TagFilter
|
|
16536
|
+
|
|
16537
|
+
@TagFilter.setter
|
|
16538
|
+
def TagFilter(self, TagFilter):
|
|
16539
|
+
self._TagFilter = TagFilter
|
|
16540
|
+
|
|
16541
|
+
@property
|
|
16542
|
+
def RepositoryFilter(self):
|
|
16543
|
+
r"""<p>仓库过滤器</p>
|
|
16544
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.FilterSelector`
|
|
16545
|
+
"""
|
|
16546
|
+
return self._RepositoryFilter
|
|
16547
|
+
|
|
16548
|
+
@RepositoryFilter.setter
|
|
16549
|
+
def RepositoryFilter(self, RepositoryFilter):
|
|
16550
|
+
self._RepositoryFilter = RepositoryFilter
|
|
16551
|
+
|
|
16552
|
+
|
|
16553
|
+
def _deserialize(self, params):
|
|
16554
|
+
if params.get("RetentionPolicy") is not None:
|
|
16555
|
+
self._RetentionPolicy = RetentionRule()
|
|
16556
|
+
self._RetentionPolicy._deserialize(params.get("RetentionPolicy"))
|
|
16557
|
+
if params.get("TagFilter") is not None:
|
|
16558
|
+
self._TagFilter = FilterSelector()
|
|
16559
|
+
self._TagFilter._deserialize(params.get("TagFilter"))
|
|
16560
|
+
if params.get("RepositoryFilter") is not None:
|
|
16561
|
+
self._RepositoryFilter = FilterSelector()
|
|
16562
|
+
self._RepositoryFilter._deserialize(params.get("RepositoryFilter"))
|
|
16563
|
+
memeber_set = set(params.keys())
|
|
16564
|
+
for name, value in vars(self).items():
|
|
16565
|
+
property_name = name[1:]
|
|
16566
|
+
if property_name in memeber_set:
|
|
16567
|
+
memeber_set.remove(property_name)
|
|
16568
|
+
if len(memeber_set) > 0:
|
|
16569
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16570
|
+
|
|
16571
|
+
|
|
16572
|
+
|
|
16375
16573
|
class RetentionTask(AbstractModel):
|
|
16376
16574
|
r"""版本保留执行的规则
|
|
16377
16575
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tcr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.39
|
|
4
4
|
Summary: Tencent Cloud Tcr SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.39
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.39
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.33
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|