tencentcloud-sdk-python-tcr 3.1.112__tar.gz → 3.1.155__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.112 → tencentcloud_sdk_python_tcr-3.1.155}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/setup.py +1 -1
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/tencentcloud/tcr/v20190924/models.py +212 -0
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/tencentcloud/tcr/v20190924/tcr_client.py +23 -0
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/tencentcloud/tcr/v20190924/tcr_client_async.py +18 -0
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/tencentcloud_sdk_python_tcr.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tcr-3.1.155/tencentcloud_sdk_python_tcr.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tcr-3.1.112/tencentcloud_sdk_python_tcr.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/README.rst +0 -0
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/tencentcloud/tcr/__init__.py +0 -0
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/tencentcloud/tcr/v20190924/__init__.py +0 -0
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/tencentcloud/tcr/v20190924/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/tencentcloud_sdk_python_tcr.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/tencentcloud_sdk_python_tcr.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tcr-3.1.112 → tencentcloud_sdk_python_tcr-3.1.155}/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.155
|
|
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.155
|
|
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.155,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tcr SDK for Python',
|
|
@@ -14791,6 +14791,218 @@ class ModifyNamespaceResponse(AbstractModel):
|
|
|
14791
14791
|
self._RequestId = params.get("RequestId")
|
|
14792
14792
|
|
|
14793
14793
|
|
|
14794
|
+
class ModifyReplicationRequest(AbstractModel):
|
|
14795
|
+
r"""ModifyReplication请求参数结构体
|
|
14796
|
+
|
|
14797
|
+
"""
|
|
14798
|
+
|
|
14799
|
+
def __init__(self):
|
|
14800
|
+
r"""
|
|
14801
|
+
:param _SourceRegistryId: <p>复制源实例ID</p>
|
|
14802
|
+
:type SourceRegistryId: str
|
|
14803
|
+
:param _RuleName: <p>实例同步规则名称</p>
|
|
14804
|
+
:type RuleName: str
|
|
14805
|
+
:param _Rule: <p>同步规则</p>
|
|
14806
|
+
:type Rule: :class:`tencentcloud.tcr.v20190924.models.ModifyReplicationRule`
|
|
14807
|
+
:param _Description: <p>规则描述</p>
|
|
14808
|
+
:type Description: str
|
|
14809
|
+
"""
|
|
14810
|
+
self._SourceRegistryId = None
|
|
14811
|
+
self._RuleName = None
|
|
14812
|
+
self._Rule = None
|
|
14813
|
+
self._Description = None
|
|
14814
|
+
|
|
14815
|
+
@property
|
|
14816
|
+
def SourceRegistryId(self):
|
|
14817
|
+
r"""<p>复制源实例ID</p>
|
|
14818
|
+
:rtype: str
|
|
14819
|
+
"""
|
|
14820
|
+
return self._SourceRegistryId
|
|
14821
|
+
|
|
14822
|
+
@SourceRegistryId.setter
|
|
14823
|
+
def SourceRegistryId(self, SourceRegistryId):
|
|
14824
|
+
self._SourceRegistryId = SourceRegistryId
|
|
14825
|
+
|
|
14826
|
+
@property
|
|
14827
|
+
def RuleName(self):
|
|
14828
|
+
r"""<p>实例同步规则名称</p>
|
|
14829
|
+
:rtype: str
|
|
14830
|
+
"""
|
|
14831
|
+
return self._RuleName
|
|
14832
|
+
|
|
14833
|
+
@RuleName.setter
|
|
14834
|
+
def RuleName(self, RuleName):
|
|
14835
|
+
self._RuleName = RuleName
|
|
14836
|
+
|
|
14837
|
+
@property
|
|
14838
|
+
def Rule(self):
|
|
14839
|
+
r"""<p>同步规则</p>
|
|
14840
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.ModifyReplicationRule`
|
|
14841
|
+
"""
|
|
14842
|
+
return self._Rule
|
|
14843
|
+
|
|
14844
|
+
@Rule.setter
|
|
14845
|
+
def Rule(self, Rule):
|
|
14846
|
+
self._Rule = Rule
|
|
14847
|
+
|
|
14848
|
+
@property
|
|
14849
|
+
def Description(self):
|
|
14850
|
+
r"""<p>规则描述</p>
|
|
14851
|
+
:rtype: str
|
|
14852
|
+
"""
|
|
14853
|
+
return self._Description
|
|
14854
|
+
|
|
14855
|
+
@Description.setter
|
|
14856
|
+
def Description(self, Description):
|
|
14857
|
+
self._Description = Description
|
|
14858
|
+
|
|
14859
|
+
|
|
14860
|
+
def _deserialize(self, params):
|
|
14861
|
+
self._SourceRegistryId = params.get("SourceRegistryId")
|
|
14862
|
+
self._RuleName = params.get("RuleName")
|
|
14863
|
+
if params.get("Rule") is not None:
|
|
14864
|
+
self._Rule = ModifyReplicationRule()
|
|
14865
|
+
self._Rule._deserialize(params.get("Rule"))
|
|
14866
|
+
self._Description = params.get("Description")
|
|
14867
|
+
memeber_set = set(params.keys())
|
|
14868
|
+
for name, value in vars(self).items():
|
|
14869
|
+
property_name = name[1:]
|
|
14870
|
+
if property_name in memeber_set:
|
|
14871
|
+
memeber_set.remove(property_name)
|
|
14872
|
+
if len(memeber_set) > 0:
|
|
14873
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14874
|
+
|
|
14875
|
+
|
|
14876
|
+
|
|
14877
|
+
class ModifyReplicationResponse(AbstractModel):
|
|
14878
|
+
r"""ModifyReplication返回参数结构体
|
|
14879
|
+
|
|
14880
|
+
"""
|
|
14881
|
+
|
|
14882
|
+
def __init__(self):
|
|
14883
|
+
r"""
|
|
14884
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14885
|
+
:type RequestId: str
|
|
14886
|
+
"""
|
|
14887
|
+
self._RequestId = None
|
|
14888
|
+
|
|
14889
|
+
@property
|
|
14890
|
+
def RequestId(self):
|
|
14891
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14892
|
+
:rtype: str
|
|
14893
|
+
"""
|
|
14894
|
+
return self._RequestId
|
|
14895
|
+
|
|
14896
|
+
@RequestId.setter
|
|
14897
|
+
def RequestId(self, RequestId):
|
|
14898
|
+
self._RequestId = RequestId
|
|
14899
|
+
|
|
14900
|
+
|
|
14901
|
+
def _deserialize(self, params):
|
|
14902
|
+
self._RequestId = params.get("RequestId")
|
|
14903
|
+
|
|
14904
|
+
|
|
14905
|
+
class ModifyReplicationRule(AbstractModel):
|
|
14906
|
+
r"""修改同步规则参数,用于 ModifyReplication 接口更新已有的实例同步规则配置。
|
|
14907
|
+
|
|
14908
|
+
"""
|
|
14909
|
+
|
|
14910
|
+
def __init__(self):
|
|
14911
|
+
r"""
|
|
14912
|
+
:param _DestNamespace: <p>目标命名空间</p>
|
|
14913
|
+
:type DestNamespace: str
|
|
14914
|
+
:param _Override: <p>是否覆盖</p>
|
|
14915
|
+
:type Override: bool
|
|
14916
|
+
:param _Deletion: <p>是否同步删除事件</p>
|
|
14917
|
+
:type Deletion: bool
|
|
14918
|
+
:param _Filters: <p>过滤同步条件</p>
|
|
14919
|
+
:type Filters: list of ReplicationFilter
|
|
14920
|
+
:param _Enabled: <p>是否开启规则</p>
|
|
14921
|
+
:type Enabled: bool
|
|
14922
|
+
"""
|
|
14923
|
+
self._DestNamespace = None
|
|
14924
|
+
self._Override = None
|
|
14925
|
+
self._Deletion = None
|
|
14926
|
+
self._Filters = None
|
|
14927
|
+
self._Enabled = None
|
|
14928
|
+
|
|
14929
|
+
@property
|
|
14930
|
+
def DestNamespace(self):
|
|
14931
|
+
r"""<p>目标命名空间</p>
|
|
14932
|
+
:rtype: str
|
|
14933
|
+
"""
|
|
14934
|
+
return self._DestNamespace
|
|
14935
|
+
|
|
14936
|
+
@DestNamespace.setter
|
|
14937
|
+
def DestNamespace(self, DestNamespace):
|
|
14938
|
+
self._DestNamespace = DestNamespace
|
|
14939
|
+
|
|
14940
|
+
@property
|
|
14941
|
+
def Override(self):
|
|
14942
|
+
r"""<p>是否覆盖</p>
|
|
14943
|
+
:rtype: bool
|
|
14944
|
+
"""
|
|
14945
|
+
return self._Override
|
|
14946
|
+
|
|
14947
|
+
@Override.setter
|
|
14948
|
+
def Override(self, Override):
|
|
14949
|
+
self._Override = Override
|
|
14950
|
+
|
|
14951
|
+
@property
|
|
14952
|
+
def Deletion(self):
|
|
14953
|
+
r"""<p>是否同步删除事件</p>
|
|
14954
|
+
:rtype: bool
|
|
14955
|
+
"""
|
|
14956
|
+
return self._Deletion
|
|
14957
|
+
|
|
14958
|
+
@Deletion.setter
|
|
14959
|
+
def Deletion(self, Deletion):
|
|
14960
|
+
self._Deletion = Deletion
|
|
14961
|
+
|
|
14962
|
+
@property
|
|
14963
|
+
def Filters(self):
|
|
14964
|
+
r"""<p>过滤同步条件</p>
|
|
14965
|
+
:rtype: list of ReplicationFilter
|
|
14966
|
+
"""
|
|
14967
|
+
return self._Filters
|
|
14968
|
+
|
|
14969
|
+
@Filters.setter
|
|
14970
|
+
def Filters(self, Filters):
|
|
14971
|
+
self._Filters = Filters
|
|
14972
|
+
|
|
14973
|
+
@property
|
|
14974
|
+
def Enabled(self):
|
|
14975
|
+
r"""<p>是否开启规则</p>
|
|
14976
|
+
:rtype: bool
|
|
14977
|
+
"""
|
|
14978
|
+
return self._Enabled
|
|
14979
|
+
|
|
14980
|
+
@Enabled.setter
|
|
14981
|
+
def Enabled(self, Enabled):
|
|
14982
|
+
self._Enabled = Enabled
|
|
14983
|
+
|
|
14984
|
+
|
|
14985
|
+
def _deserialize(self, params):
|
|
14986
|
+
self._DestNamespace = params.get("DestNamespace")
|
|
14987
|
+
self._Override = params.get("Override")
|
|
14988
|
+
self._Deletion = params.get("Deletion")
|
|
14989
|
+
if params.get("Filters") is not None:
|
|
14990
|
+
self._Filters = []
|
|
14991
|
+
for item in params.get("Filters"):
|
|
14992
|
+
obj = ReplicationFilter()
|
|
14993
|
+
obj._deserialize(item)
|
|
14994
|
+
self._Filters.append(obj)
|
|
14995
|
+
self._Enabled = params.get("Enabled")
|
|
14996
|
+
memeber_set = set(params.keys())
|
|
14997
|
+
for name, value in vars(self).items():
|
|
14998
|
+
property_name = name[1:]
|
|
14999
|
+
if property_name in memeber_set:
|
|
15000
|
+
memeber_set.remove(property_name)
|
|
15001
|
+
if len(memeber_set) > 0:
|
|
15002
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15003
|
+
|
|
15004
|
+
|
|
15005
|
+
|
|
14794
15006
|
class ModifyRepositoryAccessPersonalRequest(AbstractModel):
|
|
14795
15007
|
r"""ModifyRepositoryAccessPersonal请求参数结构体
|
|
14796
15008
|
|
|
@@ -2581,6 +2581,29 @@ class TcrClient(AbstractClient):
|
|
|
2581
2581
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2582
2582
|
|
|
2583
2583
|
|
|
2584
|
+
def ModifyReplication(self, request):
|
|
2585
|
+
r"""修改实例同步规则
|
|
2586
|
+
|
|
2587
|
+
:param request: Request instance for ModifyReplication.
|
|
2588
|
+
:type request: :class:`tencentcloud.tcr.v20190924.models.ModifyReplicationRequest`
|
|
2589
|
+
:rtype: :class:`tencentcloud.tcr.v20190924.models.ModifyReplicationResponse`
|
|
2590
|
+
|
|
2591
|
+
"""
|
|
2592
|
+
try:
|
|
2593
|
+
params = request._serialize()
|
|
2594
|
+
headers = request.headers
|
|
2595
|
+
body = self.call("ModifyReplication", params, headers=headers)
|
|
2596
|
+
response = json.loads(body)
|
|
2597
|
+
model = models.ModifyReplicationResponse()
|
|
2598
|
+
model._deserialize(response["Response"])
|
|
2599
|
+
return model
|
|
2600
|
+
except Exception as e:
|
|
2601
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2602
|
+
raise
|
|
2603
|
+
else:
|
|
2604
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2605
|
+
|
|
2606
|
+
|
|
2584
2607
|
def ModifyRepository(self, request):
|
|
2585
2608
|
r"""更新镜像仓库信息,可修改仓库描述信息
|
|
2586
2609
|
|
|
@@ -2025,6 +2025,24 @@ class TcrClient(AbstractClient):
|
|
|
2025
2025
|
|
|
2026
2026
|
return await self.call_and_deserialize(**kwargs)
|
|
2027
2027
|
|
|
2028
|
+
async def ModifyReplication(
|
|
2029
|
+
self,
|
|
2030
|
+
request: models.ModifyReplicationRequest,
|
|
2031
|
+
opts: Dict = None,
|
|
2032
|
+
) -> models.ModifyReplicationResponse:
|
|
2033
|
+
"""
|
|
2034
|
+
修改实例同步规则
|
|
2035
|
+
"""
|
|
2036
|
+
|
|
2037
|
+
kwargs = {}
|
|
2038
|
+
kwargs["action"] = "ModifyReplication"
|
|
2039
|
+
kwargs["params"] = request._serialize()
|
|
2040
|
+
kwargs["resp_cls"] = models.ModifyReplicationResponse
|
|
2041
|
+
kwargs["headers"] = request.headers
|
|
2042
|
+
kwargs["opts"] = opts or {}
|
|
2043
|
+
|
|
2044
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2045
|
+
|
|
2028
2046
|
async def ModifyRepository(
|
|
2029
2047
|
self,
|
|
2030
2048
|
request: models.ModifyRepositoryRequest,
|
|
@@ -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.155
|
|
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.155
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.155
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.112
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|