Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

Commit cdc238d

Browse files
authored
shorter method names (#46)
1 parent 938e90c commit cdc238d

147 files changed

Lines changed: 5728 additions & 5750 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

defectdojo_api_generated/api/announcements_api.py

Lines changed: 74 additions & 74 deletions
Large diffs are not rendered by default.

defectdojo_api_generated/api/api_token_auth_api.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self, api_client=None) -> None:
3434
api_client = ApiClient.get_default()
3535
self.api_client = api_client
3636

37-
def api_token_auth_create(
37+
def create(
3838
self,
3939
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None,
4040
password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None,
@@ -48,7 +48,7 @@ def api_token_auth_create(
4848
_headers: Optional[Dict[StrictStr, Any]] = None,
4949
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5050
) -> AuthToken:
51-
"""api_token_auth_create
51+
"""create
5252
5353
5454
:param username:
@@ -77,7 +77,7 @@ def api_token_auth_create(
7777
:return: Returns the result object.
7878
""" # noqa: E501
7979

80-
_param = self._api_token_auth_create_serialize(
80+
_param = self._create_serialize(
8181
username=username,
8282
password=password,
8383
_request_auth=_request_auth,
@@ -96,7 +96,7 @@ def api_token_auth_create(
9696
response_types_map=_response_types_map,
9797
).data
9898

99-
def api_token_auth_create_with_http_info(
99+
def create_with_http_info(
100100
self,
101101
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None,
102102
password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None,
@@ -110,7 +110,7 @@ def api_token_auth_create_with_http_info(
110110
_headers: Optional[Dict[StrictStr, Any]] = None,
111111
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
112112
) -> ApiResponse[AuthToken]:
113-
"""api_token_auth_create
113+
"""create
114114
115115
116116
:param username:
@@ -139,7 +139,7 @@ def api_token_auth_create_with_http_info(
139139
:return: Returns the result object.
140140
""" # noqa: E501
141141

142-
_param = self._api_token_auth_create_serialize(
142+
_param = self._create_serialize(
143143
username=username,
144144
password=password,
145145
_request_auth=_request_auth,
@@ -158,7 +158,7 @@ def api_token_auth_create_with_http_info(
158158
response_types_map=_response_types_map,
159159
)
160160

161-
def api_token_auth_create_without_preload_content(
161+
def create_without_preload_content(
162162
self,
163163
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None,
164164
password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None,
@@ -172,7 +172,7 @@ def api_token_auth_create_without_preload_content(
172172
_headers: Optional[Dict[StrictStr, Any]] = None,
173173
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
174174
) -> RESTResponseType:
175-
"""api_token_auth_create
175+
"""create
176176
177177
178178
:param username:
@@ -201,7 +201,7 @@ def api_token_auth_create_without_preload_content(
201201
:return: Returns the result object.
202202
""" # noqa: E501
203203

204-
_param = self._api_token_auth_create_serialize(
204+
_param = self._create_serialize(
205205
username=username,
206206
password=password,
207207
_request_auth=_request_auth,
@@ -216,7 +216,7 @@ def api_token_auth_create_without_preload_content(
216216
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
217217
return response_data.response
218218

219-
def _api_token_auth_create_serialize(
219+
def _create_serialize(
220220
self,
221221
username,
222222
password,

0 commit comments

Comments
 (0)