tencentcloud-sdk-python-tcr 3.1.33__tar.gz → 3.1.43__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.43}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.43}/setup.py +1 -1
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/tcr/v20190924/models.py +390 -75
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/tcr/v20190924/tcr_client.py +23 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/tcr/v20190924/tcr_client_async.py +18 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud_sdk_python_tcr.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tcr-3.1.43/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.43}/README.rst +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.43}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/tcr/__init__.py +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/tcr/v20190924/__init__.py +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/tcr/v20190924/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud_sdk_python_tcr.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud_sdk_python_tcr.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tcr-3.1.33 → tencentcloud_sdk_python_tcr-3.1.43}/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.43
|
|
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.43
|
|
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.43,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tcr SDK for Python',
|
|
@@ -832,6 +832,87 @@ class CreateApplicationTriggerPersonalResponse(AbstractModel):
|
|
|
832
832
|
self._RequestId = params.get("RequestId")
|
|
833
833
|
|
|
834
834
|
|
|
835
|
+
class CreateGCJobRequest(AbstractModel):
|
|
836
|
+
r"""CreateGCJob请求参数结构体
|
|
837
|
+
|
|
838
|
+
"""
|
|
839
|
+
|
|
840
|
+
def __init__(self):
|
|
841
|
+
r"""
|
|
842
|
+
:param _RegistryId: 实例 Id
|
|
843
|
+
:type RegistryId: str
|
|
844
|
+
:param _GCParameters: GC 参数
|
|
845
|
+
:type GCParameters: :class:`tencentcloud.tcr.v20190924.models.GCParameters`
|
|
846
|
+
"""
|
|
847
|
+
self._RegistryId = None
|
|
848
|
+
self._GCParameters = None
|
|
849
|
+
|
|
850
|
+
@property
|
|
851
|
+
def RegistryId(self):
|
|
852
|
+
r"""实例 Id
|
|
853
|
+
:rtype: str
|
|
854
|
+
"""
|
|
855
|
+
return self._RegistryId
|
|
856
|
+
|
|
857
|
+
@RegistryId.setter
|
|
858
|
+
def RegistryId(self, RegistryId):
|
|
859
|
+
self._RegistryId = RegistryId
|
|
860
|
+
|
|
861
|
+
@property
|
|
862
|
+
def GCParameters(self):
|
|
863
|
+
r"""GC 参数
|
|
864
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.GCParameters`
|
|
865
|
+
"""
|
|
866
|
+
return self._GCParameters
|
|
867
|
+
|
|
868
|
+
@GCParameters.setter
|
|
869
|
+
def GCParameters(self, GCParameters):
|
|
870
|
+
self._GCParameters = GCParameters
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
def _deserialize(self, params):
|
|
874
|
+
self._RegistryId = params.get("RegistryId")
|
|
875
|
+
if params.get("GCParameters") is not None:
|
|
876
|
+
self._GCParameters = GCParameters()
|
|
877
|
+
self._GCParameters._deserialize(params.get("GCParameters"))
|
|
878
|
+
memeber_set = set(params.keys())
|
|
879
|
+
for name, value in vars(self).items():
|
|
880
|
+
property_name = name[1:]
|
|
881
|
+
if property_name in memeber_set:
|
|
882
|
+
memeber_set.remove(property_name)
|
|
883
|
+
if len(memeber_set) > 0:
|
|
884
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
class CreateGCJobResponse(AbstractModel):
|
|
889
|
+
r"""CreateGCJob返回参数结构体
|
|
890
|
+
|
|
891
|
+
"""
|
|
892
|
+
|
|
893
|
+
def __init__(self):
|
|
894
|
+
r"""
|
|
895
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
896
|
+
:type RequestId: str
|
|
897
|
+
"""
|
|
898
|
+
self._RequestId = None
|
|
899
|
+
|
|
900
|
+
@property
|
|
901
|
+
def RequestId(self):
|
|
902
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
903
|
+
:rtype: str
|
|
904
|
+
"""
|
|
905
|
+
return self._RequestId
|
|
906
|
+
|
|
907
|
+
@RequestId.setter
|
|
908
|
+
def RequestId(self, RequestId):
|
|
909
|
+
self._RequestId = RequestId
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
def _deserialize(self, params):
|
|
913
|
+
self._RequestId = params.get("RequestId")
|
|
914
|
+
|
|
915
|
+
|
|
835
916
|
class CreateImageAccelerationServiceRequest(AbstractModel):
|
|
836
917
|
r"""CreateImageAccelerationService请求参数结构体
|
|
837
918
|
|
|
@@ -3055,26 +3136,29 @@ class CreateTagRetentionRuleRequest(AbstractModel):
|
|
|
3055
3136
|
|
|
3056
3137
|
def __init__(self):
|
|
3057
3138
|
r"""
|
|
3058
|
-
:param _RegistryId:
|
|
3139
|
+
:param _RegistryId: <p>主实例iD</p>
|
|
3059
3140
|
:type RegistryId: str
|
|
3060
|
-
:param _NamespaceId:
|
|
3141
|
+
:param _NamespaceId: <p>命名空间的Id</p>
|
|
3061
3142
|
:type NamespaceId: int
|
|
3062
|
-
:param
|
|
3063
|
-
:type RetentionRule: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
3064
|
-
:param _CronSetting: 执行周期,当前只能选择: manual;daily;weekly;monthly
|
|
3143
|
+
:param _CronSetting: <p>执行周期,当前只能选择: manual;daily;weekly;monthly</p>
|
|
3065
3144
|
:type CronSetting: str
|
|
3066
|
-
:param
|
|
3145
|
+
:param _RetentionRule: <p>保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
3146
|
+
:type RetentionRule: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
3147
|
+
:param _AdvancedRuleItems: <p>高级版本保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
3148
|
+
:type AdvancedRuleItems: list of RetentionRuleItem
|
|
3149
|
+
:param _Disabled: <p>是否禁用规则,默认值为false</p>
|
|
3067
3150
|
:type Disabled: bool
|
|
3068
3151
|
"""
|
|
3069
3152
|
self._RegistryId = None
|
|
3070
3153
|
self._NamespaceId = None
|
|
3071
|
-
self._RetentionRule = None
|
|
3072
3154
|
self._CronSetting = None
|
|
3155
|
+
self._RetentionRule = None
|
|
3156
|
+
self._AdvancedRuleItems = None
|
|
3073
3157
|
self._Disabled = None
|
|
3074
3158
|
|
|
3075
3159
|
@property
|
|
3076
3160
|
def RegistryId(self):
|
|
3077
|
-
r"""
|
|
3161
|
+
r"""<p>主实例iD</p>
|
|
3078
3162
|
:rtype: str
|
|
3079
3163
|
"""
|
|
3080
3164
|
return self._RegistryId
|
|
@@ -3085,7 +3169,7 @@ class CreateTagRetentionRuleRequest(AbstractModel):
|
|
|
3085
3169
|
|
|
3086
3170
|
@property
|
|
3087
3171
|
def NamespaceId(self):
|
|
3088
|
-
r"""
|
|
3172
|
+
r"""<p>命名空间的Id</p>
|
|
3089
3173
|
:rtype: int
|
|
3090
3174
|
"""
|
|
3091
3175
|
return self._NamespaceId
|
|
@@ -3094,9 +3178,20 @@ class CreateTagRetentionRuleRequest(AbstractModel):
|
|
|
3094
3178
|
def NamespaceId(self, NamespaceId):
|
|
3095
3179
|
self._NamespaceId = NamespaceId
|
|
3096
3180
|
|
|
3181
|
+
@property
|
|
3182
|
+
def CronSetting(self):
|
|
3183
|
+
r"""<p>执行周期,当前只能选择: manual;daily;weekly;monthly</p>
|
|
3184
|
+
:rtype: str
|
|
3185
|
+
"""
|
|
3186
|
+
return self._CronSetting
|
|
3187
|
+
|
|
3188
|
+
@CronSetting.setter
|
|
3189
|
+
def CronSetting(self, CronSetting):
|
|
3190
|
+
self._CronSetting = CronSetting
|
|
3191
|
+
|
|
3097
3192
|
@property
|
|
3098
3193
|
def RetentionRule(self):
|
|
3099
|
-
r"""
|
|
3194
|
+
r"""<p>保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
3100
3195
|
:rtype: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
3101
3196
|
"""
|
|
3102
3197
|
return self._RetentionRule
|
|
@@ -3106,19 +3201,19 @@ class CreateTagRetentionRuleRequest(AbstractModel):
|
|
|
3106
3201
|
self._RetentionRule = RetentionRule
|
|
3107
3202
|
|
|
3108
3203
|
@property
|
|
3109
|
-
def
|
|
3110
|
-
r"""
|
|
3111
|
-
:rtype:
|
|
3204
|
+
def AdvancedRuleItems(self):
|
|
3205
|
+
r"""<p>高级版本保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
3206
|
+
:rtype: list of RetentionRuleItem
|
|
3112
3207
|
"""
|
|
3113
|
-
return self.
|
|
3208
|
+
return self._AdvancedRuleItems
|
|
3114
3209
|
|
|
3115
|
-
@
|
|
3116
|
-
def
|
|
3117
|
-
self.
|
|
3210
|
+
@AdvancedRuleItems.setter
|
|
3211
|
+
def AdvancedRuleItems(self, AdvancedRuleItems):
|
|
3212
|
+
self._AdvancedRuleItems = AdvancedRuleItems
|
|
3118
3213
|
|
|
3119
3214
|
@property
|
|
3120
3215
|
def Disabled(self):
|
|
3121
|
-
r"""
|
|
3216
|
+
r"""<p>是否禁用规则,默认值为false</p>
|
|
3122
3217
|
:rtype: bool
|
|
3123
3218
|
"""
|
|
3124
3219
|
return self._Disabled
|
|
@@ -3131,10 +3226,16 @@ class CreateTagRetentionRuleRequest(AbstractModel):
|
|
|
3131
3226
|
def _deserialize(self, params):
|
|
3132
3227
|
self._RegistryId = params.get("RegistryId")
|
|
3133
3228
|
self._NamespaceId = params.get("NamespaceId")
|
|
3229
|
+
self._CronSetting = params.get("CronSetting")
|
|
3134
3230
|
if params.get("RetentionRule") is not None:
|
|
3135
3231
|
self._RetentionRule = RetentionRule()
|
|
3136
3232
|
self._RetentionRule._deserialize(params.get("RetentionRule"))
|
|
3137
|
-
|
|
3233
|
+
if params.get("AdvancedRuleItems") is not None:
|
|
3234
|
+
self._AdvancedRuleItems = []
|
|
3235
|
+
for item in params.get("AdvancedRuleItems"):
|
|
3236
|
+
obj = RetentionRuleItem()
|
|
3237
|
+
obj._deserialize(item)
|
|
3238
|
+
self._AdvancedRuleItems.append(obj)
|
|
3138
3239
|
self._Disabled = params.get("Disabled")
|
|
3139
3240
|
memeber_set = set(params.keys())
|
|
3140
3241
|
for name, value in vars(self).items():
|
|
@@ -4770,20 +4871,23 @@ class DeleteRepositoryRequest(AbstractModel):
|
|
|
4770
4871
|
|
|
4771
4872
|
def __init__(self):
|
|
4772
4873
|
r"""
|
|
4773
|
-
:param _RegistryId:
|
|
4874
|
+
:param _RegistryId: <p>实例Id</p>
|
|
4774
4875
|
:type RegistryId: str
|
|
4775
|
-
:param _NamespaceName:
|
|
4876
|
+
:param _NamespaceName: <p>命名空间的名称</p>
|
|
4776
4877
|
:type NamespaceName: str
|
|
4777
|
-
:param _RepositoryName:
|
|
4878
|
+
:param _RepositoryName: <p>镜像仓库的名称</p>
|
|
4778
4879
|
:type RepositoryName: str
|
|
4880
|
+
:param _ForceDelete: <p>默认值为true,表示无论仓库是否存在镜像都直接删除;false代表删除仓库前需检查是否存在镜像。</p>
|
|
4881
|
+
:type ForceDelete: bool
|
|
4779
4882
|
"""
|
|
4780
4883
|
self._RegistryId = None
|
|
4781
4884
|
self._NamespaceName = None
|
|
4782
4885
|
self._RepositoryName = None
|
|
4886
|
+
self._ForceDelete = None
|
|
4783
4887
|
|
|
4784
4888
|
@property
|
|
4785
4889
|
def RegistryId(self):
|
|
4786
|
-
r"""
|
|
4890
|
+
r"""<p>实例Id</p>
|
|
4787
4891
|
:rtype: str
|
|
4788
4892
|
"""
|
|
4789
4893
|
return self._RegistryId
|
|
@@ -4794,7 +4898,7 @@ class DeleteRepositoryRequest(AbstractModel):
|
|
|
4794
4898
|
|
|
4795
4899
|
@property
|
|
4796
4900
|
def NamespaceName(self):
|
|
4797
|
-
r"""
|
|
4901
|
+
r"""<p>命名空间的名称</p>
|
|
4798
4902
|
:rtype: str
|
|
4799
4903
|
"""
|
|
4800
4904
|
return self._NamespaceName
|
|
@@ -4805,7 +4909,7 @@ class DeleteRepositoryRequest(AbstractModel):
|
|
|
4805
4909
|
|
|
4806
4910
|
@property
|
|
4807
4911
|
def RepositoryName(self):
|
|
4808
|
-
r"""
|
|
4912
|
+
r"""<p>镜像仓库的名称</p>
|
|
4809
4913
|
:rtype: str
|
|
4810
4914
|
"""
|
|
4811
4915
|
return self._RepositoryName
|
|
@@ -4814,11 +4918,23 @@ class DeleteRepositoryRequest(AbstractModel):
|
|
|
4814
4918
|
def RepositoryName(self, RepositoryName):
|
|
4815
4919
|
self._RepositoryName = RepositoryName
|
|
4816
4920
|
|
|
4921
|
+
@property
|
|
4922
|
+
def ForceDelete(self):
|
|
4923
|
+
r"""<p>默认值为true,表示无论仓库是否存在镜像都直接删除;false代表删除仓库前需检查是否存在镜像。</p>
|
|
4924
|
+
:rtype: bool
|
|
4925
|
+
"""
|
|
4926
|
+
return self._ForceDelete
|
|
4927
|
+
|
|
4928
|
+
@ForceDelete.setter
|
|
4929
|
+
def ForceDelete(self, ForceDelete):
|
|
4930
|
+
self._ForceDelete = ForceDelete
|
|
4931
|
+
|
|
4817
4932
|
|
|
4818
4933
|
def _deserialize(self, params):
|
|
4819
4934
|
self._RegistryId = params.get("RegistryId")
|
|
4820
4935
|
self._NamespaceName = params.get("NamespaceName")
|
|
4821
4936
|
self._RepositoryName = params.get("RepositoryName")
|
|
4937
|
+
self._ForceDelete = params.get("ForceDelete")
|
|
4822
4938
|
memeber_set = set(params.keys())
|
|
4823
4939
|
for name, value in vars(self).items():
|
|
4824
4940
|
property_name = name[1:]
|
|
@@ -10011,13 +10127,13 @@ class DescribeTagRetentionRulesRequest(AbstractModel):
|
|
|
10011
10127
|
|
|
10012
10128
|
def __init__(self):
|
|
10013
10129
|
r"""
|
|
10014
|
-
:param _RegistryId:
|
|
10130
|
+
:param _RegistryId: <p>主实例iD</p>
|
|
10015
10131
|
:type RegistryId: str
|
|
10016
|
-
:param _NamespaceName:
|
|
10132
|
+
:param _NamespaceName: <p>命名空间的名称</p>
|
|
10017
10133
|
:type NamespaceName: str
|
|
10018
|
-
:param _Limit:
|
|
10134
|
+
:param _Limit: <p>分页PageSize</p>
|
|
10019
10135
|
:type Limit: int
|
|
10020
|
-
:param _Offset:
|
|
10136
|
+
:param _Offset: <p>分页Page</p>
|
|
10021
10137
|
:type Offset: int
|
|
10022
10138
|
"""
|
|
10023
10139
|
self._RegistryId = None
|
|
@@ -10027,7 +10143,7 @@ class DescribeTagRetentionRulesRequest(AbstractModel):
|
|
|
10027
10143
|
|
|
10028
10144
|
@property
|
|
10029
10145
|
def RegistryId(self):
|
|
10030
|
-
r"""
|
|
10146
|
+
r"""<p>主实例iD</p>
|
|
10031
10147
|
:rtype: str
|
|
10032
10148
|
"""
|
|
10033
10149
|
return self._RegistryId
|
|
@@ -10038,7 +10154,7 @@ class DescribeTagRetentionRulesRequest(AbstractModel):
|
|
|
10038
10154
|
|
|
10039
10155
|
@property
|
|
10040
10156
|
def NamespaceName(self):
|
|
10041
|
-
r"""
|
|
10157
|
+
r"""<p>命名空间的名称</p>
|
|
10042
10158
|
:rtype: str
|
|
10043
10159
|
"""
|
|
10044
10160
|
return self._NamespaceName
|
|
@@ -10049,7 +10165,7 @@ class DescribeTagRetentionRulesRequest(AbstractModel):
|
|
|
10049
10165
|
|
|
10050
10166
|
@property
|
|
10051
10167
|
def Limit(self):
|
|
10052
|
-
r"""
|
|
10168
|
+
r"""<p>分页PageSize</p>
|
|
10053
10169
|
:rtype: int
|
|
10054
10170
|
"""
|
|
10055
10171
|
return self._Limit
|
|
@@ -10060,7 +10176,7 @@ class DescribeTagRetentionRulesRequest(AbstractModel):
|
|
|
10060
10176
|
|
|
10061
10177
|
@property
|
|
10062
10178
|
def Offset(self):
|
|
10063
|
-
r"""
|
|
10179
|
+
r"""<p>分页Page</p>
|
|
10064
10180
|
:rtype: int
|
|
10065
10181
|
"""
|
|
10066
10182
|
return self._Offset
|
|
@@ -10092,9 +10208,9 @@ class DescribeTagRetentionRulesResponse(AbstractModel):
|
|
|
10092
10208
|
|
|
10093
10209
|
def __init__(self):
|
|
10094
10210
|
r"""
|
|
10095
|
-
:param _RetentionPolicyList:
|
|
10211
|
+
:param _RetentionPolicyList: <p>版本保留策略列表</p>
|
|
10096
10212
|
:type RetentionPolicyList: list of RetentionPolicy
|
|
10097
|
-
:param _TotalCount:
|
|
10213
|
+
:param _TotalCount: <p>版本保留策略总数</p>
|
|
10098
10214
|
:type TotalCount: int
|
|
10099
10215
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10100
10216
|
:type RequestId: str
|
|
@@ -10105,7 +10221,7 @@ class DescribeTagRetentionRulesResponse(AbstractModel):
|
|
|
10105
10221
|
|
|
10106
10222
|
@property
|
|
10107
10223
|
def RetentionPolicyList(self):
|
|
10108
|
-
r"""
|
|
10224
|
+
r"""<p>版本保留策略列表</p>
|
|
10109
10225
|
:rtype: list of RetentionPolicy
|
|
10110
10226
|
"""
|
|
10111
10227
|
return self._RetentionPolicyList
|
|
@@ -10116,7 +10232,7 @@ class DescribeTagRetentionRulesResponse(AbstractModel):
|
|
|
10116
10232
|
|
|
10117
10233
|
@property
|
|
10118
10234
|
def TotalCount(self):
|
|
10119
|
-
r"""
|
|
10235
|
+
r"""<p>版本保留策略总数</p>
|
|
10120
10236
|
:rtype: int
|
|
10121
10237
|
"""
|
|
10122
10238
|
return self._TotalCount
|
|
@@ -11310,6 +11426,57 @@ class Filter(AbstractModel):
|
|
|
11310
11426
|
|
|
11311
11427
|
|
|
11312
11428
|
|
|
11429
|
+
class FilterSelector(AbstractModel):
|
|
11430
|
+
r"""过滤选择器
|
|
11431
|
+
|
|
11432
|
+
"""
|
|
11433
|
+
|
|
11434
|
+
def __init__(self):
|
|
11435
|
+
r"""
|
|
11436
|
+
:param _Decoration: <p>过滤规则类型,在tag过滤中,可选值为matches(匹配),excludes(排除),在仓库过滤中,可选值为repoMatches(仓库匹配),repoExcludes(仓库排除)</p>
|
|
11437
|
+
:type Decoration: str
|
|
11438
|
+
:param _Pattern: <p>过滤表达式</p>
|
|
11439
|
+
:type Pattern: str
|
|
11440
|
+
"""
|
|
11441
|
+
self._Decoration = None
|
|
11442
|
+
self._Pattern = None
|
|
11443
|
+
|
|
11444
|
+
@property
|
|
11445
|
+
def Decoration(self):
|
|
11446
|
+
r"""<p>过滤规则类型,在tag过滤中,可选值为matches(匹配),excludes(排除),在仓库过滤中,可选值为repoMatches(仓库匹配),repoExcludes(仓库排除)</p>
|
|
11447
|
+
:rtype: str
|
|
11448
|
+
"""
|
|
11449
|
+
return self._Decoration
|
|
11450
|
+
|
|
11451
|
+
@Decoration.setter
|
|
11452
|
+
def Decoration(self, Decoration):
|
|
11453
|
+
self._Decoration = Decoration
|
|
11454
|
+
|
|
11455
|
+
@property
|
|
11456
|
+
def Pattern(self):
|
|
11457
|
+
r"""<p>过滤表达式</p>
|
|
11458
|
+
:rtype: str
|
|
11459
|
+
"""
|
|
11460
|
+
return self._Pattern
|
|
11461
|
+
|
|
11462
|
+
@Pattern.setter
|
|
11463
|
+
def Pattern(self, Pattern):
|
|
11464
|
+
self._Pattern = Pattern
|
|
11465
|
+
|
|
11466
|
+
|
|
11467
|
+
def _deserialize(self, params):
|
|
11468
|
+
self._Decoration = params.get("Decoration")
|
|
11469
|
+
self._Pattern = params.get("Pattern")
|
|
11470
|
+
memeber_set = set(params.keys())
|
|
11471
|
+
for name, value in vars(self).items():
|
|
11472
|
+
property_name = name[1:]
|
|
11473
|
+
if property_name in memeber_set:
|
|
11474
|
+
memeber_set.remove(property_name)
|
|
11475
|
+
if len(memeber_set) > 0:
|
|
11476
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11477
|
+
|
|
11478
|
+
|
|
11479
|
+
|
|
11313
11480
|
class GCJobInfo(AbstractModel):
|
|
11314
11481
|
r"""GC 执行信息
|
|
11315
11482
|
|
|
@@ -11408,6 +11575,42 @@ class GCJobInfo(AbstractModel):
|
|
|
11408
11575
|
|
|
11409
11576
|
|
|
11410
11577
|
|
|
11578
|
+
class GCParameters(AbstractModel):
|
|
11579
|
+
r"""GC 参数
|
|
11580
|
+
|
|
11581
|
+
"""
|
|
11582
|
+
|
|
11583
|
+
def __init__(self):
|
|
11584
|
+
r"""
|
|
11585
|
+
:param _Dryrun: 模拟运行
|
|
11586
|
+
:type Dryrun: bool
|
|
11587
|
+
"""
|
|
11588
|
+
self._Dryrun = None
|
|
11589
|
+
|
|
11590
|
+
@property
|
|
11591
|
+
def Dryrun(self):
|
|
11592
|
+
r"""模拟运行
|
|
11593
|
+
:rtype: bool
|
|
11594
|
+
"""
|
|
11595
|
+
return self._Dryrun
|
|
11596
|
+
|
|
11597
|
+
@Dryrun.setter
|
|
11598
|
+
def Dryrun(self, Dryrun):
|
|
11599
|
+
self._Dryrun = Dryrun
|
|
11600
|
+
|
|
11601
|
+
|
|
11602
|
+
def _deserialize(self, params):
|
|
11603
|
+
self._Dryrun = params.get("Dryrun")
|
|
11604
|
+
memeber_set = set(params.keys())
|
|
11605
|
+
for name, value in vars(self).items():
|
|
11606
|
+
property_name = name[1:]
|
|
11607
|
+
if property_name in memeber_set:
|
|
11608
|
+
memeber_set.remove(property_name)
|
|
11609
|
+
if len(memeber_set) > 0:
|
|
11610
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11611
|
+
|
|
11612
|
+
|
|
11613
|
+
|
|
11411
11614
|
class Header(AbstractModel):
|
|
11412
11615
|
r"""Header KV
|
|
11413
11616
|
|
|
@@ -13670,29 +13873,32 @@ class ModifyTagRetentionRuleRequest(AbstractModel):
|
|
|
13670
13873
|
|
|
13671
13874
|
def __init__(self):
|
|
13672
13875
|
r"""
|
|
13673
|
-
:param _RegistryId:
|
|
13876
|
+
:param _RegistryId: <p>主实例iD</p>
|
|
13674
13877
|
:type RegistryId: str
|
|
13675
|
-
:param _NamespaceId:
|
|
13878
|
+
:param _NamespaceId: <p>命名空间的Id,必须填写原有的命名空间id</p>
|
|
13676
13879
|
:type NamespaceId: int
|
|
13677
|
-
:param
|
|
13678
|
-
:type RetentionRule: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
13679
|
-
:param _CronSetting: 执行周期,必须填写为原来的设置
|
|
13880
|
+
:param _CronSetting: <p>执行周期,必须填写为原来的设置</p>
|
|
13680
13881
|
:type CronSetting: str
|
|
13681
|
-
:param _RetentionId:
|
|
13882
|
+
:param _RetentionId: <p>规则Id</p>
|
|
13682
13883
|
:type RetentionId: int
|
|
13683
|
-
:param
|
|
13884
|
+
:param _RetentionRule: <p>保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
13885
|
+
:type RetentionRule: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
13886
|
+
:param _AdvancedRuleItems: <p>高级保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
13887
|
+
:type AdvancedRuleItems: list of RetentionRuleItem
|
|
13888
|
+
:param _Disabled: <p>是否禁用规则</p>
|
|
13684
13889
|
:type Disabled: bool
|
|
13685
13890
|
"""
|
|
13686
13891
|
self._RegistryId = None
|
|
13687
13892
|
self._NamespaceId = None
|
|
13688
|
-
self._RetentionRule = None
|
|
13689
13893
|
self._CronSetting = None
|
|
13690
13894
|
self._RetentionId = None
|
|
13895
|
+
self._RetentionRule = None
|
|
13896
|
+
self._AdvancedRuleItems = None
|
|
13691
13897
|
self._Disabled = None
|
|
13692
13898
|
|
|
13693
13899
|
@property
|
|
13694
13900
|
def RegistryId(self):
|
|
13695
|
-
r"""
|
|
13901
|
+
r"""<p>主实例iD</p>
|
|
13696
13902
|
:rtype: str
|
|
13697
13903
|
"""
|
|
13698
13904
|
return self._RegistryId
|
|
@@ -13703,7 +13909,7 @@ class ModifyTagRetentionRuleRequest(AbstractModel):
|
|
|
13703
13909
|
|
|
13704
13910
|
@property
|
|
13705
13911
|
def NamespaceId(self):
|
|
13706
|
-
r"""
|
|
13912
|
+
r"""<p>命名空间的Id,必须填写原有的命名空间id</p>
|
|
13707
13913
|
:rtype: int
|
|
13708
13914
|
"""
|
|
13709
13915
|
return self._NamespaceId
|
|
@@ -13712,20 +13918,9 @@ class ModifyTagRetentionRuleRequest(AbstractModel):
|
|
|
13712
13918
|
def NamespaceId(self, NamespaceId):
|
|
13713
13919
|
self._NamespaceId = NamespaceId
|
|
13714
13920
|
|
|
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
13921
|
@property
|
|
13727
13922
|
def CronSetting(self):
|
|
13728
|
-
r"""
|
|
13923
|
+
r"""<p>执行周期,必须填写为原来的设置</p>
|
|
13729
13924
|
:rtype: str
|
|
13730
13925
|
"""
|
|
13731
13926
|
return self._CronSetting
|
|
@@ -13736,7 +13931,7 @@ class ModifyTagRetentionRuleRequest(AbstractModel):
|
|
|
13736
13931
|
|
|
13737
13932
|
@property
|
|
13738
13933
|
def RetentionId(self):
|
|
13739
|
-
r"""
|
|
13934
|
+
r"""<p>规则Id</p>
|
|
13740
13935
|
:rtype: int
|
|
13741
13936
|
"""
|
|
13742
13937
|
return self._RetentionId
|
|
@@ -13745,9 +13940,31 @@ class ModifyTagRetentionRuleRequest(AbstractModel):
|
|
|
13745
13940
|
def RetentionId(self, RetentionId):
|
|
13746
13941
|
self._RetentionId = RetentionId
|
|
13747
13942
|
|
|
13943
|
+
@property
|
|
13944
|
+
def RetentionRule(self):
|
|
13945
|
+
r"""<p>保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
13946
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
13947
|
+
"""
|
|
13948
|
+
return self._RetentionRule
|
|
13949
|
+
|
|
13950
|
+
@RetentionRule.setter
|
|
13951
|
+
def RetentionRule(self, RetentionRule):
|
|
13952
|
+
self._RetentionRule = RetentionRule
|
|
13953
|
+
|
|
13954
|
+
@property
|
|
13955
|
+
def AdvancedRuleItems(self):
|
|
13956
|
+
r"""<p>高级保留策略,当基本保留策略和高级保留策略同时配置时,优先使用高级保留策略</p>
|
|
13957
|
+
:rtype: list of RetentionRuleItem
|
|
13958
|
+
"""
|
|
13959
|
+
return self._AdvancedRuleItems
|
|
13960
|
+
|
|
13961
|
+
@AdvancedRuleItems.setter
|
|
13962
|
+
def AdvancedRuleItems(self, AdvancedRuleItems):
|
|
13963
|
+
self._AdvancedRuleItems = AdvancedRuleItems
|
|
13964
|
+
|
|
13748
13965
|
@property
|
|
13749
13966
|
def Disabled(self):
|
|
13750
|
-
r"""
|
|
13967
|
+
r"""<p>是否禁用规则</p>
|
|
13751
13968
|
:rtype: bool
|
|
13752
13969
|
"""
|
|
13753
13970
|
return self._Disabled
|
|
@@ -13760,11 +13977,17 @@ class ModifyTagRetentionRuleRequest(AbstractModel):
|
|
|
13760
13977
|
def _deserialize(self, params):
|
|
13761
13978
|
self._RegistryId = params.get("RegistryId")
|
|
13762
13979
|
self._NamespaceId = params.get("NamespaceId")
|
|
13980
|
+
self._CronSetting = params.get("CronSetting")
|
|
13981
|
+
self._RetentionId = params.get("RetentionId")
|
|
13763
13982
|
if params.get("RetentionRule") is not None:
|
|
13764
13983
|
self._RetentionRule = RetentionRule()
|
|
13765
13984
|
self._RetentionRule._deserialize(params.get("RetentionRule"))
|
|
13766
|
-
|
|
13767
|
-
|
|
13985
|
+
if params.get("AdvancedRuleItems") is not None:
|
|
13986
|
+
self._AdvancedRuleItems = []
|
|
13987
|
+
for item in params.get("AdvancedRuleItems"):
|
|
13988
|
+
obj = RetentionRuleItem()
|
|
13989
|
+
obj._deserialize(item)
|
|
13990
|
+
self._AdvancedRuleItems.append(obj)
|
|
13768
13991
|
self._Disabled = params.get("Disabled")
|
|
13769
13992
|
memeber_set = set(params.keys())
|
|
13770
13993
|
for name, value in vars(self).items():
|
|
@@ -16212,29 +16435,32 @@ class RetentionPolicy(AbstractModel):
|
|
|
16212
16435
|
|
|
16213
16436
|
def __init__(self):
|
|
16214
16437
|
r"""
|
|
16215
|
-
:param _RetentionId:
|
|
16438
|
+
:param _RetentionId: <p>版本保留策略Id</p>
|
|
16216
16439
|
:type RetentionId: int
|
|
16217
|
-
:param _NamespaceName:
|
|
16440
|
+
:param _NamespaceName: <p>命名空间的名称</p>
|
|
16218
16441
|
:type NamespaceName: str
|
|
16219
|
-
:param _RetentionRuleList:
|
|
16442
|
+
:param _RetentionRuleList: <p>规则列表</p>
|
|
16220
16443
|
:type RetentionRuleList: list of RetentionRule
|
|
16221
|
-
:param
|
|
16444
|
+
:param _AdvancedRuleItems: <p>高级保留规则列表</p>
|
|
16445
|
+
:type AdvancedRuleItems: list of RetentionRuleItem
|
|
16446
|
+
:param _CronSetting: <p>定期执行方式</p>
|
|
16222
16447
|
:type CronSetting: str
|
|
16223
|
-
:param _Disabled:
|
|
16448
|
+
:param _Disabled: <p>是否启用规则</p>
|
|
16224
16449
|
:type Disabled: bool
|
|
16225
|
-
:param _NextExecutionTime:
|
|
16450
|
+
:param _NextExecutionTime: <p>基于当前时间根据cronSetting后下一次任务要执行的时间,仅做参考使用</p>
|
|
16226
16451
|
:type NextExecutionTime: str
|
|
16227
16452
|
"""
|
|
16228
16453
|
self._RetentionId = None
|
|
16229
16454
|
self._NamespaceName = None
|
|
16230
16455
|
self._RetentionRuleList = None
|
|
16456
|
+
self._AdvancedRuleItems = None
|
|
16231
16457
|
self._CronSetting = None
|
|
16232
16458
|
self._Disabled = None
|
|
16233
16459
|
self._NextExecutionTime = None
|
|
16234
16460
|
|
|
16235
16461
|
@property
|
|
16236
16462
|
def RetentionId(self):
|
|
16237
|
-
r"""
|
|
16463
|
+
r"""<p>版本保留策略Id</p>
|
|
16238
16464
|
:rtype: int
|
|
16239
16465
|
"""
|
|
16240
16466
|
return self._RetentionId
|
|
@@ -16245,7 +16471,7 @@ class RetentionPolicy(AbstractModel):
|
|
|
16245
16471
|
|
|
16246
16472
|
@property
|
|
16247
16473
|
def NamespaceName(self):
|
|
16248
|
-
r"""
|
|
16474
|
+
r"""<p>命名空间的名称</p>
|
|
16249
16475
|
:rtype: str
|
|
16250
16476
|
"""
|
|
16251
16477
|
return self._NamespaceName
|
|
@@ -16256,7 +16482,7 @@ class RetentionPolicy(AbstractModel):
|
|
|
16256
16482
|
|
|
16257
16483
|
@property
|
|
16258
16484
|
def RetentionRuleList(self):
|
|
16259
|
-
r"""
|
|
16485
|
+
r"""<p>规则列表</p>
|
|
16260
16486
|
:rtype: list of RetentionRule
|
|
16261
16487
|
"""
|
|
16262
16488
|
return self._RetentionRuleList
|
|
@@ -16265,9 +16491,20 @@ class RetentionPolicy(AbstractModel):
|
|
|
16265
16491
|
def RetentionRuleList(self, RetentionRuleList):
|
|
16266
16492
|
self._RetentionRuleList = RetentionRuleList
|
|
16267
16493
|
|
|
16494
|
+
@property
|
|
16495
|
+
def AdvancedRuleItems(self):
|
|
16496
|
+
r"""<p>高级保留规则列表</p>
|
|
16497
|
+
:rtype: list of RetentionRuleItem
|
|
16498
|
+
"""
|
|
16499
|
+
return self._AdvancedRuleItems
|
|
16500
|
+
|
|
16501
|
+
@AdvancedRuleItems.setter
|
|
16502
|
+
def AdvancedRuleItems(self, AdvancedRuleItems):
|
|
16503
|
+
self._AdvancedRuleItems = AdvancedRuleItems
|
|
16504
|
+
|
|
16268
16505
|
@property
|
|
16269
16506
|
def CronSetting(self):
|
|
16270
|
-
r"""
|
|
16507
|
+
r"""<p>定期执行方式</p>
|
|
16271
16508
|
:rtype: str
|
|
16272
16509
|
"""
|
|
16273
16510
|
return self._CronSetting
|
|
@@ -16278,7 +16515,7 @@ class RetentionPolicy(AbstractModel):
|
|
|
16278
16515
|
|
|
16279
16516
|
@property
|
|
16280
16517
|
def Disabled(self):
|
|
16281
|
-
r"""
|
|
16518
|
+
r"""<p>是否启用规则</p>
|
|
16282
16519
|
:rtype: bool
|
|
16283
16520
|
"""
|
|
16284
16521
|
return self._Disabled
|
|
@@ -16289,7 +16526,7 @@ class RetentionPolicy(AbstractModel):
|
|
|
16289
16526
|
|
|
16290
16527
|
@property
|
|
16291
16528
|
def NextExecutionTime(self):
|
|
16292
|
-
r"""
|
|
16529
|
+
r"""<p>基于当前时间根据cronSetting后下一次任务要执行的时间,仅做参考使用</p>
|
|
16293
16530
|
:rtype: str
|
|
16294
16531
|
"""
|
|
16295
16532
|
return self._NextExecutionTime
|
|
@@ -16308,6 +16545,12 @@ class RetentionPolicy(AbstractModel):
|
|
|
16308
16545
|
obj = RetentionRule()
|
|
16309
16546
|
obj._deserialize(item)
|
|
16310
16547
|
self._RetentionRuleList.append(obj)
|
|
16548
|
+
if params.get("AdvancedRuleItems") is not None:
|
|
16549
|
+
self._AdvancedRuleItems = []
|
|
16550
|
+
for item in params.get("AdvancedRuleItems"):
|
|
16551
|
+
obj = RetentionRuleItem()
|
|
16552
|
+
obj._deserialize(item)
|
|
16553
|
+
self._AdvancedRuleItems.append(obj)
|
|
16311
16554
|
self._CronSetting = params.get("CronSetting")
|
|
16312
16555
|
self._Disabled = params.get("Disabled")
|
|
16313
16556
|
self._NextExecutionTime = params.get("NextExecutionTime")
|
|
@@ -16372,6 +16615,78 @@ class RetentionRule(AbstractModel):
|
|
|
16372
16615
|
|
|
16373
16616
|
|
|
16374
16617
|
|
|
16618
|
+
class RetentionRuleItem(AbstractModel):
|
|
16619
|
+
r"""版本保留规则
|
|
16620
|
+
|
|
16621
|
+
"""
|
|
16622
|
+
|
|
16623
|
+
def __init__(self):
|
|
16624
|
+
r"""
|
|
16625
|
+
:param _RetentionPolicy: <p>版本保留规则</p>
|
|
16626
|
+
:type RetentionPolicy: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
16627
|
+
:param _TagFilter: <p>标签过滤器</p>
|
|
16628
|
+
:type TagFilter: :class:`tencentcloud.tcr.v20190924.models.FilterSelector`
|
|
16629
|
+
:param _RepositoryFilter: <p>仓库过滤器</p>
|
|
16630
|
+
:type RepositoryFilter: :class:`tencentcloud.tcr.v20190924.models.FilterSelector`
|
|
16631
|
+
"""
|
|
16632
|
+
self._RetentionPolicy = None
|
|
16633
|
+
self._TagFilter = None
|
|
16634
|
+
self._RepositoryFilter = None
|
|
16635
|
+
|
|
16636
|
+
@property
|
|
16637
|
+
def RetentionPolicy(self):
|
|
16638
|
+
r"""<p>版本保留规则</p>
|
|
16639
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.RetentionRule`
|
|
16640
|
+
"""
|
|
16641
|
+
return self._RetentionPolicy
|
|
16642
|
+
|
|
16643
|
+
@RetentionPolicy.setter
|
|
16644
|
+
def RetentionPolicy(self, RetentionPolicy):
|
|
16645
|
+
self._RetentionPolicy = RetentionPolicy
|
|
16646
|
+
|
|
16647
|
+
@property
|
|
16648
|
+
def TagFilter(self):
|
|
16649
|
+
r"""<p>标签过滤器</p>
|
|
16650
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.FilterSelector`
|
|
16651
|
+
"""
|
|
16652
|
+
return self._TagFilter
|
|
16653
|
+
|
|
16654
|
+
@TagFilter.setter
|
|
16655
|
+
def TagFilter(self, TagFilter):
|
|
16656
|
+
self._TagFilter = TagFilter
|
|
16657
|
+
|
|
16658
|
+
@property
|
|
16659
|
+
def RepositoryFilter(self):
|
|
16660
|
+
r"""<p>仓库过滤器</p>
|
|
16661
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.FilterSelector`
|
|
16662
|
+
"""
|
|
16663
|
+
return self._RepositoryFilter
|
|
16664
|
+
|
|
16665
|
+
@RepositoryFilter.setter
|
|
16666
|
+
def RepositoryFilter(self, RepositoryFilter):
|
|
16667
|
+
self._RepositoryFilter = RepositoryFilter
|
|
16668
|
+
|
|
16669
|
+
|
|
16670
|
+
def _deserialize(self, params):
|
|
16671
|
+
if params.get("RetentionPolicy") is not None:
|
|
16672
|
+
self._RetentionPolicy = RetentionRule()
|
|
16673
|
+
self._RetentionPolicy._deserialize(params.get("RetentionPolicy"))
|
|
16674
|
+
if params.get("TagFilter") is not None:
|
|
16675
|
+
self._TagFilter = FilterSelector()
|
|
16676
|
+
self._TagFilter._deserialize(params.get("TagFilter"))
|
|
16677
|
+
if params.get("RepositoryFilter") is not None:
|
|
16678
|
+
self._RepositoryFilter = FilterSelector()
|
|
16679
|
+
self._RepositoryFilter._deserialize(params.get("RepositoryFilter"))
|
|
16680
|
+
memeber_set = set(params.keys())
|
|
16681
|
+
for name, value in vars(self).items():
|
|
16682
|
+
property_name = name[1:]
|
|
16683
|
+
if property_name in memeber_set:
|
|
16684
|
+
memeber_set.remove(property_name)
|
|
16685
|
+
if len(memeber_set) > 0:
|
|
16686
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16687
|
+
|
|
16688
|
+
|
|
16689
|
+
|
|
16375
16690
|
class RetentionTask(AbstractModel):
|
|
16376
16691
|
r"""版本保留执行的规则
|
|
16377
16692
|
|
|
@@ -141,6 +141,29 @@ class TcrClient(AbstractClient):
|
|
|
141
141
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
142
142
|
|
|
143
143
|
|
|
144
|
+
def CreateGCJob(self, request):
|
|
145
|
+
r"""创建 GC 作业
|
|
146
|
+
|
|
147
|
+
:param request: Request instance for CreateGCJob.
|
|
148
|
+
:type request: :class:`tencentcloud.tcr.v20190924.models.CreateGCJobRequest`
|
|
149
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.CreateGCJobResponse`
|
|
150
|
+
|
|
151
|
+
"""
|
|
152
|
+
try:
|
|
153
|
+
params = request._serialize()
|
|
154
|
+
headers = request.headers
|
|
155
|
+
body = self.call("CreateGCJob", params, headers=headers)
|
|
156
|
+
response = json.loads(body)
|
|
157
|
+
model = models.CreateGCJobResponse()
|
|
158
|
+
model._deserialize(response["Response"])
|
|
159
|
+
return model
|
|
160
|
+
except Exception as e:
|
|
161
|
+
if isinstance(e, TencentCloudSDKException):
|
|
162
|
+
raise
|
|
163
|
+
else:
|
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
165
|
+
|
|
166
|
+
|
|
144
167
|
def CreateImageAccelerationService(self, request):
|
|
145
168
|
r"""创建镜像加速服务
|
|
146
169
|
|
|
@@ -115,6 +115,24 @@ class TcrClient(AbstractClient):
|
|
|
115
115
|
|
|
116
116
|
return await self.call_and_deserialize(**kwargs)
|
|
117
117
|
|
|
118
|
+
async def CreateGCJob(
|
|
119
|
+
self,
|
|
120
|
+
request: models.CreateGCJobRequest,
|
|
121
|
+
opts: Dict = None,
|
|
122
|
+
) -> models.CreateGCJobResponse:
|
|
123
|
+
"""
|
|
124
|
+
创建 GC 作业
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = {}
|
|
128
|
+
kwargs["action"] = "CreateGCJob"
|
|
129
|
+
kwargs["params"] = request._serialize()
|
|
130
|
+
kwargs["resp_cls"] = models.CreateGCJobResponse
|
|
131
|
+
kwargs["headers"] = request.headers
|
|
132
|
+
kwargs["opts"] = opts or {}
|
|
133
|
+
|
|
134
|
+
return await self.call_and_deserialize(**kwargs)
|
|
135
|
+
|
|
118
136
|
async def CreateImageAccelerationService(
|
|
119
137
|
self,
|
|
120
138
|
request: models.CreateImageAccelerationServiceRequest,
|
|
@@ -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.43
|
|
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.43
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.43
|
|
@@ -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
|