codecraftai-restclient-gitlab 1.2.0__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.
- ccai/gitlab/py.typed +0 -0
- ccai/gitlab/rest/aspectsrest.py +120 -0
- ccai/gitlab/rest/clients/__init__.py +0 -0
- ccai/gitlab/rest/clients/gitlabrestclient.py +118 -0
- ccai/gitlab/rest/clients/groups/__init__.py +0 -0
- ccai/gitlab/rest/clients/groups/accessrequests.py +230 -0
- ccai/gitlab/rest/clients/groups/admin.py +41 -0
- ccai/gitlab/rest/clients/groups/alertmanagement.py +149 -0
- ccai/gitlab/rest/clients/groups/application.py +68 -0
- ccai/gitlab/rest/clients/groups/applications.py +95 -0
- ccai/gitlab/rest/clients/groups/avatar.py +41 -0
- ccai/gitlab/rest/clients/groups/badges.py +338 -0
- ccai/gitlab/rest/clients/groups/batchedbackgroundmigrations.py +122 -0
- ccai/gitlab/rest/clients/groups/branches.py +230 -0
- ccai/gitlab/rest/clients/groups/broadcastmessages.py +149 -0
- ccai/gitlab/rest/clients/groups/bulkimports.py +176 -0
- ccai/gitlab/rest/clients/groups/clusters.py +149 -0
- ccai/gitlab/rest/clients/groups/jobs.py +95 -0
- ccai/gitlab/rest/clients/groups/metadata.py +68 -0
- ccai/gitlab/rest/clients/groups/migrations.py +41 -0
- ccai/gitlab/rest/clients/groups/pipelinecomposition.py +146 -0
- ccai/gitlab/rest/clients/groups/planlimits.py +68 -0
- ccai/gitlab/rest/clients/parameters/__init__.py +0 -0
- ccai/gitlab/rest/clients/parameters/accessrequests.py +222 -0
- ccai/gitlab/rest/clients/parameters/admin.py +31 -0
- ccai/gitlab/rest/clients/parameters/alertmanagement.py +147 -0
- ccai/gitlab/rest/clients/parameters/application.py +27 -0
- ccai/gitlab/rest/clients/parameters/applications.py +51 -0
- ccai/gitlab/rest/clients/parameters/avatar.py +31 -0
- ccai/gitlab/rest/clients/parameters/badges.py +344 -0
- ccai/gitlab/rest/clients/parameters/batchedbackgroundmigrations.py +105 -0
- ccai/gitlab/rest/clients/parameters/branches.py +236 -0
- ccai/gitlab/rest/clients/parameters/broadcastmessages.py +123 -0
- ccai/gitlab/rest/clients/parameters/bulkimports.py +173 -0
- ccai/gitlab/rest/clients/parameters/clusters.py +100 -0
- ccai/gitlab/rest/clients/parameters/jobs.py +88 -0
- ccai/gitlab/rest/clients/parameters/metadata.py +11 -0
- ccai/gitlab/rest/clients/parameters/migrations.py +29 -0
- ccai/gitlab/rest/clients/parameters/pipelinecomposition.py +123 -0
- ccai/gitlab/rest/clients/parameters/planlimits.py +47 -0
- ccai/gitlab/rest/clients/responses/__init__.py +0 -0
- ccai/gitlab/rest/clients/responses/accessrequests.py +157 -0
- ccai/gitlab/rest/clients/responses/admin.py +24 -0
- ccai/gitlab/rest/clients/responses/alertmanagement.py +100 -0
- ccai/gitlab/rest/clients/responses/application.py +43 -0
- ccai/gitlab/rest/clients/responses/applications.py +62 -0
- ccai/gitlab/rest/clients/responses/avatar.py +24 -0
- ccai/gitlab/rest/clients/responses/badges.py +233 -0
- ccai/gitlab/rest/clients/responses/batchedbackgroundmigrations.py +81 -0
- ccai/gitlab/rest/clients/responses/branches.py +157 -0
- ccai/gitlab/rest/clients/responses/broadcastmessages.py +100 -0
- ccai/gitlab/rest/clients/responses/bulkimports.py +119 -0
- ccai/gitlab/rest/clients/responses/clusters.py +100 -0
- ccai/gitlab/rest/clients/responses/jobs.py +62 -0
- ccai/gitlab/rest/clients/responses/metadata.py +43 -0
- ccai/gitlab/rest/clients/responses/migrations.py +24 -0
- ccai/gitlab/rest/clients/responses/pipelinecomposition.py +100 -0
- ccai/gitlab/rest/clients/responses/planlimits.py +43 -0
- ccai/gitlab/rest/descriptions/gitlab-openapi-hints.yaml +195 -0
- ccai/gitlab/rest/descriptions/gitlab-openapi-spec.yaml +3635 -0
- ccai/gitlab/rest/generation/__init__.py +0 -0
- ccai/gitlab/rest/generation/restclientgenerator.py +581 -0
- ccai/gitlab/rest/itemsresult.py +274 -0
- ccai/gitlab/rest/restapigroup.py +17 -0
- ccai/gitlab/rest/restclientbase.py +676 -0
- ccai/gitlab/rest/restclientutils.py +0 -0
- codecraftai_restclient_gitlab-1.2.0.dist-info/METADATA +90 -0
- codecraftai_restclient_gitlab-1.2.0.dist-info/RECORD +70 -0
- codecraftai_restclient_gitlab-1.2.0.dist-info/WHEEL +4 -0
- codecraftai_restclient_gitlab-1.2.0.dist-info/licenses/LICENSE.md +204 -0
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
from typing import Any, Dict, Optional
|
|
5
|
+
|
|
6
|
+
@dataclass
|
|
7
|
+
class BadgesDeleteapiv4groupsidbadgesbadgeidParams:
|
|
8
|
+
"""
|
|
9
|
+
Parameters for the 'deleteApiV4GroupsIdBadgesBadgeId' operation.
|
|
10
|
+
"""
|
|
11
|
+
id: str
|
|
12
|
+
badge_id: int
|
|
13
|
+
|
|
14
|
+
def path_params(self) -> Dict[str, Any]:
|
|
15
|
+
params: Dict[str, Any] = {}
|
|
16
|
+
if self.id is not None:
|
|
17
|
+
params['id'] = self.id
|
|
18
|
+
if self.badge_id is not None:
|
|
19
|
+
params['badge_id'] = self.badge_id
|
|
20
|
+
return params
|
|
21
|
+
|
|
22
|
+
def query_params(self) -> Dict[str, Any]:
|
|
23
|
+
params: Dict[str, Any] = {}
|
|
24
|
+
return params
|
|
25
|
+
|
|
26
|
+
def header_params(self) -> Dict[str, Any]:
|
|
27
|
+
params: Dict[str, Any] = {}
|
|
28
|
+
return params
|
|
29
|
+
|
|
30
|
+
def body_params(self) -> Any:
|
|
31
|
+
return None
|
|
32
|
+
|
|
33
|
+
@dataclass
|
|
34
|
+
class BadgesDeleteapiv4projectsidbadgesbadgeidParams:
|
|
35
|
+
"""
|
|
36
|
+
Parameters for the 'deleteApiV4ProjectsIdBadgesBadgeId' operation.
|
|
37
|
+
"""
|
|
38
|
+
id: str
|
|
39
|
+
badge_id: int
|
|
40
|
+
|
|
41
|
+
def path_params(self) -> Dict[str, Any]:
|
|
42
|
+
params: Dict[str, Any] = {}
|
|
43
|
+
if self.id is not None:
|
|
44
|
+
params['id'] = self.id
|
|
45
|
+
if self.badge_id is not None:
|
|
46
|
+
params['badge_id'] = self.badge_id
|
|
47
|
+
return params
|
|
48
|
+
|
|
49
|
+
def query_params(self) -> Dict[str, Any]:
|
|
50
|
+
params: Dict[str, Any] = {}
|
|
51
|
+
return params
|
|
52
|
+
|
|
53
|
+
def header_params(self) -> Dict[str, Any]:
|
|
54
|
+
params: Dict[str, Any] = {}
|
|
55
|
+
return params
|
|
56
|
+
|
|
57
|
+
def body_params(self) -> Any:
|
|
58
|
+
return None
|
|
59
|
+
|
|
60
|
+
@dataclass
|
|
61
|
+
class BadgesGetapiv4groupsidbadgesParams:
|
|
62
|
+
"""
|
|
63
|
+
Parameters for the 'getApiV4GroupsIdBadges' operation.
|
|
64
|
+
"""
|
|
65
|
+
id: str
|
|
66
|
+
page: Optional[int] = 1
|
|
67
|
+
per_page: Optional[int] = 20
|
|
68
|
+
name: Optional[str] = None
|
|
69
|
+
|
|
70
|
+
def path_params(self) -> Dict[str, Any]:
|
|
71
|
+
params: Dict[str, Any] = {}
|
|
72
|
+
if self.id is not None:
|
|
73
|
+
params['id'] = self.id
|
|
74
|
+
return params
|
|
75
|
+
|
|
76
|
+
def query_params(self) -> Dict[str, Any]:
|
|
77
|
+
params: Dict[str, Any] = {}
|
|
78
|
+
if self.page is not None:
|
|
79
|
+
params['page'] = self.page
|
|
80
|
+
if self.per_page is not None:
|
|
81
|
+
params['per_page'] = self.per_page
|
|
82
|
+
if self.name is not None:
|
|
83
|
+
params['name'] = self.name
|
|
84
|
+
return params
|
|
85
|
+
|
|
86
|
+
def header_params(self) -> Dict[str, Any]:
|
|
87
|
+
params: Dict[str, Any] = {}
|
|
88
|
+
return params
|
|
89
|
+
|
|
90
|
+
def body_params(self) -> Any:
|
|
91
|
+
return None
|
|
92
|
+
|
|
93
|
+
@dataclass
|
|
94
|
+
class BadgesGetapiv4groupsidbadgesbadgeidParams:
|
|
95
|
+
"""
|
|
96
|
+
Parameters for the 'getApiV4GroupsIdBadgesBadgeId' operation.
|
|
97
|
+
"""
|
|
98
|
+
id: str
|
|
99
|
+
badge_id: int
|
|
100
|
+
|
|
101
|
+
def path_params(self) -> Dict[str, Any]:
|
|
102
|
+
params: Dict[str, Any] = {}
|
|
103
|
+
if self.id is not None:
|
|
104
|
+
params['id'] = self.id
|
|
105
|
+
if self.badge_id is not None:
|
|
106
|
+
params['badge_id'] = self.badge_id
|
|
107
|
+
return params
|
|
108
|
+
|
|
109
|
+
def query_params(self) -> Dict[str, Any]:
|
|
110
|
+
params: Dict[str, Any] = {}
|
|
111
|
+
return params
|
|
112
|
+
|
|
113
|
+
def header_params(self) -> Dict[str, Any]:
|
|
114
|
+
params: Dict[str, Any] = {}
|
|
115
|
+
return params
|
|
116
|
+
|
|
117
|
+
def body_params(self) -> Any:
|
|
118
|
+
return None
|
|
119
|
+
|
|
120
|
+
@dataclass
|
|
121
|
+
class BadgesGetapiv4groupsidbadgesrenderParams:
|
|
122
|
+
"""
|
|
123
|
+
Parameters for the 'getApiV4GroupsIdBadgesRender' operation.
|
|
124
|
+
"""
|
|
125
|
+
id: str
|
|
126
|
+
link_url: str
|
|
127
|
+
image_url: str
|
|
128
|
+
|
|
129
|
+
def path_params(self) -> Dict[str, Any]:
|
|
130
|
+
params: Dict[str, Any] = {}
|
|
131
|
+
if self.id is not None:
|
|
132
|
+
params['id'] = self.id
|
|
133
|
+
return params
|
|
134
|
+
|
|
135
|
+
def query_params(self) -> Dict[str, Any]:
|
|
136
|
+
params: Dict[str, Any] = {}
|
|
137
|
+
if self.link_url is not None:
|
|
138
|
+
params['link_url'] = self.link_url
|
|
139
|
+
if self.image_url is not None:
|
|
140
|
+
params['image_url'] = self.image_url
|
|
141
|
+
return params
|
|
142
|
+
|
|
143
|
+
def header_params(self) -> Dict[str, Any]:
|
|
144
|
+
params: Dict[str, Any] = {}
|
|
145
|
+
return params
|
|
146
|
+
|
|
147
|
+
def body_params(self) -> Any:
|
|
148
|
+
return None
|
|
149
|
+
|
|
150
|
+
@dataclass
|
|
151
|
+
class BadgesGetapiv4projectsidbadgesParams:
|
|
152
|
+
"""
|
|
153
|
+
Parameters for the 'getApiV4ProjectsIdBadges' operation.
|
|
154
|
+
"""
|
|
155
|
+
id: str
|
|
156
|
+
page: Optional[int] = 1
|
|
157
|
+
per_page: Optional[int] = 20
|
|
158
|
+
name: Optional[str] = None
|
|
159
|
+
|
|
160
|
+
def path_params(self) -> Dict[str, Any]:
|
|
161
|
+
params: Dict[str, Any] = {}
|
|
162
|
+
if self.id is not None:
|
|
163
|
+
params['id'] = self.id
|
|
164
|
+
return params
|
|
165
|
+
|
|
166
|
+
def query_params(self) -> Dict[str, Any]:
|
|
167
|
+
params: Dict[str, Any] = {}
|
|
168
|
+
if self.page is not None:
|
|
169
|
+
params['page'] = self.page
|
|
170
|
+
if self.per_page is not None:
|
|
171
|
+
params['per_page'] = self.per_page
|
|
172
|
+
if self.name is not None:
|
|
173
|
+
params['name'] = self.name
|
|
174
|
+
return params
|
|
175
|
+
|
|
176
|
+
def header_params(self) -> Dict[str, Any]:
|
|
177
|
+
params: Dict[str, Any] = {}
|
|
178
|
+
return params
|
|
179
|
+
|
|
180
|
+
def body_params(self) -> Any:
|
|
181
|
+
return None
|
|
182
|
+
|
|
183
|
+
@dataclass
|
|
184
|
+
class BadgesGetapiv4projectsidbadgesbadgeidParams:
|
|
185
|
+
"""
|
|
186
|
+
Parameters for the 'getApiV4ProjectsIdBadgesBadgeId' operation.
|
|
187
|
+
"""
|
|
188
|
+
id: str
|
|
189
|
+
badge_id: int
|
|
190
|
+
|
|
191
|
+
def path_params(self) -> Dict[str, Any]:
|
|
192
|
+
params: Dict[str, Any] = {}
|
|
193
|
+
if self.id is not None:
|
|
194
|
+
params['id'] = self.id
|
|
195
|
+
if self.badge_id is not None:
|
|
196
|
+
params['badge_id'] = self.badge_id
|
|
197
|
+
return params
|
|
198
|
+
|
|
199
|
+
def query_params(self) -> Dict[str, Any]:
|
|
200
|
+
params: Dict[str, Any] = {}
|
|
201
|
+
return params
|
|
202
|
+
|
|
203
|
+
def header_params(self) -> Dict[str, Any]:
|
|
204
|
+
params: Dict[str, Any] = {}
|
|
205
|
+
return params
|
|
206
|
+
|
|
207
|
+
def body_params(self) -> Any:
|
|
208
|
+
return None
|
|
209
|
+
|
|
210
|
+
@dataclass
|
|
211
|
+
class BadgesGetapiv4projectsidbadgesrenderParams:
|
|
212
|
+
"""
|
|
213
|
+
Parameters for the 'getApiV4ProjectsIdBadgesRender' operation.
|
|
214
|
+
"""
|
|
215
|
+
id: str
|
|
216
|
+
link_url: str
|
|
217
|
+
image_url: str
|
|
218
|
+
|
|
219
|
+
def path_params(self) -> Dict[str, Any]:
|
|
220
|
+
params: Dict[str, Any] = {}
|
|
221
|
+
if self.id is not None:
|
|
222
|
+
params['id'] = self.id
|
|
223
|
+
return params
|
|
224
|
+
|
|
225
|
+
def query_params(self) -> Dict[str, Any]:
|
|
226
|
+
params: Dict[str, Any] = {}
|
|
227
|
+
if self.link_url is not None:
|
|
228
|
+
params['link_url'] = self.link_url
|
|
229
|
+
if self.image_url is not None:
|
|
230
|
+
params['image_url'] = self.image_url
|
|
231
|
+
return params
|
|
232
|
+
|
|
233
|
+
def header_params(self) -> Dict[str, Any]:
|
|
234
|
+
params: Dict[str, Any] = {}
|
|
235
|
+
return params
|
|
236
|
+
|
|
237
|
+
def body_params(self) -> Any:
|
|
238
|
+
return None
|
|
239
|
+
|
|
240
|
+
@dataclass
|
|
241
|
+
class BadgesPostapiv4groupsidbadgesParams:
|
|
242
|
+
"""
|
|
243
|
+
Parameters for the 'postApiV4GroupsIdBadges' operation.
|
|
244
|
+
"""
|
|
245
|
+
id: str
|
|
246
|
+
body: Optional[Any] = None
|
|
247
|
+
|
|
248
|
+
def path_params(self) -> Dict[str, Any]:
|
|
249
|
+
params: Dict[str, Any] = {}
|
|
250
|
+
if self.id is not None:
|
|
251
|
+
params['id'] = self.id
|
|
252
|
+
return params
|
|
253
|
+
|
|
254
|
+
def query_params(self) -> Dict[str, Any]:
|
|
255
|
+
params: Dict[str, Any] = {}
|
|
256
|
+
return params
|
|
257
|
+
|
|
258
|
+
def header_params(self) -> Dict[str, Any]:
|
|
259
|
+
params: Dict[str, Any] = {}
|
|
260
|
+
return params
|
|
261
|
+
|
|
262
|
+
def body_params(self) -> Any:
|
|
263
|
+
return self.body
|
|
264
|
+
|
|
265
|
+
@dataclass
|
|
266
|
+
class BadgesPostapiv4projectsidbadgesParams:
|
|
267
|
+
"""
|
|
268
|
+
Parameters for the 'postApiV4ProjectsIdBadges' operation.
|
|
269
|
+
"""
|
|
270
|
+
id: str
|
|
271
|
+
body: Optional[Any] = None
|
|
272
|
+
|
|
273
|
+
def path_params(self) -> Dict[str, Any]:
|
|
274
|
+
params: Dict[str, Any] = {}
|
|
275
|
+
if self.id is not None:
|
|
276
|
+
params['id'] = self.id
|
|
277
|
+
return params
|
|
278
|
+
|
|
279
|
+
def query_params(self) -> Dict[str, Any]:
|
|
280
|
+
params: Dict[str, Any] = {}
|
|
281
|
+
return params
|
|
282
|
+
|
|
283
|
+
def header_params(self) -> Dict[str, Any]:
|
|
284
|
+
params: Dict[str, Any] = {}
|
|
285
|
+
return params
|
|
286
|
+
|
|
287
|
+
def body_params(self) -> Any:
|
|
288
|
+
return self.body
|
|
289
|
+
|
|
290
|
+
@dataclass
|
|
291
|
+
class BadgesPutapiv4groupsidbadgesbadgeidParams:
|
|
292
|
+
"""
|
|
293
|
+
Parameters for the 'putApiV4GroupsIdBadgesBadgeId' operation.
|
|
294
|
+
"""
|
|
295
|
+
id: str
|
|
296
|
+
badge_id: int
|
|
297
|
+
body: Optional[Any] = None
|
|
298
|
+
|
|
299
|
+
def path_params(self) -> Dict[str, Any]:
|
|
300
|
+
params: Dict[str, Any] = {}
|
|
301
|
+
if self.id is not None:
|
|
302
|
+
params['id'] = self.id
|
|
303
|
+
if self.badge_id is not None:
|
|
304
|
+
params['badge_id'] = self.badge_id
|
|
305
|
+
return params
|
|
306
|
+
|
|
307
|
+
def query_params(self) -> Dict[str, Any]:
|
|
308
|
+
params: Dict[str, Any] = {}
|
|
309
|
+
return params
|
|
310
|
+
|
|
311
|
+
def header_params(self) -> Dict[str, Any]:
|
|
312
|
+
params: Dict[str, Any] = {}
|
|
313
|
+
return params
|
|
314
|
+
|
|
315
|
+
def body_params(self) -> Any:
|
|
316
|
+
return self.body
|
|
317
|
+
|
|
318
|
+
@dataclass
|
|
319
|
+
class BadgesPutapiv4projectsidbadgesbadgeidParams:
|
|
320
|
+
"""
|
|
321
|
+
Parameters for the 'putApiV4ProjectsIdBadgesBadgeId' operation.
|
|
322
|
+
"""
|
|
323
|
+
id: str
|
|
324
|
+
badge_id: int
|
|
325
|
+
body: Optional[Any] = None
|
|
326
|
+
|
|
327
|
+
def path_params(self) -> Dict[str, Any]:
|
|
328
|
+
params: Dict[str, Any] = {}
|
|
329
|
+
if self.id is not None:
|
|
330
|
+
params['id'] = self.id
|
|
331
|
+
if self.badge_id is not None:
|
|
332
|
+
params['badge_id'] = self.badge_id
|
|
333
|
+
return params
|
|
334
|
+
|
|
335
|
+
def query_params(self) -> Dict[str, Any]:
|
|
336
|
+
params: Dict[str, Any] = {}
|
|
337
|
+
return params
|
|
338
|
+
|
|
339
|
+
def header_params(self) -> Dict[str, Any]:
|
|
340
|
+
params: Dict[str, Any] = {}
|
|
341
|
+
return params
|
|
342
|
+
|
|
343
|
+
def body_params(self) -> Any:
|
|
344
|
+
return self.body
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
from typing import Any, Dict, Optional
|
|
5
|
+
|
|
6
|
+
@dataclass
|
|
7
|
+
class BatchedBackgroundMigrationsGetapiv4adminbatchedbackgroundmigrationsParams:
|
|
8
|
+
"""
|
|
9
|
+
Parameters for the 'getApiV4AdminBatchedBackgroundMigrations' operation.
|
|
10
|
+
"""
|
|
11
|
+
database: Optional[str] = "main"
|
|
12
|
+
|
|
13
|
+
def path_params(self) -> Dict[str, Any]:
|
|
14
|
+
params: Dict[str, Any] = {}
|
|
15
|
+
return params
|
|
16
|
+
|
|
17
|
+
def query_params(self) -> Dict[str, Any]:
|
|
18
|
+
params: Dict[str, Any] = {}
|
|
19
|
+
if self.database is not None:
|
|
20
|
+
params['database'] = self.database
|
|
21
|
+
return params
|
|
22
|
+
|
|
23
|
+
def header_params(self) -> Dict[str, Any]:
|
|
24
|
+
params: Dict[str, Any] = {}
|
|
25
|
+
return params
|
|
26
|
+
|
|
27
|
+
def body_params(self) -> Any:
|
|
28
|
+
return None
|
|
29
|
+
|
|
30
|
+
@dataclass
|
|
31
|
+
class BatchedBackgroundMigrationsGetapiv4adminbatchedbackgroundmigrationsidParams:
|
|
32
|
+
"""
|
|
33
|
+
Parameters for the 'getApiV4AdminBatchedBackgroundMigrationsId' operation.
|
|
34
|
+
"""
|
|
35
|
+
id: int
|
|
36
|
+
database: Optional[str] = "main"
|
|
37
|
+
|
|
38
|
+
def path_params(self) -> Dict[str, Any]:
|
|
39
|
+
params: Dict[str, Any] = {}
|
|
40
|
+
if self.id is not None:
|
|
41
|
+
params['id'] = self.id
|
|
42
|
+
return params
|
|
43
|
+
|
|
44
|
+
def query_params(self) -> Dict[str, Any]:
|
|
45
|
+
params: Dict[str, Any] = {}
|
|
46
|
+
if self.database is not None:
|
|
47
|
+
params['database'] = self.database
|
|
48
|
+
return params
|
|
49
|
+
|
|
50
|
+
def header_params(self) -> Dict[str, Any]:
|
|
51
|
+
params: Dict[str, Any] = {}
|
|
52
|
+
return params
|
|
53
|
+
|
|
54
|
+
def body_params(self) -> Any:
|
|
55
|
+
return None
|
|
56
|
+
|
|
57
|
+
@dataclass
|
|
58
|
+
class BatchedBackgroundMigrationsPutapiv4adminbatchedbackgroundmigrationsidpauseParams:
|
|
59
|
+
"""
|
|
60
|
+
Parameters for the 'putApiV4AdminBatchedBackgroundMigrationsIdPause' operation.
|
|
61
|
+
"""
|
|
62
|
+
id: int
|
|
63
|
+
body: Optional[Any] = None
|
|
64
|
+
|
|
65
|
+
def path_params(self) -> Dict[str, Any]:
|
|
66
|
+
params: Dict[str, Any] = {}
|
|
67
|
+
if self.id is not None:
|
|
68
|
+
params['id'] = self.id
|
|
69
|
+
return params
|
|
70
|
+
|
|
71
|
+
def query_params(self) -> Dict[str, Any]:
|
|
72
|
+
params: Dict[str, Any] = {}
|
|
73
|
+
return params
|
|
74
|
+
|
|
75
|
+
def header_params(self) -> Dict[str, Any]:
|
|
76
|
+
params: Dict[str, Any] = {}
|
|
77
|
+
return params
|
|
78
|
+
|
|
79
|
+
def body_params(self) -> Any:
|
|
80
|
+
return self.body
|
|
81
|
+
|
|
82
|
+
@dataclass
|
|
83
|
+
class BatchedBackgroundMigrationsPutapiv4adminbatchedbackgroundmigrationsidresumeParams:
|
|
84
|
+
"""
|
|
85
|
+
Parameters for the 'putApiV4AdminBatchedBackgroundMigrationsIdResume' operation.
|
|
86
|
+
"""
|
|
87
|
+
id: int
|
|
88
|
+
body: Optional[Any] = None
|
|
89
|
+
|
|
90
|
+
def path_params(self) -> Dict[str, Any]:
|
|
91
|
+
params: Dict[str, Any] = {}
|
|
92
|
+
if self.id is not None:
|
|
93
|
+
params['id'] = self.id
|
|
94
|
+
return params
|
|
95
|
+
|
|
96
|
+
def query_params(self) -> Dict[str, Any]:
|
|
97
|
+
params: Dict[str, Any] = {}
|
|
98
|
+
return params
|
|
99
|
+
|
|
100
|
+
def header_params(self) -> Dict[str, Any]:
|
|
101
|
+
params: Dict[str, Any] = {}
|
|
102
|
+
return params
|
|
103
|
+
|
|
104
|
+
def body_params(self) -> Any:
|
|
105
|
+
return self.body
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
from typing import Any, Dict, Optional
|
|
5
|
+
|
|
6
|
+
@dataclass
|
|
7
|
+
class BranchesDeleteapiv4projectsidrepositorybranchesbranchParams:
|
|
8
|
+
"""
|
|
9
|
+
Parameters for the 'deleteApiV4ProjectsIdRepositoryBranchesBranch' operation.
|
|
10
|
+
"""
|
|
11
|
+
id: str
|
|
12
|
+
branch: str
|
|
13
|
+
|
|
14
|
+
def path_params(self) -> Dict[str, Any]:
|
|
15
|
+
params: Dict[str, Any] = {}
|
|
16
|
+
if self.id is not None:
|
|
17
|
+
params['id'] = self.id
|
|
18
|
+
if self.branch is not None:
|
|
19
|
+
params['branch'] = self.branch
|
|
20
|
+
return params
|
|
21
|
+
|
|
22
|
+
def query_params(self) -> Dict[str, Any]:
|
|
23
|
+
params: Dict[str, Any] = {}
|
|
24
|
+
return params
|
|
25
|
+
|
|
26
|
+
def header_params(self) -> Dict[str, Any]:
|
|
27
|
+
params: Dict[str, Any] = {}
|
|
28
|
+
return params
|
|
29
|
+
|
|
30
|
+
def body_params(self) -> Any:
|
|
31
|
+
return None
|
|
32
|
+
|
|
33
|
+
@dataclass
|
|
34
|
+
class BranchesDeleteapiv4projectsidrepositorymergedbranchesParams:
|
|
35
|
+
"""
|
|
36
|
+
Parameters for the 'deleteApiV4ProjectsIdRepositoryMergedBranches' operation.
|
|
37
|
+
"""
|
|
38
|
+
id: str
|
|
39
|
+
|
|
40
|
+
def path_params(self) -> Dict[str, Any]:
|
|
41
|
+
params: Dict[str, Any] = {}
|
|
42
|
+
if self.id is not None:
|
|
43
|
+
params['id'] = self.id
|
|
44
|
+
return params
|
|
45
|
+
|
|
46
|
+
def query_params(self) -> Dict[str, Any]:
|
|
47
|
+
params: Dict[str, Any] = {}
|
|
48
|
+
return params
|
|
49
|
+
|
|
50
|
+
def header_params(self) -> Dict[str, Any]:
|
|
51
|
+
params: Dict[str, Any] = {}
|
|
52
|
+
return params
|
|
53
|
+
|
|
54
|
+
def body_params(self) -> Any:
|
|
55
|
+
return None
|
|
56
|
+
|
|
57
|
+
@dataclass
|
|
58
|
+
class BranchesGetapiv4projectsidrepositorybranchesParams:
|
|
59
|
+
"""
|
|
60
|
+
Parameters for the 'getApiV4ProjectsIdRepositoryBranches' operation.
|
|
61
|
+
"""
|
|
62
|
+
id: str
|
|
63
|
+
page: Optional[int] = 1
|
|
64
|
+
per_page: Optional[int] = 20
|
|
65
|
+
search: Optional[str] = None
|
|
66
|
+
regex: Optional[str] = None
|
|
67
|
+
sort: Optional[str] = None
|
|
68
|
+
page_token: Optional[str] = None
|
|
69
|
+
|
|
70
|
+
def path_params(self) -> Dict[str, Any]:
|
|
71
|
+
params: Dict[str, Any] = {}
|
|
72
|
+
if self.id is not None:
|
|
73
|
+
params['id'] = self.id
|
|
74
|
+
return params
|
|
75
|
+
|
|
76
|
+
def query_params(self) -> Dict[str, Any]:
|
|
77
|
+
params: Dict[str, Any] = {}
|
|
78
|
+
if self.page is not None:
|
|
79
|
+
params['page'] = self.page
|
|
80
|
+
if self.per_page is not None:
|
|
81
|
+
params['per_page'] = self.per_page
|
|
82
|
+
if self.search is not None:
|
|
83
|
+
params['search'] = self.search
|
|
84
|
+
if self.regex is not None:
|
|
85
|
+
params['regex'] = self.regex
|
|
86
|
+
if self.sort is not None:
|
|
87
|
+
params['sort'] = self.sort
|
|
88
|
+
if self.page_token is not None:
|
|
89
|
+
params['page_token'] = self.page_token
|
|
90
|
+
return params
|
|
91
|
+
|
|
92
|
+
def header_params(self) -> Dict[str, Any]:
|
|
93
|
+
params: Dict[str, Any] = {}
|
|
94
|
+
return params
|
|
95
|
+
|
|
96
|
+
def body_params(self) -> Any:
|
|
97
|
+
return None
|
|
98
|
+
|
|
99
|
+
@dataclass
|
|
100
|
+
class BranchesGetapiv4projectsidrepositorybranchesbranchParams:
|
|
101
|
+
"""
|
|
102
|
+
Parameters for the 'getApiV4ProjectsIdRepositoryBranchesBranch' operation.
|
|
103
|
+
"""
|
|
104
|
+
id: str
|
|
105
|
+
branch: int
|
|
106
|
+
|
|
107
|
+
def path_params(self) -> Dict[str, Any]:
|
|
108
|
+
params: Dict[str, Any] = {}
|
|
109
|
+
if self.id is not None:
|
|
110
|
+
params['id'] = self.id
|
|
111
|
+
if self.branch is not None:
|
|
112
|
+
params['branch'] = self.branch
|
|
113
|
+
return params
|
|
114
|
+
|
|
115
|
+
def query_params(self) -> Dict[str, Any]:
|
|
116
|
+
params: Dict[str, Any] = {}
|
|
117
|
+
return params
|
|
118
|
+
|
|
119
|
+
def header_params(self) -> Dict[str, Any]:
|
|
120
|
+
params: Dict[str, Any] = {}
|
|
121
|
+
return params
|
|
122
|
+
|
|
123
|
+
def body_params(self) -> Any:
|
|
124
|
+
return None
|
|
125
|
+
|
|
126
|
+
@dataclass
|
|
127
|
+
class BranchesHeadapiv4projectsidrepositorybranchesbranchParams:
|
|
128
|
+
"""
|
|
129
|
+
Parameters for the 'headApiV4ProjectsIdRepositoryBranchesBranch' operation.
|
|
130
|
+
"""
|
|
131
|
+
id: str
|
|
132
|
+
branch: str
|
|
133
|
+
|
|
134
|
+
def path_params(self) -> Dict[str, Any]:
|
|
135
|
+
params: Dict[str, Any] = {}
|
|
136
|
+
if self.id is not None:
|
|
137
|
+
params['id'] = self.id
|
|
138
|
+
if self.branch is not None:
|
|
139
|
+
params['branch'] = self.branch
|
|
140
|
+
return params
|
|
141
|
+
|
|
142
|
+
def query_params(self) -> Dict[str, Any]:
|
|
143
|
+
params: Dict[str, Any] = {}
|
|
144
|
+
return params
|
|
145
|
+
|
|
146
|
+
def header_params(self) -> Dict[str, Any]:
|
|
147
|
+
params: Dict[str, Any] = {}
|
|
148
|
+
return params
|
|
149
|
+
|
|
150
|
+
def body_params(self) -> Any:
|
|
151
|
+
return None
|
|
152
|
+
|
|
153
|
+
@dataclass
|
|
154
|
+
class BranchesPostapiv4projectsidrepositorybranchesParams:
|
|
155
|
+
"""
|
|
156
|
+
Parameters for the 'postApiV4ProjectsIdRepositoryBranches' operation.
|
|
157
|
+
"""
|
|
158
|
+
id: str
|
|
159
|
+
branch: str
|
|
160
|
+
ref: str
|
|
161
|
+
|
|
162
|
+
def path_params(self) -> Dict[str, Any]:
|
|
163
|
+
params: Dict[str, Any] = {}
|
|
164
|
+
if self.id is not None:
|
|
165
|
+
params['id'] = self.id
|
|
166
|
+
return params
|
|
167
|
+
|
|
168
|
+
def query_params(self) -> Dict[str, Any]:
|
|
169
|
+
params: Dict[str, Any] = {}
|
|
170
|
+
if self.branch is not None:
|
|
171
|
+
params['branch'] = self.branch
|
|
172
|
+
if self.ref is not None:
|
|
173
|
+
params['ref'] = self.ref
|
|
174
|
+
return params
|
|
175
|
+
|
|
176
|
+
def header_params(self) -> Dict[str, Any]:
|
|
177
|
+
params: Dict[str, Any] = {}
|
|
178
|
+
return params
|
|
179
|
+
|
|
180
|
+
def body_params(self) -> Any:
|
|
181
|
+
return None
|
|
182
|
+
|
|
183
|
+
@dataclass
|
|
184
|
+
class BranchesPutapiv4projectsidrepositorybranchesbranchprotectParams:
|
|
185
|
+
"""
|
|
186
|
+
Parameters for the 'putApiV4ProjectsIdRepositoryBranchesBranchProtect' operation.
|
|
187
|
+
"""
|
|
188
|
+
id: str
|
|
189
|
+
branch: str
|
|
190
|
+
body: Optional[Any] = None
|
|
191
|
+
|
|
192
|
+
def path_params(self) -> Dict[str, Any]:
|
|
193
|
+
params: Dict[str, Any] = {}
|
|
194
|
+
if self.id is not None:
|
|
195
|
+
params['id'] = self.id
|
|
196
|
+
if self.branch is not None:
|
|
197
|
+
params['branch'] = self.branch
|
|
198
|
+
return params
|
|
199
|
+
|
|
200
|
+
def query_params(self) -> Dict[str, Any]:
|
|
201
|
+
params: Dict[str, Any] = {}
|
|
202
|
+
return params
|
|
203
|
+
|
|
204
|
+
def header_params(self) -> Dict[str, Any]:
|
|
205
|
+
params: Dict[str, Any] = {}
|
|
206
|
+
return params
|
|
207
|
+
|
|
208
|
+
def body_params(self) -> Any:
|
|
209
|
+
return self.body
|
|
210
|
+
|
|
211
|
+
@dataclass
|
|
212
|
+
class BranchesPutapiv4projectsidrepositorybranchesbranchunprotectParams:
|
|
213
|
+
"""
|
|
214
|
+
Parameters for the 'putApiV4ProjectsIdRepositoryBranchesBranchUnprotect' operation.
|
|
215
|
+
"""
|
|
216
|
+
id: str
|
|
217
|
+
branch: str
|
|
218
|
+
|
|
219
|
+
def path_params(self) -> Dict[str, Any]:
|
|
220
|
+
params: Dict[str, Any] = {}
|
|
221
|
+
if self.id is not None:
|
|
222
|
+
params['id'] = self.id
|
|
223
|
+
if self.branch is not None:
|
|
224
|
+
params['branch'] = self.branch
|
|
225
|
+
return params
|
|
226
|
+
|
|
227
|
+
def query_params(self) -> Dict[str, Any]:
|
|
228
|
+
params: Dict[str, Any] = {}
|
|
229
|
+
return params
|
|
230
|
+
|
|
231
|
+
def header_params(self) -> Dict[str, Any]:
|
|
232
|
+
params: Dict[str, Any] = {}
|
|
233
|
+
return params
|
|
234
|
+
|
|
235
|
+
def body_params(self) -> Any:
|
|
236
|
+
return None
|