tencentcloud-sdk-python-tcr 3.0.1459__tar.gz → 3.1.16__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.16/PKG-INFO +46 -0
- {tencentcloud-sdk-python-tcr-3.0.1459 → tencentcloud_sdk_python_tcr-3.1.16}/setup.py +2 -1
- {tencentcloud-sdk-python-tcr-3.0.1459 → tencentcloud_sdk_python_tcr-3.1.16}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-tcr-3.0.1459 → tencentcloud_sdk_python_tcr-3.1.16}/tencentcloud/tcr/v20190924/models.py +478 -0
- {tencentcloud-sdk-python-tcr-3.0.1459 → tencentcloud_sdk_python_tcr-3.1.16}/tencentcloud/tcr/v20190924/tcr_client.py +46 -0
- tencentcloud_sdk_python_tcr-3.1.16/tencentcloud/tcr/v20190924/tcr_client_async.py +2044 -0
- tencentcloud_sdk_python_tcr-3.1.16/tencentcloud_sdk_python_tcr.egg-info/PKG-INFO +46 -0
- {tencentcloud-sdk-python-tcr-3.0.1459 → tencentcloud_sdk_python_tcr-3.1.16}/tencentcloud_sdk_python_tcr.egg-info/SOURCES.txt +1 -0
- tencentcloud_sdk_python_tcr-3.1.16/tencentcloud_sdk_python_tcr.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-tcr-3.0.1459/PKG-INFO +0 -45
- tencentcloud-sdk-python-tcr-3.0.1459/tencentcloud_sdk_python_tcr.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-tcr-3.0.1459/tencentcloud_sdk_python_tcr.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-tcr-3.0.1459 → tencentcloud_sdk_python_tcr-3.1.16}/README.rst +0 -0
- {tencentcloud-sdk-python-tcr-3.0.1459 → tencentcloud_sdk_python_tcr-3.1.16}/setup.cfg +0 -0
- {tencentcloud-sdk-python-tcr-3.0.1459 → tencentcloud_sdk_python_tcr-3.1.16}/tencentcloud/tcr/__init__.py +0 -0
- {tencentcloud-sdk-python-tcr-3.0.1459 → tencentcloud_sdk_python_tcr-3.1.16}/tencentcloud/tcr/v20190924/__init__.py +0 -0
- {tencentcloud-sdk-python-tcr-3.0.1459 → tencentcloud_sdk_python_tcr-3.1.16}/tencentcloud/tcr/v20190924/errorcodes.py +0 -0
- {tencentcloud-sdk-python-tcr-3.0.1459 → tencentcloud_sdk_python_tcr-3.1.16}/tencentcloud_sdk_python_tcr.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-tcr-3.0.1459 → tencentcloud_sdk_python_tcr-3.1.16}/tencentcloud_sdk_python_tcr.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-tcr
|
|
3
|
+
Version: 3.1.16
|
|
4
|
+
Summary: Tencent Cloud Tcr SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Platform: any
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.16
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Tcr SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
25
|
+
The SDK works on Python versions:
|
|
26
|
+
|
|
27
|
+
* 2.7 and greater, including 3.x
|
|
28
|
+
|
|
29
|
+
Quick Start
|
|
30
|
+
-----------
|
|
31
|
+
|
|
32
|
+
First, install the library:
|
|
33
|
+
|
|
34
|
+
.. code-block:: sh
|
|
35
|
+
|
|
36
|
+
$ pip install tencentcloud-sdk-python-common
|
|
37
|
+
$ pip install tencentcloud-sdk-python-tcr
|
|
38
|
+
|
|
39
|
+
or download source code from github and install:
|
|
40
|
+
|
|
41
|
+
.. code-block:: sh
|
|
42
|
+
|
|
43
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
44
|
+
$ cd tencentcloud-sdk-python
|
|
45
|
+
$ python package.py --components common tcr
|
|
46
|
+
|
|
@@ -8,7 +8,8 @@ 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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.16,<4.0.0"],
|
|
12
|
+
|
|
12
13
|
version=tencentcloud.__version__,
|
|
13
14
|
description='Tencent Cloud Tcr SDK for Python',
|
|
14
15
|
long_description=open('README.rst').read(),
|
|
@@ -4605,6 +4605,100 @@ class DeleteReplicationInstanceResponse(AbstractModel):
|
|
|
4605
4605
|
self._RequestId = params.get("RequestId")
|
|
4606
4606
|
|
|
4607
4607
|
|
|
4608
|
+
class DeleteReplicationRuleRequest(AbstractModel):
|
|
4609
|
+
r"""DeleteReplicationRule请求参数结构体
|
|
4610
|
+
|
|
4611
|
+
"""
|
|
4612
|
+
|
|
4613
|
+
def __init__(self):
|
|
4614
|
+
r"""
|
|
4615
|
+
:param _SourceRegistryId: 源实例ID
|
|
4616
|
+
:type SourceRegistryId: str
|
|
4617
|
+
:param _RuleName: 同步规则名称
|
|
4618
|
+
:type RuleName: str
|
|
4619
|
+
:param _Description: 规则描述
|
|
4620
|
+
:type Description: str
|
|
4621
|
+
"""
|
|
4622
|
+
self._SourceRegistryId = None
|
|
4623
|
+
self._RuleName = None
|
|
4624
|
+
self._Description = None
|
|
4625
|
+
|
|
4626
|
+
@property
|
|
4627
|
+
def SourceRegistryId(self):
|
|
4628
|
+
r"""源实例ID
|
|
4629
|
+
:rtype: str
|
|
4630
|
+
"""
|
|
4631
|
+
return self._SourceRegistryId
|
|
4632
|
+
|
|
4633
|
+
@SourceRegistryId.setter
|
|
4634
|
+
def SourceRegistryId(self, SourceRegistryId):
|
|
4635
|
+
self._SourceRegistryId = SourceRegistryId
|
|
4636
|
+
|
|
4637
|
+
@property
|
|
4638
|
+
def RuleName(self):
|
|
4639
|
+
r"""同步规则名称
|
|
4640
|
+
:rtype: str
|
|
4641
|
+
"""
|
|
4642
|
+
return self._RuleName
|
|
4643
|
+
|
|
4644
|
+
@RuleName.setter
|
|
4645
|
+
def RuleName(self, RuleName):
|
|
4646
|
+
self._RuleName = RuleName
|
|
4647
|
+
|
|
4648
|
+
@property
|
|
4649
|
+
def Description(self):
|
|
4650
|
+
r"""规则描述
|
|
4651
|
+
:rtype: str
|
|
4652
|
+
"""
|
|
4653
|
+
return self._Description
|
|
4654
|
+
|
|
4655
|
+
@Description.setter
|
|
4656
|
+
def Description(self, Description):
|
|
4657
|
+
self._Description = Description
|
|
4658
|
+
|
|
4659
|
+
|
|
4660
|
+
def _deserialize(self, params):
|
|
4661
|
+
self._SourceRegistryId = params.get("SourceRegistryId")
|
|
4662
|
+
self._RuleName = params.get("RuleName")
|
|
4663
|
+
self._Description = params.get("Description")
|
|
4664
|
+
memeber_set = set(params.keys())
|
|
4665
|
+
for name, value in vars(self).items():
|
|
4666
|
+
property_name = name[1:]
|
|
4667
|
+
if property_name in memeber_set:
|
|
4668
|
+
memeber_set.remove(property_name)
|
|
4669
|
+
if len(memeber_set) > 0:
|
|
4670
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4671
|
+
|
|
4672
|
+
|
|
4673
|
+
|
|
4674
|
+
class DeleteReplicationRuleResponse(AbstractModel):
|
|
4675
|
+
r"""DeleteReplicationRule返回参数结构体
|
|
4676
|
+
|
|
4677
|
+
"""
|
|
4678
|
+
|
|
4679
|
+
def __init__(self):
|
|
4680
|
+
r"""
|
|
4681
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4682
|
+
:type RequestId: str
|
|
4683
|
+
"""
|
|
4684
|
+
self._RequestId = None
|
|
4685
|
+
|
|
4686
|
+
@property
|
|
4687
|
+
def RequestId(self):
|
|
4688
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4689
|
+
:rtype: str
|
|
4690
|
+
"""
|
|
4691
|
+
return self._RequestId
|
|
4692
|
+
|
|
4693
|
+
@RequestId.setter
|
|
4694
|
+
def RequestId(self, RequestId):
|
|
4695
|
+
self._RequestId = RequestId
|
|
4696
|
+
|
|
4697
|
+
|
|
4698
|
+
def _deserialize(self, params):
|
|
4699
|
+
self._RequestId = params.get("RequestId")
|
|
4700
|
+
|
|
4701
|
+
|
|
4608
4702
|
class DeleteRepositoryPersonalRequest(AbstractModel):
|
|
4609
4703
|
r"""DeleteRepositoryPersonal请求参数结构体
|
|
4610
4704
|
|
|
@@ -8702,6 +8796,139 @@ class DescribeReplicationInstancesResponse(AbstractModel):
|
|
|
8702
8796
|
self._RequestId = params.get("RequestId")
|
|
8703
8797
|
|
|
8704
8798
|
|
|
8799
|
+
class DescribeReplicationPoliciesRequest(AbstractModel):
|
|
8800
|
+
r"""DescribeReplicationPolicies请求参数结构体
|
|
8801
|
+
|
|
8802
|
+
"""
|
|
8803
|
+
|
|
8804
|
+
def __init__(self):
|
|
8805
|
+
r"""
|
|
8806
|
+
:param _RegistryId: 实例ID
|
|
8807
|
+
:type RegistryId: str
|
|
8808
|
+
:param _Page: 页数,默认为1
|
|
8809
|
+
:type Page: int
|
|
8810
|
+
:param _PageSize: 每页展示个数,默认为100
|
|
8811
|
+
:type PageSize: int
|
|
8812
|
+
"""
|
|
8813
|
+
self._RegistryId = None
|
|
8814
|
+
self._Page = None
|
|
8815
|
+
self._PageSize = None
|
|
8816
|
+
|
|
8817
|
+
@property
|
|
8818
|
+
def RegistryId(self):
|
|
8819
|
+
r"""实例ID
|
|
8820
|
+
:rtype: str
|
|
8821
|
+
"""
|
|
8822
|
+
return self._RegistryId
|
|
8823
|
+
|
|
8824
|
+
@RegistryId.setter
|
|
8825
|
+
def RegistryId(self, RegistryId):
|
|
8826
|
+
self._RegistryId = RegistryId
|
|
8827
|
+
|
|
8828
|
+
@property
|
|
8829
|
+
def Page(self):
|
|
8830
|
+
r"""页数,默认为1
|
|
8831
|
+
:rtype: int
|
|
8832
|
+
"""
|
|
8833
|
+
return self._Page
|
|
8834
|
+
|
|
8835
|
+
@Page.setter
|
|
8836
|
+
def Page(self, Page):
|
|
8837
|
+
self._Page = Page
|
|
8838
|
+
|
|
8839
|
+
@property
|
|
8840
|
+
def PageSize(self):
|
|
8841
|
+
r"""每页展示个数,默认为100
|
|
8842
|
+
:rtype: int
|
|
8843
|
+
"""
|
|
8844
|
+
return self._PageSize
|
|
8845
|
+
|
|
8846
|
+
@PageSize.setter
|
|
8847
|
+
def PageSize(self, PageSize):
|
|
8848
|
+
self._PageSize = PageSize
|
|
8849
|
+
|
|
8850
|
+
|
|
8851
|
+
def _deserialize(self, params):
|
|
8852
|
+
self._RegistryId = params.get("RegistryId")
|
|
8853
|
+
self._Page = params.get("Page")
|
|
8854
|
+
self._PageSize = params.get("PageSize")
|
|
8855
|
+
memeber_set = set(params.keys())
|
|
8856
|
+
for name, value in vars(self).items():
|
|
8857
|
+
property_name = name[1:]
|
|
8858
|
+
if property_name in memeber_set:
|
|
8859
|
+
memeber_set.remove(property_name)
|
|
8860
|
+
if len(memeber_set) > 0:
|
|
8861
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8862
|
+
|
|
8863
|
+
|
|
8864
|
+
|
|
8865
|
+
class DescribeReplicationPoliciesResponse(AbstractModel):
|
|
8866
|
+
r"""DescribeReplicationPolicies返回参数结构体
|
|
8867
|
+
|
|
8868
|
+
"""
|
|
8869
|
+
|
|
8870
|
+
def __init__(self):
|
|
8871
|
+
r"""
|
|
8872
|
+
:param _ReplicationPolicyInfoList: 实例同步策略列表
|
|
8873
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8874
|
+
:type ReplicationPolicyInfoList: list of ReplicationPolicyInfo
|
|
8875
|
+
:param _TotalCount: 策略总数
|
|
8876
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8877
|
+
:type TotalCount: int
|
|
8878
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8879
|
+
:type RequestId: str
|
|
8880
|
+
"""
|
|
8881
|
+
self._ReplicationPolicyInfoList = None
|
|
8882
|
+
self._TotalCount = None
|
|
8883
|
+
self._RequestId = None
|
|
8884
|
+
|
|
8885
|
+
@property
|
|
8886
|
+
def ReplicationPolicyInfoList(self):
|
|
8887
|
+
r"""实例同步策略列表
|
|
8888
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8889
|
+
:rtype: list of ReplicationPolicyInfo
|
|
8890
|
+
"""
|
|
8891
|
+
return self._ReplicationPolicyInfoList
|
|
8892
|
+
|
|
8893
|
+
@ReplicationPolicyInfoList.setter
|
|
8894
|
+
def ReplicationPolicyInfoList(self, ReplicationPolicyInfoList):
|
|
8895
|
+
self._ReplicationPolicyInfoList = ReplicationPolicyInfoList
|
|
8896
|
+
|
|
8897
|
+
@property
|
|
8898
|
+
def TotalCount(self):
|
|
8899
|
+
r"""策略总数
|
|
8900
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8901
|
+
:rtype: int
|
|
8902
|
+
"""
|
|
8903
|
+
return self._TotalCount
|
|
8904
|
+
|
|
8905
|
+
@TotalCount.setter
|
|
8906
|
+
def TotalCount(self, TotalCount):
|
|
8907
|
+
self._TotalCount = TotalCount
|
|
8908
|
+
|
|
8909
|
+
@property
|
|
8910
|
+
def RequestId(self):
|
|
8911
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8912
|
+
:rtype: str
|
|
8913
|
+
"""
|
|
8914
|
+
return self._RequestId
|
|
8915
|
+
|
|
8916
|
+
@RequestId.setter
|
|
8917
|
+
def RequestId(self, RequestId):
|
|
8918
|
+
self._RequestId = RequestId
|
|
8919
|
+
|
|
8920
|
+
|
|
8921
|
+
def _deserialize(self, params):
|
|
8922
|
+
if params.get("ReplicationPolicyInfoList") is not None:
|
|
8923
|
+
self._ReplicationPolicyInfoList = []
|
|
8924
|
+
for item in params.get("ReplicationPolicyInfoList"):
|
|
8925
|
+
obj = ReplicationPolicyInfo()
|
|
8926
|
+
obj._deserialize(item)
|
|
8927
|
+
self._ReplicationPolicyInfoList.append(obj)
|
|
8928
|
+
self._TotalCount = params.get("TotalCount")
|
|
8929
|
+
self._RequestId = params.get("RequestId")
|
|
8930
|
+
|
|
8931
|
+
|
|
8705
8932
|
class DescribeRepositoriesRequest(AbstractModel):
|
|
8706
8933
|
r"""DescribeRepositories请求参数结构体
|
|
8707
8934
|
|
|
@@ -13933,6 +14160,61 @@ class Permission(AbstractModel):
|
|
|
13933
14160
|
|
|
13934
14161
|
|
|
13935
14162
|
|
|
14163
|
+
class PolicyFilter(AbstractModel):
|
|
14164
|
+
r"""策略过滤条件
|
|
14165
|
+
|
|
14166
|
+
"""
|
|
14167
|
+
|
|
14168
|
+
def __init__(self):
|
|
14169
|
+
r"""
|
|
14170
|
+
:param _Type: 策略过滤类型
|
|
14171
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14172
|
+
:type Type: str
|
|
14173
|
+
:param _Value: 策略过滤值
|
|
14174
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14175
|
+
:type Value: str
|
|
14176
|
+
"""
|
|
14177
|
+
self._Type = None
|
|
14178
|
+
self._Value = None
|
|
14179
|
+
|
|
14180
|
+
@property
|
|
14181
|
+
def Type(self):
|
|
14182
|
+
r"""策略过滤类型
|
|
14183
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14184
|
+
:rtype: str
|
|
14185
|
+
"""
|
|
14186
|
+
return self._Type
|
|
14187
|
+
|
|
14188
|
+
@Type.setter
|
|
14189
|
+
def Type(self, Type):
|
|
14190
|
+
self._Type = Type
|
|
14191
|
+
|
|
14192
|
+
@property
|
|
14193
|
+
def Value(self):
|
|
14194
|
+
r"""策略过滤值
|
|
14195
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14196
|
+
:rtype: str
|
|
14197
|
+
"""
|
|
14198
|
+
return self._Value
|
|
14199
|
+
|
|
14200
|
+
@Value.setter
|
|
14201
|
+
def Value(self, Value):
|
|
14202
|
+
self._Value = Value
|
|
14203
|
+
|
|
14204
|
+
|
|
14205
|
+
def _deserialize(self, params):
|
|
14206
|
+
self._Type = params.get("Type")
|
|
14207
|
+
self._Value = params.get("Value")
|
|
14208
|
+
memeber_set = set(params.keys())
|
|
14209
|
+
for name, value in vars(self).items():
|
|
14210
|
+
property_name = name[1:]
|
|
14211
|
+
if property_name in memeber_set:
|
|
14212
|
+
memeber_set.remove(property_name)
|
|
14213
|
+
if len(memeber_set) > 0:
|
|
14214
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14215
|
+
|
|
14216
|
+
|
|
14217
|
+
|
|
13936
14218
|
class Region(AbstractModel):
|
|
13937
14219
|
r"""地域信息
|
|
13938
14220
|
|
|
@@ -14820,6 +15102,202 @@ class ReplicationLog(AbstractModel):
|
|
|
14820
15102
|
|
|
14821
15103
|
|
|
14822
15104
|
|
|
15105
|
+
class ReplicationPolicyInfo(AbstractModel):
|
|
15106
|
+
r"""实例复制/实例同步策略信息ID
|
|
15107
|
+
|
|
15108
|
+
"""
|
|
15109
|
+
|
|
15110
|
+
def __init__(self):
|
|
15111
|
+
r"""
|
|
15112
|
+
:param _ID: 策略ID
|
|
15113
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15114
|
+
:type ID: int
|
|
15115
|
+
:param _Name: 策略名字
|
|
15116
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15117
|
+
:type Name: str
|
|
15118
|
+
:param _Description: 策略描述信息
|
|
15119
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15120
|
+
:type Description: str
|
|
15121
|
+
:param _Filters: 策略过滤条件
|
|
15122
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15123
|
+
:type Filters: list of PolicyFilter
|
|
15124
|
+
:param _Override: 是否覆盖对端同名镜像
|
|
15125
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15126
|
+
:type Override: bool
|
|
15127
|
+
:param _Enabled: 是否开启
|
|
15128
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15129
|
+
:type Enabled: bool
|
|
15130
|
+
:param _SrcResource: 源信息
|
|
15131
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15132
|
+
:type SrcResource: str
|
|
15133
|
+
:param _DestResource: 目的资源
|
|
15134
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15135
|
+
:type DestResource: str
|
|
15136
|
+
:param _CreationTime: 创建时间
|
|
15137
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15138
|
+
:type CreationTime: str
|
|
15139
|
+
:param _UpdateTime: 更新时间
|
|
15140
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15141
|
+
:type UpdateTime: str
|
|
15142
|
+
"""
|
|
15143
|
+
self._ID = None
|
|
15144
|
+
self._Name = None
|
|
15145
|
+
self._Description = None
|
|
15146
|
+
self._Filters = None
|
|
15147
|
+
self._Override = None
|
|
15148
|
+
self._Enabled = None
|
|
15149
|
+
self._SrcResource = None
|
|
15150
|
+
self._DestResource = None
|
|
15151
|
+
self._CreationTime = None
|
|
15152
|
+
self._UpdateTime = None
|
|
15153
|
+
|
|
15154
|
+
@property
|
|
15155
|
+
def ID(self):
|
|
15156
|
+
r"""策略ID
|
|
15157
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15158
|
+
:rtype: int
|
|
15159
|
+
"""
|
|
15160
|
+
return self._ID
|
|
15161
|
+
|
|
15162
|
+
@ID.setter
|
|
15163
|
+
def ID(self, ID):
|
|
15164
|
+
self._ID = ID
|
|
15165
|
+
|
|
15166
|
+
@property
|
|
15167
|
+
def Name(self):
|
|
15168
|
+
r"""策略名字
|
|
15169
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15170
|
+
:rtype: str
|
|
15171
|
+
"""
|
|
15172
|
+
return self._Name
|
|
15173
|
+
|
|
15174
|
+
@Name.setter
|
|
15175
|
+
def Name(self, Name):
|
|
15176
|
+
self._Name = Name
|
|
15177
|
+
|
|
15178
|
+
@property
|
|
15179
|
+
def Description(self):
|
|
15180
|
+
r"""策略描述信息
|
|
15181
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15182
|
+
:rtype: str
|
|
15183
|
+
"""
|
|
15184
|
+
return self._Description
|
|
15185
|
+
|
|
15186
|
+
@Description.setter
|
|
15187
|
+
def Description(self, Description):
|
|
15188
|
+
self._Description = Description
|
|
15189
|
+
|
|
15190
|
+
@property
|
|
15191
|
+
def Filters(self):
|
|
15192
|
+
r"""策略过滤条件
|
|
15193
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15194
|
+
:rtype: list of PolicyFilter
|
|
15195
|
+
"""
|
|
15196
|
+
return self._Filters
|
|
15197
|
+
|
|
15198
|
+
@Filters.setter
|
|
15199
|
+
def Filters(self, Filters):
|
|
15200
|
+
self._Filters = Filters
|
|
15201
|
+
|
|
15202
|
+
@property
|
|
15203
|
+
def Override(self):
|
|
15204
|
+
r"""是否覆盖对端同名镜像
|
|
15205
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15206
|
+
:rtype: bool
|
|
15207
|
+
"""
|
|
15208
|
+
return self._Override
|
|
15209
|
+
|
|
15210
|
+
@Override.setter
|
|
15211
|
+
def Override(self, Override):
|
|
15212
|
+
self._Override = Override
|
|
15213
|
+
|
|
15214
|
+
@property
|
|
15215
|
+
def Enabled(self):
|
|
15216
|
+
r"""是否开启
|
|
15217
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15218
|
+
:rtype: bool
|
|
15219
|
+
"""
|
|
15220
|
+
return self._Enabled
|
|
15221
|
+
|
|
15222
|
+
@Enabled.setter
|
|
15223
|
+
def Enabled(self, Enabled):
|
|
15224
|
+
self._Enabled = Enabled
|
|
15225
|
+
|
|
15226
|
+
@property
|
|
15227
|
+
def SrcResource(self):
|
|
15228
|
+
r"""源信息
|
|
15229
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15230
|
+
:rtype: str
|
|
15231
|
+
"""
|
|
15232
|
+
return self._SrcResource
|
|
15233
|
+
|
|
15234
|
+
@SrcResource.setter
|
|
15235
|
+
def SrcResource(self, SrcResource):
|
|
15236
|
+
self._SrcResource = SrcResource
|
|
15237
|
+
|
|
15238
|
+
@property
|
|
15239
|
+
def DestResource(self):
|
|
15240
|
+
r"""目的资源
|
|
15241
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15242
|
+
:rtype: str
|
|
15243
|
+
"""
|
|
15244
|
+
return self._DestResource
|
|
15245
|
+
|
|
15246
|
+
@DestResource.setter
|
|
15247
|
+
def DestResource(self, DestResource):
|
|
15248
|
+
self._DestResource = DestResource
|
|
15249
|
+
|
|
15250
|
+
@property
|
|
15251
|
+
def CreationTime(self):
|
|
15252
|
+
r"""创建时间
|
|
15253
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15254
|
+
:rtype: str
|
|
15255
|
+
"""
|
|
15256
|
+
return self._CreationTime
|
|
15257
|
+
|
|
15258
|
+
@CreationTime.setter
|
|
15259
|
+
def CreationTime(self, CreationTime):
|
|
15260
|
+
self._CreationTime = CreationTime
|
|
15261
|
+
|
|
15262
|
+
@property
|
|
15263
|
+
def UpdateTime(self):
|
|
15264
|
+
r"""更新时间
|
|
15265
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15266
|
+
:rtype: str
|
|
15267
|
+
"""
|
|
15268
|
+
return self._UpdateTime
|
|
15269
|
+
|
|
15270
|
+
@UpdateTime.setter
|
|
15271
|
+
def UpdateTime(self, UpdateTime):
|
|
15272
|
+
self._UpdateTime = UpdateTime
|
|
15273
|
+
|
|
15274
|
+
|
|
15275
|
+
def _deserialize(self, params):
|
|
15276
|
+
self._ID = params.get("ID")
|
|
15277
|
+
self._Name = params.get("Name")
|
|
15278
|
+
self._Description = params.get("Description")
|
|
15279
|
+
if params.get("Filters") is not None:
|
|
15280
|
+
self._Filters = []
|
|
15281
|
+
for item in params.get("Filters"):
|
|
15282
|
+
obj = PolicyFilter()
|
|
15283
|
+
obj._deserialize(item)
|
|
15284
|
+
self._Filters.append(obj)
|
|
15285
|
+
self._Override = params.get("Override")
|
|
15286
|
+
self._Enabled = params.get("Enabled")
|
|
15287
|
+
self._SrcResource = params.get("SrcResource")
|
|
15288
|
+
self._DestResource = params.get("DestResource")
|
|
15289
|
+
self._CreationTime = params.get("CreationTime")
|
|
15290
|
+
self._UpdateTime = params.get("UpdateTime")
|
|
15291
|
+
memeber_set = set(params.keys())
|
|
15292
|
+
for name, value in vars(self).items():
|
|
15293
|
+
property_name = name[1:]
|
|
15294
|
+
if property_name in memeber_set:
|
|
15295
|
+
memeber_set.remove(property_name)
|
|
15296
|
+
if len(memeber_set) > 0:
|
|
15297
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15298
|
+
|
|
15299
|
+
|
|
15300
|
+
|
|
14823
15301
|
class ReplicationRegistry(AbstractModel):
|
|
14824
15302
|
r"""企业版复制实例
|
|
14825
15303
|
|
|
@@ -923,6 +923,29 @@ class TcrClient(AbstractClient):
|
|
|
923
923
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
924
924
|
|
|
925
925
|
|
|
926
|
+
def DeleteReplicationRule(self, request):
|
|
927
|
+
r"""删除实例同步规则
|
|
928
|
+
|
|
929
|
+
:param request: Request instance for DeleteReplicationRule.
|
|
930
|
+
:type request: :class:`tencentcloud.tcr.v20190924.models.DeleteReplicationRuleRequest`
|
|
931
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.DeleteReplicationRuleResponse`
|
|
932
|
+
|
|
933
|
+
"""
|
|
934
|
+
try:
|
|
935
|
+
params = request._serialize()
|
|
936
|
+
headers = request.headers
|
|
937
|
+
body = self.call("DeleteReplicationRule", params, headers=headers)
|
|
938
|
+
response = json.loads(body)
|
|
939
|
+
model = models.DeleteReplicationRuleResponse()
|
|
940
|
+
model._deserialize(response["Response"])
|
|
941
|
+
return model
|
|
942
|
+
except Exception as e:
|
|
943
|
+
if isinstance(e, TencentCloudSDKException):
|
|
944
|
+
raise
|
|
945
|
+
else:
|
|
946
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
947
|
+
|
|
948
|
+
|
|
926
949
|
def DeleteRepository(self, request):
|
|
927
950
|
r"""删除镜像仓库
|
|
928
951
|
|
|
@@ -1730,6 +1753,29 @@ class TcrClient(AbstractClient):
|
|
|
1730
1753
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1731
1754
|
|
|
1732
1755
|
|
|
1756
|
+
def DescribeReplicationPolicies(self, request):
|
|
1757
|
+
r"""获取实例同步规则列表
|
|
1758
|
+
|
|
1759
|
+
:param request: Request instance for DescribeReplicationPolicies.
|
|
1760
|
+
:type request: :class:`tencentcloud.tcr.v20190924.models.DescribeReplicationPoliciesRequest`
|
|
1761
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.DescribeReplicationPoliciesResponse`
|
|
1762
|
+
|
|
1763
|
+
"""
|
|
1764
|
+
try:
|
|
1765
|
+
params = request._serialize()
|
|
1766
|
+
headers = request.headers
|
|
1767
|
+
body = self.call("DescribeReplicationPolicies", params, headers=headers)
|
|
1768
|
+
response = json.loads(body)
|
|
1769
|
+
model = models.DescribeReplicationPoliciesResponse()
|
|
1770
|
+
model._deserialize(response["Response"])
|
|
1771
|
+
return model
|
|
1772
|
+
except Exception as e:
|
|
1773
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1774
|
+
raise
|
|
1775
|
+
else:
|
|
1776
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1777
|
+
|
|
1778
|
+
|
|
1733
1779
|
def DescribeRepositories(self, request):
|
|
1734
1780
|
r"""查询镜像仓库列表或指定镜像仓库信息
|
|
1735
1781
|
|