huaweicloudsdkims 3.1.61__py2.py3-none-any.whl → 3.1.63__py2.py3-none-any.whl

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.
@@ -16,13 +16,16 @@ class ImsAsyncClient(Client):
16
16
 
17
17
  @classmethod
18
18
  def new_builder(cls, clazz=None):
19
- if clazz is None:
20
- return ClientBuilder(cls)
19
+ if not clazz:
20
+ client_builder = ClientBuilder(cls)
21
+ else:
22
+ if clazz.__name__ != "ImsAsyncClient":
23
+ raise TypeError("client type error, support client type is ImsAsyncClient")
24
+ client_builder = ClientBuilder(clazz)
21
25
 
22
- if clazz.__name__ != "ImsClient":
23
- raise TypeError("client type error, support client type is ImsClient")
26
+
24
27
 
25
- return ClientBuilder(clazz)
28
+ return client_builder
26
29
 
27
30
  def add_image_tag_async(self, request):
28
31
  """添加镜像标签
@@ -16,13 +16,16 @@ class ImsClient(Client):
16
16
 
17
17
  @classmethod
18
18
  def new_builder(cls, clazz=None):
19
- if clazz is None:
20
- return ClientBuilder(cls)
19
+ if not clazz:
20
+ client_builder = ClientBuilder(cls)
21
+ else:
22
+ if clazz.__name__ != "ImsClient":
23
+ raise TypeError("client type error, support client type is ImsClient")
24
+ client_builder = ClientBuilder(clazz)
21
25
 
22
- if clazz.__name__ != "ImsClient":
23
- raise TypeError("client type error, support client type is ImsClient")
26
+
24
27
 
25
- return ClientBuilder(clazz)
28
+ return client_builder
26
29
 
27
30
  def add_image_tag(self, request):
28
31
  """添加镜像标签
@@ -51,6 +51,8 @@ class ImsRegion:
51
51
  "https://ims.tr-west-1.myhuaweicloud.com")
52
52
  ME_EAST_1 = Region("me-east-1",
53
53
  "https://ims.me-east-1.myhuaweicloud.com")
54
+ AE_AD_1 = Region("ae-ad-1",
55
+ "https://ims.ae-ad-1.myhuaweicloud.com")
54
56
 
55
57
  static_fields = {
56
58
  "af-south-1": AF_SOUTH_1,
@@ -74,6 +76,7 @@ class ImsRegion:
74
76
  "cn-south-4": CN_SOUTH_4,
75
77
  "tr-west-1": TR_WEST_1,
76
78
  "me-east-1": ME_EAST_1,
79
+ "ae-ad-1": AE_AD_1,
77
80
  }
78
81
 
79
82
  @classmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkims
3
- Version: 3.1.61
3
+ Version: 3.1.63
4
4
  Summary: IMS
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore >=3.1.61
25
+ Requires-Dist: huaweicloudsdkcore >=3.1.63
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -1,7 +1,7 @@
1
1
  huaweicloudsdkims/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  huaweicloudsdkims/v2/__init__.py,sha256=McBWlqN3OGsyUu1WerKp4bD1-643tmi1oAJ8E4wyMEk,11705
3
- huaweicloudsdkims/v2/ims_async_client.py,sha256=Z0sxZUttG377mTrOGGoUH4qga1nVVgeGSxf1sTV2zmU,99200
4
- huaweicloudsdkims/v2/ims_client.py,sha256=DcUHDTGb3_xePyn6tQPWoSy9OfpCYxpXuGQqRd5w7g8,98852
3
+ huaweicloudsdkims/v2/ims_async_client.py,sha256=Xnw5nB2hW-bxnYPsNL0FHFPfYer7shBFJr8H3pRETWc,99291
4
+ huaweicloudsdkims/v2/ims_client.py,sha256=UJvpvCAkL-H78IWiy5jBsJV42Tw68MqYSiWGfyJbU6w,98933
5
5
  huaweicloudsdkims/v2/model/__init__.py,sha256=BDyrwwNcNNnYgViEhFGvRQy41_RzfPK2deQosKOcKGk,11619
6
6
  huaweicloudsdkims/v2/model/add_image_tag_request.py,sha256=AzvXD2IIS4GL0oIvIn-P-dp5cVx7E90ZaIGAu35yhdA,3830
7
7
  huaweicloudsdkims/v2/model/add_image_tag_request_body.py,sha256=yBthDAupG0QY-4nXkdaa-4ENfeR4ETuK5WqBGXsUYPo,3014
@@ -132,9 +132,9 @@ huaweicloudsdkims/v2/model/update_image_request.py,sha256=92a2wgzJf3MxsG04sk82Gu
132
132
  huaweicloudsdkims/v2/model/update_image_request_body.py,sha256=32HRyr3YHgzKpWcmZLFAaJ3IcxoE7x1GYVzGcCgl7Gc,4579
133
133
  huaweicloudsdkims/v2/model/update_image_response.py,sha256=RtSI8cAgqjSOIxeUkKToyzqvWC78_W4kJ89S1Zu4qks,65195
134
134
  huaweicloudsdkims/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
135
- huaweicloudsdkims/v2/region/ims_region.py,sha256=QDTKpoWb08tuGwcZaz8Q-Xr2EkMOUmlDru3htZcbFGY,3792
136
- huaweicloudsdkims-3.1.61.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
137
- huaweicloudsdkims-3.1.61.dist-info/METADATA,sha256=xVVhXc4tPWM9o8XI4HobjZjxpVyFxe0tVQp0FeGfOnc,1134
138
- huaweicloudsdkims-3.1.61.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
139
- huaweicloudsdkims-3.1.61.dist-info/top_level.txt,sha256=beY7g3KzOOg2_S8f1Fa3GKquy1uP3gPs0mkVWNNL21g,18
140
- huaweicloudsdkims-3.1.61.dist-info/RECORD,,
135
+ huaweicloudsdkims/v2/region/ims_region.py,sha256=haHYEiwjxTIXxkoezqWzI1qL-AzDV4muk_EsMpU235U,3917
136
+ huaweicloudsdkims-3.1.63.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
137
+ huaweicloudsdkims-3.1.63.dist-info/METADATA,sha256=NbAdKbenEIlnhiXPz4pXFAgTMOLZNaQ_n0WJfpQzMAc,1134
138
+ huaweicloudsdkims-3.1.63.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
139
+ huaweicloudsdkims-3.1.63.dist-info/top_level.txt,sha256=beY7g3KzOOg2_S8f1Fa3GKquy1uP3gPs0mkVWNNL21g,18
140
+ huaweicloudsdkims-3.1.63.dist-info/RECORD,,