perceptic-core-client 0.7.1__py3-none-any.whl → 0.7.3__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.

@@ -39,8 +39,9 @@ class IndexerResourceApi:
39
39
 
40
40
 
41
41
  @validate_call
42
- def api_v1_indexing_indexers_get(
42
+ def get_indexer(
43
43
  self,
44
+ indexer_rid: StrictStr,
44
45
  _request_timeout: Union[
45
46
  None,
46
47
  Annotated[StrictFloat, Field(gt=0)],
@@ -53,10 +54,12 @@ class IndexerResourceApi:
53
54
  _content_type: Optional[StrictStr] = None,
54
55
  _headers: Optional[Dict[StrictStr, Any]] = None,
55
56
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
56
- ) -> ListIndexersResponse:
57
- """List Indexers
57
+ ) -> GetIndexerResponse:
58
+ """Get Indexer
58
59
 
59
60
 
61
+ :param indexer_rid: (required)
62
+ :type indexer_rid: str
60
63
  :param _request_timeout: timeout setting for this request. If one
61
64
  number provided, it will be total request
62
65
  timeout. It can also be a pair (tuple) of
@@ -79,7 +82,8 @@ class IndexerResourceApi:
79
82
  :return: Returns the result object.
80
83
  """ # noqa: E501
81
84
 
82
- _param = self._api_v1_indexing_indexers_get_serialize(
85
+ _param = self._get_indexer_serialize(
86
+ indexer_rid=indexer_rid,
83
87
  _request_auth=_request_auth,
84
88
  _content_type=_content_type,
85
89
  _headers=_headers,
@@ -87,7 +91,7 @@ class IndexerResourceApi:
87
91
  )
88
92
 
89
93
  _response_types_map: Dict[str, Optional[str]] = {
90
- '200': "ListIndexersResponse",
94
+ '200': "GetIndexerResponse",
91
95
  }
92
96
  response_data = self.api_client.call_api(
93
97
  *_param,
@@ -101,8 +105,9 @@ class IndexerResourceApi:
101
105
 
102
106
 
103
107
  @validate_call
104
- def api_v1_indexing_indexers_get_with_http_info(
108
+ def get_indexer_with_http_info(
105
109
  self,
110
+ indexer_rid: StrictStr,
106
111
  _request_timeout: Union[
107
112
  None,
108
113
  Annotated[StrictFloat, Field(gt=0)],
@@ -115,10 +120,12 @@ class IndexerResourceApi:
115
120
  _content_type: Optional[StrictStr] = None,
116
121
  _headers: Optional[Dict[StrictStr, Any]] = None,
117
122
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
118
- ) -> ApiResponse[ListIndexersResponse]:
119
- """List Indexers
123
+ ) -> ApiResponse[GetIndexerResponse]:
124
+ """Get Indexer
120
125
 
121
126
 
127
+ :param indexer_rid: (required)
128
+ :type indexer_rid: str
122
129
  :param _request_timeout: timeout setting for this request. If one
123
130
  number provided, it will be total request
124
131
  timeout. It can also be a pair (tuple) of
@@ -141,7 +148,8 @@ class IndexerResourceApi:
141
148
  :return: Returns the result object.
142
149
  """ # noqa: E501
143
150
 
144
- _param = self._api_v1_indexing_indexers_get_serialize(
151
+ _param = self._get_indexer_serialize(
152
+ indexer_rid=indexer_rid,
145
153
  _request_auth=_request_auth,
146
154
  _content_type=_content_type,
147
155
  _headers=_headers,
@@ -149,7 +157,7 @@ class IndexerResourceApi:
149
157
  )
150
158
 
151
159
  _response_types_map: Dict[str, Optional[str]] = {
152
- '200': "ListIndexersResponse",
160
+ '200': "GetIndexerResponse",
153
161
  }
154
162
  response_data = self.api_client.call_api(
155
163
  *_param,
@@ -163,8 +171,9 @@ class IndexerResourceApi:
163
171
 
164
172
 
165
173
  @validate_call
166
- def api_v1_indexing_indexers_get_without_preload_content(
174
+ def get_indexer_without_preload_content(
167
175
  self,
176
+ indexer_rid: StrictStr,
168
177
  _request_timeout: Union[
169
178
  None,
170
179
  Annotated[StrictFloat, Field(gt=0)],
@@ -178,9 +187,11 @@ class IndexerResourceApi:
178
187
  _headers: Optional[Dict[StrictStr, Any]] = None,
179
188
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
180
189
  ) -> RESTResponseType:
181
- """List Indexers
190
+ """Get Indexer
182
191
 
183
192
 
193
+ :param indexer_rid: (required)
194
+ :type indexer_rid: str
184
195
  :param _request_timeout: timeout setting for this request. If one
185
196
  number provided, it will be total request
186
197
  timeout. It can also be a pair (tuple) of
@@ -203,7 +214,8 @@ class IndexerResourceApi:
203
214
  :return: Returns the result object.
204
215
  """ # noqa: E501
205
216
 
206
- _param = self._api_v1_indexing_indexers_get_serialize(
217
+ _param = self._get_indexer_serialize(
218
+ indexer_rid=indexer_rid,
207
219
  _request_auth=_request_auth,
208
220
  _content_type=_content_type,
209
221
  _headers=_headers,
@@ -211,7 +223,7 @@ class IndexerResourceApi:
211
223
  )
212
224
 
213
225
  _response_types_map: Dict[str, Optional[str]] = {
214
- '200': "ListIndexersResponse",
226
+ '200': "GetIndexerResponse",
215
227
  }
216
228
  response_data = self.api_client.call_api(
217
229
  *_param,
@@ -220,8 +232,9 @@ class IndexerResourceApi:
220
232
  return response_data.response
221
233
 
222
234
 
223
- def _api_v1_indexing_indexers_get_serialize(
235
+ def _get_indexer_serialize(
224
236
  self,
237
+ indexer_rid,
225
238
  _request_auth,
226
239
  _content_type,
227
240
  _headers,
@@ -243,6 +256,8 @@ class IndexerResourceApi:
243
256
  _body_params: Optional[bytes] = None
244
257
 
245
258
  # process the path parameters
259
+ if indexer_rid is not None:
260
+ _path_params['indexerRid'] = indexer_rid
246
261
  # process the query parameters
247
262
  # process the header parameters
248
263
  # process the form parameters
@@ -264,7 +279,7 @@ class IndexerResourceApi:
264
279
 
265
280
  return self.api_client.param_serialize(
266
281
  method='GET',
267
- resource_path='/api/v1/indexing/indexers',
282
+ resource_path='/api/v1/indexing/indexers/{indexerRid}',
268
283
  path_params=_path_params,
269
284
  query_params=_query_params,
270
285
  header_params=_header_params,
@@ -281,9 +296,8 @@ class IndexerResourceApi:
281
296
 
282
297
 
283
298
  @validate_call
284
- def api_v1_indexing_indexers_indexer_rid_get(
299
+ def list_indexers(
285
300
  self,
286
- indexer_rid: StrictStr,
287
301
  _request_timeout: Union[
288
302
  None,
289
303
  Annotated[StrictFloat, Field(gt=0)],
@@ -296,12 +310,10 @@ class IndexerResourceApi:
296
310
  _content_type: Optional[StrictStr] = None,
297
311
  _headers: Optional[Dict[StrictStr, Any]] = None,
298
312
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
299
- ) -> GetIndexerResponse:
300
- """Get Indexer
313
+ ) -> ListIndexersResponse:
314
+ """List Indexers
301
315
 
302
316
 
303
- :param indexer_rid: (required)
304
- :type indexer_rid: str
305
317
  :param _request_timeout: timeout setting for this request. If one
306
318
  number provided, it will be total request
307
319
  timeout. It can also be a pair (tuple) of
@@ -324,8 +336,7 @@ class IndexerResourceApi:
324
336
  :return: Returns the result object.
325
337
  """ # noqa: E501
326
338
 
327
- _param = self._api_v1_indexing_indexers_indexer_rid_get_serialize(
328
- indexer_rid=indexer_rid,
339
+ _param = self._list_indexers_serialize(
329
340
  _request_auth=_request_auth,
330
341
  _content_type=_content_type,
331
342
  _headers=_headers,
@@ -333,7 +344,7 @@ class IndexerResourceApi:
333
344
  )
334
345
 
335
346
  _response_types_map: Dict[str, Optional[str]] = {
336
- '200': "GetIndexerResponse",
347
+ '200': "ListIndexersResponse",
337
348
  }
338
349
  response_data = self.api_client.call_api(
339
350
  *_param,
@@ -347,9 +358,8 @@ class IndexerResourceApi:
347
358
 
348
359
 
349
360
  @validate_call
350
- def api_v1_indexing_indexers_indexer_rid_get_with_http_info(
361
+ def list_indexers_with_http_info(
351
362
  self,
352
- indexer_rid: StrictStr,
353
363
  _request_timeout: Union[
354
364
  None,
355
365
  Annotated[StrictFloat, Field(gt=0)],
@@ -362,12 +372,10 @@ class IndexerResourceApi:
362
372
  _content_type: Optional[StrictStr] = None,
363
373
  _headers: Optional[Dict[StrictStr, Any]] = None,
364
374
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
365
- ) -> ApiResponse[GetIndexerResponse]:
366
- """Get Indexer
375
+ ) -> ApiResponse[ListIndexersResponse]:
376
+ """List Indexers
367
377
 
368
378
 
369
- :param indexer_rid: (required)
370
- :type indexer_rid: str
371
379
  :param _request_timeout: timeout setting for this request. If one
372
380
  number provided, it will be total request
373
381
  timeout. It can also be a pair (tuple) of
@@ -390,8 +398,7 @@ class IndexerResourceApi:
390
398
  :return: Returns the result object.
391
399
  """ # noqa: E501
392
400
 
393
- _param = self._api_v1_indexing_indexers_indexer_rid_get_serialize(
394
- indexer_rid=indexer_rid,
401
+ _param = self._list_indexers_serialize(
395
402
  _request_auth=_request_auth,
396
403
  _content_type=_content_type,
397
404
  _headers=_headers,
@@ -399,7 +406,7 @@ class IndexerResourceApi:
399
406
  )
400
407
 
401
408
  _response_types_map: Dict[str, Optional[str]] = {
402
- '200': "GetIndexerResponse",
409
+ '200': "ListIndexersResponse",
403
410
  }
404
411
  response_data = self.api_client.call_api(
405
412
  *_param,
@@ -413,9 +420,8 @@ class IndexerResourceApi:
413
420
 
414
421
 
415
422
  @validate_call
416
- def api_v1_indexing_indexers_indexer_rid_get_without_preload_content(
423
+ def list_indexers_without_preload_content(
417
424
  self,
418
- indexer_rid: StrictStr,
419
425
  _request_timeout: Union[
420
426
  None,
421
427
  Annotated[StrictFloat, Field(gt=0)],
@@ -429,11 +435,9 @@ class IndexerResourceApi:
429
435
  _headers: Optional[Dict[StrictStr, Any]] = None,
430
436
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
431
437
  ) -> RESTResponseType:
432
- """Get Indexer
438
+ """List Indexers
433
439
 
434
440
 
435
- :param indexer_rid: (required)
436
- :type indexer_rid: str
437
441
  :param _request_timeout: timeout setting for this request. If one
438
442
  number provided, it will be total request
439
443
  timeout. It can also be a pair (tuple) of
@@ -456,8 +460,7 @@ class IndexerResourceApi:
456
460
  :return: Returns the result object.
457
461
  """ # noqa: E501
458
462
 
459
- _param = self._api_v1_indexing_indexers_indexer_rid_get_serialize(
460
- indexer_rid=indexer_rid,
463
+ _param = self._list_indexers_serialize(
461
464
  _request_auth=_request_auth,
462
465
  _content_type=_content_type,
463
466
  _headers=_headers,
@@ -465,7 +468,7 @@ class IndexerResourceApi:
465
468
  )
466
469
 
467
470
  _response_types_map: Dict[str, Optional[str]] = {
468
- '200': "GetIndexerResponse",
471
+ '200': "ListIndexersResponse",
469
472
  }
470
473
  response_data = self.api_client.call_api(
471
474
  *_param,
@@ -474,9 +477,8 @@ class IndexerResourceApi:
474
477
  return response_data.response
475
478
 
476
479
 
477
- def _api_v1_indexing_indexers_indexer_rid_get_serialize(
480
+ def _list_indexers_serialize(
478
481
  self,
479
- indexer_rid,
480
482
  _request_auth,
481
483
  _content_type,
482
484
  _headers,
@@ -498,8 +500,6 @@ class IndexerResourceApi:
498
500
  _body_params: Optional[bytes] = None
499
501
 
500
502
  # process the path parameters
501
- if indexer_rid is not None:
502
- _path_params['indexerRid'] = indexer_rid
503
503
  # process the query parameters
504
504
  # process the header parameters
505
505
  # process the form parameters
@@ -521,7 +521,7 @@ class IndexerResourceApi:
521
521
 
522
522
  return self.api_client.param_serialize(
523
523
  method='GET',
524
- resource_path='/api/v1/indexing/indexers/{indexerRid}',
524
+ resource_path='/api/v1/indexing/indexers',
525
525
  path_params=_path_params,
526
526
  query_params=_query_params,
527
527
  header_params=_header_params,