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,157 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict
|
|
4
|
+
|
|
5
|
+
from requests import Response
|
|
6
|
+
|
|
7
|
+
class AccessRequestsDeleteapiv4groupsidaccessrequestsuseridResponse:
|
|
8
|
+
"""
|
|
9
|
+
Response wrapper for the 'deleteApiV4GroupsIdAccessRequestsUserId' operation.
|
|
10
|
+
"""
|
|
11
|
+
def __init__(self, response: Response):
|
|
12
|
+
self.response = response
|
|
13
|
+
self.status_code = response.status_code
|
|
14
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
15
|
+
try:
|
|
16
|
+
self.data = response.json()
|
|
17
|
+
except Exception:
|
|
18
|
+
self.data = response.content
|
|
19
|
+
return
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def ok(self) -> bool:
|
|
23
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
24
|
+
return rtnval
|
|
25
|
+
|
|
26
|
+
class AccessRequestsDeleteapiv4projectsidaccessrequestsuseridResponse:
|
|
27
|
+
"""
|
|
28
|
+
Response wrapper for the 'deleteApiV4ProjectsIdAccessRequestsUserId' operation.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(self, response: Response):
|
|
31
|
+
self.response = response
|
|
32
|
+
self.status_code = response.status_code
|
|
33
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
34
|
+
try:
|
|
35
|
+
self.data = response.json()
|
|
36
|
+
except Exception:
|
|
37
|
+
self.data = response.content
|
|
38
|
+
return
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def ok(self) -> bool:
|
|
42
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
43
|
+
return rtnval
|
|
44
|
+
|
|
45
|
+
class AccessRequestsGetapiv4groupsidaccessrequestsResponse:
|
|
46
|
+
"""
|
|
47
|
+
Response wrapper for the 'getApiV4GroupsIdAccessRequests' operation.
|
|
48
|
+
"""
|
|
49
|
+
def __init__(self, response: Response):
|
|
50
|
+
self.response = response
|
|
51
|
+
self.status_code = response.status_code
|
|
52
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
53
|
+
try:
|
|
54
|
+
self.data = response.json()
|
|
55
|
+
except Exception:
|
|
56
|
+
self.data = response.content
|
|
57
|
+
return
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def ok(self) -> bool:
|
|
61
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
62
|
+
return rtnval
|
|
63
|
+
|
|
64
|
+
class AccessRequestsGetapiv4projectsidaccessrequestsResponse:
|
|
65
|
+
"""
|
|
66
|
+
Response wrapper for the 'getApiV4ProjectsIdAccessRequests' operation.
|
|
67
|
+
"""
|
|
68
|
+
def __init__(self, response: Response):
|
|
69
|
+
self.response = response
|
|
70
|
+
self.status_code = response.status_code
|
|
71
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
72
|
+
try:
|
|
73
|
+
self.data = response.json()
|
|
74
|
+
except Exception:
|
|
75
|
+
self.data = response.content
|
|
76
|
+
return
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def ok(self) -> bool:
|
|
80
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
81
|
+
return rtnval
|
|
82
|
+
|
|
83
|
+
class AccessRequestsPostapiv4groupsidaccessrequestsResponse:
|
|
84
|
+
"""
|
|
85
|
+
Response wrapper for the 'postApiV4GroupsIdAccessRequests' operation.
|
|
86
|
+
"""
|
|
87
|
+
def __init__(self, response: Response):
|
|
88
|
+
self.response = response
|
|
89
|
+
self.status_code = response.status_code
|
|
90
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
91
|
+
try:
|
|
92
|
+
self.data = response.json()
|
|
93
|
+
except Exception:
|
|
94
|
+
self.data = response.content
|
|
95
|
+
return
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def ok(self) -> bool:
|
|
99
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
100
|
+
return rtnval
|
|
101
|
+
|
|
102
|
+
class AccessRequestsPostapiv4projectsidaccessrequestsResponse:
|
|
103
|
+
"""
|
|
104
|
+
Response wrapper for the 'postApiV4ProjectsIdAccessRequests' operation.
|
|
105
|
+
"""
|
|
106
|
+
def __init__(self, response: Response):
|
|
107
|
+
self.response = response
|
|
108
|
+
self.status_code = response.status_code
|
|
109
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
110
|
+
try:
|
|
111
|
+
self.data = response.json()
|
|
112
|
+
except Exception:
|
|
113
|
+
self.data = response.content
|
|
114
|
+
return
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def ok(self) -> bool:
|
|
118
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
119
|
+
return rtnval
|
|
120
|
+
|
|
121
|
+
class AccessRequestsPutapiv4groupsidaccessrequestsuseridapproveResponse:
|
|
122
|
+
"""
|
|
123
|
+
Response wrapper for the 'putApiV4GroupsIdAccessRequestsUserIdApprove' operation.
|
|
124
|
+
"""
|
|
125
|
+
def __init__(self, response: Response):
|
|
126
|
+
self.response = response
|
|
127
|
+
self.status_code = response.status_code
|
|
128
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
129
|
+
try:
|
|
130
|
+
self.data = response.json()
|
|
131
|
+
except Exception:
|
|
132
|
+
self.data = response.content
|
|
133
|
+
return
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def ok(self) -> bool:
|
|
137
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
138
|
+
return rtnval
|
|
139
|
+
|
|
140
|
+
class AccessRequestsPutapiv4projectsidaccessrequestsuseridapproveResponse:
|
|
141
|
+
"""
|
|
142
|
+
Response wrapper for the 'putApiV4ProjectsIdAccessRequestsUserIdApprove' operation.
|
|
143
|
+
"""
|
|
144
|
+
def __init__(self, response: Response):
|
|
145
|
+
self.response = response
|
|
146
|
+
self.status_code = response.status_code
|
|
147
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
148
|
+
try:
|
|
149
|
+
self.data = response.json()
|
|
150
|
+
except Exception:
|
|
151
|
+
self.data = response.content
|
|
152
|
+
return
|
|
153
|
+
|
|
154
|
+
@property
|
|
155
|
+
def ok(self) -> bool:
|
|
156
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
157
|
+
return rtnval
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict
|
|
4
|
+
|
|
5
|
+
from requests import Response
|
|
6
|
+
|
|
7
|
+
class AdminGetapiv4admindatabasesdatabasenamedictionarytablestablenameResponse:
|
|
8
|
+
"""
|
|
9
|
+
Response wrapper for the 'getApiV4AdminDatabasesDatabaseNameDictionaryTablesTableName' operation.
|
|
10
|
+
"""
|
|
11
|
+
def __init__(self, response: Response):
|
|
12
|
+
self.response = response
|
|
13
|
+
self.status_code = response.status_code
|
|
14
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
15
|
+
try:
|
|
16
|
+
self.data = response.json()
|
|
17
|
+
except Exception:
|
|
18
|
+
self.data = response.content
|
|
19
|
+
return
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def ok(self) -> bool:
|
|
23
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
24
|
+
return rtnval
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict
|
|
4
|
+
|
|
5
|
+
from requests import Response
|
|
6
|
+
|
|
7
|
+
class AlertManagementDeleteapiv4projectsidalertmanagementalertsalertiidmetricimagesmetricimageidResponse:
|
|
8
|
+
"""
|
|
9
|
+
Response wrapper for the 'deleteApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImagesMetricImageId' operation.
|
|
10
|
+
"""
|
|
11
|
+
def __init__(self, response: Response):
|
|
12
|
+
self.response = response
|
|
13
|
+
self.status_code = response.status_code
|
|
14
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
15
|
+
try:
|
|
16
|
+
self.data = response.json()
|
|
17
|
+
except Exception:
|
|
18
|
+
self.data = response.content
|
|
19
|
+
return
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def ok(self) -> bool:
|
|
23
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
24
|
+
return rtnval
|
|
25
|
+
|
|
26
|
+
class AlertManagementGetapiv4projectsidalertmanagementalertsalertiidmetricimagesResponse:
|
|
27
|
+
"""
|
|
28
|
+
Response wrapper for the 'getApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImages' operation.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(self, response: Response):
|
|
31
|
+
self.response = response
|
|
32
|
+
self.status_code = response.status_code
|
|
33
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
34
|
+
try:
|
|
35
|
+
self.data = response.json()
|
|
36
|
+
except Exception:
|
|
37
|
+
self.data = response.content
|
|
38
|
+
return
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def ok(self) -> bool:
|
|
42
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
43
|
+
return rtnval
|
|
44
|
+
|
|
45
|
+
class AlertManagementPostapiv4projectsidalertmanagementalertsalertiidmetricimagesResponse:
|
|
46
|
+
"""
|
|
47
|
+
Response wrapper for the 'postApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImages' operation.
|
|
48
|
+
"""
|
|
49
|
+
def __init__(self, response: Response):
|
|
50
|
+
self.response = response
|
|
51
|
+
self.status_code = response.status_code
|
|
52
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
53
|
+
try:
|
|
54
|
+
self.data = response.json()
|
|
55
|
+
except Exception:
|
|
56
|
+
self.data = response.content
|
|
57
|
+
return
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def ok(self) -> bool:
|
|
61
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
62
|
+
return rtnval
|
|
63
|
+
|
|
64
|
+
class AlertManagementPostapiv4projectsidalertmanagementalertsalertiidmetricimagesauthorizeResponse:
|
|
65
|
+
"""
|
|
66
|
+
Response wrapper for the 'postApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImagesAuthorize' operation.
|
|
67
|
+
"""
|
|
68
|
+
def __init__(self, response: Response):
|
|
69
|
+
self.response = response
|
|
70
|
+
self.status_code = response.status_code
|
|
71
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
72
|
+
try:
|
|
73
|
+
self.data = response.json()
|
|
74
|
+
except Exception:
|
|
75
|
+
self.data = response.content
|
|
76
|
+
return
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def ok(self) -> bool:
|
|
80
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
81
|
+
return rtnval
|
|
82
|
+
|
|
83
|
+
class AlertManagementPutapiv4projectsidalertmanagementalertsalertiidmetricimagesmetricimageidResponse:
|
|
84
|
+
"""
|
|
85
|
+
Response wrapper for the 'putApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImagesMetricImageId' operation.
|
|
86
|
+
"""
|
|
87
|
+
def __init__(self, response: Response):
|
|
88
|
+
self.response = response
|
|
89
|
+
self.status_code = response.status_code
|
|
90
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
91
|
+
try:
|
|
92
|
+
self.data = response.json()
|
|
93
|
+
except Exception:
|
|
94
|
+
self.data = response.content
|
|
95
|
+
return
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def ok(self) -> bool:
|
|
99
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
100
|
+
return rtnval
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict
|
|
4
|
+
|
|
5
|
+
from requests import Response
|
|
6
|
+
|
|
7
|
+
class ApplicationGetapiv4applicationappearanceResponse:
|
|
8
|
+
"""
|
|
9
|
+
Response wrapper for the 'getApiV4ApplicationAppearance' operation.
|
|
10
|
+
"""
|
|
11
|
+
def __init__(self, response: Response):
|
|
12
|
+
self.response = response
|
|
13
|
+
self.status_code = response.status_code
|
|
14
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
15
|
+
try:
|
|
16
|
+
self.data = response.json()
|
|
17
|
+
except Exception:
|
|
18
|
+
self.data = response.content
|
|
19
|
+
return
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def ok(self) -> bool:
|
|
23
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
24
|
+
return rtnval
|
|
25
|
+
|
|
26
|
+
class ApplicationPutapiv4applicationappearanceResponse:
|
|
27
|
+
"""
|
|
28
|
+
Response wrapper for the 'putApiV4ApplicationAppearance' operation.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(self, response: Response):
|
|
31
|
+
self.response = response
|
|
32
|
+
self.status_code = response.status_code
|
|
33
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
34
|
+
try:
|
|
35
|
+
self.data = response.json()
|
|
36
|
+
except Exception:
|
|
37
|
+
self.data = response.content
|
|
38
|
+
return
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def ok(self) -> bool:
|
|
42
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
43
|
+
return rtnval
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict
|
|
4
|
+
|
|
5
|
+
from requests import Response
|
|
6
|
+
|
|
7
|
+
class ApplicationsDeleteapiv4applicationsidResponse:
|
|
8
|
+
"""
|
|
9
|
+
Response wrapper for the 'deleteApiV4ApplicationsId' operation.
|
|
10
|
+
"""
|
|
11
|
+
def __init__(self, response: Response):
|
|
12
|
+
self.response = response
|
|
13
|
+
self.status_code = response.status_code
|
|
14
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
15
|
+
try:
|
|
16
|
+
self.data = response.json()
|
|
17
|
+
except Exception:
|
|
18
|
+
self.data = response.content
|
|
19
|
+
return
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def ok(self) -> bool:
|
|
23
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
24
|
+
return rtnval
|
|
25
|
+
|
|
26
|
+
class ApplicationsGetapiv4applicationsResponse:
|
|
27
|
+
"""
|
|
28
|
+
Response wrapper for the 'getApiV4Applications' operation.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(self, response: Response):
|
|
31
|
+
self.response = response
|
|
32
|
+
self.status_code = response.status_code
|
|
33
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
34
|
+
try:
|
|
35
|
+
self.data = response.json()
|
|
36
|
+
except Exception:
|
|
37
|
+
self.data = response.content
|
|
38
|
+
return
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def ok(self) -> bool:
|
|
42
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
43
|
+
return rtnval
|
|
44
|
+
|
|
45
|
+
class ApplicationsPostapiv4applicationsResponse:
|
|
46
|
+
"""
|
|
47
|
+
Response wrapper for the 'postApiV4Applications' operation.
|
|
48
|
+
"""
|
|
49
|
+
def __init__(self, response: Response):
|
|
50
|
+
self.response = response
|
|
51
|
+
self.status_code = response.status_code
|
|
52
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
53
|
+
try:
|
|
54
|
+
self.data = response.json()
|
|
55
|
+
except Exception:
|
|
56
|
+
self.data = response.content
|
|
57
|
+
return
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def ok(self) -> bool:
|
|
61
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
62
|
+
return rtnval
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict
|
|
4
|
+
|
|
5
|
+
from requests import Response
|
|
6
|
+
|
|
7
|
+
class AvatarGetapiv4avatarResponse:
|
|
8
|
+
"""
|
|
9
|
+
Response wrapper for the 'getApiV4Avatar' operation.
|
|
10
|
+
"""
|
|
11
|
+
def __init__(self, response: Response):
|
|
12
|
+
self.response = response
|
|
13
|
+
self.status_code = response.status_code
|
|
14
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
15
|
+
try:
|
|
16
|
+
self.data = response.json()
|
|
17
|
+
except Exception:
|
|
18
|
+
self.data = response.content
|
|
19
|
+
return
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def ok(self) -> bool:
|
|
23
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
24
|
+
return rtnval
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict
|
|
4
|
+
|
|
5
|
+
from requests import Response
|
|
6
|
+
|
|
7
|
+
class BadgesDeleteapiv4groupsidbadgesbadgeidResponse:
|
|
8
|
+
"""
|
|
9
|
+
Response wrapper for the 'deleteApiV4GroupsIdBadgesBadgeId' operation.
|
|
10
|
+
"""
|
|
11
|
+
def __init__(self, response: Response):
|
|
12
|
+
self.response = response
|
|
13
|
+
self.status_code = response.status_code
|
|
14
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
15
|
+
try:
|
|
16
|
+
self.data = response.json()
|
|
17
|
+
except Exception:
|
|
18
|
+
self.data = response.content
|
|
19
|
+
return
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def ok(self) -> bool:
|
|
23
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
24
|
+
return rtnval
|
|
25
|
+
|
|
26
|
+
class BadgesDeleteapiv4projectsidbadgesbadgeidResponse:
|
|
27
|
+
"""
|
|
28
|
+
Response wrapper for the 'deleteApiV4ProjectsIdBadgesBadgeId' operation.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(self, response: Response):
|
|
31
|
+
self.response = response
|
|
32
|
+
self.status_code = response.status_code
|
|
33
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
34
|
+
try:
|
|
35
|
+
self.data = response.json()
|
|
36
|
+
except Exception:
|
|
37
|
+
self.data = response.content
|
|
38
|
+
return
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def ok(self) -> bool:
|
|
42
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
43
|
+
return rtnval
|
|
44
|
+
|
|
45
|
+
class BadgesGetapiv4groupsidbadgesResponse:
|
|
46
|
+
"""
|
|
47
|
+
Response wrapper for the 'getApiV4GroupsIdBadges' operation.
|
|
48
|
+
"""
|
|
49
|
+
def __init__(self, response: Response):
|
|
50
|
+
self.response = response
|
|
51
|
+
self.status_code = response.status_code
|
|
52
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
53
|
+
try:
|
|
54
|
+
self.data = response.json()
|
|
55
|
+
except Exception:
|
|
56
|
+
self.data = response.content
|
|
57
|
+
return
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def ok(self) -> bool:
|
|
61
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
62
|
+
return rtnval
|
|
63
|
+
|
|
64
|
+
class BadgesGetapiv4groupsidbadgesbadgeidResponse:
|
|
65
|
+
"""
|
|
66
|
+
Response wrapper for the 'getApiV4GroupsIdBadgesBadgeId' operation.
|
|
67
|
+
"""
|
|
68
|
+
def __init__(self, response: Response):
|
|
69
|
+
self.response = response
|
|
70
|
+
self.status_code = response.status_code
|
|
71
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
72
|
+
try:
|
|
73
|
+
self.data = response.json()
|
|
74
|
+
except Exception:
|
|
75
|
+
self.data = response.content
|
|
76
|
+
return
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def ok(self) -> bool:
|
|
80
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
81
|
+
return rtnval
|
|
82
|
+
|
|
83
|
+
class BadgesGetapiv4groupsidbadgesrenderResponse:
|
|
84
|
+
"""
|
|
85
|
+
Response wrapper for the 'getApiV4GroupsIdBadgesRender' operation.
|
|
86
|
+
"""
|
|
87
|
+
def __init__(self, response: Response):
|
|
88
|
+
self.response = response
|
|
89
|
+
self.status_code = response.status_code
|
|
90
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
91
|
+
try:
|
|
92
|
+
self.data = response.json()
|
|
93
|
+
except Exception:
|
|
94
|
+
self.data = response.content
|
|
95
|
+
return
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def ok(self) -> bool:
|
|
99
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
100
|
+
return rtnval
|
|
101
|
+
|
|
102
|
+
class BadgesGetapiv4projectsidbadgesResponse:
|
|
103
|
+
"""
|
|
104
|
+
Response wrapper for the 'getApiV4ProjectsIdBadges' operation.
|
|
105
|
+
"""
|
|
106
|
+
def __init__(self, response: Response):
|
|
107
|
+
self.response = response
|
|
108
|
+
self.status_code = response.status_code
|
|
109
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
110
|
+
try:
|
|
111
|
+
self.data = response.json()
|
|
112
|
+
except Exception:
|
|
113
|
+
self.data = response.content
|
|
114
|
+
return
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def ok(self) -> bool:
|
|
118
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
119
|
+
return rtnval
|
|
120
|
+
|
|
121
|
+
class BadgesGetapiv4projectsidbadgesbadgeidResponse:
|
|
122
|
+
"""
|
|
123
|
+
Response wrapper for the 'getApiV4ProjectsIdBadgesBadgeId' operation.
|
|
124
|
+
"""
|
|
125
|
+
def __init__(self, response: Response):
|
|
126
|
+
self.response = response
|
|
127
|
+
self.status_code = response.status_code
|
|
128
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
129
|
+
try:
|
|
130
|
+
self.data = response.json()
|
|
131
|
+
except Exception:
|
|
132
|
+
self.data = response.content
|
|
133
|
+
return
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def ok(self) -> bool:
|
|
137
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
138
|
+
return rtnval
|
|
139
|
+
|
|
140
|
+
class BadgesGetapiv4projectsidbadgesrenderResponse:
|
|
141
|
+
"""
|
|
142
|
+
Response wrapper for the 'getApiV4ProjectsIdBadgesRender' operation.
|
|
143
|
+
"""
|
|
144
|
+
def __init__(self, response: Response):
|
|
145
|
+
self.response = response
|
|
146
|
+
self.status_code = response.status_code
|
|
147
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
148
|
+
try:
|
|
149
|
+
self.data = response.json()
|
|
150
|
+
except Exception:
|
|
151
|
+
self.data = response.content
|
|
152
|
+
return
|
|
153
|
+
|
|
154
|
+
@property
|
|
155
|
+
def ok(self) -> bool:
|
|
156
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
157
|
+
return rtnval
|
|
158
|
+
|
|
159
|
+
class BadgesPostapiv4groupsidbadgesResponse:
|
|
160
|
+
"""
|
|
161
|
+
Response wrapper for the 'postApiV4GroupsIdBadges' operation.
|
|
162
|
+
"""
|
|
163
|
+
def __init__(self, response: Response):
|
|
164
|
+
self.response = response
|
|
165
|
+
self.status_code = response.status_code
|
|
166
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
167
|
+
try:
|
|
168
|
+
self.data = response.json()
|
|
169
|
+
except Exception:
|
|
170
|
+
self.data = response.content
|
|
171
|
+
return
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
def ok(self) -> bool:
|
|
175
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
176
|
+
return rtnval
|
|
177
|
+
|
|
178
|
+
class BadgesPostapiv4projectsidbadgesResponse:
|
|
179
|
+
"""
|
|
180
|
+
Response wrapper for the 'postApiV4ProjectsIdBadges' operation.
|
|
181
|
+
"""
|
|
182
|
+
def __init__(self, response: Response):
|
|
183
|
+
self.response = response
|
|
184
|
+
self.status_code = response.status_code
|
|
185
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
186
|
+
try:
|
|
187
|
+
self.data = response.json()
|
|
188
|
+
except Exception:
|
|
189
|
+
self.data = response.content
|
|
190
|
+
return
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
def ok(self) -> bool:
|
|
194
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
195
|
+
return rtnval
|
|
196
|
+
|
|
197
|
+
class BadgesPutapiv4groupsidbadgesbadgeidResponse:
|
|
198
|
+
"""
|
|
199
|
+
Response wrapper for the 'putApiV4GroupsIdBadgesBadgeId' operation.
|
|
200
|
+
"""
|
|
201
|
+
def __init__(self, response: Response):
|
|
202
|
+
self.response = response
|
|
203
|
+
self.status_code = response.status_code
|
|
204
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
205
|
+
try:
|
|
206
|
+
self.data = response.json()
|
|
207
|
+
except Exception:
|
|
208
|
+
self.data = response.content
|
|
209
|
+
return
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
def ok(self) -> bool:
|
|
213
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
214
|
+
return rtnval
|
|
215
|
+
|
|
216
|
+
class BadgesPutapiv4projectsidbadgesbadgeidResponse:
|
|
217
|
+
"""
|
|
218
|
+
Response wrapper for the 'putApiV4ProjectsIdBadgesBadgeId' operation.
|
|
219
|
+
"""
|
|
220
|
+
def __init__(self, response: Response):
|
|
221
|
+
self.response = response
|
|
222
|
+
self.status_code = response.status_code
|
|
223
|
+
self.headers: Dict[str, Any] = dict(response.headers)
|
|
224
|
+
try:
|
|
225
|
+
self.data = response.json()
|
|
226
|
+
except Exception:
|
|
227
|
+
self.data = response.content
|
|
228
|
+
return
|
|
229
|
+
|
|
230
|
+
@property
|
|
231
|
+
def ok(self) -> bool:
|
|
232
|
+
rtnval = True if 200 <= self.status_code < 300 else False
|
|
233
|
+
return rtnval
|