Skip to content

Commit 4ee618e

Browse files
committed
Add policy sdk
* Update sdks
1 parent f60d232 commit 4ee618e

21 files changed

Lines changed: 2613 additions & 757 deletions

cli/polyaxon/_sdk/api/artifacts_stores_v1_api.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def upload_artifact(
2323
Optional[bool], Field(description="File path query params.")
2424
] = None,
2525
**kwargs,
26-
) -> None:
27-
"""Upload artifact to a store
26+
) -> None: # noqa: E501
27+
"""Upload artifact to a store # noqa: E501
2828
2929
This method makes a synchronous HTTP request by default. To make an
3030
asynchronous HTTP request, please pass async_req=True
@@ -37,7 +37,7 @@ def upload_artifact(
3737
:param uuid: Unique integer identifier of the entity (required)
3838
:type uuid: str
3939
:param uploadfile: The file to upload. (required)
40-
:type uploadfile: str
40+
:type uploadfile: bytearray
4141
:param path: File path query params.
4242
:type path: str
4343
:param overwrite: File path query params.
@@ -60,7 +60,7 @@ def upload_artifact(
6060
kwargs["_return_http_data_only"] = True
6161
return self.upload_artifact_with_http_info(
6262
owner, uuid, uploadfile, path, overwrite, **kwargs
63-
)
63+
) # noqa: E501
6464

6565
@validate_call
6666
def upload_artifact_with_http_info(
@@ -77,8 +77,8 @@ def upload_artifact_with_http_info(
7777
Optional[bool], Field(description="File path query params.")
7878
] = None,
7979
**kwargs,
80-
):
81-
"""Upload artifact to a store
80+
): # noqa: E501
81+
"""Upload artifact to a store # noqa: E501
8282
8383
This method makes a synchronous HTTP request by default. To make an
8484
asynchronous HTTP request, please pass async_req=True
@@ -91,7 +91,7 @@ def upload_artifact_with_http_info(
9191
:param uuid: Unique integer identifier of the entity (required)
9292
:type uuid: str
9393
:param uploadfile: The file to upload. (required)
94-
:type uploadfile: str
94+
:type uploadfile: bytearray
9595
:param path: File path query params.
9696
:type path: str
9797
:param overwrite: File path query params.
@@ -151,19 +151,20 @@ def upload_artifact_with_http_info(
151151
_path_params = {}
152152
if _params["owner"]:
153153
_path_params["owner"] = _params["owner"]
154+
154155
if _params["uuid"]:
155156
_path_params["uuid"] = _params["uuid"]
156157

157158
# process the query parameters
158159
_query_params = []
159-
if _params.get("path") is not None:
160+
if _params.get("path") is not None: # noqa: E501
160161
_query_params.append(("path", _params["path"]))
161-
if _params.get("overwrite") is not None:
162+
163+
if _params.get("overwrite") is not None: # noqa: E501
162164
_query_params.append(("overwrite", _params["overwrite"]))
163165

164166
# process the header parameters
165167
_header_params = dict(_params.get("_headers", {}))
166-
167168
# process the form parameters
168169
_form_params = []
169170
_files = {}
@@ -172,11 +173,10 @@ def upload_artifact_with_http_info(
172173

173174
# process the body parameter
174175
_body_params = None
175-
176176
# set the HTTP header `Accept`
177177
_header_params["Accept"] = self.api_client.select_header_accept(
178178
["application/json"]
179-
)
179+
) # noqa: E501
180180

181181
# set the HTTP header `Content-Type`
182182
_content_types_list = _params.get(
@@ -187,7 +187,7 @@ def upload_artifact_with_http_info(
187187
_header_params["Content-Type"] = _content_types_list
188188

189189
# authentication setting
190-
_auth_settings = ["ApiKey"]
190+
_auth_settings = ["ApiKey"] # noqa: E501
191191

192192
_response_types_map = {}
193193

@@ -203,7 +203,7 @@ def upload_artifact_with_http_info(
203203
response_types_map=_response_types_map,
204204
auth_settings=_auth_settings,
205205
async_req=_params.get("async_req"),
206-
_return_http_data_only=_params.get("_return_http_data_only"),
206+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
207207
_preload_content=_params.get("_preload_content", True),
208208
_request_timeout=_params.get("_request_timeout"),
209209
collection_formats=_collection_formats,

cli/polyaxon/_sdk/api/auth_v1_api.py

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
class AuthV1Api(BaseApi):
1414
@validate_call
15-
def change_password(self, body: V1PasswordChange, **kwargs) -> None:
16-
"""Change password
15+
def change_password(self, body: V1PasswordChange, **kwargs) -> None: # noqa: E501
16+
"""Change password # noqa: E501
1717
1818
This method makes a synchronous HTTP request by default. To make an
1919
asynchronous HTTP request, please pass async_req=True
@@ -39,11 +39,11 @@ def change_password(self, body: V1PasswordChange, **kwargs) -> None:
3939
:rtype: None
4040
"""
4141
kwargs["_return_http_data_only"] = True
42-
return self.change_password_with_http_info(body, **kwargs)
42+
return self.change_password_with_http_info(body, **kwargs) # noqa: E501
4343

4444
@validate_call
45-
def change_password_with_http_info(self, body: V1PasswordChange, **kwargs):
46-
"""Change password
45+
def change_password_with_http_info(self, body: V1PasswordChange, **kwargs): # noqa: E501
46+
"""Change password # noqa: E501
4747
4848
This method makes a synchronous HTTP request by default. To make an
4949
asynchronous HTTP request, please pass async_req=True
@@ -109,14 +109,11 @@ def change_password_with_http_info(self, body: V1PasswordChange, **kwargs):
109109

110110
# process the query parameters
111111
_query_params = []
112-
113112
# process the header parameters
114113
_header_params = dict(_params.get("_headers", {}))
115-
116114
# process the form parameters
117115
_form_params = []
118116
_files = {}
119-
120117
# process the body parameter
121118
_body_params = None
122119
if _params["body"]:
@@ -125,7 +122,7 @@ def change_password_with_http_info(self, body: V1PasswordChange, **kwargs):
125122
# set the HTTP header `Accept`
126123
_header_params["Accept"] = self.api_client.select_header_accept(
127124
["application/json"]
128-
)
125+
) # noqa: E501
129126

130127
# set the HTTP header `Content-Type`
131128
_content_types_list = _params.get(
@@ -244,7 +241,7 @@ def login_with_http_info(self, body: V1Credentials, **kwargs): # noqa: E501
244241
for _key, _val in _params["kwargs"].items():
245242
if _key not in _all_params:
246243
raise ApiTypeError(
247-
"Got an unexpected keyword argument '%s' to method login" % _key
244+
"Got an unexpected keyword argument '%s'" " to method login" % _key
248245
)
249246
_params[_key] = _val
250247
del _params["kwargs"]
@@ -256,14 +253,11 @@ def login_with_http_info(self, body: V1Credentials, **kwargs): # noqa: E501
256253

257254
# process the query parameters
258255
_query_params = []
259-
260256
# process the header parameters
261257
_header_params = dict(_params.get("_headers", {}))
262-
263258
# process the form parameters
264259
_form_params = []
265260
_files = {}
266-
267261
# process the body parameter
268262
_body_params = None
269263
if _params["body"]:
@@ -409,14 +403,11 @@ def reset_password_with_http_info(self, body: V1UserEmail, **kwargs): # noqa: E
409403

410404
# process the query parameters
411405
_query_params = []
412-
413406
# process the header parameters
414407
_header_params = dict(_params.get("_headers", {}))
415-
416408
# process the form parameters
417409
_form_params = []
418410
_files = {}
419-
420411
# process the body parameter
421412
_body_params = None
422413
if _params["body"]:
@@ -557,14 +548,11 @@ def reset_password_confirm_with_http_info(self, body: V1PasswordChange, **kwargs
557548

558549
# process the query parameters
559550
_query_params = []
560-
561551
# process the header parameters
562552
_header_params = dict(_params.get("_headers", {}))
563-
564553
# process the form parameters
565554
_form_params = []
566555
_files = {}
567-
568556
# process the body parameter
569557
_body_params = None
570558
if _params["body"]:
@@ -697,7 +685,7 @@ def signup_with_http_info(self, body: V1UserSingup, **kwargs): # noqa: E501
697685
for _key, _val in _params["kwargs"].items():
698686
if _key not in _all_params:
699687
raise ApiTypeError(
700-
"Got an unexpected keyword argument '%s' to method signup" % _key
688+
"Got an unexpected keyword argument '%s'" " to method signup" % _key
701689
)
702690
_params[_key] = _val
703691
del _params["kwargs"]
@@ -709,14 +697,11 @@ def signup_with_http_info(self, body: V1UserSingup, **kwargs): # noqa: E501
709697

710698
# process the query parameters
711699
_query_params = []
712-
713700
# process the header parameters
714701
_header_params = dict(_params.get("_headers", {}))
715-
716702
# process the form parameters
717703
_form_params = []
718704
_files = {}
719-
720705
# process the body parameter
721706
_body_params = None
722707
if _params["body"]:
@@ -849,7 +834,7 @@ def trial_with_http_info(self, body: V1TrialStart, **kwargs): # noqa: E501
849834
for _key, _val in _params["kwargs"].items():
850835
if _key not in _all_params:
851836
raise ApiTypeError(
852-
"Got an unexpected keyword argument '%s' to method trial" % _key
837+
"Got an unexpected keyword argument '%s'" " to method trial" % _key
853838
)
854839
_params[_key] = _val
855840
del _params["kwargs"]
@@ -861,14 +846,11 @@ def trial_with_http_info(self, body: V1TrialStart, **kwargs): # noqa: E501
861846

862847
# process the query parameters
863848
_query_params = []
864-
865849
# process the header parameters
866850
_header_params = dict(_params.get("_headers", {}))
867-
868851
# process the form parameters
869852
_form_params = []
870853
_files = {}
871-
872854
# process the body parameter
873855
_body_params = None
874856
if _params["body"]:

0 commit comments

Comments
 (0)