perceptic-core-client 0.7.6__py3-none-any.whl → 0.8.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.

Potentially problematic release.


This version of perceptic-core-client might be problematic. Click here for more details.

@@ -0,0 +1,1015 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ perceptic-core-server API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.0.1-SNAPSHOT
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from perceptic_core_client.models.create_tag_request import CreateTagRequest
20
+ from perceptic_core_client.models.create_tag_response import CreateTagResponse
21
+
22
+ from perceptic_core_client.api_client import ApiClient, RequestSerialized
23
+ from perceptic_core_client.api_response import ApiResponse
24
+ from perceptic_core_client.rest import RESTResponseType
25
+
26
+
27
+ class TagResourceApi:
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None) -> None:
35
+ if api_client is None:
36
+ api_client = ApiClient.get_default()
37
+ self.api_client = api_client
38
+
39
+
40
+ @validate_call
41
+ def create_tag(
42
+ self,
43
+ create_tag_request: CreateTagRequest,
44
+ _request_timeout: Union[
45
+ None,
46
+ Annotated[StrictFloat, Field(gt=0)],
47
+ Tuple[
48
+ Annotated[StrictFloat, Field(gt=0)],
49
+ Annotated[StrictFloat, Field(gt=0)]
50
+ ]
51
+ ] = None,
52
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
53
+ _content_type: Optional[StrictStr] = None,
54
+ _headers: Optional[Dict[StrictStr, Any]] = None,
55
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
56
+ ) -> CreateTagResponse:
57
+ """Create Tag
58
+
59
+
60
+ :param create_tag_request: (required)
61
+ :type create_tag_request: CreateTagRequest
62
+ :param _request_timeout: timeout setting for this request. If one
63
+ number provided, it will be total request
64
+ timeout. It can also be a pair (tuple) of
65
+ (connection, read) timeouts.
66
+ :type _request_timeout: int, tuple(int, int), optional
67
+ :param _request_auth: set to override the auth_settings for an a single
68
+ request; this effectively ignores the
69
+ authentication in the spec for a single request.
70
+ :type _request_auth: dict, optional
71
+ :param _content_type: force content-type for the request.
72
+ :type _content_type: str, Optional
73
+ :param _headers: set to override the headers for a single
74
+ request; this effectively ignores the headers
75
+ in the spec for a single request.
76
+ :type _headers: dict, optional
77
+ :param _host_index: set to override the host_index for a single
78
+ request; this effectively ignores the host_index
79
+ in the spec for a single request.
80
+ :type _host_index: int, optional
81
+ :return: Returns the result object.
82
+ """ # noqa: E501
83
+
84
+ _param = self._create_tag_serialize(
85
+ create_tag_request=create_tag_request,
86
+ _request_auth=_request_auth,
87
+ _content_type=_content_type,
88
+ _headers=_headers,
89
+ _host_index=_host_index
90
+ )
91
+
92
+ _response_types_map: Dict[str, Optional[str]] = {
93
+ '200': "CreateTagResponse",
94
+ '400': None,
95
+ }
96
+ response_data = self.api_client.call_api(
97
+ *_param,
98
+ _request_timeout=_request_timeout
99
+ )
100
+ response_data.read()
101
+ return self.api_client.response_deserialize(
102
+ response_data=response_data,
103
+ response_types_map=_response_types_map,
104
+ ).data
105
+
106
+
107
+ @validate_call
108
+ def create_tag_with_http_info(
109
+ self,
110
+ create_tag_request: CreateTagRequest,
111
+ _request_timeout: Union[
112
+ None,
113
+ Annotated[StrictFloat, Field(gt=0)],
114
+ Tuple[
115
+ Annotated[StrictFloat, Field(gt=0)],
116
+ Annotated[StrictFloat, Field(gt=0)]
117
+ ]
118
+ ] = None,
119
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
120
+ _content_type: Optional[StrictStr] = None,
121
+ _headers: Optional[Dict[StrictStr, Any]] = None,
122
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
123
+ ) -> ApiResponse[CreateTagResponse]:
124
+ """Create Tag
125
+
126
+
127
+ :param create_tag_request: (required)
128
+ :type create_tag_request: CreateTagRequest
129
+ :param _request_timeout: timeout setting for this request. If one
130
+ number provided, it will be total request
131
+ timeout. It can also be a pair (tuple) of
132
+ (connection, read) timeouts.
133
+ :type _request_timeout: int, tuple(int, int), optional
134
+ :param _request_auth: set to override the auth_settings for an a single
135
+ request; this effectively ignores the
136
+ authentication in the spec for a single request.
137
+ :type _request_auth: dict, optional
138
+ :param _content_type: force content-type for the request.
139
+ :type _content_type: str, Optional
140
+ :param _headers: set to override the headers for a single
141
+ request; this effectively ignores the headers
142
+ in the spec for a single request.
143
+ :type _headers: dict, optional
144
+ :param _host_index: set to override the host_index for a single
145
+ request; this effectively ignores the host_index
146
+ in the spec for a single request.
147
+ :type _host_index: int, optional
148
+ :return: Returns the result object.
149
+ """ # noqa: E501
150
+
151
+ _param = self._create_tag_serialize(
152
+ create_tag_request=create_tag_request,
153
+ _request_auth=_request_auth,
154
+ _content_type=_content_type,
155
+ _headers=_headers,
156
+ _host_index=_host_index
157
+ )
158
+
159
+ _response_types_map: Dict[str, Optional[str]] = {
160
+ '200': "CreateTagResponse",
161
+ '400': None,
162
+ }
163
+ response_data = self.api_client.call_api(
164
+ *_param,
165
+ _request_timeout=_request_timeout
166
+ )
167
+ response_data.read()
168
+ return self.api_client.response_deserialize(
169
+ response_data=response_data,
170
+ response_types_map=_response_types_map,
171
+ )
172
+
173
+
174
+ @validate_call
175
+ def create_tag_without_preload_content(
176
+ self,
177
+ create_tag_request: CreateTagRequest,
178
+ _request_timeout: Union[
179
+ None,
180
+ Annotated[StrictFloat, Field(gt=0)],
181
+ Tuple[
182
+ Annotated[StrictFloat, Field(gt=0)],
183
+ Annotated[StrictFloat, Field(gt=0)]
184
+ ]
185
+ ] = None,
186
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
187
+ _content_type: Optional[StrictStr] = None,
188
+ _headers: Optional[Dict[StrictStr, Any]] = None,
189
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
190
+ ) -> RESTResponseType:
191
+ """Create Tag
192
+
193
+
194
+ :param create_tag_request: (required)
195
+ :type create_tag_request: CreateTagRequest
196
+ :param _request_timeout: timeout setting for this request. If one
197
+ number provided, it will be total request
198
+ timeout. It can also be a pair (tuple) of
199
+ (connection, read) timeouts.
200
+ :type _request_timeout: int, tuple(int, int), optional
201
+ :param _request_auth: set to override the auth_settings for an a single
202
+ request; this effectively ignores the
203
+ authentication in the spec for a single request.
204
+ :type _request_auth: dict, optional
205
+ :param _content_type: force content-type for the request.
206
+ :type _content_type: str, Optional
207
+ :param _headers: set to override the headers for a single
208
+ request; this effectively ignores the headers
209
+ in the spec for a single request.
210
+ :type _headers: dict, optional
211
+ :param _host_index: set to override the host_index for a single
212
+ request; this effectively ignores the host_index
213
+ in the spec for a single request.
214
+ :type _host_index: int, optional
215
+ :return: Returns the result object.
216
+ """ # noqa: E501
217
+
218
+ _param = self._create_tag_serialize(
219
+ create_tag_request=create_tag_request,
220
+ _request_auth=_request_auth,
221
+ _content_type=_content_type,
222
+ _headers=_headers,
223
+ _host_index=_host_index
224
+ )
225
+
226
+ _response_types_map: Dict[str, Optional[str]] = {
227
+ '200': "CreateTagResponse",
228
+ '400': None,
229
+ }
230
+ response_data = self.api_client.call_api(
231
+ *_param,
232
+ _request_timeout=_request_timeout
233
+ )
234
+ return response_data.response
235
+
236
+
237
+ def _create_tag_serialize(
238
+ self,
239
+ create_tag_request,
240
+ _request_auth,
241
+ _content_type,
242
+ _headers,
243
+ _host_index,
244
+ ) -> RequestSerialized:
245
+
246
+ _host = None
247
+
248
+ _collection_formats: Dict[str, str] = {
249
+ }
250
+
251
+ _path_params: Dict[str, str] = {}
252
+ _query_params: List[Tuple[str, str]] = []
253
+ _header_params: Dict[str, Optional[str]] = _headers or {}
254
+ _form_params: List[Tuple[str, str]] = []
255
+ _files: Dict[
256
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
257
+ ] = {}
258
+ _body_params: Optional[bytes] = None
259
+
260
+ # process the path parameters
261
+ # process the query parameters
262
+ # process the header parameters
263
+ # process the form parameters
264
+ # process the body parameter
265
+ if create_tag_request is not None:
266
+ _body_params = create_tag_request
267
+
268
+
269
+ # set the HTTP header `Accept`
270
+ if 'Accept' not in _header_params:
271
+ _header_params['Accept'] = self.api_client.select_header_accept(
272
+ [
273
+ 'application/json'
274
+ ]
275
+ )
276
+
277
+ # set the HTTP header `Content-Type`
278
+ if _content_type:
279
+ _header_params['Content-Type'] = _content_type
280
+ else:
281
+ _default_content_type = (
282
+ self.api_client.select_header_content_type(
283
+ [
284
+ 'application/json'
285
+ ]
286
+ )
287
+ )
288
+ if _default_content_type is not None:
289
+ _header_params['Content-Type'] = _default_content_type
290
+
291
+ # authentication setting
292
+ _auth_settings: List[str] = [
293
+ ]
294
+
295
+ return self.api_client.param_serialize(
296
+ method='POST',
297
+ resource_path='/api/v1/tags/create',
298
+ path_params=_path_params,
299
+ query_params=_query_params,
300
+ header_params=_header_params,
301
+ body=_body_params,
302
+ post_params=_form_params,
303
+ files=_files,
304
+ auth_settings=_auth_settings,
305
+ collection_formats=_collection_formats,
306
+ _host=_host,
307
+ _request_auth=_request_auth
308
+ )
309
+
310
+
311
+
312
+
313
+ @validate_call
314
+ def list_tags(
315
+ self,
316
+ _request_timeout: Union[
317
+ None,
318
+ Annotated[StrictFloat, Field(gt=0)],
319
+ Tuple[
320
+ Annotated[StrictFloat, Field(gt=0)],
321
+ Annotated[StrictFloat, Field(gt=0)]
322
+ ]
323
+ ] = None,
324
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
325
+ _content_type: Optional[StrictStr] = None,
326
+ _headers: Optional[Dict[StrictStr, Any]] = None,
327
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
328
+ ) -> None:
329
+ """List Tags
330
+
331
+
332
+ :param _request_timeout: timeout setting for this request. If one
333
+ number provided, it will be total request
334
+ timeout. It can also be a pair (tuple) of
335
+ (connection, read) timeouts.
336
+ :type _request_timeout: int, tuple(int, int), optional
337
+ :param _request_auth: set to override the auth_settings for an a single
338
+ request; this effectively ignores the
339
+ authentication in the spec for a single request.
340
+ :type _request_auth: dict, optional
341
+ :param _content_type: force content-type for the request.
342
+ :type _content_type: str, Optional
343
+ :param _headers: set to override the headers for a single
344
+ request; this effectively ignores the headers
345
+ in the spec for a single request.
346
+ :type _headers: dict, optional
347
+ :param _host_index: set to override the host_index for a single
348
+ request; this effectively ignores the host_index
349
+ in the spec for a single request.
350
+ :type _host_index: int, optional
351
+ :return: Returns the result object.
352
+ """ # noqa: E501
353
+
354
+ _param = self._list_tags_serialize(
355
+ _request_auth=_request_auth,
356
+ _content_type=_content_type,
357
+ _headers=_headers,
358
+ _host_index=_host_index
359
+ )
360
+
361
+ _response_types_map: Dict[str, Optional[str]] = {
362
+ '200': None,
363
+ }
364
+ response_data = self.api_client.call_api(
365
+ *_param,
366
+ _request_timeout=_request_timeout
367
+ )
368
+ response_data.read()
369
+ return self.api_client.response_deserialize(
370
+ response_data=response_data,
371
+ response_types_map=_response_types_map,
372
+ ).data
373
+
374
+
375
+ @validate_call
376
+ def list_tags_with_http_info(
377
+ self,
378
+ _request_timeout: Union[
379
+ None,
380
+ Annotated[StrictFloat, Field(gt=0)],
381
+ Tuple[
382
+ Annotated[StrictFloat, Field(gt=0)],
383
+ Annotated[StrictFloat, Field(gt=0)]
384
+ ]
385
+ ] = None,
386
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
387
+ _content_type: Optional[StrictStr] = None,
388
+ _headers: Optional[Dict[StrictStr, Any]] = None,
389
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
390
+ ) -> ApiResponse[None]:
391
+ """List Tags
392
+
393
+
394
+ :param _request_timeout: timeout setting for this request. If one
395
+ number provided, it will be total request
396
+ timeout. It can also be a pair (tuple) of
397
+ (connection, read) timeouts.
398
+ :type _request_timeout: int, tuple(int, int), optional
399
+ :param _request_auth: set to override the auth_settings for an a single
400
+ request; this effectively ignores the
401
+ authentication in the spec for a single request.
402
+ :type _request_auth: dict, optional
403
+ :param _content_type: force content-type for the request.
404
+ :type _content_type: str, Optional
405
+ :param _headers: set to override the headers for a single
406
+ request; this effectively ignores the headers
407
+ in the spec for a single request.
408
+ :type _headers: dict, optional
409
+ :param _host_index: set to override the host_index for a single
410
+ request; this effectively ignores the host_index
411
+ in the spec for a single request.
412
+ :type _host_index: int, optional
413
+ :return: Returns the result object.
414
+ """ # noqa: E501
415
+
416
+ _param = self._list_tags_serialize(
417
+ _request_auth=_request_auth,
418
+ _content_type=_content_type,
419
+ _headers=_headers,
420
+ _host_index=_host_index
421
+ )
422
+
423
+ _response_types_map: Dict[str, Optional[str]] = {
424
+ '200': None,
425
+ }
426
+ response_data = self.api_client.call_api(
427
+ *_param,
428
+ _request_timeout=_request_timeout
429
+ )
430
+ response_data.read()
431
+ return self.api_client.response_deserialize(
432
+ response_data=response_data,
433
+ response_types_map=_response_types_map,
434
+ )
435
+
436
+
437
+ @validate_call
438
+ def list_tags_without_preload_content(
439
+ self,
440
+ _request_timeout: Union[
441
+ None,
442
+ Annotated[StrictFloat, Field(gt=0)],
443
+ Tuple[
444
+ Annotated[StrictFloat, Field(gt=0)],
445
+ Annotated[StrictFloat, Field(gt=0)]
446
+ ]
447
+ ] = None,
448
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
449
+ _content_type: Optional[StrictStr] = None,
450
+ _headers: Optional[Dict[StrictStr, Any]] = None,
451
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
452
+ ) -> RESTResponseType:
453
+ """List Tags
454
+
455
+
456
+ :param _request_timeout: timeout setting for this request. If one
457
+ number provided, it will be total request
458
+ timeout. It can also be a pair (tuple) of
459
+ (connection, read) timeouts.
460
+ :type _request_timeout: int, tuple(int, int), optional
461
+ :param _request_auth: set to override the auth_settings for an a single
462
+ request; this effectively ignores the
463
+ authentication in the spec for a single request.
464
+ :type _request_auth: dict, optional
465
+ :param _content_type: force content-type for the request.
466
+ :type _content_type: str, Optional
467
+ :param _headers: set to override the headers for a single
468
+ request; this effectively ignores the headers
469
+ in the spec for a single request.
470
+ :type _headers: dict, optional
471
+ :param _host_index: set to override the host_index for a single
472
+ request; this effectively ignores the host_index
473
+ in the spec for a single request.
474
+ :type _host_index: int, optional
475
+ :return: Returns the result object.
476
+ """ # noqa: E501
477
+
478
+ _param = self._list_tags_serialize(
479
+ _request_auth=_request_auth,
480
+ _content_type=_content_type,
481
+ _headers=_headers,
482
+ _host_index=_host_index
483
+ )
484
+
485
+ _response_types_map: Dict[str, Optional[str]] = {
486
+ '200': None,
487
+ }
488
+ response_data = self.api_client.call_api(
489
+ *_param,
490
+ _request_timeout=_request_timeout
491
+ )
492
+ return response_data.response
493
+
494
+
495
+ def _list_tags_serialize(
496
+ self,
497
+ _request_auth,
498
+ _content_type,
499
+ _headers,
500
+ _host_index,
501
+ ) -> RequestSerialized:
502
+
503
+ _host = None
504
+
505
+ _collection_formats: Dict[str, str] = {
506
+ }
507
+
508
+ _path_params: Dict[str, str] = {}
509
+ _query_params: List[Tuple[str, str]] = []
510
+ _header_params: Dict[str, Optional[str]] = _headers or {}
511
+ _form_params: List[Tuple[str, str]] = []
512
+ _files: Dict[
513
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
514
+ ] = {}
515
+ _body_params: Optional[bytes] = None
516
+
517
+ # process the path parameters
518
+ # process the query parameters
519
+ # process the header parameters
520
+ # process the form parameters
521
+ # process the body parameter
522
+
523
+
524
+
525
+
526
+ # authentication setting
527
+ _auth_settings: List[str] = [
528
+ ]
529
+
530
+ return self.api_client.param_serialize(
531
+ method='GET',
532
+ resource_path='/api/v1/tags',
533
+ path_params=_path_params,
534
+ query_params=_query_params,
535
+ header_params=_header_params,
536
+ body=_body_params,
537
+ post_params=_form_params,
538
+ files=_files,
539
+ auth_settings=_auth_settings,
540
+ collection_formats=_collection_formats,
541
+ _host=_host,
542
+ _request_auth=_request_auth
543
+ )
544
+
545
+
546
+
547
+
548
+ @validate_call
549
+ def remove_tag(
550
+ self,
551
+ _request_timeout: Union[
552
+ None,
553
+ Annotated[StrictFloat, Field(gt=0)],
554
+ Tuple[
555
+ Annotated[StrictFloat, Field(gt=0)],
556
+ Annotated[StrictFloat, Field(gt=0)]
557
+ ]
558
+ ] = None,
559
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
560
+ _content_type: Optional[StrictStr] = None,
561
+ _headers: Optional[Dict[StrictStr, Any]] = None,
562
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
563
+ ) -> None:
564
+ """Remove Tag
565
+
566
+
567
+ :param _request_timeout: timeout setting for this request. If one
568
+ number provided, it will be total request
569
+ timeout. It can also be a pair (tuple) of
570
+ (connection, read) timeouts.
571
+ :type _request_timeout: int, tuple(int, int), optional
572
+ :param _request_auth: set to override the auth_settings for an a single
573
+ request; this effectively ignores the
574
+ authentication in the spec for a single request.
575
+ :type _request_auth: dict, optional
576
+ :param _content_type: force content-type for the request.
577
+ :type _content_type: str, Optional
578
+ :param _headers: set to override the headers for a single
579
+ request; this effectively ignores the headers
580
+ in the spec for a single request.
581
+ :type _headers: dict, optional
582
+ :param _host_index: set to override the host_index for a single
583
+ request; this effectively ignores the host_index
584
+ in the spec for a single request.
585
+ :type _host_index: int, optional
586
+ :return: Returns the result object.
587
+ """ # noqa: E501
588
+
589
+ _param = self._remove_tag_serialize(
590
+ _request_auth=_request_auth,
591
+ _content_type=_content_type,
592
+ _headers=_headers,
593
+ _host_index=_host_index
594
+ )
595
+
596
+ _response_types_map: Dict[str, Optional[str]] = {
597
+ '200': None,
598
+ }
599
+ response_data = self.api_client.call_api(
600
+ *_param,
601
+ _request_timeout=_request_timeout
602
+ )
603
+ response_data.read()
604
+ return self.api_client.response_deserialize(
605
+ response_data=response_data,
606
+ response_types_map=_response_types_map,
607
+ ).data
608
+
609
+
610
+ @validate_call
611
+ def remove_tag_with_http_info(
612
+ self,
613
+ _request_timeout: Union[
614
+ None,
615
+ Annotated[StrictFloat, Field(gt=0)],
616
+ Tuple[
617
+ Annotated[StrictFloat, Field(gt=0)],
618
+ Annotated[StrictFloat, Field(gt=0)]
619
+ ]
620
+ ] = None,
621
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
622
+ _content_type: Optional[StrictStr] = None,
623
+ _headers: Optional[Dict[StrictStr, Any]] = None,
624
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
625
+ ) -> ApiResponse[None]:
626
+ """Remove Tag
627
+
628
+
629
+ :param _request_timeout: timeout setting for this request. If one
630
+ number provided, it will be total request
631
+ timeout. It can also be a pair (tuple) of
632
+ (connection, read) timeouts.
633
+ :type _request_timeout: int, tuple(int, int), optional
634
+ :param _request_auth: set to override the auth_settings for an a single
635
+ request; this effectively ignores the
636
+ authentication in the spec for a single request.
637
+ :type _request_auth: dict, optional
638
+ :param _content_type: force content-type for the request.
639
+ :type _content_type: str, Optional
640
+ :param _headers: set to override the headers for a single
641
+ request; this effectively ignores the headers
642
+ in the spec for a single request.
643
+ :type _headers: dict, optional
644
+ :param _host_index: set to override the host_index for a single
645
+ request; this effectively ignores the host_index
646
+ in the spec for a single request.
647
+ :type _host_index: int, optional
648
+ :return: Returns the result object.
649
+ """ # noqa: E501
650
+
651
+ _param = self._remove_tag_serialize(
652
+ _request_auth=_request_auth,
653
+ _content_type=_content_type,
654
+ _headers=_headers,
655
+ _host_index=_host_index
656
+ )
657
+
658
+ _response_types_map: Dict[str, Optional[str]] = {
659
+ '200': None,
660
+ }
661
+ response_data = self.api_client.call_api(
662
+ *_param,
663
+ _request_timeout=_request_timeout
664
+ )
665
+ response_data.read()
666
+ return self.api_client.response_deserialize(
667
+ response_data=response_data,
668
+ response_types_map=_response_types_map,
669
+ )
670
+
671
+
672
+ @validate_call
673
+ def remove_tag_without_preload_content(
674
+ self,
675
+ _request_timeout: Union[
676
+ None,
677
+ Annotated[StrictFloat, Field(gt=0)],
678
+ Tuple[
679
+ Annotated[StrictFloat, Field(gt=0)],
680
+ Annotated[StrictFloat, Field(gt=0)]
681
+ ]
682
+ ] = None,
683
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
684
+ _content_type: Optional[StrictStr] = None,
685
+ _headers: Optional[Dict[StrictStr, Any]] = None,
686
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
687
+ ) -> RESTResponseType:
688
+ """Remove Tag
689
+
690
+
691
+ :param _request_timeout: timeout setting for this request. If one
692
+ number provided, it will be total request
693
+ timeout. It can also be a pair (tuple) of
694
+ (connection, read) timeouts.
695
+ :type _request_timeout: int, tuple(int, int), optional
696
+ :param _request_auth: set to override the auth_settings for an a single
697
+ request; this effectively ignores the
698
+ authentication in the spec for a single request.
699
+ :type _request_auth: dict, optional
700
+ :param _content_type: force content-type for the request.
701
+ :type _content_type: str, Optional
702
+ :param _headers: set to override the headers for a single
703
+ request; this effectively ignores the headers
704
+ in the spec for a single request.
705
+ :type _headers: dict, optional
706
+ :param _host_index: set to override the host_index for a single
707
+ request; this effectively ignores the host_index
708
+ in the spec for a single request.
709
+ :type _host_index: int, optional
710
+ :return: Returns the result object.
711
+ """ # noqa: E501
712
+
713
+ _param = self._remove_tag_serialize(
714
+ _request_auth=_request_auth,
715
+ _content_type=_content_type,
716
+ _headers=_headers,
717
+ _host_index=_host_index
718
+ )
719
+
720
+ _response_types_map: Dict[str, Optional[str]] = {
721
+ '200': None,
722
+ }
723
+ response_data = self.api_client.call_api(
724
+ *_param,
725
+ _request_timeout=_request_timeout
726
+ )
727
+ return response_data.response
728
+
729
+
730
+ def _remove_tag_serialize(
731
+ self,
732
+ _request_auth,
733
+ _content_type,
734
+ _headers,
735
+ _host_index,
736
+ ) -> RequestSerialized:
737
+
738
+ _host = None
739
+
740
+ _collection_formats: Dict[str, str] = {
741
+ }
742
+
743
+ _path_params: Dict[str, str] = {}
744
+ _query_params: List[Tuple[str, str]] = []
745
+ _header_params: Dict[str, Optional[str]] = _headers or {}
746
+ _form_params: List[Tuple[str, str]] = []
747
+ _files: Dict[
748
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
749
+ ] = {}
750
+ _body_params: Optional[bytes] = None
751
+
752
+ # process the path parameters
753
+ # process the query parameters
754
+ # process the header parameters
755
+ # process the form parameters
756
+ # process the body parameter
757
+
758
+
759
+
760
+
761
+ # authentication setting
762
+ _auth_settings: List[str] = [
763
+ ]
764
+
765
+ return self.api_client.param_serialize(
766
+ method='DELETE',
767
+ resource_path='/api/v1/tags/remove',
768
+ path_params=_path_params,
769
+ query_params=_query_params,
770
+ header_params=_header_params,
771
+ body=_body_params,
772
+ post_params=_form_params,
773
+ files=_files,
774
+ auth_settings=_auth_settings,
775
+ collection_formats=_collection_formats,
776
+ _host=_host,
777
+ _request_auth=_request_auth
778
+ )
779
+
780
+
781
+
782
+
783
+ @validate_call
784
+ def update_tag(
785
+ self,
786
+ _request_timeout: Union[
787
+ None,
788
+ Annotated[StrictFloat, Field(gt=0)],
789
+ Tuple[
790
+ Annotated[StrictFloat, Field(gt=0)],
791
+ Annotated[StrictFloat, Field(gt=0)]
792
+ ]
793
+ ] = None,
794
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
795
+ _content_type: Optional[StrictStr] = None,
796
+ _headers: Optional[Dict[StrictStr, Any]] = None,
797
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
798
+ ) -> None:
799
+ """Update Tag
800
+
801
+
802
+ :param _request_timeout: timeout setting for this request. If one
803
+ number provided, it will be total request
804
+ timeout. It can also be a pair (tuple) of
805
+ (connection, read) timeouts.
806
+ :type _request_timeout: int, tuple(int, int), optional
807
+ :param _request_auth: set to override the auth_settings for an a single
808
+ request; this effectively ignores the
809
+ authentication in the spec for a single request.
810
+ :type _request_auth: dict, optional
811
+ :param _content_type: force content-type for the request.
812
+ :type _content_type: str, Optional
813
+ :param _headers: set to override the headers for a single
814
+ request; this effectively ignores the headers
815
+ in the spec for a single request.
816
+ :type _headers: dict, optional
817
+ :param _host_index: set to override the host_index for a single
818
+ request; this effectively ignores the host_index
819
+ in the spec for a single request.
820
+ :type _host_index: int, optional
821
+ :return: Returns the result object.
822
+ """ # noqa: E501
823
+
824
+ _param = self._update_tag_serialize(
825
+ _request_auth=_request_auth,
826
+ _content_type=_content_type,
827
+ _headers=_headers,
828
+ _host_index=_host_index
829
+ )
830
+
831
+ _response_types_map: Dict[str, Optional[str]] = {
832
+ '200': None,
833
+ }
834
+ response_data = self.api_client.call_api(
835
+ *_param,
836
+ _request_timeout=_request_timeout
837
+ )
838
+ response_data.read()
839
+ return self.api_client.response_deserialize(
840
+ response_data=response_data,
841
+ response_types_map=_response_types_map,
842
+ ).data
843
+
844
+
845
+ @validate_call
846
+ def update_tag_with_http_info(
847
+ self,
848
+ _request_timeout: Union[
849
+ None,
850
+ Annotated[StrictFloat, Field(gt=0)],
851
+ Tuple[
852
+ Annotated[StrictFloat, Field(gt=0)],
853
+ Annotated[StrictFloat, Field(gt=0)]
854
+ ]
855
+ ] = None,
856
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
857
+ _content_type: Optional[StrictStr] = None,
858
+ _headers: Optional[Dict[StrictStr, Any]] = None,
859
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
860
+ ) -> ApiResponse[None]:
861
+ """Update Tag
862
+
863
+
864
+ :param _request_timeout: timeout setting for this request. If one
865
+ number provided, it will be total request
866
+ timeout. It can also be a pair (tuple) of
867
+ (connection, read) timeouts.
868
+ :type _request_timeout: int, tuple(int, int), optional
869
+ :param _request_auth: set to override the auth_settings for an a single
870
+ request; this effectively ignores the
871
+ authentication in the spec for a single request.
872
+ :type _request_auth: dict, optional
873
+ :param _content_type: force content-type for the request.
874
+ :type _content_type: str, Optional
875
+ :param _headers: set to override the headers for a single
876
+ request; this effectively ignores the headers
877
+ in the spec for a single request.
878
+ :type _headers: dict, optional
879
+ :param _host_index: set to override the host_index for a single
880
+ request; this effectively ignores the host_index
881
+ in the spec for a single request.
882
+ :type _host_index: int, optional
883
+ :return: Returns the result object.
884
+ """ # noqa: E501
885
+
886
+ _param = self._update_tag_serialize(
887
+ _request_auth=_request_auth,
888
+ _content_type=_content_type,
889
+ _headers=_headers,
890
+ _host_index=_host_index
891
+ )
892
+
893
+ _response_types_map: Dict[str, Optional[str]] = {
894
+ '200': None,
895
+ }
896
+ response_data = self.api_client.call_api(
897
+ *_param,
898
+ _request_timeout=_request_timeout
899
+ )
900
+ response_data.read()
901
+ return self.api_client.response_deserialize(
902
+ response_data=response_data,
903
+ response_types_map=_response_types_map,
904
+ )
905
+
906
+
907
+ @validate_call
908
+ def update_tag_without_preload_content(
909
+ self,
910
+ _request_timeout: Union[
911
+ None,
912
+ Annotated[StrictFloat, Field(gt=0)],
913
+ Tuple[
914
+ Annotated[StrictFloat, Field(gt=0)],
915
+ Annotated[StrictFloat, Field(gt=0)]
916
+ ]
917
+ ] = None,
918
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
919
+ _content_type: Optional[StrictStr] = None,
920
+ _headers: Optional[Dict[StrictStr, Any]] = None,
921
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
922
+ ) -> RESTResponseType:
923
+ """Update Tag
924
+
925
+
926
+ :param _request_timeout: timeout setting for this request. If one
927
+ number provided, it will be total request
928
+ timeout. It can also be a pair (tuple) of
929
+ (connection, read) timeouts.
930
+ :type _request_timeout: int, tuple(int, int), optional
931
+ :param _request_auth: set to override the auth_settings for an a single
932
+ request; this effectively ignores the
933
+ authentication in the spec for a single request.
934
+ :type _request_auth: dict, optional
935
+ :param _content_type: force content-type for the request.
936
+ :type _content_type: str, Optional
937
+ :param _headers: set to override the headers for a single
938
+ request; this effectively ignores the headers
939
+ in the spec for a single request.
940
+ :type _headers: dict, optional
941
+ :param _host_index: set to override the host_index for a single
942
+ request; this effectively ignores the host_index
943
+ in the spec for a single request.
944
+ :type _host_index: int, optional
945
+ :return: Returns the result object.
946
+ """ # noqa: E501
947
+
948
+ _param = self._update_tag_serialize(
949
+ _request_auth=_request_auth,
950
+ _content_type=_content_type,
951
+ _headers=_headers,
952
+ _host_index=_host_index
953
+ )
954
+
955
+ _response_types_map: Dict[str, Optional[str]] = {
956
+ '200': None,
957
+ }
958
+ response_data = self.api_client.call_api(
959
+ *_param,
960
+ _request_timeout=_request_timeout
961
+ )
962
+ return response_data.response
963
+
964
+
965
+ def _update_tag_serialize(
966
+ self,
967
+ _request_auth,
968
+ _content_type,
969
+ _headers,
970
+ _host_index,
971
+ ) -> RequestSerialized:
972
+
973
+ _host = None
974
+
975
+ _collection_formats: Dict[str, str] = {
976
+ }
977
+
978
+ _path_params: Dict[str, str] = {}
979
+ _query_params: List[Tuple[str, str]] = []
980
+ _header_params: Dict[str, Optional[str]] = _headers or {}
981
+ _form_params: List[Tuple[str, str]] = []
982
+ _files: Dict[
983
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
984
+ ] = {}
985
+ _body_params: Optional[bytes] = None
986
+
987
+ # process the path parameters
988
+ # process the query parameters
989
+ # process the header parameters
990
+ # process the form parameters
991
+ # process the body parameter
992
+
993
+
994
+
995
+
996
+ # authentication setting
997
+ _auth_settings: List[str] = [
998
+ ]
999
+
1000
+ return self.api_client.param_serialize(
1001
+ method='PUT',
1002
+ resource_path='/api/v1/tags/update',
1003
+ path_params=_path_params,
1004
+ query_params=_query_params,
1005
+ header_params=_header_params,
1006
+ body=_body_params,
1007
+ post_params=_form_params,
1008
+ files=_files,
1009
+ auth_settings=_auth_settings,
1010
+ collection_formats=_collection_formats,
1011
+ _host=_host,
1012
+ _request_auth=_request_auth
1013
+ )
1014
+
1015
+