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,68 @@
|
|
|
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 application as parameters
|
|
8
|
+
from ccai.gitlab.rest.clients.responses import application as responses
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ApplicationApiGroup(RestApiGroup):
|
|
12
|
+
"""
|
|
13
|
+
Operations about applications
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def getapiv4applicationappearance(self, params: Optional[parameters.ApplicationGetapiv4applicationappearanceParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.ApplicationGetapiv4applicationappearanceResponse:
|
|
17
|
+
"""
|
|
18
|
+
Get the current appearance
|
|
19
|
+
"""
|
|
20
|
+
if params is None:
|
|
21
|
+
params = parameters.ApplicationGetapiv4applicationappearanceParams()
|
|
22
|
+
call_leaf = "/application/appearance"
|
|
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.ApplicationGetapiv4applicationappearanceResponse(resp)
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def putapiv4applicationappearance(self, params: Optional[parameters.ApplicationPutapiv4applicationappearanceParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.ApplicationPutapiv4applicationappearanceResponse:
|
|
44
|
+
"""
|
|
45
|
+
Modify appearance
|
|
46
|
+
"""
|
|
47
|
+
if params is None:
|
|
48
|
+
params = parameters.ApplicationPutapiv4applicationappearanceParams()
|
|
49
|
+
call_leaf = "/application/appearance"
|
|
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="PUT",
|
|
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.ApplicationPutapiv4applicationappearanceResponse(resp)
|
|
68
|
+
return result
|
|
@@ -0,0 +1,95 @@
|
|
|
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 applications as parameters
|
|
8
|
+
from ccai.gitlab.rest.clients.responses import applications as responses
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ApplicationsApiGroup(RestApiGroup):
|
|
12
|
+
"""
|
|
13
|
+
Operations about applications
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def deleteapiv4applicationsid(self, params: Optional[parameters.ApplicationsDeleteapiv4applicationsidParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.ApplicationsDeleteapiv4applicationsidResponse:
|
|
17
|
+
"""
|
|
18
|
+
Delete an application
|
|
19
|
+
"""
|
|
20
|
+
if params is None:
|
|
21
|
+
params = parameters.ApplicationsDeleteapiv4applicationsidParams()
|
|
22
|
+
call_leaf = "/applications/{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 = [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.ApplicationsDeleteapiv4applicationsidResponse(resp)
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def getapiv4applications(self, params: Optional[parameters.ApplicationsGetapiv4applicationsParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.ApplicationsGetapiv4applicationsResponse:
|
|
44
|
+
"""
|
|
45
|
+
Get applications
|
|
46
|
+
"""
|
|
47
|
+
if params is None:
|
|
48
|
+
params = parameters.ApplicationsGetapiv4applicationsParams()
|
|
49
|
+
call_leaf = "/applications"
|
|
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.ApplicationsGetapiv4applicationsResponse(resp)
|
|
68
|
+
return result
|
|
69
|
+
|
|
70
|
+
def postapiv4applications(self, params: Optional[parameters.ApplicationsPostapiv4applicationsParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.ApplicationsPostapiv4applicationsResponse:
|
|
71
|
+
"""
|
|
72
|
+
Create a new application
|
|
73
|
+
"""
|
|
74
|
+
if params is None:
|
|
75
|
+
params = parameters.ApplicationsPostapiv4applicationsParams()
|
|
76
|
+
call_leaf = "/applications"
|
|
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="POST",
|
|
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.ApplicationsPostapiv4applicationsResponse(resp)
|
|
95
|
+
return result
|
|
@@ -0,0 +1,41 @@
|
|
|
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 avatar as parameters
|
|
8
|
+
from ccai.gitlab.rest.clients.responses import avatar as responses
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AvatarApiGroup(RestApiGroup):
|
|
12
|
+
"""
|
|
13
|
+
Operations about avatars
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def getapiv4avatar(self, params: Optional[parameters.AvatarGetapiv4avatarParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.AvatarGetapiv4avatarResponse:
|
|
17
|
+
"""
|
|
18
|
+
Return avatar url for a user
|
|
19
|
+
"""
|
|
20
|
+
if params is None:
|
|
21
|
+
params = parameters.AvatarGetapiv4avatarParams()
|
|
22
|
+
call_leaf = "/avatar"
|
|
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.AvatarGetapiv4avatarResponse(resp)
|
|
41
|
+
return result
|
|
@@ -0,0 +1,338 @@
|
|
|
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 badges as parameters
|
|
8
|
+
from ccai.gitlab.rest.clients.responses import badges as responses
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class BadgesApiGroup(RestApiGroup):
|
|
12
|
+
"""
|
|
13
|
+
Operations about badges
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def deleteapiv4groupsidbadgesbadgeid(self, params: Optional[parameters.BadgesDeleteapiv4groupsidbadgesbadgeidParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BadgesDeleteapiv4groupsidbadgesbadgeidResponse:
|
|
17
|
+
"""
|
|
18
|
+
Removes a badge from the group.
|
|
19
|
+
"""
|
|
20
|
+
if params is None:
|
|
21
|
+
params = parameters.BadgesDeleteapiv4groupsidbadgesbadgeidParams()
|
|
22
|
+
call_leaf = "/groups/{id}/badges/{badge_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 = [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.BadgesDeleteapiv4groupsidbadgesbadgeidResponse(resp)
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def deleteapiv4projectsidbadgesbadgeid(self, params: Optional[parameters.BadgesDeleteapiv4projectsidbadgesbadgeidParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BadgesDeleteapiv4projectsidbadgesbadgeidResponse:
|
|
44
|
+
"""
|
|
45
|
+
Removes a badge from the project.
|
|
46
|
+
"""
|
|
47
|
+
if params is None:
|
|
48
|
+
params = parameters.BadgesDeleteapiv4projectsidbadgesbadgeidParams()
|
|
49
|
+
call_leaf = "/projects/{id}/badges/{badge_id}"
|
|
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 = [204]
|
|
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.BadgesDeleteapiv4projectsidbadgesbadgeidResponse(resp)
|
|
68
|
+
return result
|
|
69
|
+
|
|
70
|
+
def getapiv4groupsidbadges(self, params: Optional[parameters.BadgesGetapiv4groupsidbadgesParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BadgesGetapiv4groupsidbadgesResponse:
|
|
71
|
+
"""
|
|
72
|
+
Gets a list of group badges viewable by the authenticated user.
|
|
73
|
+
"""
|
|
74
|
+
if params is None:
|
|
75
|
+
params = parameters.BadgesGetapiv4groupsidbadgesParams()
|
|
76
|
+
call_leaf = "/groups/{id}/badges"
|
|
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.BadgesGetapiv4groupsidbadgesResponse(resp)
|
|
95
|
+
return result
|
|
96
|
+
|
|
97
|
+
def getapiv4groupsidbadgesbadgeid(self, params: Optional[parameters.BadgesGetapiv4groupsidbadgesbadgeidParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BadgesGetapiv4groupsidbadgesbadgeidResponse:
|
|
98
|
+
"""
|
|
99
|
+
Gets a badge of a group.
|
|
100
|
+
"""
|
|
101
|
+
if params is None:
|
|
102
|
+
params = parameters.BadgesGetapiv4groupsidbadgesbadgeidParams()
|
|
103
|
+
call_leaf = "/groups/{id}/badges/{badge_id}"
|
|
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.BadgesGetapiv4groupsidbadgesbadgeidResponse(resp)
|
|
122
|
+
return result
|
|
123
|
+
|
|
124
|
+
def getapiv4groupsidbadgesrender(self, params: Optional[parameters.BadgesGetapiv4groupsidbadgesrenderParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BadgesGetapiv4groupsidbadgesrenderResponse:
|
|
125
|
+
"""
|
|
126
|
+
Preview a badge from a group.
|
|
127
|
+
"""
|
|
128
|
+
if params is None:
|
|
129
|
+
params = parameters.BadgesGetapiv4groupsidbadgesrenderParams()
|
|
130
|
+
call_leaf = "/groups/{id}/badges/render"
|
|
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.BadgesGetapiv4groupsidbadgesrenderResponse(resp)
|
|
149
|
+
return result
|
|
150
|
+
|
|
151
|
+
def getapiv4projectsidbadges(self, params: Optional[parameters.BadgesGetapiv4projectsidbadgesParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BadgesGetapiv4projectsidbadgesResponse:
|
|
152
|
+
"""
|
|
153
|
+
Gets a list of project badges viewable by the authenticated user.
|
|
154
|
+
"""
|
|
155
|
+
if params is None:
|
|
156
|
+
params = parameters.BadgesGetapiv4projectsidbadgesParams()
|
|
157
|
+
call_leaf = "/projects/{id}/badges"
|
|
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="GET",
|
|
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.BadgesGetapiv4projectsidbadgesResponse(resp)
|
|
176
|
+
return result
|
|
177
|
+
|
|
178
|
+
def getapiv4projectsidbadgesbadgeid(self, params: Optional[parameters.BadgesGetapiv4projectsidbadgesbadgeidParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BadgesGetapiv4projectsidbadgesbadgeidResponse:
|
|
179
|
+
"""
|
|
180
|
+
Gets a badge of a project.
|
|
181
|
+
"""
|
|
182
|
+
if params is None:
|
|
183
|
+
params = parameters.BadgesGetapiv4projectsidbadgesbadgeidParams()
|
|
184
|
+
call_leaf = "/projects/{id}/badges/{badge_id}"
|
|
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="GET",
|
|
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.BadgesGetapiv4projectsidbadgesbadgeidResponse(resp)
|
|
203
|
+
return result
|
|
204
|
+
|
|
205
|
+
def getapiv4projectsidbadgesrender(self, params: Optional[parameters.BadgesGetapiv4projectsidbadgesrenderParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BadgesGetapiv4projectsidbadgesrenderResponse:
|
|
206
|
+
"""
|
|
207
|
+
Preview a badge from a project.
|
|
208
|
+
"""
|
|
209
|
+
if params is None:
|
|
210
|
+
params = parameters.BadgesGetapiv4projectsidbadgesrenderParams()
|
|
211
|
+
call_leaf = "/projects/{id}/badges/render"
|
|
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="GET",
|
|
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.BadgesGetapiv4projectsidbadgesrenderResponse(resp)
|
|
230
|
+
return result
|
|
231
|
+
|
|
232
|
+
def postapiv4groupsidbadges(self, params: Optional[parameters.BadgesPostapiv4groupsidbadgesParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BadgesPostapiv4groupsidbadgesResponse:
|
|
233
|
+
"""
|
|
234
|
+
Adds a badge to a group.
|
|
235
|
+
"""
|
|
236
|
+
if params is None:
|
|
237
|
+
params = parameters.BadgesPostapiv4groupsidbadgesParams()
|
|
238
|
+
call_leaf = "/groups/{id}/badges"
|
|
239
|
+
path_params = params.path_params()
|
|
240
|
+
if path_params:
|
|
241
|
+
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
242
|
+
query_params = params.query_params()
|
|
243
|
+
header_params = params.header_params()
|
|
244
|
+
body_params = params.body_params()
|
|
245
|
+
exp_status = [201]
|
|
246
|
+
resp = self.client.perform_call(
|
|
247
|
+
leaf=call_leaf,
|
|
248
|
+
method="POST",
|
|
249
|
+
params=query_params if query_params else None,
|
|
250
|
+
body=body_params,
|
|
251
|
+
exp_status=exp_status,
|
|
252
|
+
headers=header_params if header_params else None,
|
|
253
|
+
context_msg=None,
|
|
254
|
+
aspects=aspects,
|
|
255
|
+
)
|
|
256
|
+
result = responses.BadgesPostapiv4groupsidbadgesResponse(resp)
|
|
257
|
+
return result
|
|
258
|
+
|
|
259
|
+
def postapiv4projectsidbadges(self, params: Optional[parameters.BadgesPostapiv4projectsidbadgesParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BadgesPostapiv4projectsidbadgesResponse:
|
|
260
|
+
"""
|
|
261
|
+
Adds a badge to a project.
|
|
262
|
+
"""
|
|
263
|
+
if params is None:
|
|
264
|
+
params = parameters.BadgesPostapiv4projectsidbadgesParams()
|
|
265
|
+
call_leaf = "/projects/{id}/badges"
|
|
266
|
+
path_params = params.path_params()
|
|
267
|
+
if path_params:
|
|
268
|
+
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
269
|
+
query_params = params.query_params()
|
|
270
|
+
header_params = params.header_params()
|
|
271
|
+
body_params = params.body_params()
|
|
272
|
+
exp_status = [201]
|
|
273
|
+
resp = self.client.perform_call(
|
|
274
|
+
leaf=call_leaf,
|
|
275
|
+
method="POST",
|
|
276
|
+
params=query_params if query_params else None,
|
|
277
|
+
body=body_params,
|
|
278
|
+
exp_status=exp_status,
|
|
279
|
+
headers=header_params if header_params else None,
|
|
280
|
+
context_msg=None,
|
|
281
|
+
aspects=aspects,
|
|
282
|
+
)
|
|
283
|
+
result = responses.BadgesPostapiv4projectsidbadgesResponse(resp)
|
|
284
|
+
return result
|
|
285
|
+
|
|
286
|
+
def putapiv4groupsidbadgesbadgeid(self, params: Optional[parameters.BadgesPutapiv4groupsidbadgesbadgeidParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BadgesPutapiv4groupsidbadgesbadgeidResponse:
|
|
287
|
+
"""
|
|
288
|
+
Updates a badge of a group.
|
|
289
|
+
"""
|
|
290
|
+
if params is None:
|
|
291
|
+
params = parameters.BadgesPutapiv4groupsidbadgesbadgeidParams()
|
|
292
|
+
call_leaf = "/groups/{id}/badges/{badge_id}"
|
|
293
|
+
path_params = params.path_params()
|
|
294
|
+
if path_params:
|
|
295
|
+
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
296
|
+
query_params = params.query_params()
|
|
297
|
+
header_params = params.header_params()
|
|
298
|
+
body_params = params.body_params()
|
|
299
|
+
exp_status = [200]
|
|
300
|
+
resp = self.client.perform_call(
|
|
301
|
+
leaf=call_leaf,
|
|
302
|
+
method="PUT",
|
|
303
|
+
params=query_params if query_params else None,
|
|
304
|
+
body=body_params,
|
|
305
|
+
exp_status=exp_status,
|
|
306
|
+
headers=header_params if header_params else None,
|
|
307
|
+
context_msg=None,
|
|
308
|
+
aspects=aspects,
|
|
309
|
+
)
|
|
310
|
+
result = responses.BadgesPutapiv4groupsidbadgesbadgeidResponse(resp)
|
|
311
|
+
return result
|
|
312
|
+
|
|
313
|
+
def putapiv4projectsidbadgesbadgeid(self, params: Optional[parameters.BadgesPutapiv4projectsidbadgesbadgeidParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BadgesPutapiv4projectsidbadgesbadgeidResponse:
|
|
314
|
+
"""
|
|
315
|
+
Updates a badge of a project.
|
|
316
|
+
"""
|
|
317
|
+
if params is None:
|
|
318
|
+
params = parameters.BadgesPutapiv4projectsidbadgesbadgeidParams()
|
|
319
|
+
call_leaf = "/projects/{id}/badges/{badge_id}"
|
|
320
|
+
path_params = params.path_params()
|
|
321
|
+
if path_params:
|
|
322
|
+
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
323
|
+
query_params = params.query_params()
|
|
324
|
+
header_params = params.header_params()
|
|
325
|
+
body_params = params.body_params()
|
|
326
|
+
exp_status = [200]
|
|
327
|
+
resp = self.client.perform_call(
|
|
328
|
+
leaf=call_leaf,
|
|
329
|
+
method="PUT",
|
|
330
|
+
params=query_params if query_params else None,
|
|
331
|
+
body=body_params,
|
|
332
|
+
exp_status=exp_status,
|
|
333
|
+
headers=header_params if header_params else None,
|
|
334
|
+
context_msg=None,
|
|
335
|
+
aspects=aspects,
|
|
336
|
+
)
|
|
337
|
+
result = responses.BadgesPutapiv4projectsidbadgesbadgeidResponse(resp)
|
|
338
|
+
return result
|
|
@@ -0,0 +1,122 @@
|
|
|
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 batchedbackgroundmigrations as parameters
|
|
8
|
+
from ccai.gitlab.rest.clients.responses import batchedbackgroundmigrations as responses
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class BatchedBackgroundMigrationsApiGroup(RestApiGroup):
|
|
12
|
+
"""
|
|
13
|
+
Operations about batched_background_migrations
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def getapiv4adminbatchedbackgroundmigrations(self, params: Optional[parameters.BatchedBackgroundMigrationsGetapiv4adminbatchedbackgroundmigrationsParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BatchedBackgroundMigrationsGetapiv4adminbatchedbackgroundmigrationsResponse:
|
|
17
|
+
"""
|
|
18
|
+
Get the list of batched background migrations
|
|
19
|
+
"""
|
|
20
|
+
if params is None:
|
|
21
|
+
params = parameters.BatchedBackgroundMigrationsGetapiv4adminbatchedbackgroundmigrationsParams()
|
|
22
|
+
call_leaf = "/admin/batched_background_migrations"
|
|
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.BatchedBackgroundMigrationsGetapiv4adminbatchedbackgroundmigrationsResponse(resp)
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def getapiv4adminbatchedbackgroundmigrationsid(self, params: Optional[parameters.BatchedBackgroundMigrationsGetapiv4adminbatchedbackgroundmigrationsidParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BatchedBackgroundMigrationsGetapiv4adminbatchedbackgroundmigrationsidResponse:
|
|
44
|
+
"""
|
|
45
|
+
Retrieve a batched background migration
|
|
46
|
+
"""
|
|
47
|
+
if params is None:
|
|
48
|
+
params = parameters.BatchedBackgroundMigrationsGetapiv4adminbatchedbackgroundmigrationsidParams()
|
|
49
|
+
call_leaf = "/admin/batched_background_migrations/{id}"
|
|
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.BatchedBackgroundMigrationsGetapiv4adminbatchedbackgroundmigrationsidResponse(resp)
|
|
68
|
+
return result
|
|
69
|
+
|
|
70
|
+
def putapiv4adminbatchedbackgroundmigrationsidpause(self, params: Optional[parameters.BatchedBackgroundMigrationsPutapiv4adminbatchedbackgroundmigrationsidpauseParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BatchedBackgroundMigrationsPutapiv4adminbatchedbackgroundmigrationsidpauseResponse:
|
|
71
|
+
"""
|
|
72
|
+
Pause a batched background migration
|
|
73
|
+
"""
|
|
74
|
+
if params is None:
|
|
75
|
+
params = parameters.BatchedBackgroundMigrationsPutapiv4adminbatchedbackgroundmigrationsidpauseParams()
|
|
76
|
+
call_leaf = "/admin/batched_background_migrations/{id}/pause"
|
|
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="PUT",
|
|
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.BatchedBackgroundMigrationsPutapiv4adminbatchedbackgroundmigrationsidpauseResponse(resp)
|
|
95
|
+
return result
|
|
96
|
+
|
|
97
|
+
def putapiv4adminbatchedbackgroundmigrationsidresume(self, params: Optional[parameters.BatchedBackgroundMigrationsPutapiv4adminbatchedbackgroundmigrationsidresumeParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.BatchedBackgroundMigrationsPutapiv4adminbatchedbackgroundmigrationsidresumeResponse:
|
|
98
|
+
"""
|
|
99
|
+
Resume a batched background migration
|
|
100
|
+
"""
|
|
101
|
+
if params is None:
|
|
102
|
+
params = parameters.BatchedBackgroundMigrationsPutapiv4adminbatchedbackgroundmigrationsidresumeParams()
|
|
103
|
+
call_leaf = "/admin/batched_background_migrations/{id}/resume"
|
|
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="PUT",
|
|
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.BatchedBackgroundMigrationsPutapiv4adminbatchedbackgroundmigrationsidresumeResponse(resp)
|
|
122
|
+
return result
|