tencentcloud-sdk-python-tcr 3.1.39__tar.gz → 3.1.63__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/tencentcloud/tcr/v20190924/models.py +148 -14
  5. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/tencentcloud/tcr/v20190924/tcr_client.py +23 -0
  6. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/tencentcloud/tcr/v20190924/tcr_client_async.py +18 -0
  7. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/tencentcloud_sdk_python_tcr.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_tcr-3.1.63/tencentcloud_sdk_python_tcr.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_tcr-3.1.39/tencentcloud_sdk_python_tcr.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/README.rst +0 -0
  11. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/tencentcloud/tcr/__init__.py +0 -0
  13. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/tencentcloud/tcr/v20190924/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/tencentcloud/tcr/v20190924/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/tencentcloud_sdk_python_tcr.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/tencentcloud_sdk_python_tcr.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.63}/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.39
3
+ Version: 3.1.63
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.39
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.63
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.39,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.63,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Tcr SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.39'
17
+ __version__ = '3.1.63'
@@ -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
 
@@ -11494,6 +11575,42 @@ class GCJobInfo(AbstractModel):
11494
11575
 
11495
11576
 
11496
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
+
11497
11614
  class Header(AbstractModel):
11498
11615
  r"""Header KV
11499
11616
 
@@ -12908,20 +13025,22 @@ class ModifyNamespaceRequest(AbstractModel):
12908
13025
 
12909
13026
  def __init__(self):
12910
13027
  r"""
12911
- :param _RegistryId: 实例Id
13028
+ :param _RegistryId: <p>实例Id</p>
12912
13029
  :type RegistryId: str
12913
- :param _NamespaceName: 命名空间名称
13030
+ :param _NamespaceName: <p>命名空间名称</p>
12914
13031
  :type NamespaceName: str
12915
- :param _IsPublic: 访问级别,True为公开,False为私有
13032
+ :param _IsPublic: <p>访问级别,True为公开,False为私有</p>
12916
13033
  :type IsPublic: bool
12917
- :param _IsAutoScan: 扫描级别,True为自动,False为手动
13034
+ :param _IsAutoScan: <p>扫描级别,True为自动,False为手动</p>
12918
13035
  :type IsAutoScan: bool
12919
- :param _IsPreventVUL: 阻断开关,True为开放,False为关闭
13036
+ :param _IsPreventVUL: <p>阻断开关,True为开放,False为关闭</p>
12920
13037
  :type IsPreventVUL: bool
12921
- :param _Severity: 阻断漏洞等级,目前仅支持 low、medium、high
13038
+ :param _Severity: <p>阻断漏洞等级,目前仅支持 low、medium、high</p>
12922
13039
  :type Severity: str
12923
- :param _CVEWhitelistItems: 漏洞白名单列表
13040
+ :param _CVEWhitelistItems: <p>漏洞白名单列表</p>
12924
13041
  :type CVEWhitelistItems: list of CVEWhitelistItem
13042
+ :param _TagSpecification: <p>tag列表</p>
13043
+ :type TagSpecification: :class:`tencentcloud.tcr.v20190924.models.TagSpecification`
12925
13044
  """
12926
13045
  self._RegistryId = None
12927
13046
  self._NamespaceName = None
@@ -12930,10 +13049,11 @@ class ModifyNamespaceRequest(AbstractModel):
12930
13049
  self._IsPreventVUL = None
12931
13050
  self._Severity = None
12932
13051
  self._CVEWhitelistItems = None
13052
+ self._TagSpecification = None
12933
13053
 
12934
13054
  @property
12935
13055
  def RegistryId(self):
12936
- r"""实例Id
13056
+ r"""<p>实例Id</p>
12937
13057
  :rtype: str
12938
13058
  """
12939
13059
  return self._RegistryId
@@ -12944,7 +13064,7 @@ class ModifyNamespaceRequest(AbstractModel):
12944
13064
 
12945
13065
  @property
12946
13066
  def NamespaceName(self):
12947
- r"""命名空间名称
13067
+ r"""<p>命名空间名称</p>
12948
13068
  :rtype: str
12949
13069
  """
12950
13070
  return self._NamespaceName
@@ -12955,7 +13075,7 @@ class ModifyNamespaceRequest(AbstractModel):
12955
13075
 
12956
13076
  @property
12957
13077
  def IsPublic(self):
12958
- r"""访问级别,True为公开,False为私有
13078
+ r"""<p>访问级别,True为公开,False为私有</p>
12959
13079
  :rtype: bool
12960
13080
  """
12961
13081
  return self._IsPublic
@@ -12966,7 +13086,7 @@ class ModifyNamespaceRequest(AbstractModel):
12966
13086
 
12967
13087
  @property
12968
13088
  def IsAutoScan(self):
12969
- r"""扫描级别,True为自动,False为手动
13089
+ r"""<p>扫描级别,True为自动,False为手动</p>
12970
13090
  :rtype: bool
12971
13091
  """
12972
13092
  return self._IsAutoScan
@@ -12977,7 +13097,7 @@ class ModifyNamespaceRequest(AbstractModel):
12977
13097
 
12978
13098
  @property
12979
13099
  def IsPreventVUL(self):
12980
- r"""阻断开关,True为开放,False为关闭
13100
+ r"""<p>阻断开关,True为开放,False为关闭</p>
12981
13101
  :rtype: bool
12982
13102
  """
12983
13103
  return self._IsPreventVUL
@@ -12988,7 +13108,7 @@ class ModifyNamespaceRequest(AbstractModel):
12988
13108
 
12989
13109
  @property
12990
13110
  def Severity(self):
12991
- r"""阻断漏洞等级,目前仅支持 low、medium、high
13111
+ r"""<p>阻断漏洞等级,目前仅支持 low、medium、high</p>
12992
13112
  :rtype: str
12993
13113
  """
12994
13114
  return self._Severity
@@ -12999,7 +13119,7 @@ class ModifyNamespaceRequest(AbstractModel):
12999
13119
 
13000
13120
  @property
13001
13121
  def CVEWhitelistItems(self):
13002
- r"""漏洞白名单列表
13122
+ r"""<p>漏洞白名单列表</p>
13003
13123
  :rtype: list of CVEWhitelistItem
13004
13124
  """
13005
13125
  return self._CVEWhitelistItems
@@ -13008,6 +13128,17 @@ class ModifyNamespaceRequest(AbstractModel):
13008
13128
  def CVEWhitelistItems(self, CVEWhitelistItems):
13009
13129
  self._CVEWhitelistItems = CVEWhitelistItems
13010
13130
 
13131
+ @property
13132
+ def TagSpecification(self):
13133
+ r"""<p>tag列表</p>
13134
+ :rtype: :class:`tencentcloud.tcr.v20190924.models.TagSpecification`
13135
+ """
13136
+ return self._TagSpecification
13137
+
13138
+ @TagSpecification.setter
13139
+ def TagSpecification(self, TagSpecification):
13140
+ self._TagSpecification = TagSpecification
13141
+
13011
13142
 
13012
13143
  def _deserialize(self, params):
13013
13144
  self._RegistryId = params.get("RegistryId")
@@ -13022,6 +13153,9 @@ class ModifyNamespaceRequest(AbstractModel):
13022
13153
  obj = CVEWhitelistItem()
13023
13154
  obj._deserialize(item)
13024
13155
  self._CVEWhitelistItems.append(obj)
13156
+ if params.get("TagSpecification") is not None:
13157
+ self._TagSpecification = TagSpecification()
13158
+ self._TagSpecification._deserialize(params.get("TagSpecification"))
13025
13159
  memeber_set = set(params.keys())
13026
13160
  for name, value in vars(self).items():
13027
13161
  property_name = name[1:]
@@ -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.39
3
+ Version: 3.1.63
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.39
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.63
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.63
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.39