huaweicloudsdkcodeartside 3.1.196__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 huaweicloudsdkcodeartside might be problematic. Click here for more details.
- huaweicloudsdkcodeartside/__init__.py +0 -0
- huaweicloudsdkcodeartside/v1/__init__.py +14 -0
- huaweicloudsdkcodeartside/v1/codeartside_async_client.py +217 -0
- huaweicloudsdkcodeartside/v1/codeartside_client.py +214 -0
- huaweicloudsdkcodeartside/v1/model/__init__.py +11 -0
- huaweicloudsdkcodeartside/v1/model/show_latest_upgradable_release_request.py +164 -0
- huaweicloudsdkcodeartside/v1/model/show_latest_upgradable_release_response.py +137 -0
- huaweicloudsdkcodeartside/v1/model/show_latest_upgradable_release_response_body_result.py +219 -0
- huaweicloudsdkcodeartside/v1/model/validate_whitelist_user_request.py +104 -0
- huaweicloudsdkcodeartside/v1/model/validate_whitelist_user_request_body.py +107 -0
- huaweicloudsdkcodeartside/v1/model/validate_whitelist_user_response.py +141 -0
- huaweicloudsdkcodeartside/v1/region/__init__.py +0 -0
- huaweicloudsdkcodeartside/v1/region/codeartside_region.py +31 -0
- huaweicloudsdkcodeartside-3.1.196.dist-info/METADATA +25 -0
- huaweicloudsdkcodeartside-3.1.196.dist-info/RECORD +17 -0
- huaweicloudsdkcodeartside-3.1.196.dist-info/WHEEL +4 -0
- huaweicloudsdkcodeartside-3.1.196.dist-info/licenses/LICENSE +13 -0
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from __future__ import absolute_import
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcodeartside.v1.codeartside_client import CodeArtsIDEClient
|
|
6
|
+
from huaweicloudsdkcodeartside.v1.codeartside_async_client import CodeArtsIDEAsyncClient
|
|
7
|
+
|
|
8
|
+
from huaweicloudsdkcodeartside.v1.model.show_latest_upgradable_release_request import ShowLatestUpgradableReleaseRequest
|
|
9
|
+
from huaweicloudsdkcodeartside.v1.model.show_latest_upgradable_release_response import ShowLatestUpgradableReleaseResponse
|
|
10
|
+
from huaweicloudsdkcodeartside.v1.model.show_latest_upgradable_release_response_body_result import ShowLatestUpgradableReleaseResponseBodyResult
|
|
11
|
+
from huaweicloudsdkcodeartside.v1.model.validate_whitelist_user_request import ValidateWhitelistUserRequest
|
|
12
|
+
from huaweicloudsdkcodeartside.v1.model.validate_whitelist_user_request_body import ValidateWhitelistUserRequestBody
|
|
13
|
+
from huaweicloudsdkcodeartside.v1.model.validate_whitelist_user_response import ValidateWhitelistUserResponse
|
|
14
|
+
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from __future__ import absolute_import
|
|
4
|
+
|
|
5
|
+
import importlib
|
|
6
|
+
import warnings
|
|
7
|
+
|
|
8
|
+
from huaweicloudsdkcore.client import Client, ClientBuilder
|
|
9
|
+
from huaweicloudsdkcore.utils import http_utils
|
|
10
|
+
from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from huaweicloudsdkcore.invoker.invoker import AsyncInvoker
|
|
14
|
+
except ImportError as e:
|
|
15
|
+
warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkcodeartside'")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class CodeArtsIDEAsyncClient(Client):
|
|
19
|
+
def __init__(self):
|
|
20
|
+
super().__init__()
|
|
21
|
+
self.model_package = importlib.import_module("huaweicloudsdkcodeartside.v1.model")
|
|
22
|
+
|
|
23
|
+
@classmethod
|
|
24
|
+
def new_builder(cls, clazz=None):
|
|
25
|
+
if not clazz:
|
|
26
|
+
client_builder = ClientBuilder(cls)
|
|
27
|
+
else:
|
|
28
|
+
if clazz.__name__ != "CodeArtsIDEAsyncClient":
|
|
29
|
+
raise TypeError("client type error, support client type is CodeArtsIDEAsyncClient")
|
|
30
|
+
client_builder = ClientBuilder(clazz)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
return client_builder
|
|
35
|
+
|
|
36
|
+
def show_latest_upgradable_release_async(self, request):
|
|
37
|
+
r"""查询升级版本
|
|
38
|
+
|
|
39
|
+
查询升级版本
|
|
40
|
+
|
|
41
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
:param request: Request instance for ShowLatestUpgradableRelease
|
|
45
|
+
:type request: :class:`huaweicloudsdkcodeartside.v1.ShowLatestUpgradableReleaseRequest`
|
|
46
|
+
:rtype: :class:`huaweicloudsdkcodeartside.v1.ShowLatestUpgradableReleaseResponse`
|
|
47
|
+
"""
|
|
48
|
+
http_info = self._show_latest_upgradable_release_http_info(request)
|
|
49
|
+
return self._call_api(**http_info)
|
|
50
|
+
|
|
51
|
+
def show_latest_upgradable_release_async_invoker(self, request):
|
|
52
|
+
http_info = self._show_latest_upgradable_release_http_info(request)
|
|
53
|
+
return AsyncInvoker(self, http_info)
|
|
54
|
+
|
|
55
|
+
def _show_latest_upgradable_release_http_info(self, request):
|
|
56
|
+
http_info = {
|
|
57
|
+
"method": "GET",
|
|
58
|
+
"resource_path": "/v1/release-info/latest",
|
|
59
|
+
"request_type": request.__class__.__name__,
|
|
60
|
+
"response_type": "ShowLatestUpgradableReleaseResponse"
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
64
|
+
|
|
65
|
+
cname = None
|
|
66
|
+
|
|
67
|
+
collection_formats = {}
|
|
68
|
+
|
|
69
|
+
path_params = {}
|
|
70
|
+
|
|
71
|
+
query_params = []
|
|
72
|
+
if 'sub_product_name' in local_var_params:
|
|
73
|
+
query_params.append(('sub_product_name', local_var_params['sub_product_name']))
|
|
74
|
+
if 'os_type' in local_var_params:
|
|
75
|
+
query_params.append(('os_type', local_var_params['os_type']))
|
|
76
|
+
if 'arch' in local_var_params:
|
|
77
|
+
query_params.append(('arch', local_var_params['arch']))
|
|
78
|
+
|
|
79
|
+
header_params = {}
|
|
80
|
+
|
|
81
|
+
form_params = {}
|
|
82
|
+
|
|
83
|
+
body = None
|
|
84
|
+
if isinstance(request, SdkStreamRequest):
|
|
85
|
+
body = request.get_file_stream()
|
|
86
|
+
|
|
87
|
+
response_headers = []
|
|
88
|
+
|
|
89
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
90
|
+
['application/json'])
|
|
91
|
+
|
|
92
|
+
auth_settings = []
|
|
93
|
+
|
|
94
|
+
http_info["cname"] = cname
|
|
95
|
+
http_info["collection_formats"] = collection_formats
|
|
96
|
+
http_info["path_params"] = path_params
|
|
97
|
+
http_info["query_params"] = query_params
|
|
98
|
+
http_info["header_params"] = header_params
|
|
99
|
+
http_info["post_params"] = form_params
|
|
100
|
+
http_info["body"] = body
|
|
101
|
+
http_info["response_headers"] = response_headers
|
|
102
|
+
|
|
103
|
+
return http_info
|
|
104
|
+
|
|
105
|
+
def validate_whitelist_user_async(self, request):
|
|
106
|
+
r"""是否白名单用户
|
|
107
|
+
|
|
108
|
+
是否白名单用户
|
|
109
|
+
|
|
110
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:param request: Request instance for ValidateWhitelistUser
|
|
114
|
+
:type request: :class:`huaweicloudsdkcodeartside.v1.ValidateWhitelistUserRequest`
|
|
115
|
+
:rtype: :class:`huaweicloudsdkcodeartside.v1.ValidateWhitelistUserResponse`
|
|
116
|
+
"""
|
|
117
|
+
http_info = self._validate_whitelist_user_http_info(request)
|
|
118
|
+
return self._call_api(**http_info)
|
|
119
|
+
|
|
120
|
+
def validate_whitelist_user_async_invoker(self, request):
|
|
121
|
+
http_info = self._validate_whitelist_user_http_info(request)
|
|
122
|
+
return AsyncInvoker(self, http_info)
|
|
123
|
+
|
|
124
|
+
def _validate_whitelist_user_http_info(self, request):
|
|
125
|
+
http_info = {
|
|
126
|
+
"method": "POST",
|
|
127
|
+
"resource_path": "/v1/config/users/check",
|
|
128
|
+
"request_type": request.__class__.__name__,
|
|
129
|
+
"response_type": "ValidateWhitelistUserResponse"
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
133
|
+
|
|
134
|
+
cname = None
|
|
135
|
+
|
|
136
|
+
collection_formats = {}
|
|
137
|
+
|
|
138
|
+
path_params = {}
|
|
139
|
+
|
|
140
|
+
query_params = []
|
|
141
|
+
|
|
142
|
+
header_params = {}
|
|
143
|
+
|
|
144
|
+
form_params = {}
|
|
145
|
+
|
|
146
|
+
body = None
|
|
147
|
+
if 'body' in local_var_params:
|
|
148
|
+
body = local_var_params['body']
|
|
149
|
+
if isinstance(request, SdkStreamRequest):
|
|
150
|
+
body = request.get_file_stream()
|
|
151
|
+
|
|
152
|
+
response_headers = []
|
|
153
|
+
|
|
154
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
155
|
+
['application/json;charset=UTF-8'])
|
|
156
|
+
|
|
157
|
+
auth_settings = []
|
|
158
|
+
|
|
159
|
+
http_info["cname"] = cname
|
|
160
|
+
http_info["collection_formats"] = collection_formats
|
|
161
|
+
http_info["path_params"] = path_params
|
|
162
|
+
http_info["query_params"] = query_params
|
|
163
|
+
http_info["header_params"] = header_params
|
|
164
|
+
http_info["post_params"] = form_params
|
|
165
|
+
http_info["body"] = body
|
|
166
|
+
http_info["response_headers"] = response_headers
|
|
167
|
+
|
|
168
|
+
return http_info
|
|
169
|
+
|
|
170
|
+
def _call_api(self, **kwargs):
|
|
171
|
+
try:
|
|
172
|
+
kwargs["async_request"] = True
|
|
173
|
+
return self.do_http_request(**kwargs)
|
|
174
|
+
except TypeError:
|
|
175
|
+
import inspect
|
|
176
|
+
params = inspect.signature(self.do_http_request).parameters
|
|
177
|
+
http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
|
|
178
|
+
return self.do_http_request(**http_info)
|
|
179
|
+
|
|
180
|
+
def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
|
|
181
|
+
post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
|
|
182
|
+
collection_formats=None, request_type=None):
|
|
183
|
+
"""Makes the HTTP request and returns deserialized data.
|
|
184
|
+
|
|
185
|
+
:param resource_path: Path to method endpoint.
|
|
186
|
+
:param method: Method to call.
|
|
187
|
+
:param path_params: Path parameters in the url.
|
|
188
|
+
:param query_params: Query parameters in the url.
|
|
189
|
+
:param header_params: Header parameters to be
|
|
190
|
+
placed in the request header.
|
|
191
|
+
:param body: Request body.
|
|
192
|
+
:param post_params: Request post form parameters,
|
|
193
|
+
for `application/x-www-form-urlencoded`, `multipart/form-data`.
|
|
194
|
+
:param cname: Used for obs endpoint.
|
|
195
|
+
:param auth_settings: Auth Settings names for the request.
|
|
196
|
+
:param response_type: Response data type.
|
|
197
|
+
:param response_headers: Header should be added to response data.
|
|
198
|
+
:param collection_formats: dict of collection formats for path, query,
|
|
199
|
+
header, and post parameters.
|
|
200
|
+
:param request_type: Request data type.
|
|
201
|
+
:return:
|
|
202
|
+
Return the response directly.
|
|
203
|
+
"""
|
|
204
|
+
return self.do_http_request(
|
|
205
|
+
method=method,
|
|
206
|
+
resource_path=resource_path,
|
|
207
|
+
path_params=path_params,
|
|
208
|
+
query_params=query_params,
|
|
209
|
+
header_params=header_params,
|
|
210
|
+
body=body,
|
|
211
|
+
post_params=post_params,
|
|
212
|
+
cname=cname,
|
|
213
|
+
response_type=response_type,
|
|
214
|
+
response_headers=response_headers,
|
|
215
|
+
collection_formats=collection_formats,
|
|
216
|
+
request_type=request_type,
|
|
217
|
+
async_request=True)
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from __future__ import absolute_import
|
|
4
|
+
|
|
5
|
+
import importlib
|
|
6
|
+
import warnings
|
|
7
|
+
|
|
8
|
+
from huaweicloudsdkcore.client import Client, ClientBuilder
|
|
9
|
+
from huaweicloudsdkcore.utils import http_utils
|
|
10
|
+
from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from huaweicloudsdkcore.invoker.invoker import SyncInvoker
|
|
14
|
+
except ImportError as e:
|
|
15
|
+
warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkcodeartside'")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class CodeArtsIDEClient(Client):
|
|
19
|
+
def __init__(self):
|
|
20
|
+
super().__init__()
|
|
21
|
+
self.model_package = importlib.import_module("huaweicloudsdkcodeartside.v1.model")
|
|
22
|
+
|
|
23
|
+
@classmethod
|
|
24
|
+
def new_builder(cls, clazz=None):
|
|
25
|
+
if not clazz:
|
|
26
|
+
client_builder = ClientBuilder(cls)
|
|
27
|
+
else:
|
|
28
|
+
if clazz.__name__ != "CodeArtsIDEClient":
|
|
29
|
+
raise TypeError("client type error, support client type is CodeArtsIDEClient")
|
|
30
|
+
client_builder = ClientBuilder(clazz)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
return client_builder
|
|
35
|
+
|
|
36
|
+
def show_latest_upgradable_release(self, request):
|
|
37
|
+
r"""查询升级版本
|
|
38
|
+
|
|
39
|
+
查询升级版本
|
|
40
|
+
|
|
41
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
42
|
+
|
|
43
|
+
:param request: Request instance for ShowLatestUpgradableRelease
|
|
44
|
+
:type request: :class:`huaweicloudsdkcodeartside.v1.ShowLatestUpgradableReleaseRequest`
|
|
45
|
+
:rtype: :class:`huaweicloudsdkcodeartside.v1.ShowLatestUpgradableReleaseResponse`
|
|
46
|
+
"""
|
|
47
|
+
http_info = self._show_latest_upgradable_release_http_info(request)
|
|
48
|
+
return self._call_api(**http_info)
|
|
49
|
+
|
|
50
|
+
def show_latest_upgradable_release_invoker(self, request):
|
|
51
|
+
http_info = self._show_latest_upgradable_release_http_info(request)
|
|
52
|
+
return SyncInvoker(self, http_info)
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def _show_latest_upgradable_release_http_info(cls, request):
|
|
56
|
+
http_info = {
|
|
57
|
+
"method": "GET",
|
|
58
|
+
"resource_path": "/v1/release-info/latest",
|
|
59
|
+
"request_type": request.__class__.__name__,
|
|
60
|
+
"response_type": "ShowLatestUpgradableReleaseResponse"
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
64
|
+
|
|
65
|
+
cname = None
|
|
66
|
+
|
|
67
|
+
collection_formats = {}
|
|
68
|
+
|
|
69
|
+
path_params = {}
|
|
70
|
+
|
|
71
|
+
query_params = []
|
|
72
|
+
if 'sub_product_name' in local_var_params:
|
|
73
|
+
query_params.append(('sub_product_name', local_var_params['sub_product_name']))
|
|
74
|
+
if 'os_type' in local_var_params:
|
|
75
|
+
query_params.append(('os_type', local_var_params['os_type']))
|
|
76
|
+
if 'arch' in local_var_params:
|
|
77
|
+
query_params.append(('arch', local_var_params['arch']))
|
|
78
|
+
|
|
79
|
+
header_params = {}
|
|
80
|
+
|
|
81
|
+
form_params = {}
|
|
82
|
+
|
|
83
|
+
body = None
|
|
84
|
+
if isinstance(request, SdkStreamRequest):
|
|
85
|
+
body = request.get_file_stream()
|
|
86
|
+
|
|
87
|
+
response_headers = []
|
|
88
|
+
|
|
89
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
90
|
+
['application/json'])
|
|
91
|
+
|
|
92
|
+
auth_settings = []
|
|
93
|
+
|
|
94
|
+
http_info["cname"] = cname
|
|
95
|
+
http_info["collection_formats"] = collection_formats
|
|
96
|
+
http_info["path_params"] = path_params
|
|
97
|
+
http_info["query_params"] = query_params
|
|
98
|
+
http_info["header_params"] = header_params
|
|
99
|
+
http_info["post_params"] = form_params
|
|
100
|
+
http_info["body"] = body
|
|
101
|
+
http_info["response_headers"] = response_headers
|
|
102
|
+
|
|
103
|
+
return http_info
|
|
104
|
+
|
|
105
|
+
def validate_whitelist_user(self, request):
|
|
106
|
+
r"""是否白名单用户
|
|
107
|
+
|
|
108
|
+
是否白名单用户
|
|
109
|
+
|
|
110
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
111
|
+
|
|
112
|
+
:param request: Request instance for ValidateWhitelistUser
|
|
113
|
+
:type request: :class:`huaweicloudsdkcodeartside.v1.ValidateWhitelistUserRequest`
|
|
114
|
+
:rtype: :class:`huaweicloudsdkcodeartside.v1.ValidateWhitelistUserResponse`
|
|
115
|
+
"""
|
|
116
|
+
http_info = self._validate_whitelist_user_http_info(request)
|
|
117
|
+
return self._call_api(**http_info)
|
|
118
|
+
|
|
119
|
+
def validate_whitelist_user_invoker(self, request):
|
|
120
|
+
http_info = self._validate_whitelist_user_http_info(request)
|
|
121
|
+
return SyncInvoker(self, http_info)
|
|
122
|
+
|
|
123
|
+
@classmethod
|
|
124
|
+
def _validate_whitelist_user_http_info(cls, request):
|
|
125
|
+
http_info = {
|
|
126
|
+
"method": "POST",
|
|
127
|
+
"resource_path": "/v1/config/users/check",
|
|
128
|
+
"request_type": request.__class__.__name__,
|
|
129
|
+
"response_type": "ValidateWhitelistUserResponse"
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
133
|
+
|
|
134
|
+
cname = None
|
|
135
|
+
|
|
136
|
+
collection_formats = {}
|
|
137
|
+
|
|
138
|
+
path_params = {}
|
|
139
|
+
|
|
140
|
+
query_params = []
|
|
141
|
+
|
|
142
|
+
header_params = {}
|
|
143
|
+
|
|
144
|
+
form_params = {}
|
|
145
|
+
|
|
146
|
+
body = None
|
|
147
|
+
if 'body' in local_var_params:
|
|
148
|
+
body = local_var_params['body']
|
|
149
|
+
if isinstance(request, SdkStreamRequest):
|
|
150
|
+
body = request.get_file_stream()
|
|
151
|
+
|
|
152
|
+
response_headers = []
|
|
153
|
+
|
|
154
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
155
|
+
['application/json;charset=UTF-8'])
|
|
156
|
+
|
|
157
|
+
auth_settings = []
|
|
158
|
+
|
|
159
|
+
http_info["cname"] = cname
|
|
160
|
+
http_info["collection_formats"] = collection_formats
|
|
161
|
+
http_info["path_params"] = path_params
|
|
162
|
+
http_info["query_params"] = query_params
|
|
163
|
+
http_info["header_params"] = header_params
|
|
164
|
+
http_info["post_params"] = form_params
|
|
165
|
+
http_info["body"] = body
|
|
166
|
+
http_info["response_headers"] = response_headers
|
|
167
|
+
|
|
168
|
+
return http_info
|
|
169
|
+
|
|
170
|
+
def _call_api(self, **kwargs):
|
|
171
|
+
try:
|
|
172
|
+
return self.do_http_request(**kwargs)
|
|
173
|
+
except TypeError:
|
|
174
|
+
import inspect
|
|
175
|
+
params = inspect.signature(self.do_http_request).parameters
|
|
176
|
+
http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
|
|
177
|
+
return self.do_http_request(**http_info)
|
|
178
|
+
|
|
179
|
+
def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
|
|
180
|
+
post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
|
|
181
|
+
collection_formats=None, request_type=None):
|
|
182
|
+
"""Makes the HTTP request and returns deserialized data.
|
|
183
|
+
|
|
184
|
+
:param resource_path: Path to method endpoint.
|
|
185
|
+
:param method: Method to call.
|
|
186
|
+
:param path_params: Path parameters in the url.
|
|
187
|
+
:param query_params: Query parameters in the url.
|
|
188
|
+
:param header_params: Header parameters to be placed in the request header.
|
|
189
|
+
:param body: Request body.
|
|
190
|
+
:param post_params: Request post form parameters,
|
|
191
|
+
for `application/x-www-form-urlencoded`, `multipart/form-data`.
|
|
192
|
+
:param cname: Used for obs endpoint.
|
|
193
|
+
:param auth_settings: Auth Settings names for the request.
|
|
194
|
+
:param response_type: Response data type.
|
|
195
|
+
:param response_headers: Header should be added to response data.
|
|
196
|
+
:param collection_formats: dict of collection formats for path, query,
|
|
197
|
+
header, and post parameters.
|
|
198
|
+
:param request_type: Request data type.
|
|
199
|
+
:return:
|
|
200
|
+
Return the response directly.
|
|
201
|
+
"""
|
|
202
|
+
return self.do_http_request(
|
|
203
|
+
method=method,
|
|
204
|
+
resource_path=resource_path,
|
|
205
|
+
path_params=path_params,
|
|
206
|
+
query_params=query_params,
|
|
207
|
+
header_params=header_params,
|
|
208
|
+
body=body,
|
|
209
|
+
post_params=post_params,
|
|
210
|
+
cname=cname,
|
|
211
|
+
response_type=response_type,
|
|
212
|
+
response_headers=response_headers,
|
|
213
|
+
collection_formats=collection_formats,
|
|
214
|
+
request_type=request_type)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from __future__ import absolute_import
|
|
4
|
+
|
|
5
|
+
# import models into model package
|
|
6
|
+
from huaweicloudsdkcodeartside.v1.model.show_latest_upgradable_release_request import ShowLatestUpgradableReleaseRequest
|
|
7
|
+
from huaweicloudsdkcodeartside.v1.model.show_latest_upgradable_release_response import ShowLatestUpgradableReleaseResponse
|
|
8
|
+
from huaweicloudsdkcodeartside.v1.model.show_latest_upgradable_release_response_body_result import ShowLatestUpgradableReleaseResponseBodyResult
|
|
9
|
+
from huaweicloudsdkcodeartside.v1.model.validate_whitelist_user_request import ValidateWhitelistUserRequest
|
|
10
|
+
from huaweicloudsdkcodeartside.v1.model.validate_whitelist_user_request_body import ValidateWhitelistUserRequestBody
|
|
11
|
+
from huaweicloudsdkcodeartside.v1.model.validate_whitelist_user_response import ValidateWhitelistUserResponse
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ShowLatestUpgradableReleaseRequest:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
'sub_product_name': 'str',
|
|
19
|
+
'os_type': 'str',
|
|
20
|
+
'arch': 'str'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'sub_product_name': 'sub_product_name',
|
|
25
|
+
'os_type': 'os_type',
|
|
26
|
+
'arch': 'arch'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, sub_product_name=None, os_type=None, arch=None):
|
|
30
|
+
r"""ShowLatestUpgradableReleaseRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param sub_product_name: 子产品名称
|
|
35
|
+
:type sub_product_name: str
|
|
36
|
+
:param os_type: 系统类型
|
|
37
|
+
:type os_type: str
|
|
38
|
+
:param arch: CPU架构
|
|
39
|
+
:type arch: str
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
self._sub_product_name = None
|
|
45
|
+
self._os_type = None
|
|
46
|
+
self._arch = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
|
|
49
|
+
self.sub_product_name = sub_product_name
|
|
50
|
+
self.os_type = os_type
|
|
51
|
+
if arch is not None:
|
|
52
|
+
self.arch = arch
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def sub_product_name(self):
|
|
56
|
+
r"""Gets the sub_product_name of this ShowLatestUpgradableReleaseRequest.
|
|
57
|
+
|
|
58
|
+
子产品名称
|
|
59
|
+
|
|
60
|
+
:return: The sub_product_name of this ShowLatestUpgradableReleaseRequest.
|
|
61
|
+
:rtype: str
|
|
62
|
+
"""
|
|
63
|
+
return self._sub_product_name
|
|
64
|
+
|
|
65
|
+
@sub_product_name.setter
|
|
66
|
+
def sub_product_name(self, sub_product_name):
|
|
67
|
+
r"""Sets the sub_product_name of this ShowLatestUpgradableReleaseRequest.
|
|
68
|
+
|
|
69
|
+
子产品名称
|
|
70
|
+
|
|
71
|
+
:param sub_product_name: The sub_product_name of this ShowLatestUpgradableReleaseRequest.
|
|
72
|
+
:type sub_product_name: str
|
|
73
|
+
"""
|
|
74
|
+
self._sub_product_name = sub_product_name
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def os_type(self):
|
|
78
|
+
r"""Gets the os_type of this ShowLatestUpgradableReleaseRequest.
|
|
79
|
+
|
|
80
|
+
系统类型
|
|
81
|
+
|
|
82
|
+
:return: The os_type of this ShowLatestUpgradableReleaseRequest.
|
|
83
|
+
:rtype: str
|
|
84
|
+
"""
|
|
85
|
+
return self._os_type
|
|
86
|
+
|
|
87
|
+
@os_type.setter
|
|
88
|
+
def os_type(self, os_type):
|
|
89
|
+
r"""Sets the os_type of this ShowLatestUpgradableReleaseRequest.
|
|
90
|
+
|
|
91
|
+
系统类型
|
|
92
|
+
|
|
93
|
+
:param os_type: The os_type of this ShowLatestUpgradableReleaseRequest.
|
|
94
|
+
:type os_type: str
|
|
95
|
+
"""
|
|
96
|
+
self._os_type = os_type
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
def arch(self):
|
|
100
|
+
r"""Gets the arch of this ShowLatestUpgradableReleaseRequest.
|
|
101
|
+
|
|
102
|
+
CPU架构
|
|
103
|
+
|
|
104
|
+
:return: The arch of this ShowLatestUpgradableReleaseRequest.
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._arch
|
|
108
|
+
|
|
109
|
+
@arch.setter
|
|
110
|
+
def arch(self, arch):
|
|
111
|
+
r"""Sets the arch of this ShowLatestUpgradableReleaseRequest.
|
|
112
|
+
|
|
113
|
+
CPU架构
|
|
114
|
+
|
|
115
|
+
:param arch: The arch of this ShowLatestUpgradableReleaseRequest.
|
|
116
|
+
:type arch: str
|
|
117
|
+
"""
|
|
118
|
+
self._arch = arch
|
|
119
|
+
|
|
120
|
+
def to_dict(self):
|
|
121
|
+
result = {}
|
|
122
|
+
|
|
123
|
+
for attr, _ in self.openapi_types.items():
|
|
124
|
+
value = getattr(self, attr)
|
|
125
|
+
if isinstance(value, list):
|
|
126
|
+
result[attr] = list(map(
|
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
128
|
+
value
|
|
129
|
+
))
|
|
130
|
+
elif hasattr(value, "to_dict"):
|
|
131
|
+
result[attr] = value.to_dict()
|
|
132
|
+
elif isinstance(value, dict):
|
|
133
|
+
result[attr] = dict(map(
|
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
|
136
|
+
value.items()
|
|
137
|
+
))
|
|
138
|
+
else:
|
|
139
|
+
if attr in self.sensitive_list:
|
|
140
|
+
result[attr] = "****"
|
|
141
|
+
else:
|
|
142
|
+
result[attr] = value
|
|
143
|
+
|
|
144
|
+
return result
|
|
145
|
+
|
|
146
|
+
def to_str(self):
|
|
147
|
+
"""Returns the string representation of the model"""
|
|
148
|
+
import simplejson as json
|
|
149
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
150
|
+
|
|
151
|
+
def __repr__(self):
|
|
152
|
+
"""For `print`"""
|
|
153
|
+
return self.to_str()
|
|
154
|
+
|
|
155
|
+
def __eq__(self, other):
|
|
156
|
+
"""Returns true if both objects are equal"""
|
|
157
|
+
if not isinstance(other, ShowLatestUpgradableReleaseRequest):
|
|
158
|
+
return False
|
|
159
|
+
|
|
160
|
+
return self.__dict__ == other.__dict__
|
|
161
|
+
|
|
162
|
+
def __ne__(self, other):
|
|
163
|
+
"""Returns true if both objects are not equal"""
|
|
164
|
+
return not self == other
|