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,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 clusters as parameters
|
|
8
|
+
from ccai.gitlab.rest.clients.responses import clusters as responses
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ClustersApiGroup(RestApiGroup):
|
|
12
|
+
"""
|
|
13
|
+
Operations related to clusters
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def deleteapiv4adminclustersclusterid(self, params: Optional[parameters.ClustersDeleteapiv4adminclustersclusteridParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.ClustersDeleteapiv4adminclustersclusteridResponse:
|
|
17
|
+
"""
|
|
18
|
+
Delete instance cluster
|
|
19
|
+
"""
|
|
20
|
+
if params is None:
|
|
21
|
+
params = parameters.ClustersDeleteapiv4adminclustersclusteridParams()
|
|
22
|
+
call_leaf = "/admin/clusters/{cluster_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.ClustersDeleteapiv4adminclustersclusteridResponse(resp)
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def getapiv4adminclusters(self, params: Optional[parameters.ClustersGetapiv4adminclustersParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.ClustersGetapiv4adminclustersResponse:
|
|
44
|
+
"""
|
|
45
|
+
List instance clusters
|
|
46
|
+
"""
|
|
47
|
+
if params is None:
|
|
48
|
+
params = parameters.ClustersGetapiv4adminclustersParams()
|
|
49
|
+
call_leaf = "/admin/clusters"
|
|
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.ClustersGetapiv4adminclustersResponse(resp)
|
|
68
|
+
return result
|
|
69
|
+
|
|
70
|
+
def getapiv4adminclustersclusterid(self, params: Optional[parameters.ClustersGetapiv4adminclustersclusteridParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.ClustersGetapiv4adminclustersclusteridResponse:
|
|
71
|
+
"""
|
|
72
|
+
Get a single instance cluster
|
|
73
|
+
"""
|
|
74
|
+
if params is None:
|
|
75
|
+
params = parameters.ClustersGetapiv4adminclustersclusteridParams()
|
|
76
|
+
call_leaf = "/admin/clusters/{cluster_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.ClustersGetapiv4adminclustersclusteridResponse(resp)
|
|
95
|
+
return result
|
|
96
|
+
|
|
97
|
+
def postapiv4adminclustersadd(self, params: Optional[parameters.ClustersPostapiv4adminclustersaddParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.ClustersPostapiv4adminclustersaddResponse:
|
|
98
|
+
"""
|
|
99
|
+
Add existing instance cluster
|
|
100
|
+
"""
|
|
101
|
+
if params is None:
|
|
102
|
+
params = parameters.ClustersPostapiv4adminclustersaddParams()
|
|
103
|
+
call_leaf = "/admin/clusters/add"
|
|
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.ClustersPostapiv4adminclustersaddResponse(resp)
|
|
122
|
+
return result
|
|
123
|
+
|
|
124
|
+
def putapiv4adminclustersclusterid(self, params: Optional[parameters.ClustersPutapiv4adminclustersclusteridParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.ClustersPutapiv4adminclustersclusteridResponse:
|
|
125
|
+
"""
|
|
126
|
+
Edit instance cluster
|
|
127
|
+
"""
|
|
128
|
+
if params is None:
|
|
129
|
+
params = parameters.ClustersPutapiv4adminclustersclusteridParams()
|
|
130
|
+
call_leaf = "/admin/clusters/{cluster_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.ClustersPutapiv4adminclustersclusteridResponse(resp)
|
|
149
|
+
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 jobs as parameters
|
|
8
|
+
from ccai.gitlab.rest.clients.responses import jobs as responses
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class JobsApiGroup(RestApiGroup):
|
|
12
|
+
"""
|
|
13
|
+
Operations related to CI Jobs
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def getsinglejob(self, params: Optional[parameters.JobsGetsinglejobParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.JobsGetsinglejobResponse:
|
|
17
|
+
"""
|
|
18
|
+
Get a single job by ID
|
|
19
|
+
"""
|
|
20
|
+
if params is None:
|
|
21
|
+
params = parameters.JobsGetsinglejobParams()
|
|
22
|
+
call_leaf = "/projects/{id}/jobs/{job_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="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.JobsGetsinglejobResponse(resp)
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def listprojectjobs(self, params: Optional[parameters.JobsListprojectjobsParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.JobsListprojectjobsResponse:
|
|
44
|
+
"""
|
|
45
|
+
List jobs for a project
|
|
46
|
+
"""
|
|
47
|
+
if params is None:
|
|
48
|
+
params = parameters.JobsListprojectjobsParams()
|
|
49
|
+
call_leaf = "/projects/{id}/jobs"
|
|
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.JobsListprojectjobsResponse(resp)
|
|
68
|
+
return result
|
|
69
|
+
|
|
70
|
+
def triggermanualjob(self, params: Optional[parameters.JobsTriggermanualjobParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.JobsTriggermanualjobResponse:
|
|
71
|
+
"""
|
|
72
|
+
Run a manual job
|
|
73
|
+
"""
|
|
74
|
+
if params is None:
|
|
75
|
+
params = parameters.JobsTriggermanualjobParams()
|
|
76
|
+
call_leaf = "/projects/{id}/jobs/{job_id}/play"
|
|
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.JobsTriggermanualjobResponse(resp)
|
|
95
|
+
return result
|
|
@@ -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 metadata as parameters
|
|
8
|
+
from ccai.gitlab.rest.clients.responses import metadata as responses
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class MetadataApiGroup(RestApiGroup):
|
|
12
|
+
"""
|
|
13
|
+
Operations related to metadata of the GitLab instance
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def getapiv4metadata(self, params: Optional[parameters.MetadataGetapiv4metadataParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.MetadataGetapiv4metadataResponse:
|
|
17
|
+
"""
|
|
18
|
+
Retrieve metadata information for this GitLab instance
|
|
19
|
+
"""
|
|
20
|
+
if params is None:
|
|
21
|
+
params = parameters.MetadataGetapiv4metadataParams()
|
|
22
|
+
call_leaf = "/metadata"
|
|
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.MetadataGetapiv4metadataResponse(resp)
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def getapiv4version(self, params: Optional[parameters.MetadataGetapiv4versionParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.MetadataGetapiv4versionResponse:
|
|
44
|
+
"""
|
|
45
|
+
Retrieves version information for the GitLab instance
|
|
46
|
+
"""
|
|
47
|
+
if params is None:
|
|
48
|
+
params = parameters.MetadataGetapiv4versionParams()
|
|
49
|
+
call_leaf = "/version"
|
|
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.MetadataGetapiv4versionResponse(resp)
|
|
68
|
+
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 migrations as parameters
|
|
8
|
+
from ccai.gitlab.rest.clients.responses import migrations as responses
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class MigrationsApiGroup(RestApiGroup):
|
|
12
|
+
"""
|
|
13
|
+
Operations about migrations
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def postapiv4adminmigrationstimestampmark(self, params: Optional[parameters.MigrationsPostapiv4adminmigrationstimestampmarkParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.MigrationsPostapiv4adminmigrationstimestampmarkResponse:
|
|
17
|
+
"""
|
|
18
|
+
Mark the migration as successfully executed
|
|
19
|
+
"""
|
|
20
|
+
if params is None:
|
|
21
|
+
params = parameters.MigrationsPostapiv4adminmigrationstimestampmarkParams()
|
|
22
|
+
call_leaf = "/admin/migrations/{timestamp}/mark"
|
|
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 = [201]
|
|
30
|
+
resp = self.client.perform_call(
|
|
31
|
+
leaf=call_leaf,
|
|
32
|
+
method="POST",
|
|
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.MigrationsPostapiv4adminmigrationstimestampmarkResponse(resp)
|
|
41
|
+
return result
|
|
@@ -0,0 +1,146 @@
|
|
|
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 pipelinecomposition as parameters
|
|
8
|
+
from ccai.gitlab.rest.clients.responses import pipelinecomposition as responses
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class PipelineCompositionApiGroup(RestApiGroup):
|
|
12
|
+
|
|
13
|
+
def deleteapiv4admincivariableskey(self, params: Optional[parameters.PipelineCompositionDeleteapiv4admincivariableskeyParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.PipelineCompositionDeleteapiv4admincivariableskeyResponse:
|
|
14
|
+
"""
|
|
15
|
+
Delete an existing instance-level variable
|
|
16
|
+
"""
|
|
17
|
+
if params is None:
|
|
18
|
+
params = parameters.PipelineCompositionDeleteapiv4admincivariableskeyParams()
|
|
19
|
+
call_leaf = "/admin/ci/variables/{key}"
|
|
20
|
+
path_params = params.path_params()
|
|
21
|
+
if path_params:
|
|
22
|
+
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
23
|
+
query_params = params.query_params()
|
|
24
|
+
header_params = params.header_params()
|
|
25
|
+
body_params = params.body_params()
|
|
26
|
+
exp_status = [204]
|
|
27
|
+
resp = self.client.perform_call(
|
|
28
|
+
leaf=call_leaf,
|
|
29
|
+
method="DELETE",
|
|
30
|
+
params=query_params if query_params else None,
|
|
31
|
+
body=body_params,
|
|
32
|
+
exp_status=exp_status,
|
|
33
|
+
headers=header_params if header_params else None,
|
|
34
|
+
context_msg=None,
|
|
35
|
+
aspects=aspects,
|
|
36
|
+
)
|
|
37
|
+
result = responses.PipelineCompositionDeleteapiv4admincivariableskeyResponse(resp)
|
|
38
|
+
return result
|
|
39
|
+
|
|
40
|
+
def getapiv4admincivariables(self, params: Optional[parameters.PipelineCompositionGetapiv4admincivariablesParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.PipelineCompositionGetapiv4admincivariablesResponse:
|
|
41
|
+
"""
|
|
42
|
+
List all instance-level variables
|
|
43
|
+
"""
|
|
44
|
+
if params is None:
|
|
45
|
+
params = parameters.PipelineCompositionGetapiv4admincivariablesParams()
|
|
46
|
+
call_leaf = "/admin/ci/variables"
|
|
47
|
+
path_params = params.path_params()
|
|
48
|
+
if path_params:
|
|
49
|
+
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
50
|
+
query_params = params.query_params()
|
|
51
|
+
header_params = params.header_params()
|
|
52
|
+
body_params = params.body_params()
|
|
53
|
+
exp_status = [200]
|
|
54
|
+
resp = self.client.perform_call(
|
|
55
|
+
leaf=call_leaf,
|
|
56
|
+
method="GET",
|
|
57
|
+
params=query_params if query_params else None,
|
|
58
|
+
body=body_params,
|
|
59
|
+
exp_status=exp_status,
|
|
60
|
+
headers=header_params if header_params else None,
|
|
61
|
+
context_msg=None,
|
|
62
|
+
aspects=aspects,
|
|
63
|
+
)
|
|
64
|
+
result = responses.PipelineCompositionGetapiv4admincivariablesResponse(resp)
|
|
65
|
+
return result
|
|
66
|
+
|
|
67
|
+
def getapiv4admincivariableskey(self, params: Optional[parameters.PipelineCompositionGetapiv4admincivariableskeyParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.PipelineCompositionGetapiv4admincivariableskeyResponse:
|
|
68
|
+
"""
|
|
69
|
+
Get the details of a specific instance-level variable
|
|
70
|
+
"""
|
|
71
|
+
if params is None:
|
|
72
|
+
params = parameters.PipelineCompositionGetapiv4admincivariableskeyParams()
|
|
73
|
+
call_leaf = "/admin/ci/variables/{key}"
|
|
74
|
+
path_params = params.path_params()
|
|
75
|
+
if path_params:
|
|
76
|
+
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
77
|
+
query_params = params.query_params()
|
|
78
|
+
header_params = params.header_params()
|
|
79
|
+
body_params = params.body_params()
|
|
80
|
+
exp_status = [200]
|
|
81
|
+
resp = self.client.perform_call(
|
|
82
|
+
leaf=call_leaf,
|
|
83
|
+
method="GET",
|
|
84
|
+
params=query_params if query_params else None,
|
|
85
|
+
body=body_params,
|
|
86
|
+
exp_status=exp_status,
|
|
87
|
+
headers=header_params if header_params else None,
|
|
88
|
+
context_msg=None,
|
|
89
|
+
aspects=aspects,
|
|
90
|
+
)
|
|
91
|
+
result = responses.PipelineCompositionGetapiv4admincivariableskeyResponse(resp)
|
|
92
|
+
return result
|
|
93
|
+
|
|
94
|
+
def postapiv4admincivariables(self, params: Optional[parameters.PipelineCompositionPostapiv4admincivariablesParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.PipelineCompositionPostapiv4admincivariablesResponse:
|
|
95
|
+
"""
|
|
96
|
+
Create a new instance-level variable
|
|
97
|
+
"""
|
|
98
|
+
if params is None:
|
|
99
|
+
params = parameters.PipelineCompositionPostapiv4admincivariablesParams()
|
|
100
|
+
call_leaf = "/admin/ci/variables"
|
|
101
|
+
path_params = params.path_params()
|
|
102
|
+
if path_params:
|
|
103
|
+
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
104
|
+
query_params = params.query_params()
|
|
105
|
+
header_params = params.header_params()
|
|
106
|
+
body_params = params.body_params()
|
|
107
|
+
exp_status = [201]
|
|
108
|
+
resp = self.client.perform_call(
|
|
109
|
+
leaf=call_leaf,
|
|
110
|
+
method="POST",
|
|
111
|
+
params=query_params if query_params else None,
|
|
112
|
+
body=body_params,
|
|
113
|
+
exp_status=exp_status,
|
|
114
|
+
headers=header_params if header_params else None,
|
|
115
|
+
context_msg=None,
|
|
116
|
+
aspects=aspects,
|
|
117
|
+
)
|
|
118
|
+
result = responses.PipelineCompositionPostapiv4admincivariablesResponse(resp)
|
|
119
|
+
return result
|
|
120
|
+
|
|
121
|
+
def putapiv4admincivariableskey(self, params: Optional[parameters.PipelineCompositionPutapiv4admincivariableskeyParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.PipelineCompositionPutapiv4admincivariableskeyResponse:
|
|
122
|
+
"""
|
|
123
|
+
Update an instance-level variable
|
|
124
|
+
"""
|
|
125
|
+
if params is None:
|
|
126
|
+
params = parameters.PipelineCompositionPutapiv4admincivariableskeyParams()
|
|
127
|
+
call_leaf = "/admin/ci/variables/{key}"
|
|
128
|
+
path_params = params.path_params()
|
|
129
|
+
if path_params:
|
|
130
|
+
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
131
|
+
query_params = params.query_params()
|
|
132
|
+
header_params = params.header_params()
|
|
133
|
+
body_params = params.body_params()
|
|
134
|
+
exp_status = [200]
|
|
135
|
+
resp = self.client.perform_call(
|
|
136
|
+
leaf=call_leaf,
|
|
137
|
+
method="PUT",
|
|
138
|
+
params=query_params if query_params else None,
|
|
139
|
+
body=body_params,
|
|
140
|
+
exp_status=exp_status,
|
|
141
|
+
headers=header_params if header_params else None,
|
|
142
|
+
context_msg=None,
|
|
143
|
+
aspects=aspects,
|
|
144
|
+
)
|
|
145
|
+
result = responses.PipelineCompositionPutapiv4admincivariableskeyResponse(resp)
|
|
146
|
+
return result
|
|
@@ -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 planlimits as parameters
|
|
8
|
+
from ccai.gitlab.rest.clients.responses import planlimits as responses
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class PlanLimitsApiGroup(RestApiGroup):
|
|
12
|
+
"""
|
|
13
|
+
Operations related to plan limits
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def getapiv4applicationplanlimits(self, params: Optional[parameters.PlanLimitsGetapiv4applicationplanlimitsParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.PlanLimitsGetapiv4applicationplanlimitsResponse:
|
|
17
|
+
"""
|
|
18
|
+
Get current plan limits
|
|
19
|
+
"""
|
|
20
|
+
if params is None:
|
|
21
|
+
params = parameters.PlanLimitsGetapiv4applicationplanlimitsParams()
|
|
22
|
+
call_leaf = "/application/plan_limits"
|
|
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.PlanLimitsGetapiv4applicationplanlimitsResponse(resp)
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def putapiv4applicationplanlimits(self, params: Optional[parameters.PlanLimitsPutapiv4applicationplanlimitsParams] = None, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.PlanLimitsPutapiv4applicationplanlimitsResponse:
|
|
44
|
+
"""
|
|
45
|
+
Change plan limits
|
|
46
|
+
"""
|
|
47
|
+
if params is None:
|
|
48
|
+
params = parameters.PlanLimitsPutapiv4applicationplanlimitsParams()
|
|
49
|
+
call_leaf = "/application/plan_limits"
|
|
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.PlanLimitsPutapiv4applicationplanlimitsResponse(resp)
|
|
68
|
+
return result
|
|
File without changes
|