huaweicloudsdkosm 3.1.33__py2.py3-none-any.whl → 3.1.34__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.

Potentially problematic release.


This version of huaweicloudsdkosm might be problematic. Click here for more details.

@@ -245,6 +245,8 @@ from huaweicloudsdkosm.v2.model.show_case_extends_param_request import ShowCaseE
245
245
  from huaweicloudsdkosm.v2.model.show_case_extends_param_response import ShowCaseExtendsParamResponse
246
246
  from huaweicloudsdkosm.v2.model.show_case_status_request import ShowCaseStatusRequest
247
247
  from huaweicloudsdkosm.v2.model.show_case_status_response import ShowCaseStatusResponse
248
+ from huaweicloudsdkosm.v2.model.show_configuration_request import ShowConfigurationRequest
249
+ from huaweicloudsdkosm.v2.model.show_configuration_response import ShowConfigurationResponse
248
250
  from huaweicloudsdkosm.v2.model.show_customer_privilege_policy_request import ShowCustomerPrivilegePolicyRequest
249
251
  from huaweicloudsdkosm.v2.model.show_customer_privilege_policy_response import ShowCustomerPrivilegePolicyResponse
250
252
  from huaweicloudsdkosm.v2.model.show_download_accessory_url_request import ShowDownloadAccessoryUrlRequest
@@ -242,6 +242,8 @@ from huaweicloudsdkosm.v2.model.show_case_extends_param_request import ShowCaseE
242
242
  from huaweicloudsdkosm.v2.model.show_case_extends_param_response import ShowCaseExtendsParamResponse
243
243
  from huaweicloudsdkosm.v2.model.show_case_status_request import ShowCaseStatusRequest
244
244
  from huaweicloudsdkosm.v2.model.show_case_status_response import ShowCaseStatusResponse
245
+ from huaweicloudsdkosm.v2.model.show_configuration_request import ShowConfigurationRequest
246
+ from huaweicloudsdkosm.v2.model.show_configuration_response import ShowConfigurationResponse
245
247
  from huaweicloudsdkosm.v2.model.show_customer_privilege_policy_request import ShowCustomerPrivilegePolicyRequest
246
248
  from huaweicloudsdkosm.v2.model.show_customer_privilege_policy_response import ShowCustomerPrivilegePolicyResponse
247
249
  from huaweicloudsdkosm.v2.model.show_download_accessory_url_request import ShowDownloadAccessoryUrlRequest
@@ -0,0 +1,117 @@
1
+ # coding: utf-8
2
+
3
+ import re
4
+ import six
5
+
6
+
7
+
8
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
9
+
10
+
11
+ class ShowConfigurationRequest:
12
+
13
+ """
14
+ Attributes:
15
+ openapi_types (dict): The key is attribute name
16
+ and the value is attribute type.
17
+ attribute_map (dict): The key is attribute name
18
+ and the value is json key in definition.
19
+ """
20
+ sensitive_list = []
21
+
22
+ openapi_types = {
23
+ 'config_key': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'config_key': 'config_key'
28
+ }
29
+
30
+ def __init__(self, config_key=None):
31
+ """ShowConfigurationRequest
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param config_key: 配置项键值
36
+ :type config_key: str
37
+ """
38
+
39
+
40
+
41
+ self._config_key = None
42
+ self.discriminator = None
43
+
44
+ self.config_key = config_key
45
+
46
+ @property
47
+ def config_key(self):
48
+ """Gets the config_key of this ShowConfigurationRequest.
49
+
50
+ 配置项键值
51
+
52
+ :return: The config_key of this ShowConfigurationRequest.
53
+ :rtype: str
54
+ """
55
+ return self._config_key
56
+
57
+ @config_key.setter
58
+ def config_key(self, config_key):
59
+ """Sets the config_key of this ShowConfigurationRequest.
60
+
61
+ 配置项键值
62
+
63
+ :param config_key: The config_key of this ShowConfigurationRequest.
64
+ :type config_key: str
65
+ """
66
+ self._config_key = config_key
67
+
68
+ def to_dict(self):
69
+ """Returns the model properties as a dict"""
70
+ result = {}
71
+
72
+ for attr, _ in six.iteritems(self.openapi_types):
73
+ value = getattr(self, attr)
74
+ if isinstance(value, list):
75
+ result[attr] = list(map(
76
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
77
+ value
78
+ ))
79
+ elif hasattr(value, "to_dict"):
80
+ result[attr] = value.to_dict()
81
+ elif isinstance(value, dict):
82
+ result[attr] = dict(map(
83
+ lambda item: (item[0], item[1].to_dict())
84
+ if hasattr(item[1], "to_dict") else item,
85
+ value.items()
86
+ ))
87
+ else:
88
+ if attr in self.sensitive_list:
89
+ result[attr] = "****"
90
+ else:
91
+ result[attr] = value
92
+
93
+ return result
94
+
95
+ def to_str(self):
96
+ """Returns the string representation of the model"""
97
+ import simplejson as json
98
+ if six.PY2:
99
+ import sys
100
+ reload(sys)
101
+ sys.setdefaultencoding("utf-8")
102
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
103
+
104
+ def __repr__(self):
105
+ """For `print`"""
106
+ return self.to_str()
107
+
108
+ def __eq__(self, other):
109
+ """Returns true if both objects are equal"""
110
+ if not isinstance(other, ShowConfigurationRequest):
111
+ return False
112
+
113
+ return self.__dict__ == other.__dict__
114
+
115
+ def __ne__(self, other):
116
+ """Returns true if both objects are not equal"""
117
+ return not self == other
@@ -0,0 +1,205 @@
1
+ # coding: utf-8
2
+
3
+ import re
4
+ import six
5
+
6
+
7
+ from huaweicloudsdkcore.sdk_response import SdkResponse
8
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
9
+
10
+
11
+ class ShowConfigurationResponse(SdkResponse):
12
+
13
+ """
14
+ Attributes:
15
+ openapi_types (dict): The key is attribute name
16
+ and the value is attribute type.
17
+ attribute_map (dict): The key is attribute name
18
+ and the value is json key in definition.
19
+ """
20
+ sensitive_list = []
21
+
22
+ openapi_types = {
23
+ 'config_key': 'str',
24
+ 'config_value': 'str',
25
+ 'error_code': 'str',
26
+ 'error_msg': 'str'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'config_key': 'config_key',
31
+ 'config_value': 'config_value',
32
+ 'error_code': 'error_code',
33
+ 'error_msg': 'error_msg'
34
+ }
35
+
36
+ def __init__(self, config_key=None, config_value=None, error_code=None, error_msg=None):
37
+ """ShowConfigurationResponse
38
+
39
+ The model defined in huaweicloud sdk
40
+
41
+ :param config_key: 配置项键
42
+ :type config_key: str
43
+ :param config_value: 配置项值
44
+ :type config_value: str
45
+ :param error_code: 错误码
46
+ :type error_code: str
47
+ :param error_msg: 错误描述
48
+ :type error_msg: str
49
+ """
50
+
51
+ super(ShowConfigurationResponse, self).__init__()
52
+
53
+ self._config_key = None
54
+ self._config_value = None
55
+ self._error_code = None
56
+ self._error_msg = None
57
+ self.discriminator = None
58
+
59
+ if config_key is not None:
60
+ self.config_key = config_key
61
+ if config_value is not None:
62
+ self.config_value = config_value
63
+ if error_code is not None:
64
+ self.error_code = error_code
65
+ if error_msg is not None:
66
+ self.error_msg = error_msg
67
+
68
+ @property
69
+ def config_key(self):
70
+ """Gets the config_key of this ShowConfigurationResponse.
71
+
72
+ 配置项键
73
+
74
+ :return: The config_key of this ShowConfigurationResponse.
75
+ :rtype: str
76
+ """
77
+ return self._config_key
78
+
79
+ @config_key.setter
80
+ def config_key(self, config_key):
81
+ """Sets the config_key of this ShowConfigurationResponse.
82
+
83
+ 配置项键
84
+
85
+ :param config_key: The config_key of this ShowConfigurationResponse.
86
+ :type config_key: str
87
+ """
88
+ self._config_key = config_key
89
+
90
+ @property
91
+ def config_value(self):
92
+ """Gets the config_value of this ShowConfigurationResponse.
93
+
94
+ 配置项值
95
+
96
+ :return: The config_value of this ShowConfigurationResponse.
97
+ :rtype: str
98
+ """
99
+ return self._config_value
100
+
101
+ @config_value.setter
102
+ def config_value(self, config_value):
103
+ """Sets the config_value of this ShowConfigurationResponse.
104
+
105
+ 配置项值
106
+
107
+ :param config_value: The config_value of this ShowConfigurationResponse.
108
+ :type config_value: str
109
+ """
110
+ self._config_value = config_value
111
+
112
+ @property
113
+ def error_code(self):
114
+ """Gets the error_code of this ShowConfigurationResponse.
115
+
116
+ 错误码
117
+
118
+ :return: The error_code of this ShowConfigurationResponse.
119
+ :rtype: str
120
+ """
121
+ return self._error_code
122
+
123
+ @error_code.setter
124
+ def error_code(self, error_code):
125
+ """Sets the error_code of this ShowConfigurationResponse.
126
+
127
+ 错误码
128
+
129
+ :param error_code: The error_code of this ShowConfigurationResponse.
130
+ :type error_code: str
131
+ """
132
+ self._error_code = error_code
133
+
134
+ @property
135
+ def error_msg(self):
136
+ """Gets the error_msg of this ShowConfigurationResponse.
137
+
138
+ 错误描述
139
+
140
+ :return: The error_msg of this ShowConfigurationResponse.
141
+ :rtype: str
142
+ """
143
+ return self._error_msg
144
+
145
+ @error_msg.setter
146
+ def error_msg(self, error_msg):
147
+ """Sets the error_msg of this ShowConfigurationResponse.
148
+
149
+ 错误描述
150
+
151
+ :param error_msg: The error_msg of this ShowConfigurationResponse.
152
+ :type error_msg: str
153
+ """
154
+ self._error_msg = error_msg
155
+
156
+ def to_dict(self):
157
+ """Returns the model properties as a dict"""
158
+ result = {}
159
+
160
+ for attr, _ in six.iteritems(self.openapi_types):
161
+ value = getattr(self, attr)
162
+ if isinstance(value, list):
163
+ result[attr] = list(map(
164
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
165
+ value
166
+ ))
167
+ elif hasattr(value, "to_dict"):
168
+ result[attr] = value.to_dict()
169
+ elif isinstance(value, dict):
170
+ result[attr] = dict(map(
171
+ lambda item: (item[0], item[1].to_dict())
172
+ if hasattr(item[1], "to_dict") else item,
173
+ value.items()
174
+ ))
175
+ else:
176
+ if attr in self.sensitive_list:
177
+ result[attr] = "****"
178
+ else:
179
+ result[attr] = value
180
+
181
+ return result
182
+
183
+ def to_str(self):
184
+ """Returns the string representation of the model"""
185
+ import simplejson as json
186
+ if six.PY2:
187
+ import sys
188
+ reload(sys)
189
+ sys.setdefaultencoding("utf-8")
190
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
191
+
192
+ def __repr__(self):
193
+ """For `print`"""
194
+ return self.to_str()
195
+
196
+ def __eq__(self, other):
197
+ """Returns true if both objects are equal"""
198
+ if not isinstance(other, ShowConfigurationResponse):
199
+ return False
200
+
201
+ return self.__dict__ == other.__dict__
202
+
203
+ def __ne__(self, other):
204
+ """Returns true if both objects are not equal"""
205
+ return not self == other
@@ -5359,6 +5359,67 @@ class OsmAsyncClient(Client):
5359
5359
  collection_formats=collection_formats,
5360
5360
  request_type=request.__class__.__name__)
5361
5361
 
5362
+ def show_configuration_async(self, request):
5363
+ """查询配置
5364
+
5365
+ 查询配置
5366
+
5367
+ Please refer to HUAWEI cloud API Explorer for details.
5368
+
5369
+
5370
+ :param request: Request instance for ShowConfiguration
5371
+ :type request: :class:`huaweicloudsdkosm.v2.ShowConfigurationRequest`
5372
+ :rtype: :class:`huaweicloudsdkosm.v2.ShowConfigurationResponse`
5373
+ """
5374
+ return self.show_configuration_with_http_info(request)
5375
+
5376
+ def show_configuration_with_http_info(self, request):
5377
+ all_params = ['config_key']
5378
+ local_var_params = {}
5379
+ for attr in request.attribute_map:
5380
+ if hasattr(request, attr):
5381
+ local_var_params[attr] = getattr(request, attr)
5382
+
5383
+ cname = None
5384
+
5385
+ collection_formats = {}
5386
+
5387
+ path_params = {}
5388
+ if 'config_key' in local_var_params:
5389
+ path_params['config_key'] = local_var_params['config_key']
5390
+
5391
+ query_params = []
5392
+
5393
+ header_params = {}
5394
+
5395
+ form_params = {}
5396
+
5397
+ body_params = None
5398
+ if isinstance(request, SdkStreamRequest):
5399
+ body_params = request.get_file_stream()
5400
+
5401
+ response_headers = []
5402
+
5403
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5404
+ ['application/json'])
5405
+
5406
+ auth_settings = []
5407
+
5408
+ return self.call_api(
5409
+ resource_path='/v2/servicerequest/configurations/{config_key}',
5410
+ method='GET',
5411
+ path_params=path_params,
5412
+ query_params=query_params,
5413
+ header_params=header_params,
5414
+ body=body_params,
5415
+ post_params=form_params,
5416
+ cname=cname,
5417
+ response_type='ShowConfigurationResponse',
5418
+ response_headers=response_headers,
5419
+ auth_settings=auth_settings,
5420
+ collection_formats=collection_formats,
5421
+ request_type=request.__class__.__name__)
5422
+
5362
5423
  def show_customer_privilege_policy_async(self, request):
5363
5424
  """查询提单权限
5364
5425
 
@@ -5282,6 +5282,66 @@ class OsmClient(Client):
5282
5282
  collection_formats=collection_formats,
5283
5283
  request_type=request.__class__.__name__)
5284
5284
 
5285
+ def show_configuration(self, request):
5286
+ """查询配置
5287
+
5288
+ 查询配置
5289
+
5290
+ Please refer to HUAWEI cloud API Explorer for details.
5291
+
5292
+ :param request: Request instance for ShowConfiguration
5293
+ :type request: :class:`huaweicloudsdkosm.v2.ShowConfigurationRequest`
5294
+ :rtype: :class:`huaweicloudsdkosm.v2.ShowConfigurationResponse`
5295
+ """
5296
+ return self.show_configuration_with_http_info(request)
5297
+
5298
+ def show_configuration_with_http_info(self, request):
5299
+ all_params = ['config_key']
5300
+ local_var_params = {}
5301
+ for attr in request.attribute_map:
5302
+ if hasattr(request, attr):
5303
+ local_var_params[attr] = getattr(request, attr)
5304
+
5305
+ cname = None
5306
+
5307
+ collection_formats = {}
5308
+
5309
+ path_params = {}
5310
+ if 'config_key' in local_var_params:
5311
+ path_params['config_key'] = local_var_params['config_key']
5312
+
5313
+ query_params = []
5314
+
5315
+ header_params = {}
5316
+
5317
+ form_params = {}
5318
+
5319
+ body_params = None
5320
+ if isinstance(request, SdkStreamRequest):
5321
+ body_params = request.get_file_stream()
5322
+
5323
+ response_headers = []
5324
+
5325
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5326
+ ['application/json'])
5327
+
5328
+ auth_settings = []
5329
+
5330
+ return self.call_api(
5331
+ resource_path='/v2/servicerequest/configurations/{config_key}',
5332
+ method='GET',
5333
+ path_params=path_params,
5334
+ query_params=query_params,
5335
+ header_params=header_params,
5336
+ body=body_params,
5337
+ post_params=form_params,
5338
+ cname=cname,
5339
+ response_type='ShowConfigurationResponse',
5340
+ response_headers=response_headers,
5341
+ auth_settings=auth_settings,
5342
+ collection_formats=collection_formats,
5343
+ request_type=request.__class__.__name__)
5344
+
5285
5345
  def show_customer_privilege_policy(self, request):
5286
5346
  """查询提单权限
5287
5347
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkosm
3
- Version: 3.1.33
3
+ Version: 3.1.34
4
4
  Summary: OSM
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.33)
25
+ Requires-Dist: huaweicloudsdkcore (>=3.1.34)
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -1,8 +1,8 @@
1
1
  huaweicloudsdkosm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- huaweicloudsdkosm/v2/__init__.py,sha256=49XVxN2cf_zpC0FJ3IcAS0AwB0gi_Sme6kd7ccteUB4,25305
3
- huaweicloudsdkosm/v2/osm_async_client.py,sha256=CEka67YJINgvliQe9g1BaRAF0eyhluwGVvvLlXvrIO8,230612
4
- huaweicloudsdkosm/v2/osm_client.py,sha256=EqUIDJ5G2IW2AF_S_iGQ2hH_RGKVu03E-bM0ajJE-x4,229914
5
- huaweicloudsdkosm/v2/model/__init__.py,sha256=IP4oljZe9mZqeFRlCzIopJXsUJ-YDlCyHKUNtwONUWA,25168
2
+ huaweicloudsdkosm/v2/__init__.py,sha256=zSvvPSX3Y9iLd8cH-jZe4ln2NNpdbTjP4VsrHan0-pk,25489
3
+ huaweicloudsdkosm/v2/osm_async_client.py,sha256=1KYhkS4FqGHjOzzmO5ZBEu2qDU8kGQdtbIqh-n9kcis,232511
4
+ huaweicloudsdkosm/v2/osm_client.py,sha256=OYze94MifLa0LvG-jnHCflaFKNdjKqA9TyZViX7gl-o,231806
5
+ huaweicloudsdkosm/v2/model/__init__.py,sha256=r-XMpE8-1BxLnwh3aFvEb0E8iD7VWUC14eveSYe6zvM,25352
6
6
  huaweicloudsdkosm/v2/model/accessory_json_format_req.py,sha256=5UJRpm7lWpBD1L_ftyWW_Gk_EYJb-1tGzJ-ENmEYlZY,5905
7
7
  huaweicloudsdkosm/v2/model/accessory_limit_vo.py,sha256=OSho5aQ8rq4AlbAlEfs_n3ZbqYwBfiHID1rr2deKJDA,4928
8
8
  huaweicloudsdkosm/v2/model/accessory_url.py,sha256=GLwUPtt6oqH_wBHwRPrNwTLpV1y88eFnsWatjyfTJwI,3963
@@ -242,6 +242,8 @@ huaweicloudsdkosm/v2/model/show_case_extends_param_request.py,sha256=aqScyMdphb_
242
242
  huaweicloudsdkosm/v2/model/show_case_extends_param_response.py,sha256=AVwNhno1yGPVSZrDylkzHFeRJOWy6fZFYXm9Gxjn0vY,4124
243
243
  huaweicloudsdkosm/v2/model/show_case_status_request.py,sha256=wU3J5YWbgngmDPyK6G8kTe-8-PqTW24tzDP_DH35DN4,6506
244
244
  huaweicloudsdkosm/v2/model/show_case_status_response.py,sha256=vDG_wpWmH1-khhQSzyXQaPfcGlSgID609A_Yx-mHIdE,3469
245
+ huaweicloudsdkosm/v2/model/show_configuration_request.py,sha256=aY6yGVloHboiWSEwa3P22gcIpAAFPqCRLSB37erpDVg,3137
246
+ huaweicloudsdkosm/v2/model/show_configuration_response.py,sha256=SOhPE-uB1uTjRomhQ2ER0pHb71WJz50FwOrsfeXelDI,5792
245
247
  huaweicloudsdkosm/v2/model/show_customer_privilege_policy_request.py,sha256=C1Qi1t7CM98JllE2vLFJd-AlvHYsk3QqjYD3ZB8KDwk,6005
246
248
  huaweicloudsdkosm/v2/model/show_customer_privilege_policy_response.py,sha256=1x-5VZnJ2TuRN82PA0zPQ_NcT_iDtszCxfQXYLQicIY,3444
247
249
  huaweicloudsdkosm/v2/model/show_download_accessory_url_request.py,sha256=QsyChFb6ix5m8WbxxA93Vyn15m1JbynNSfGfq6h0GHk,6072
@@ -292,8 +294,8 @@ huaweicloudsdkosm/v2/model/verify_verify_code_v2_req.py,sha256=auLBlzoyk37emIZyT
292
294
  huaweicloudsdkosm/v2/model/work_order_operate_v2_req.py,sha256=H53y5gW_-DGmq7kOWOupuZzIUfWvlwn57NskyhcVpZM,6134
293
295
  huaweicloudsdkosm/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
294
296
  huaweicloudsdkosm/v2/region/osm_region.py,sha256=AOGtMHoMuTItSrBXImTsBLtWbxS3CO4Afm0N13C1obQ,901
295
- huaweicloudsdkosm-3.1.33.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
296
- huaweicloudsdkosm-3.1.33.dist-info/METADATA,sha256=MemiqiLu3XC_7awppSISkGJwQDMa9wwU2cr2fG9ujME,1136
297
- huaweicloudsdkosm-3.1.33.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
298
- huaweicloudsdkosm-3.1.33.dist-info/top_level.txt,sha256=6yoOdrBJDzRufHVrD-dd5wbu5WQ62ZDBvItV7Sh9m14,18
299
- huaweicloudsdkosm-3.1.33.dist-info/RECORD,,
297
+ huaweicloudsdkosm-3.1.34.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
298
+ huaweicloudsdkosm-3.1.34.dist-info/METADATA,sha256=9RkA4iPyiBGiZJpeMpAKuDDgPUe8GF0pEnG3DMGVu7Q,1136
299
+ huaweicloudsdkosm-3.1.34.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
300
+ huaweicloudsdkosm-3.1.34.dist-info/top_level.txt,sha256=6yoOdrBJDzRufHVrD-dd5wbu5WQ62ZDBvItV7Sh9m14,18
301
+ huaweicloudsdkosm-3.1.34.dist-info/RECORD,,