huaweicloudsdkmas 3.1.160__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.
@@ -0,0 +1,112 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ShowNameSpaceListResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'body': 'list[NamespaceVo]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ r"""ShowNameSpaceListResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body:
34
+ :type body: list[:class:`huaweicloudsdkmas.v1.NamespaceVo`]
35
+ """
36
+
37
+ super(ShowNameSpaceListResponse, self).__init__()
38
+
39
+ self._body = None
40
+ self.discriminator = None
41
+
42
+ if body is not None:
43
+ self.body = body
44
+
45
+ @property
46
+ def body(self):
47
+ r"""Gets the body of this ShowNameSpaceListResponse.
48
+
49
+ :return: The body of this ShowNameSpaceListResponse.
50
+ :rtype: list[:class:`huaweicloudsdkmas.v1.NamespaceVo`]
51
+ """
52
+ return self._body
53
+
54
+ @body.setter
55
+ def body(self, body):
56
+ r"""Sets the body of this ShowNameSpaceListResponse.
57
+
58
+ :param body: The body of this ShowNameSpaceListResponse.
59
+ :type body: list[:class:`huaweicloudsdkmas.v1.NamespaceVo`]
60
+ """
61
+ self._body = body
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, ShowNameSpaceListResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other
File without changes
@@ -0,0 +1,70 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.region.region import Region
4
+ from huaweicloudsdkcore.region.provider import RegionProviderChain
5
+
6
+ class MasRegion:
7
+ _PROVIDER = RegionProviderChain.get_default_region_provider_chain("MAS")
8
+
9
+ CN_EAST_2 = Region("cn-east-2",
10
+ "https://mas.cn-east-2.myhuaweicloud.com")
11
+ CN_EAST_3 = Region("cn-east-3",
12
+ "https://mas.cn-east-3.myhuaweicloud.com")
13
+ CN_NORTH_1 = Region("cn-north-1",
14
+ "https://mas.cn-north-1.myhuaweicloud.com")
15
+ CN_NORTH_2 = Region("cn-north-2",
16
+ "https://mas.cn-north-2.myhuaweicloud.com")
17
+ CN_NORTH_4 = Region("cn-north-4",
18
+ "https://mas.cn-north-4.myhuaweicloud.com")
19
+ CN_SOUTH_1 = Region("cn-south-1",
20
+ "https://mas.cn-south-1.myhuaweicloud.com")
21
+ CN_SOUTHWEST_2 = Region("cn-southwest-2",
22
+ "https://mas.cn-southwest-2.myhuaweicloud.com")
23
+ AF_SOUTH_1 = Region("af-south-1",
24
+ "https://mas.af-south-1.myhuaweicloud.com")
25
+ AP_SOUTHEAST_1 = Region("ap-southeast-1",
26
+ "https://mas.ap-southeast-1.myhuaweicloud.com")
27
+ AP_SOUTHEAST_2 = Region("ap-southeast-2",
28
+ "https://mas.ap-southeast-2.myhuaweicloud.com")
29
+ AP_SOUTHEAST_3 = Region("ap-southeast-3",
30
+ "https://mas.ap-southeast-3.myhuaweicloud.com")
31
+ LA_SOUTH_2 = Region("la-south-2",
32
+ "https://mas.la-south-2.myhuaweicloud.com")
33
+ SA_BRAZIL_1 = Region("sa-brazil-1",
34
+ "https://mas.sa-brazil-1.myhuaweicloud.com")
35
+ LA_NORTH_2 = Region("la-north-2",
36
+ "https://mas.la-north-2.myhuaweicloud.com")
37
+
38
+ static_fields = {
39
+ "cn-east-2": CN_EAST_2,
40
+ "cn-east-3": CN_EAST_3,
41
+ "cn-north-1": CN_NORTH_1,
42
+ "cn-north-2": CN_NORTH_2,
43
+ "cn-north-4": CN_NORTH_4,
44
+ "cn-south-1": CN_SOUTH_1,
45
+ "cn-southwest-2": CN_SOUTHWEST_2,
46
+ "af-south-1": AF_SOUTH_1,
47
+ "ap-southeast-1": AP_SOUTHEAST_1,
48
+ "ap-southeast-2": AP_SOUTHEAST_2,
49
+ "ap-southeast-3": AP_SOUTHEAST_3,
50
+ "la-south-2": LA_SOUTH_2,
51
+ "sa-brazil-1": SA_BRAZIL_1,
52
+ "la-north-2": LA_NORTH_2,
53
+ }
54
+
55
+ @classmethod
56
+ def value_of(cls, region_id, static_fields=None):
57
+ if not region_id:
58
+ raise KeyError("Unexpected empty parameter: region_id")
59
+
60
+ fields = static_fields or cls.static_fields
61
+
62
+ region = cls._PROVIDER.get_region(region_id)
63
+ if region:
64
+ return region
65
+
66
+ if region_id in fields:
67
+ return fields.get(region_id)
68
+
69
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'Mas': [%s]" % (
70
+ region_id, ", ".join(sorted(fields.keys()))))
@@ -0,0 +1,13 @@
1
+ Copyright (c) Huawei Technologies Co., Ltd. 2020-present. All rights reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -0,0 +1,26 @@
1
+ Metadata-Version: 2.1
2
+ Name: huaweicloudsdkmas
3
+ Version: 3.1.160
4
+ Summary: MAS
5
+ Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
+ Author: HuaweiCloud SDK
7
+ Author-email: hwcloudsdk@huawei.com
8
+ License: Apache LICENSE 2.0
9
+ Keywords: huaweicloud,sdk,MAS
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 :: 3.6
14
+ Classifier: Programming Language :: Python :: 3.7
15
+ Classifier: Programming Language :: Python :: 3.8
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Topic :: Software Development
21
+ Requires-Python: >=3.6
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: huaweicloudsdkcore>=3.1.160
25
+
26
+ See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -0,0 +1,19 @@
1
+ huaweicloudsdkmas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ huaweicloudsdkmas/v1/__init__.py,sha256=A3qTlsCImgVgArbC_QHYR5hLGIwvbW8fUnylMHq7Kqg,760
3
+ huaweicloudsdkmas/v1/mas_async_client.py,sha256=y4OhjWUaXwA-l2MnMucXZmRQISasrHVByaqujHMc88M,5946
4
+ huaweicloudsdkmas/v1/mas_client.py,sha256=I4CBjCjnIVJP9y4yDx0rNRjMk7UV5VMqmjPXLaL8Mqo,5843
5
+ huaweicloudsdkmas/v1/model/__init__.py,sha256=9ddyzsSiP1alaBX19ecF8QLBaScGSvseWjy0BzyjKe4,674
6
+ huaweicloudsdkmas/v1/model/base_multi_active_zone_spec.py,sha256=vqrp4MaEndPFpo7ZICXfRqm1713MX-2zghVdZtHe-xU,2328
7
+ huaweicloudsdkmas/v1/model/data_sync_statistics.py,sha256=-LOSTrTayG7jc-xx3_PhPwnLrvepkl75q6bctWv1_VY,5991
8
+ huaweicloudsdkmas/v1/model/datasource_statistics.py,sha256=PcB6mA6jAWXo009t86JafgV4LeHrK7djSRczITINxjs,3737
9
+ huaweicloudsdkmas/v1/model/multi_active_zone_vo.py,sha256=mK3sWFIRyY9x-k2OCWqbijlfSeP5zW8K079ngi9COEU,11027
10
+ huaweicloudsdkmas/v1/model/namespace_vo.py,sha256=hN7r2jSws92a59HZqXRzc_mPS40J9Tgx3ExfOaglAu4,13271
11
+ huaweicloudsdkmas/v1/model/show_name_space_list_request.py,sha256=HA63kVd8zZDbAavpmxaQ6-c9owWJjXmtQkNLm7GOVpQ,7279
12
+ huaweicloudsdkmas/v1/model/show_name_space_list_response.py,sha256=iJMN85vx-_syicGKIy1pWbSgk-bYVlfJyAugDRNe0DI,3235
13
+ huaweicloudsdkmas/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
+ huaweicloudsdkmas/v1/region/mas_region.py,sha256=dlP-gh-8S1M558cCNHRXhKczCwBFJayHmKMq7KIRffY,2856
15
+ huaweicloudsdkmas-3.1.160.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
16
+ huaweicloudsdkmas-3.1.160.dist-info/METADATA,sha256=2c0w_xBQq6-411B_omyM_agt3qUNZXyyoaypu2_W3YA,1064
17
+ huaweicloudsdkmas-3.1.160.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
18
+ huaweicloudsdkmas-3.1.160.dist-info/top_level.txt,sha256=0BvGi5paLWlsiPWIcuD_qwunpeziF7ZiAywZRDFaTiY,18
19
+ huaweicloudsdkmas-3.1.160.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.45.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ huaweicloudsdkmas