1- # testit_api_client .AttachmentsApi
1+ # testgear_api_client .AttachmentsApi
22
33All URIs are relative to * http://localhost *
44
@@ -21,13 +21,13 @@ Delete attachment file
2121
2222``` python
2323import time
24- import testit_api_client
25- from testit_api_client .api import attachments_api
26- from testit_api_client .model.problem_details import ProblemDetails
24+ import testgear_api_client
25+ from testgear_api_client .api import attachments_api
26+ from testgear_api_client .model.problem_details import ProblemDetails
2727from pprint import pprint
2828# Defining the host is optional and defaults to http://localhost
2929# See configuration.py for a list of all supported configuration parameters.
30- configuration = testit_api_client .Configuration(
30+ configuration = testgear_api_client .Configuration(
3131 host = " http://localhost"
3232)
3333
@@ -43,7 +43,7 @@ configuration.api_key['Bearer or PrivateToken'] = 'YOUR_API_KEY'
4343# configuration.api_key_prefix['Bearer or PrivateToken'] = 'Bearer'
4444
4545# Enter a context with an instance of the API client
46- with testit_api_client .ApiClient(configuration) as api_client:
46+ with testgear_api_client .ApiClient(configuration) as api_client:
4747 # Create an instance of the API class
4848 api_instance = attachments_api.AttachmentsApi(api_client)
4949 id = " id_example" # str |
@@ -52,7 +52,7 @@ with testit_api_client.ApiClient(configuration) as api_client:
5252 try :
5353 # Delete attachment file
5454 api_instance.api_v2_attachments_id_delete(id )
55- except testit_api_client .ApiException as e:
55+ except testgear_api_client .ApiException as e:
5656 print (" Exception when calling AttachmentsApi->api_v2_attachments_id_delete: %s \n " % e)
5757```
5858
@@ -97,13 +97,13 @@ Download attachment file
9797
9898``` python
9999import time
100- import testit_api_client
101- from testit_api_client .api import attachments_api
102- from testit_api_client .model.image_resize_type import ImageResizeType
100+ import testgear_api_client
101+ from testgear_api_client .api import attachments_api
102+ from testgear_api_client .model.image_resize_type import ImageResizeType
103103from pprint import pprint
104104# Defining the host is optional and defaults to http://localhost
105105# See configuration.py for a list of all supported configuration parameters.
106- configuration = testit_api_client .Configuration(
106+ configuration = testgear_api_client .Configuration(
107107 host = " http://localhost"
108108)
109109
@@ -119,7 +119,7 @@ configuration.api_key['Bearer or PrivateToken'] = 'YOUR_API_KEY'
119119# configuration.api_key_prefix['Bearer or PrivateToken'] = 'Bearer'
120120
121121# Enter a context with an instance of the API client
122- with testit_api_client .ApiClient(configuration) as api_client:
122+ with testgear_api_client .ApiClient(configuration) as api_client:
123123 # Create an instance of the API class
124124 api_instance = attachments_api.AttachmentsApi(api_client)
125125 id = " id_example" # str |
@@ -134,7 +134,7 @@ with testit_api_client.ApiClient(configuration) as api_client:
134134 # Download attachment file
135135 api_response = api_instance.api_v2_attachments_id_get(id )
136136 pprint(api_response)
137- except testit_api_client .ApiException as e:
137+ except testgear_api_client .ApiException as e:
138138 print (" Exception when calling AttachmentsApi->api_v2_attachments_id_get: %s \n " % e)
139139
140140 # example passing only required values which don't have defaults set
@@ -143,7 +143,7 @@ with testit_api_client.ApiClient(configuration) as api_client:
143143 # Download attachment file
144144 api_response = api_instance.api_v2_attachments_id_get(id , width = width, height = height, resize_type = resize_type, background_color = background_color, preview = preview)
145145 pprint(api_response)
146- except testit_api_client .ApiException as e:
146+ except testgear_api_client .ApiException as e:
147147 print (" Exception when calling AttachmentsApi->api_v2_attachments_id_get: %s \n " % e)
148148```
149149
@@ -192,12 +192,12 @@ Get size of attachments storage in bytes
192192
193193``` python
194194import time
195- import testit_api_client
196- from testit_api_client .api import attachments_api
195+ import testgear_api_client
196+ from testgear_api_client .api import attachments_api
197197from pprint import pprint
198198# Defining the host is optional and defaults to http://localhost
199199# See configuration.py for a list of all supported configuration parameters.
200- configuration = testit_api_client .Configuration(
200+ configuration = testgear_api_client .Configuration(
201201 host = " http://localhost"
202202)
203203
@@ -213,7 +213,7 @@ configuration.api_key['Bearer or PrivateToken'] = 'YOUR_API_KEY'
213213# configuration.api_key_prefix['Bearer or PrivateToken'] = 'Bearer'
214214
215215# Enter a context with an instance of the API client
216- with testit_api_client .ApiClient(configuration) as api_client:
216+ with testgear_api_client .ApiClient(configuration) as api_client:
217217 # Create an instance of the API class
218218 api_instance = attachments_api.AttachmentsApi(api_client)
219219
@@ -222,7 +222,7 @@ with testit_api_client.ApiClient(configuration) as api_client:
222222 # Get size of attachments storage in bytes
223223 api_response = api_instance.api_v2_attachments_occupied_file_storage_size_get()
224224 pprint(api_response)
225- except testit_api_client .ApiException as e:
225+ except testgear_api_client .ApiException as e:
226226 print (" Exception when calling AttachmentsApi->api_v2_attachments_occupied_file_storage_size_get: %s \n " % e)
227227```
228228
@@ -257,23 +257,23 @@ This endpoint does not need any parameter.
257257
258258Upload new attachment file
259259
260- File size is restricted to 50 MB (52 428 800 bytes)
260+ File size is restricted to 1 GB (1 073 741 824 bytes)
261261
262262### Example
263263
264264* Api Key Authentication (Bearer or PrivateToken):
265265
266266``` python
267267import time
268- import testit_api_client
269- from testit_api_client .api import attachments_api
270- from testit_api_client .model.problem_details import ProblemDetails
271- from testit_api_client .model.attachment_model import AttachmentModel
272- from testit_api_client .model.validation_problem_details import ValidationProblemDetails
268+ import testgear_api_client
269+ from testgear_api_client .api import attachments_api
270+ from testgear_api_client .model.problem_details import ProblemDetails
271+ from testgear_api_client .model.attachment_model import AttachmentModel
272+ from testgear_api_client .model.validation_problem_details import ValidationProblemDetails
273273from pprint import pprint
274274# Defining the host is optional and defaults to http://localhost
275275# See configuration.py for a list of all supported configuration parameters.
276- configuration = testit_api_client .Configuration(
276+ configuration = testgear_api_client .Configuration(
277277 host = " http://localhost"
278278)
279279
@@ -289,7 +289,7 @@ configuration.api_key['Bearer or PrivateToken'] = 'YOUR_API_KEY'
289289# configuration.api_key_prefix['Bearer or PrivateToken'] = 'Bearer'
290290
291291# Enter a context with an instance of the API client
292- with testit_api_client .ApiClient(configuration) as api_client:
292+ with testgear_api_client .ApiClient(configuration) as api_client:
293293 # Create an instance of the API class
294294 api_instance = attachments_api.AttachmentsApi(api_client)
295295 file = open (' /path/to/file' , ' rb' ) # file_type | (optional)
@@ -300,7 +300,7 @@ with testit_api_client.ApiClient(configuration) as api_client:
300300 # Upload new attachment file
301301 api_response = api_instance.api_v2_attachments_post(file = file )
302302 pprint(api_response)
303- except testit_api_client .ApiException as e:
303+ except testgear_api_client .ApiException as e:
304304 print (" Exception when calling AttachmentsApi->api_v2_attachments_post: %s \n " % e)
305305```
306306
0 commit comments