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.
Files changed (70) hide show
  1. ccai/gitlab/py.typed +0 -0
  2. ccai/gitlab/rest/aspectsrest.py +120 -0
  3. ccai/gitlab/rest/clients/__init__.py +0 -0
  4. ccai/gitlab/rest/clients/gitlabrestclient.py +118 -0
  5. ccai/gitlab/rest/clients/groups/__init__.py +0 -0
  6. ccai/gitlab/rest/clients/groups/accessrequests.py +230 -0
  7. ccai/gitlab/rest/clients/groups/admin.py +41 -0
  8. ccai/gitlab/rest/clients/groups/alertmanagement.py +149 -0
  9. ccai/gitlab/rest/clients/groups/application.py +68 -0
  10. ccai/gitlab/rest/clients/groups/applications.py +95 -0
  11. ccai/gitlab/rest/clients/groups/avatar.py +41 -0
  12. ccai/gitlab/rest/clients/groups/badges.py +338 -0
  13. ccai/gitlab/rest/clients/groups/batchedbackgroundmigrations.py +122 -0
  14. ccai/gitlab/rest/clients/groups/branches.py +230 -0
  15. ccai/gitlab/rest/clients/groups/broadcastmessages.py +149 -0
  16. ccai/gitlab/rest/clients/groups/bulkimports.py +176 -0
  17. ccai/gitlab/rest/clients/groups/clusters.py +149 -0
  18. ccai/gitlab/rest/clients/groups/jobs.py +95 -0
  19. ccai/gitlab/rest/clients/groups/metadata.py +68 -0
  20. ccai/gitlab/rest/clients/groups/migrations.py +41 -0
  21. ccai/gitlab/rest/clients/groups/pipelinecomposition.py +146 -0
  22. ccai/gitlab/rest/clients/groups/planlimits.py +68 -0
  23. ccai/gitlab/rest/clients/parameters/__init__.py +0 -0
  24. ccai/gitlab/rest/clients/parameters/accessrequests.py +222 -0
  25. ccai/gitlab/rest/clients/parameters/admin.py +31 -0
  26. ccai/gitlab/rest/clients/parameters/alertmanagement.py +147 -0
  27. ccai/gitlab/rest/clients/parameters/application.py +27 -0
  28. ccai/gitlab/rest/clients/parameters/applications.py +51 -0
  29. ccai/gitlab/rest/clients/parameters/avatar.py +31 -0
  30. ccai/gitlab/rest/clients/parameters/badges.py +344 -0
  31. ccai/gitlab/rest/clients/parameters/batchedbackgroundmigrations.py +105 -0
  32. ccai/gitlab/rest/clients/parameters/branches.py +236 -0
  33. ccai/gitlab/rest/clients/parameters/broadcastmessages.py +123 -0
  34. ccai/gitlab/rest/clients/parameters/bulkimports.py +173 -0
  35. ccai/gitlab/rest/clients/parameters/clusters.py +100 -0
  36. ccai/gitlab/rest/clients/parameters/jobs.py +88 -0
  37. ccai/gitlab/rest/clients/parameters/metadata.py +11 -0
  38. ccai/gitlab/rest/clients/parameters/migrations.py +29 -0
  39. ccai/gitlab/rest/clients/parameters/pipelinecomposition.py +123 -0
  40. ccai/gitlab/rest/clients/parameters/planlimits.py +47 -0
  41. ccai/gitlab/rest/clients/responses/__init__.py +0 -0
  42. ccai/gitlab/rest/clients/responses/accessrequests.py +157 -0
  43. ccai/gitlab/rest/clients/responses/admin.py +24 -0
  44. ccai/gitlab/rest/clients/responses/alertmanagement.py +100 -0
  45. ccai/gitlab/rest/clients/responses/application.py +43 -0
  46. ccai/gitlab/rest/clients/responses/applications.py +62 -0
  47. ccai/gitlab/rest/clients/responses/avatar.py +24 -0
  48. ccai/gitlab/rest/clients/responses/badges.py +233 -0
  49. ccai/gitlab/rest/clients/responses/batchedbackgroundmigrations.py +81 -0
  50. ccai/gitlab/rest/clients/responses/branches.py +157 -0
  51. ccai/gitlab/rest/clients/responses/broadcastmessages.py +100 -0
  52. ccai/gitlab/rest/clients/responses/bulkimports.py +119 -0
  53. ccai/gitlab/rest/clients/responses/clusters.py +100 -0
  54. ccai/gitlab/rest/clients/responses/jobs.py +62 -0
  55. ccai/gitlab/rest/clients/responses/metadata.py +43 -0
  56. ccai/gitlab/rest/clients/responses/migrations.py +24 -0
  57. ccai/gitlab/rest/clients/responses/pipelinecomposition.py +100 -0
  58. ccai/gitlab/rest/clients/responses/planlimits.py +43 -0
  59. ccai/gitlab/rest/descriptions/gitlab-openapi-hints.yaml +195 -0
  60. ccai/gitlab/rest/descriptions/gitlab-openapi-spec.yaml +3635 -0
  61. ccai/gitlab/rest/generation/__init__.py +0 -0
  62. ccai/gitlab/rest/generation/restclientgenerator.py +581 -0
  63. ccai/gitlab/rest/itemsresult.py +274 -0
  64. ccai/gitlab/rest/restapigroup.py +17 -0
  65. ccai/gitlab/rest/restclientbase.py +676 -0
  66. ccai/gitlab/rest/restclientutils.py +0 -0
  67. codecraftai_restclient_gitlab-1.2.0.dist-info/METADATA +90 -0
  68. codecraftai_restclient_gitlab-1.2.0.dist-info/RECORD +70 -0
  69. codecraftai_restclient_gitlab-1.2.0.dist-info/WHEEL +4 -0
  70. codecraftai_restclient_gitlab-1.2.0.dist-info/licenses/LICENSE.md +204 -0
@@ -0,0 +1,230 @@
1
+ # Auto-generated by RestClientGenerator. DO NOT EDIT.
2
+
3
+ from typing import Optional
4
+
5
+ from ccai.gitlab.rest.aspectsrest import AspectsRest, DEFAULT_REST_ASPECTS
6
+ from ccai.gitlab.rest.restapigroup import RestApiGroup
7
+ from ccai.gitlab.rest.clients.parameters import branches as parameters
8
+ from ccai.gitlab.rest.clients.responses import branches as responses
9
+
10
+
11
+ class BranchesApiGroup(RestApiGroup):
12
+ """
13
+ Operations about branches
14
+ """
15
+
16
+ def deleteapiv4projectsidrepositorybranchesbranch(self, params: Optional[parameters.BranchesDeleteapiv4projectsidrepositorybranchesbranchParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BranchesDeleteapiv4projectsidrepositorybranchesbranchResponse:
17
+ """
18
+ Delete a branch
19
+ """
20
+ if params is None:
21
+ params = parameters.BranchesDeleteapiv4projectsidrepositorybranchesbranchParams()
22
+ call_leaf = "/projects/{id}/repository/branches/{branch}"
23
+ path_params = params.path_params()
24
+ if path_params:
25
+ call_leaf = self.client.format_path(call_leaf, path_params)
26
+ query_params = params.query_params()
27
+ header_params = params.header_params()
28
+ body_params = params.body_params()
29
+ exp_status = [204]
30
+ resp = self.client.perform_call(
31
+ leaf=call_leaf,
32
+ method="DELETE",
33
+ params=query_params if query_params else None,
34
+ body=body_params,
35
+ exp_status=exp_status,
36
+ headers=header_params if header_params else None,
37
+ context_msg=None,
38
+ aspects=aspects,
39
+ )
40
+ result = responses.BranchesDeleteapiv4projectsidrepositorybranchesbranchResponse(resp)
41
+ return result
42
+
43
+ def deleteapiv4projectsidrepositorymergedbranches(self, params: Optional[parameters.BranchesDeleteapiv4projectsidrepositorymergedbranchesParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BranchesDeleteapiv4projectsidrepositorymergedbranchesResponse:
44
+ """
45
+ Delete all merged branches
46
+ """
47
+ if params is None:
48
+ params = parameters.BranchesDeleteapiv4projectsidrepositorymergedbranchesParams()
49
+ call_leaf = "/projects/{id}/repository/merged_branches"
50
+ path_params = params.path_params()
51
+ if path_params:
52
+ call_leaf = self.client.format_path(call_leaf, path_params)
53
+ query_params = params.query_params()
54
+ header_params = params.header_params()
55
+ body_params = params.body_params()
56
+ exp_status = [202]
57
+ resp = self.client.perform_call(
58
+ leaf=call_leaf,
59
+ method="DELETE",
60
+ params=query_params if query_params else None,
61
+ body=body_params,
62
+ exp_status=exp_status,
63
+ headers=header_params if header_params else None,
64
+ context_msg=None,
65
+ aspects=aspects,
66
+ )
67
+ result = responses.BranchesDeleteapiv4projectsidrepositorymergedbranchesResponse(resp)
68
+ return result
69
+
70
+ def getapiv4projectsidrepositorybranches(self, params: Optional[parameters.BranchesGetapiv4projectsidrepositorybranchesParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BranchesGetapiv4projectsidrepositorybranchesResponse:
71
+ """
72
+ Get a project repository branches
73
+ """
74
+ if params is None:
75
+ params = parameters.BranchesGetapiv4projectsidrepositorybranchesParams()
76
+ call_leaf = "/projects/{id}/repository/branches"
77
+ path_params = params.path_params()
78
+ if path_params:
79
+ call_leaf = self.client.format_path(call_leaf, path_params)
80
+ query_params = params.query_params()
81
+ header_params = params.header_params()
82
+ body_params = params.body_params()
83
+ exp_status = [200]
84
+ resp = self.client.perform_call(
85
+ leaf=call_leaf,
86
+ method="GET",
87
+ params=query_params if query_params else None,
88
+ body=body_params,
89
+ exp_status=exp_status,
90
+ headers=header_params if header_params else None,
91
+ context_msg=None,
92
+ aspects=aspects,
93
+ )
94
+ result = responses.BranchesGetapiv4projectsidrepositorybranchesResponse(resp)
95
+ return result
96
+
97
+ def getapiv4projectsidrepositorybranchesbranch(self, params: Optional[parameters.BranchesGetapiv4projectsidrepositorybranchesbranchParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BranchesGetapiv4projectsidrepositorybranchesbranchResponse:
98
+ """
99
+ Get a single repository branch
100
+ """
101
+ if params is None:
102
+ params = parameters.BranchesGetapiv4projectsidrepositorybranchesbranchParams()
103
+ call_leaf = "/projects/{id}/repository/branches/{branch}"
104
+ path_params = params.path_params()
105
+ if path_params:
106
+ call_leaf = self.client.format_path(call_leaf, path_params)
107
+ query_params = params.query_params()
108
+ header_params = params.header_params()
109
+ body_params = params.body_params()
110
+ exp_status = [200]
111
+ resp = self.client.perform_call(
112
+ leaf=call_leaf,
113
+ method="GET",
114
+ params=query_params if query_params else None,
115
+ body=body_params,
116
+ exp_status=exp_status,
117
+ headers=header_params if header_params else None,
118
+ context_msg=None,
119
+ aspects=aspects,
120
+ )
121
+ result = responses.BranchesGetapiv4projectsidrepositorybranchesbranchResponse(resp)
122
+ return result
123
+
124
+ def headapiv4projectsidrepositorybranchesbranch(self, params: Optional[parameters.BranchesHeadapiv4projectsidrepositorybranchesbranchParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BranchesHeadapiv4projectsidrepositorybranchesbranchResponse:
125
+ """
126
+ Check if a branch exists
127
+ """
128
+ if params is None:
129
+ params = parameters.BranchesHeadapiv4projectsidrepositorybranchesbranchParams()
130
+ call_leaf = "/projects/{id}/repository/branches/{branch}"
131
+ path_params = params.path_params()
132
+ if path_params:
133
+ call_leaf = self.client.format_path(call_leaf, path_params)
134
+ query_params = params.query_params()
135
+ header_params = params.header_params()
136
+ body_params = params.body_params()
137
+ exp_status = [204]
138
+ resp = self.client.perform_call(
139
+ leaf=call_leaf,
140
+ method="HEAD",
141
+ params=query_params if query_params else None,
142
+ body=body_params,
143
+ exp_status=exp_status,
144
+ headers=header_params if header_params else None,
145
+ context_msg=None,
146
+ aspects=aspects,
147
+ )
148
+ result = responses.BranchesHeadapiv4projectsidrepositorybranchesbranchResponse(resp)
149
+ return result
150
+
151
+ def postapiv4projectsidrepositorybranches(self, params: Optional[parameters.BranchesPostapiv4projectsidrepositorybranchesParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BranchesPostapiv4projectsidrepositorybranchesResponse:
152
+ """
153
+ Create branch
154
+ """
155
+ if params is None:
156
+ params = parameters.BranchesPostapiv4projectsidrepositorybranchesParams()
157
+ call_leaf = "/projects/{id}/repository/branches"
158
+ path_params = params.path_params()
159
+ if path_params:
160
+ call_leaf = self.client.format_path(call_leaf, path_params)
161
+ query_params = params.query_params()
162
+ header_params = params.header_params()
163
+ body_params = params.body_params()
164
+ exp_status = [201]
165
+ resp = self.client.perform_call(
166
+ leaf=call_leaf,
167
+ method="POST",
168
+ params=query_params if query_params else None,
169
+ body=body_params,
170
+ exp_status=exp_status,
171
+ headers=header_params if header_params else None,
172
+ context_msg=None,
173
+ aspects=aspects,
174
+ )
175
+ result = responses.BranchesPostapiv4projectsidrepositorybranchesResponse(resp)
176
+ return result
177
+
178
+ def putapiv4projectsidrepositorybranchesbranchprotect(self, params: Optional[parameters.BranchesPutapiv4projectsidrepositorybranchesbranchprotectParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BranchesPutapiv4projectsidrepositorybranchesbranchprotectResponse:
179
+ """
180
+ Protect a single branch
181
+ """
182
+ if params is None:
183
+ params = parameters.BranchesPutapiv4projectsidrepositorybranchesbranchprotectParams()
184
+ call_leaf = "/projects/{id}/repository/branches/{branch}/protect"
185
+ path_params = params.path_params()
186
+ if path_params:
187
+ call_leaf = self.client.format_path(call_leaf, path_params)
188
+ query_params = params.query_params()
189
+ header_params = params.header_params()
190
+ body_params = params.body_params()
191
+ exp_status = [200]
192
+ resp = self.client.perform_call(
193
+ leaf=call_leaf,
194
+ method="PUT",
195
+ params=query_params if query_params else None,
196
+ body=body_params,
197
+ exp_status=exp_status,
198
+ headers=header_params if header_params else None,
199
+ context_msg=None,
200
+ aspects=aspects,
201
+ )
202
+ result = responses.BranchesPutapiv4projectsidrepositorybranchesbranchprotectResponse(resp)
203
+ return result
204
+
205
+ def putapiv4projectsidrepositorybranchesbranchunprotect(self, params: Optional[parameters.BranchesPutapiv4projectsidrepositorybranchesbranchunprotectParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BranchesPutapiv4projectsidrepositorybranchesbranchunprotectResponse:
206
+ """
207
+ Unprotect a single branch
208
+ """
209
+ if params is None:
210
+ params = parameters.BranchesPutapiv4projectsidrepositorybranchesbranchunprotectParams()
211
+ call_leaf = "/projects/{id}/repository/branches/{branch}/unprotect"
212
+ path_params = params.path_params()
213
+ if path_params:
214
+ call_leaf = self.client.format_path(call_leaf, path_params)
215
+ query_params = params.query_params()
216
+ header_params = params.header_params()
217
+ body_params = params.body_params()
218
+ exp_status = [200]
219
+ resp = self.client.perform_call(
220
+ leaf=call_leaf,
221
+ method="PUT",
222
+ params=query_params if query_params else None,
223
+ body=body_params,
224
+ exp_status=exp_status,
225
+ headers=header_params if header_params else None,
226
+ context_msg=None,
227
+ aspects=aspects,
228
+ )
229
+ result = responses.BranchesPutapiv4projectsidrepositorybranchesbranchunprotectResponse(resp)
230
+ return result
@@ -0,0 +1,149 @@
1
+ # Auto-generated by RestClientGenerator. DO NOT EDIT.
2
+
3
+ from typing import Optional
4
+
5
+ from ccai.gitlab.rest.aspectsrest import AspectsRest, DEFAULT_REST_ASPECTS
6
+ from ccai.gitlab.rest.restapigroup import RestApiGroup
7
+ from ccai.gitlab.rest.clients.parameters import broadcastmessages as parameters
8
+ from ccai.gitlab.rest.clients.responses import broadcastmessages as responses
9
+
10
+
11
+ class BroadcastMessagesApiGroup(RestApiGroup):
12
+ """
13
+ Operations about broadcast_messages
14
+ """
15
+
16
+ def deleteapiv4broadcastmessagesid(self, params: Optional[parameters.BroadcastMessagesDeleteapiv4broadcastmessagesidParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BroadcastMessagesDeleteapiv4broadcastmessagesidResponse:
17
+ """
18
+ Delete a broadcast message
19
+ """
20
+ if params is None:
21
+ params = parameters.BroadcastMessagesDeleteapiv4broadcastmessagesidParams()
22
+ call_leaf = "/broadcast_messages/{id}"
23
+ path_params = params.path_params()
24
+ if path_params:
25
+ call_leaf = self.client.format_path(call_leaf, path_params)
26
+ query_params = params.query_params()
27
+ header_params = params.header_params()
28
+ body_params = params.body_params()
29
+ exp_status = [200]
30
+ resp = self.client.perform_call(
31
+ leaf=call_leaf,
32
+ method="DELETE",
33
+ params=query_params if query_params else None,
34
+ body=body_params,
35
+ exp_status=exp_status,
36
+ headers=header_params if header_params else None,
37
+ context_msg=None,
38
+ aspects=aspects,
39
+ )
40
+ result = responses.BroadcastMessagesDeleteapiv4broadcastmessagesidResponse(resp)
41
+ return result
42
+
43
+ def getapiv4broadcastmessages(self, params: Optional[parameters.BroadcastMessagesGetapiv4broadcastmessagesParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BroadcastMessagesGetapiv4broadcastmessagesResponse:
44
+ """
45
+ Get all broadcast messages
46
+ """
47
+ if params is None:
48
+ params = parameters.BroadcastMessagesGetapiv4broadcastmessagesParams()
49
+ call_leaf = "/broadcast_messages"
50
+ path_params = params.path_params()
51
+ if path_params:
52
+ call_leaf = self.client.format_path(call_leaf, path_params)
53
+ query_params = params.query_params()
54
+ header_params = params.header_params()
55
+ body_params = params.body_params()
56
+ exp_status = [200]
57
+ resp = self.client.perform_call(
58
+ leaf=call_leaf,
59
+ method="GET",
60
+ params=query_params if query_params else None,
61
+ body=body_params,
62
+ exp_status=exp_status,
63
+ headers=header_params if header_params else None,
64
+ context_msg=None,
65
+ aspects=aspects,
66
+ )
67
+ result = responses.BroadcastMessagesGetapiv4broadcastmessagesResponse(resp)
68
+ return result
69
+
70
+ def getapiv4broadcastmessagesid(self, params: Optional[parameters.BroadcastMessagesGetapiv4broadcastmessagesidParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BroadcastMessagesGetapiv4broadcastmessagesidResponse:
71
+ """
72
+ Get a specific broadcast message
73
+ """
74
+ if params is None:
75
+ params = parameters.BroadcastMessagesGetapiv4broadcastmessagesidParams()
76
+ call_leaf = "/broadcast_messages/{id}"
77
+ path_params = params.path_params()
78
+ if path_params:
79
+ call_leaf = self.client.format_path(call_leaf, path_params)
80
+ query_params = params.query_params()
81
+ header_params = params.header_params()
82
+ body_params = params.body_params()
83
+ exp_status = [200]
84
+ resp = self.client.perform_call(
85
+ leaf=call_leaf,
86
+ method="GET",
87
+ params=query_params if query_params else None,
88
+ body=body_params,
89
+ exp_status=exp_status,
90
+ headers=header_params if header_params else None,
91
+ context_msg=None,
92
+ aspects=aspects,
93
+ )
94
+ result = responses.BroadcastMessagesGetapiv4broadcastmessagesidResponse(resp)
95
+ return result
96
+
97
+ def postapiv4broadcastmessages(self, params: Optional[parameters.BroadcastMessagesPostapiv4broadcastmessagesParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BroadcastMessagesPostapiv4broadcastmessagesResponse:
98
+ """
99
+ Create a broadcast message
100
+ """
101
+ if params is None:
102
+ params = parameters.BroadcastMessagesPostapiv4broadcastmessagesParams()
103
+ call_leaf = "/broadcast_messages"
104
+ path_params = params.path_params()
105
+ if path_params:
106
+ call_leaf = self.client.format_path(call_leaf, path_params)
107
+ query_params = params.query_params()
108
+ header_params = params.header_params()
109
+ body_params = params.body_params()
110
+ exp_status = [201]
111
+ resp = self.client.perform_call(
112
+ leaf=call_leaf,
113
+ method="POST",
114
+ params=query_params if query_params else None,
115
+ body=body_params,
116
+ exp_status=exp_status,
117
+ headers=header_params if header_params else None,
118
+ context_msg=None,
119
+ aspects=aspects,
120
+ )
121
+ result = responses.BroadcastMessagesPostapiv4broadcastmessagesResponse(resp)
122
+ return result
123
+
124
+ def putapiv4broadcastmessagesid(self, params: Optional[parameters.BroadcastMessagesPutapiv4broadcastmessagesidParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BroadcastMessagesPutapiv4broadcastmessagesidResponse:
125
+ """
126
+ Update a broadcast message
127
+ """
128
+ if params is None:
129
+ params = parameters.BroadcastMessagesPutapiv4broadcastmessagesidParams()
130
+ call_leaf = "/broadcast_messages/{id}"
131
+ path_params = params.path_params()
132
+ if path_params:
133
+ call_leaf = self.client.format_path(call_leaf, path_params)
134
+ query_params = params.query_params()
135
+ header_params = params.header_params()
136
+ body_params = params.body_params()
137
+ exp_status = [200]
138
+ resp = self.client.perform_call(
139
+ leaf=call_leaf,
140
+ method="PUT",
141
+ params=query_params if query_params else None,
142
+ body=body_params,
143
+ exp_status=exp_status,
144
+ headers=header_params if header_params else None,
145
+ context_msg=None,
146
+ aspects=aspects,
147
+ )
148
+ result = responses.BroadcastMessagesPutapiv4broadcastmessagesidResponse(resp)
149
+ return result
@@ -0,0 +1,176 @@
1
+ # Auto-generated by RestClientGenerator. DO NOT EDIT.
2
+
3
+ from typing import Optional
4
+
5
+ from ccai.gitlab.rest.aspectsrest import AspectsRest, DEFAULT_REST_ASPECTS
6
+ from ccai.gitlab.rest.restapigroup import RestApiGroup
7
+ from ccai.gitlab.rest.clients.parameters import bulkimports as parameters
8
+ from ccai.gitlab.rest.clients.responses import bulkimports as responses
9
+
10
+
11
+ class BulkImportsApiGroup(RestApiGroup):
12
+ """
13
+ Operations about bulk_imports
14
+ """
15
+
16
+ def getapiv4bulkimports(self, params: Optional[parameters.BulkImportsGetapiv4bulkimportsParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BulkImportsGetapiv4bulkimportsResponse:
17
+ """
18
+ List all GitLab Migrations
19
+ """
20
+ if params is None:
21
+ params = parameters.BulkImportsGetapiv4bulkimportsParams()
22
+ call_leaf = "/bulk_imports"
23
+ path_params = params.path_params()
24
+ if path_params:
25
+ call_leaf = self.client.format_path(call_leaf, path_params)
26
+ query_params = params.query_params()
27
+ header_params = params.header_params()
28
+ body_params = params.body_params()
29
+ exp_status = [200]
30
+ resp = self.client.perform_call(
31
+ leaf=call_leaf,
32
+ method="GET",
33
+ params=query_params if query_params else None,
34
+ body=body_params,
35
+ exp_status=exp_status,
36
+ headers=header_params if header_params else None,
37
+ context_msg=None,
38
+ aspects=aspects,
39
+ )
40
+ result = responses.BulkImportsGetapiv4bulkimportsResponse(resp)
41
+ return result
42
+
43
+ def getapiv4bulkimportsentities(self, params: Optional[parameters.BulkImportsGetapiv4bulkimportsentitiesParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BulkImportsGetapiv4bulkimportsentitiesResponse:
44
+ """
45
+ List all GitLab Migrations' entities
46
+ """
47
+ if params is None:
48
+ params = parameters.BulkImportsGetapiv4bulkimportsentitiesParams()
49
+ call_leaf = "/bulk_imports/entities"
50
+ path_params = params.path_params()
51
+ if path_params:
52
+ call_leaf = self.client.format_path(call_leaf, path_params)
53
+ query_params = params.query_params()
54
+ header_params = params.header_params()
55
+ body_params = params.body_params()
56
+ exp_status = [200]
57
+ resp = self.client.perform_call(
58
+ leaf=call_leaf,
59
+ method="GET",
60
+ params=query_params if query_params else None,
61
+ body=body_params,
62
+ exp_status=exp_status,
63
+ headers=header_params if header_params else None,
64
+ context_msg=None,
65
+ aspects=aspects,
66
+ )
67
+ result = responses.BulkImportsGetapiv4bulkimportsentitiesResponse(resp)
68
+ return result
69
+
70
+ def getapiv4bulkimportsimportid(self, params: Optional[parameters.BulkImportsGetapiv4bulkimportsimportidParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BulkImportsGetapiv4bulkimportsimportidResponse:
71
+ """
72
+ Get GitLab Migration details
73
+ """
74
+ if params is None:
75
+ params = parameters.BulkImportsGetapiv4bulkimportsimportidParams()
76
+ call_leaf = "/bulk_imports/{import_id}"
77
+ path_params = params.path_params()
78
+ if path_params:
79
+ call_leaf = self.client.format_path(call_leaf, path_params)
80
+ query_params = params.query_params()
81
+ header_params = params.header_params()
82
+ body_params = params.body_params()
83
+ exp_status = [200]
84
+ resp = self.client.perform_call(
85
+ leaf=call_leaf,
86
+ method="GET",
87
+ params=query_params if query_params else None,
88
+ body=body_params,
89
+ exp_status=exp_status,
90
+ headers=header_params if header_params else None,
91
+ context_msg=None,
92
+ aspects=aspects,
93
+ )
94
+ result = responses.BulkImportsGetapiv4bulkimportsimportidResponse(resp)
95
+ return result
96
+
97
+ def getapiv4bulkimportsimportidentities(self, params: Optional[parameters.BulkImportsGetapiv4bulkimportsimportidentitiesParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BulkImportsGetapiv4bulkimportsimportidentitiesResponse:
98
+ """
99
+ List GitLab Migration entities
100
+ """
101
+ if params is None:
102
+ params = parameters.BulkImportsGetapiv4bulkimportsimportidentitiesParams()
103
+ call_leaf = "/bulk_imports/{import_id}/entities"
104
+ path_params = params.path_params()
105
+ if path_params:
106
+ call_leaf = self.client.format_path(call_leaf, path_params)
107
+ query_params = params.query_params()
108
+ header_params = params.header_params()
109
+ body_params = params.body_params()
110
+ exp_status = [200]
111
+ resp = self.client.perform_call(
112
+ leaf=call_leaf,
113
+ method="GET",
114
+ params=query_params if query_params else None,
115
+ body=body_params,
116
+ exp_status=exp_status,
117
+ headers=header_params if header_params else None,
118
+ context_msg=None,
119
+ aspects=aspects,
120
+ )
121
+ result = responses.BulkImportsGetapiv4bulkimportsimportidentitiesResponse(resp)
122
+ return result
123
+
124
+ def getapiv4bulkimportsimportidentitiesentityid(self, params: Optional[parameters.BulkImportsGetapiv4bulkimportsimportidentitiesentityidParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BulkImportsGetapiv4bulkimportsimportidentitiesentityidResponse:
125
+ """
126
+ Get GitLab Migration entity details
127
+ """
128
+ if params is None:
129
+ params = parameters.BulkImportsGetapiv4bulkimportsimportidentitiesentityidParams()
130
+ call_leaf = "/bulk_imports/{import_id}/entities/{entity_id}"
131
+ path_params = params.path_params()
132
+ if path_params:
133
+ call_leaf = self.client.format_path(call_leaf, path_params)
134
+ query_params = params.query_params()
135
+ header_params = params.header_params()
136
+ body_params = params.body_params()
137
+ exp_status = [200]
138
+ resp = self.client.perform_call(
139
+ leaf=call_leaf,
140
+ method="GET",
141
+ params=query_params if query_params else None,
142
+ body=body_params,
143
+ exp_status=exp_status,
144
+ headers=header_params if header_params else None,
145
+ context_msg=None,
146
+ aspects=aspects,
147
+ )
148
+ result = responses.BulkImportsGetapiv4bulkimportsimportidentitiesentityidResponse(resp)
149
+ return result
150
+
151
+ def postapiv4bulkimports(self, params: Optional[parameters.BulkImportsPostapiv4bulkimportsParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BulkImportsPostapiv4bulkimportsResponse:
152
+ """
153
+ Start a new GitLab Migration
154
+ """
155
+ if params is None:
156
+ params = parameters.BulkImportsPostapiv4bulkimportsParams()
157
+ call_leaf = "/bulk_imports"
158
+ path_params = params.path_params()
159
+ if path_params:
160
+ call_leaf = self.client.format_path(call_leaf, path_params)
161
+ query_params = params.query_params()
162
+ header_params = params.header_params()
163
+ body_params = params.body_params()
164
+ exp_status = [200]
165
+ resp = self.client.perform_call(
166
+ leaf=call_leaf,
167
+ method="POST",
168
+ params=query_params if query_params else None,
169
+ body=body_params,
170
+ exp_status=exp_status,
171
+ headers=header_params if header_params else None,
172
+ context_msg=None,
173
+ aspects=aspects,
174
+ )
175
+ result = responses.BulkImportsPostapiv4bulkimportsResponse(resp)
176
+ return result