tencentcloud-sdk-python-tcr 3.1.39__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.43}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.43}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/tcr/v20190924/models.py +117 -0
  5. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/tcr/v20190924/tcr_client.py +23 -0
  6. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/tcr/v20190924/tcr_client_async.py +18 -0
  7. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud_sdk_python_tcr.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_tcr-3.1.43/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.43}/README.rst +0 -0
  11. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.43}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/tcr/__init__.py +0 -0
  13. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/tcr/v20190924/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud/tcr/v20190924/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.43}/tencentcloud_sdk_python_tcr.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcr-3.1.39 → tencentcloud_sdk_python_tcr-3.1.43}/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.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.39
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.39
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.39,<4.0.0"],
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',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.39'
17
+ __version__ = '3.1.43'
@@ -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
 
@@ -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.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.39
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.39