wordlift-client 1.135.0__py3-none-any.whl → 1.136.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.
Files changed (27) hide show
  1. wordlift_client/__init__.py +16 -2
  2. wordlift_client/api/__init__.py +1 -0
  3. wordlift_client/api/audit_api.py +3 -3
  4. wordlift_client/api/default_api.py +1767 -39
  5. wordlift_client/api_client.py +1 -1
  6. wordlift_client/configuration.py +1 -1
  7. wordlift_client/models/__init__.py +14 -1
  8. wordlift_client/models/http_validation_error1.py +96 -0
  9. wordlift_client/models/monitor_result_item.py +117 -0
  10. wordlift_client/models/monitor_state.py +39 -0
  11. wordlift_client/models/monitor_summary_item.py +105 -0
  12. wordlift_client/models/neighbors.py +101 -0
  13. wordlift_client/models/page_info.py +95 -0
  14. wordlift_client/models/resource_request.py +92 -0
  15. wordlift_client/models/resource_type.py +40 -0
  16. wordlift_client/models/url_list_item.py +132 -0
  17. wordlift_client/models/url_list_response.py +104 -0
  18. wordlift_client/models/url_results_response.py +121 -0
  19. wordlift_client/models/url_summary_response.py +136 -0
  20. wordlift_client/models/validation_error1.py +22 -9
  21. wordlift_client/models/validation_error2.py +96 -0
  22. wordlift_client/models/validation_error2_detail_inner.py +92 -0
  23. {wordlift_client-1.135.0.dist-info → wordlift_client-1.136.0.dist-info}/METADATA +1 -1
  24. {wordlift_client-1.135.0.dist-info → wordlift_client-1.136.0.dist-info}/RECORD +27 -13
  25. {wordlift_client-1.135.0.dist-info → wordlift_client-1.136.0.dist-info}/LICENSE +0 -0
  26. {wordlift_client-1.135.0.dist-info → wordlift_client-1.136.0.dist-info}/WHEEL +0 -0
  27. {wordlift_client-1.135.0.dist-info → wordlift_client-1.136.0.dist-info}/top_level.txt +0 -0
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- GraphQL support
4
+ WordLift API
5
5
 
6
- GraphQL endpoint to query Knowledge Graphs
6
+ WordLift API
7
7
 
8
8
  The version of the OpenAPI document: 1.0
9
9
  Contact: hello@wordlift.io
@@ -17,8 +17,13 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
17
  from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
- from wordlift_client.models.ask_request import AskRequest
21
- from wordlift_client.models.ask_response import AskResponse
20
+ from pydantic import Field, StrictInt, StrictStr
21
+ from typing import Any, List, Optional
22
+ from typing_extensions import Annotated
23
+ from wordlift_client.models.resource_request import ResourceRequest
24
+ from wordlift_client.models.url_list_response import UrlListResponse
25
+ from wordlift_client.models.url_results_response import UrlResultsResponse
26
+ from wordlift_client.models.url_summary_response import UrlSummaryResponse
22
27
 
23
28
  from wordlift_client.api_client import ApiClient, RequestSerialized
24
29
  from wordlift_client.api_response import ApiResponse
@@ -39,9 +44,10 @@ class DefaultApi:
39
44
 
40
45
 
41
46
  @validate_call
42
- async def ask_request_api_ask_post(
47
+ async def add_resource_monitor_graphs_graph_id_resources_put(
43
48
  self,
44
- ask_request: AskRequest,
49
+ graph_id: StrictStr,
50
+ resource_request: ResourceRequest,
45
51
  _request_timeout: Union[
46
52
  None,
47
53
  Annotated[StrictFloat, Field(gt=0)],
@@ -54,12 +60,15 @@ class DefaultApi:
54
60
  _content_type: Optional[StrictStr] = None,
55
61
  _headers: Optional[Dict[StrictStr, Any]] = None,
56
62
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
57
- ) -> AskResponse:
58
- """Ask Request
63
+ ) -> object:
64
+ """Add Resource
59
65
 
66
+ Adds a resource to the graph. If it's a sitemap, triggers a discovery job.
60
67
 
61
- :param ask_request: (required)
62
- :type ask_request: AskRequest
68
+ :param graph_id: (required)
69
+ :type graph_id: str
70
+ :param resource_request: (required)
71
+ :type resource_request: ResourceRequest
63
72
  :param _request_timeout: timeout setting for this request. If one
64
73
  number provided, it will be total request
65
74
  timeout. It can also be a pair (tuple) of
@@ -82,8 +91,9 @@ class DefaultApi:
82
91
  :return: Returns the result object.
83
92
  """ # noqa: E501
84
93
 
85
- _param = self._ask_request_api_ask_post_serialize(
86
- ask_request=ask_request,
94
+ _param = self._add_resource_monitor_graphs_graph_id_resources_put_serialize(
95
+ graph_id=graph_id,
96
+ resource_request=resource_request,
87
97
  _request_auth=_request_auth,
88
98
  _content_type=_content_type,
89
99
  _headers=_headers,
@@ -91,8 +101,8 @@ class DefaultApi:
91
101
  )
92
102
 
93
103
  _response_types_map: Dict[str, Optional[str]] = {
94
- '200': "AskResponse",
95
- '422': "HTTPValidationError",
104
+ '200': "object",
105
+ '422': "HTTPValidationError1",
96
106
  }
97
107
  response_data = await self.api_client.call_api(
98
108
  *_param,
@@ -106,9 +116,10 @@ class DefaultApi:
106
116
 
107
117
 
108
118
  @validate_call
109
- async def ask_request_api_ask_post_with_http_info(
119
+ async def add_resource_monitor_graphs_graph_id_resources_put_with_http_info(
110
120
  self,
111
- ask_request: AskRequest,
121
+ graph_id: StrictStr,
122
+ resource_request: ResourceRequest,
112
123
  _request_timeout: Union[
113
124
  None,
114
125
  Annotated[StrictFloat, Field(gt=0)],
@@ -121,12 +132,15 @@ class DefaultApi:
121
132
  _content_type: Optional[StrictStr] = None,
122
133
  _headers: Optional[Dict[StrictStr, Any]] = None,
123
134
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
124
- ) -> ApiResponse[AskResponse]:
125
- """Ask Request
135
+ ) -> ApiResponse[object]:
136
+ """Add Resource
126
137
 
138
+ Adds a resource to the graph. If it's a sitemap, triggers a discovery job.
127
139
 
128
- :param ask_request: (required)
129
- :type ask_request: AskRequest
140
+ :param graph_id: (required)
141
+ :type graph_id: str
142
+ :param resource_request: (required)
143
+ :type resource_request: ResourceRequest
130
144
  :param _request_timeout: timeout setting for this request. If one
131
145
  number provided, it will be total request
132
146
  timeout. It can also be a pair (tuple) of
@@ -149,8 +163,9 @@ class DefaultApi:
149
163
  :return: Returns the result object.
150
164
  """ # noqa: E501
151
165
 
152
- _param = self._ask_request_api_ask_post_serialize(
153
- ask_request=ask_request,
166
+ _param = self._add_resource_monitor_graphs_graph_id_resources_put_serialize(
167
+ graph_id=graph_id,
168
+ resource_request=resource_request,
154
169
  _request_auth=_request_auth,
155
170
  _content_type=_content_type,
156
171
  _headers=_headers,
@@ -158,8 +173,8 @@ class DefaultApi:
158
173
  )
159
174
 
160
175
  _response_types_map: Dict[str, Optional[str]] = {
161
- '200': "AskResponse",
162
- '422': "HTTPValidationError",
176
+ '200': "object",
177
+ '422': "HTTPValidationError1",
163
178
  }
164
179
  response_data = await self.api_client.call_api(
165
180
  *_param,
@@ -173,9 +188,10 @@ class DefaultApi:
173
188
 
174
189
 
175
190
  @validate_call
176
- async def ask_request_api_ask_post_without_preload_content(
191
+ async def add_resource_monitor_graphs_graph_id_resources_put_without_preload_content(
177
192
  self,
178
- ask_request: AskRequest,
193
+ graph_id: StrictStr,
194
+ resource_request: ResourceRequest,
179
195
  _request_timeout: Union[
180
196
  None,
181
197
  Annotated[StrictFloat, Field(gt=0)],
@@ -189,11 +205,14 @@ class DefaultApi:
189
205
  _headers: Optional[Dict[StrictStr, Any]] = None,
190
206
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
191
207
  ) -> RESTResponseType:
192
- """Ask Request
208
+ """Add Resource
193
209
 
210
+ Adds a resource to the graph. If it's a sitemap, triggers a discovery job.
194
211
 
195
- :param ask_request: (required)
196
- :type ask_request: AskRequest
212
+ :param graph_id: (required)
213
+ :type graph_id: str
214
+ :param resource_request: (required)
215
+ :type resource_request: ResourceRequest
197
216
  :param _request_timeout: timeout setting for this request. If one
198
217
  number provided, it will be total request
199
218
  timeout. It can also be a pair (tuple) of
@@ -216,8 +235,9 @@ class DefaultApi:
216
235
  :return: Returns the result object.
217
236
  """ # noqa: E501
218
237
 
219
- _param = self._ask_request_api_ask_post_serialize(
220
- ask_request=ask_request,
238
+ _param = self._add_resource_monitor_graphs_graph_id_resources_put_serialize(
239
+ graph_id=graph_id,
240
+ resource_request=resource_request,
221
241
  _request_auth=_request_auth,
222
242
  _content_type=_content_type,
223
243
  _headers=_headers,
@@ -225,8 +245,8 @@ class DefaultApi:
225
245
  )
226
246
 
227
247
  _response_types_map: Dict[str, Optional[str]] = {
228
- '200': "AskResponse",
229
- '422': "HTTPValidationError",
248
+ '200': "object",
249
+ '422': "HTTPValidationError1",
230
250
  }
231
251
  response_data = await self.api_client.call_api(
232
252
  *_param,
@@ -235,9 +255,10 @@ class DefaultApi:
235
255
  return response_data.response
236
256
 
237
257
 
238
- def _ask_request_api_ask_post_serialize(
258
+ def _add_resource_monitor_graphs_graph_id_resources_put_serialize(
239
259
  self,
240
- ask_request,
260
+ graph_id,
261
+ resource_request,
241
262
  _request_auth,
242
263
  _content_type,
243
264
  _headers,
@@ -257,12 +278,14 @@ class DefaultApi:
257
278
  _body_params: Optional[bytes] = None
258
279
 
259
280
  # process the path parameters
281
+ if graph_id is not None:
282
+ _path_params['graph_id'] = graph_id
260
283
  # process the query parameters
261
284
  # process the header parameters
262
285
  # process the form parameters
263
286
  # process the body parameter
264
- if ask_request is not None:
265
- _body_params = ask_request
287
+ if resource_request is not None:
288
+ _body_params = resource_request
266
289
 
267
290
 
268
291
  # set the HTTP header `Accept`
@@ -292,8 +315,1713 @@ class DefaultApi:
292
315
  ]
293
316
 
294
317
  return self.api_client.param_serialize(
295
- method='POST',
296
- resource_path='/ask',
318
+ method='PUT',
319
+ resource_path='/monitor/graphs/{graph_id}/resources',
320
+ path_params=_path_params,
321
+ query_params=_query_params,
322
+ header_params=_header_params,
323
+ body=_body_params,
324
+ post_params=_form_params,
325
+ files=_files,
326
+ auth_settings=_auth_settings,
327
+ collection_formats=_collection_formats,
328
+ _host=_host,
329
+ _request_auth=_request_auth
330
+ )
331
+
332
+
333
+
334
+
335
+ @validate_call
336
+ async def get_job_status_monitor_graphs_graph_id_jobs_job_id_get(
337
+ self,
338
+ graph_id: StrictStr,
339
+ job_id: StrictStr,
340
+ _request_timeout: Union[
341
+ None,
342
+ Annotated[StrictFloat, Field(gt=0)],
343
+ Tuple[
344
+ Annotated[StrictFloat, Field(gt=0)],
345
+ Annotated[StrictFloat, Field(gt=0)]
346
+ ]
347
+ ] = None,
348
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
349
+ _content_type: Optional[StrictStr] = None,
350
+ _headers: Optional[Dict[StrictStr, Any]] = None,
351
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
352
+ ) -> object:
353
+ """Get Job Status
354
+
355
+ Returns the status and progress of a job. Ensures the job belongs to the graph.
356
+
357
+ :param graph_id: (required)
358
+ :type graph_id: str
359
+ :param job_id: (required)
360
+ :type job_id: str
361
+ :param _request_timeout: timeout setting for this request. If one
362
+ number provided, it will be total request
363
+ timeout. It can also be a pair (tuple) of
364
+ (connection, read) timeouts.
365
+ :type _request_timeout: int, tuple(int, int), optional
366
+ :param _request_auth: set to override the auth_settings for an a single
367
+ request; this effectively ignores the
368
+ authentication in the spec for a single request.
369
+ :type _request_auth: dict, optional
370
+ :param _content_type: force content-type for the request.
371
+ :type _content_type: str, Optional
372
+ :param _headers: set to override the headers for a single
373
+ request; this effectively ignores the headers
374
+ in the spec for a single request.
375
+ :type _headers: dict, optional
376
+ :param _host_index: set to override the host_index for a single
377
+ request; this effectively ignores the host_index
378
+ in the spec for a single request.
379
+ :type _host_index: int, optional
380
+ :return: Returns the result object.
381
+ """ # noqa: E501
382
+
383
+ _param = self._get_job_status_monitor_graphs_graph_id_jobs_job_id_get_serialize(
384
+ graph_id=graph_id,
385
+ job_id=job_id,
386
+ _request_auth=_request_auth,
387
+ _content_type=_content_type,
388
+ _headers=_headers,
389
+ _host_index=_host_index
390
+ )
391
+
392
+ _response_types_map: Dict[str, Optional[str]] = {
393
+ '200': "object",
394
+ '422': "HTTPValidationError1",
395
+ }
396
+ response_data = await self.api_client.call_api(
397
+ *_param,
398
+ _request_timeout=_request_timeout
399
+ )
400
+ await response_data.read()
401
+ return self.api_client.response_deserialize(
402
+ response_data=response_data,
403
+ response_types_map=_response_types_map,
404
+ ).data
405
+
406
+
407
+ @validate_call
408
+ async def get_job_status_monitor_graphs_graph_id_jobs_job_id_get_with_http_info(
409
+ self,
410
+ graph_id: StrictStr,
411
+ job_id: StrictStr,
412
+ _request_timeout: Union[
413
+ None,
414
+ Annotated[StrictFloat, Field(gt=0)],
415
+ Tuple[
416
+ Annotated[StrictFloat, Field(gt=0)],
417
+ Annotated[StrictFloat, Field(gt=0)]
418
+ ]
419
+ ] = None,
420
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
421
+ _content_type: Optional[StrictStr] = None,
422
+ _headers: Optional[Dict[StrictStr, Any]] = None,
423
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
424
+ ) -> ApiResponse[object]:
425
+ """Get Job Status
426
+
427
+ Returns the status and progress of a job. Ensures the job belongs to the graph.
428
+
429
+ :param graph_id: (required)
430
+ :type graph_id: str
431
+ :param job_id: (required)
432
+ :type job_id: str
433
+ :param _request_timeout: timeout setting for this request. If one
434
+ number provided, it will be total request
435
+ timeout. It can also be a pair (tuple) of
436
+ (connection, read) timeouts.
437
+ :type _request_timeout: int, tuple(int, int), optional
438
+ :param _request_auth: set to override the auth_settings for an a single
439
+ request; this effectively ignores the
440
+ authentication in the spec for a single request.
441
+ :type _request_auth: dict, optional
442
+ :param _content_type: force content-type for the request.
443
+ :type _content_type: str, Optional
444
+ :param _headers: set to override the headers for a single
445
+ request; this effectively ignores the headers
446
+ in the spec for a single request.
447
+ :type _headers: dict, optional
448
+ :param _host_index: set to override the host_index for a single
449
+ request; this effectively ignores the host_index
450
+ in the spec for a single request.
451
+ :type _host_index: int, optional
452
+ :return: Returns the result object.
453
+ """ # noqa: E501
454
+
455
+ _param = self._get_job_status_monitor_graphs_graph_id_jobs_job_id_get_serialize(
456
+ graph_id=graph_id,
457
+ job_id=job_id,
458
+ _request_auth=_request_auth,
459
+ _content_type=_content_type,
460
+ _headers=_headers,
461
+ _host_index=_host_index
462
+ )
463
+
464
+ _response_types_map: Dict[str, Optional[str]] = {
465
+ '200': "object",
466
+ '422': "HTTPValidationError1",
467
+ }
468
+ response_data = await self.api_client.call_api(
469
+ *_param,
470
+ _request_timeout=_request_timeout
471
+ )
472
+ await response_data.read()
473
+ return self.api_client.response_deserialize(
474
+ response_data=response_data,
475
+ response_types_map=_response_types_map,
476
+ )
477
+
478
+
479
+ @validate_call
480
+ async def get_job_status_monitor_graphs_graph_id_jobs_job_id_get_without_preload_content(
481
+ self,
482
+ graph_id: StrictStr,
483
+ job_id: StrictStr,
484
+ _request_timeout: Union[
485
+ None,
486
+ Annotated[StrictFloat, Field(gt=0)],
487
+ Tuple[
488
+ Annotated[StrictFloat, Field(gt=0)],
489
+ Annotated[StrictFloat, Field(gt=0)]
490
+ ]
491
+ ] = None,
492
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
493
+ _content_type: Optional[StrictStr] = None,
494
+ _headers: Optional[Dict[StrictStr, Any]] = None,
495
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
496
+ ) -> RESTResponseType:
497
+ """Get Job Status
498
+
499
+ Returns the status and progress of a job. Ensures the job belongs to the graph.
500
+
501
+ :param graph_id: (required)
502
+ :type graph_id: str
503
+ :param job_id: (required)
504
+ :type job_id: str
505
+ :param _request_timeout: timeout setting for this request. If one
506
+ number provided, it will be total request
507
+ timeout. It can also be a pair (tuple) of
508
+ (connection, read) timeouts.
509
+ :type _request_timeout: int, tuple(int, int), optional
510
+ :param _request_auth: set to override the auth_settings for an a single
511
+ request; this effectively ignores the
512
+ authentication in the spec for a single request.
513
+ :type _request_auth: dict, optional
514
+ :param _content_type: force content-type for the request.
515
+ :type _content_type: str, Optional
516
+ :param _headers: set to override the headers for a single
517
+ request; this effectively ignores the headers
518
+ in the spec for a single request.
519
+ :type _headers: dict, optional
520
+ :param _host_index: set to override the host_index for a single
521
+ request; this effectively ignores the host_index
522
+ in the spec for a single request.
523
+ :type _host_index: int, optional
524
+ :return: Returns the result object.
525
+ """ # noqa: E501
526
+
527
+ _param = self._get_job_status_monitor_graphs_graph_id_jobs_job_id_get_serialize(
528
+ graph_id=graph_id,
529
+ job_id=job_id,
530
+ _request_auth=_request_auth,
531
+ _content_type=_content_type,
532
+ _headers=_headers,
533
+ _host_index=_host_index
534
+ )
535
+
536
+ _response_types_map: Dict[str, Optional[str]] = {
537
+ '200': "object",
538
+ '422': "HTTPValidationError1",
539
+ }
540
+ response_data = await self.api_client.call_api(
541
+ *_param,
542
+ _request_timeout=_request_timeout
543
+ )
544
+ return response_data.response
545
+
546
+
547
+ def _get_job_status_monitor_graphs_graph_id_jobs_job_id_get_serialize(
548
+ self,
549
+ graph_id,
550
+ job_id,
551
+ _request_auth,
552
+ _content_type,
553
+ _headers,
554
+ _host_index,
555
+ ) -> RequestSerialized:
556
+
557
+ _host = None
558
+
559
+ _collection_formats: Dict[str, str] = {
560
+ }
561
+
562
+ _path_params: Dict[str, str] = {}
563
+ _query_params: List[Tuple[str, str]] = []
564
+ _header_params: Dict[str, Optional[str]] = _headers or {}
565
+ _form_params: List[Tuple[str, str]] = []
566
+ _files: Dict[str, Union[str, bytes]] = {}
567
+ _body_params: Optional[bytes] = None
568
+
569
+ # process the path parameters
570
+ if graph_id is not None:
571
+ _path_params['graph_id'] = graph_id
572
+ if job_id is not None:
573
+ _path_params['job_id'] = job_id
574
+ # process the query parameters
575
+ # process the header parameters
576
+ # process the form parameters
577
+ # process the body parameter
578
+
579
+
580
+ # set the HTTP header `Accept`
581
+ _header_params['Accept'] = self.api_client.select_header_accept(
582
+ [
583
+ 'application/json'
584
+ ]
585
+ )
586
+
587
+
588
+ # authentication setting
589
+ _auth_settings: List[str] = [
590
+ 'ApiKey'
591
+ ]
592
+
593
+ return self.api_client.param_serialize(
594
+ method='GET',
595
+ resource_path='/monitor/graphs/{graph_id}/jobs/{job_id}',
596
+ path_params=_path_params,
597
+ query_params=_query_params,
598
+ header_params=_header_params,
599
+ body=_body_params,
600
+ post_params=_form_params,
601
+ files=_files,
602
+ auth_settings=_auth_settings,
603
+ collection_formats=_collection_formats,
604
+ _host=_host,
605
+ _request_auth=_request_auth
606
+ )
607
+
608
+
609
+
610
+
611
+ @validate_call
612
+ async def get_url_results_monitor_graphs_graph_id_urls_results_get(
613
+ self,
614
+ graph_id: StrictStr,
615
+ url: Annotated[str, Field(min_length=1, strict=True, max_length=2083)],
616
+ _request_timeout: Union[
617
+ None,
618
+ Annotated[StrictFloat, Field(gt=0)],
619
+ Tuple[
620
+ Annotated[StrictFloat, Field(gt=0)],
621
+ Annotated[StrictFloat, Field(gt=0)]
622
+ ]
623
+ ] = None,
624
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
625
+ _content_type: Optional[StrictStr] = None,
626
+ _headers: Optional[Dict[StrictStr, Any]] = None,
627
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
628
+ ) -> UrlResultsResponse:
629
+ """Get Url Results
630
+
631
+
632
+ :param graph_id: (required)
633
+ :type graph_id: str
634
+ :param url: (required)
635
+ :type url: str
636
+ :param _request_timeout: timeout setting for this request. If one
637
+ number provided, it will be total request
638
+ timeout. It can also be a pair (tuple) of
639
+ (connection, read) timeouts.
640
+ :type _request_timeout: int, tuple(int, int), optional
641
+ :param _request_auth: set to override the auth_settings for an a single
642
+ request; this effectively ignores the
643
+ authentication in the spec for a single request.
644
+ :type _request_auth: dict, optional
645
+ :param _content_type: force content-type for the request.
646
+ :type _content_type: str, Optional
647
+ :param _headers: set to override the headers for a single
648
+ request; this effectively ignores the headers
649
+ in the spec for a single request.
650
+ :type _headers: dict, optional
651
+ :param _host_index: set to override the host_index for a single
652
+ request; this effectively ignores the host_index
653
+ in the spec for a single request.
654
+ :type _host_index: int, optional
655
+ :return: Returns the result object.
656
+ """ # noqa: E501
657
+
658
+ _param = self._get_url_results_monitor_graphs_graph_id_urls_results_get_serialize(
659
+ graph_id=graph_id,
660
+ url=url,
661
+ _request_auth=_request_auth,
662
+ _content_type=_content_type,
663
+ _headers=_headers,
664
+ _host_index=_host_index
665
+ )
666
+
667
+ _response_types_map: Dict[str, Optional[str]] = {
668
+ '200': "UrlResultsResponse",
669
+ '422': "HTTPValidationError1",
670
+ }
671
+ response_data = await self.api_client.call_api(
672
+ *_param,
673
+ _request_timeout=_request_timeout
674
+ )
675
+ await response_data.read()
676
+ return self.api_client.response_deserialize(
677
+ response_data=response_data,
678
+ response_types_map=_response_types_map,
679
+ ).data
680
+
681
+
682
+ @validate_call
683
+ async def get_url_results_monitor_graphs_graph_id_urls_results_get_with_http_info(
684
+ self,
685
+ graph_id: StrictStr,
686
+ url: Annotated[str, Field(min_length=1, strict=True, max_length=2083)],
687
+ _request_timeout: Union[
688
+ None,
689
+ Annotated[StrictFloat, Field(gt=0)],
690
+ Tuple[
691
+ Annotated[StrictFloat, Field(gt=0)],
692
+ Annotated[StrictFloat, Field(gt=0)]
693
+ ]
694
+ ] = None,
695
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
696
+ _content_type: Optional[StrictStr] = None,
697
+ _headers: Optional[Dict[StrictStr, Any]] = None,
698
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
699
+ ) -> ApiResponse[UrlResultsResponse]:
700
+ """Get Url Results
701
+
702
+
703
+ :param graph_id: (required)
704
+ :type graph_id: str
705
+ :param url: (required)
706
+ :type url: str
707
+ :param _request_timeout: timeout setting for this request. If one
708
+ number provided, it will be total request
709
+ timeout. It can also be a pair (tuple) of
710
+ (connection, read) timeouts.
711
+ :type _request_timeout: int, tuple(int, int), optional
712
+ :param _request_auth: set to override the auth_settings for an a single
713
+ request; this effectively ignores the
714
+ authentication in the spec for a single request.
715
+ :type _request_auth: dict, optional
716
+ :param _content_type: force content-type for the request.
717
+ :type _content_type: str, Optional
718
+ :param _headers: set to override the headers for a single
719
+ request; this effectively ignores the headers
720
+ in the spec for a single request.
721
+ :type _headers: dict, optional
722
+ :param _host_index: set to override the host_index for a single
723
+ request; this effectively ignores the host_index
724
+ in the spec for a single request.
725
+ :type _host_index: int, optional
726
+ :return: Returns the result object.
727
+ """ # noqa: E501
728
+
729
+ _param = self._get_url_results_monitor_graphs_graph_id_urls_results_get_serialize(
730
+ graph_id=graph_id,
731
+ url=url,
732
+ _request_auth=_request_auth,
733
+ _content_type=_content_type,
734
+ _headers=_headers,
735
+ _host_index=_host_index
736
+ )
737
+
738
+ _response_types_map: Dict[str, Optional[str]] = {
739
+ '200': "UrlResultsResponse",
740
+ '422': "HTTPValidationError1",
741
+ }
742
+ response_data = await self.api_client.call_api(
743
+ *_param,
744
+ _request_timeout=_request_timeout
745
+ )
746
+ await response_data.read()
747
+ return self.api_client.response_deserialize(
748
+ response_data=response_data,
749
+ response_types_map=_response_types_map,
750
+ )
751
+
752
+
753
+ @validate_call
754
+ async def get_url_results_monitor_graphs_graph_id_urls_results_get_without_preload_content(
755
+ self,
756
+ graph_id: StrictStr,
757
+ url: Annotated[str, Field(min_length=1, strict=True, max_length=2083)],
758
+ _request_timeout: Union[
759
+ None,
760
+ Annotated[StrictFloat, Field(gt=0)],
761
+ Tuple[
762
+ Annotated[StrictFloat, Field(gt=0)],
763
+ Annotated[StrictFloat, Field(gt=0)]
764
+ ]
765
+ ] = None,
766
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
767
+ _content_type: Optional[StrictStr] = None,
768
+ _headers: Optional[Dict[StrictStr, Any]] = None,
769
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
770
+ ) -> RESTResponseType:
771
+ """Get Url Results
772
+
773
+
774
+ :param graph_id: (required)
775
+ :type graph_id: str
776
+ :param url: (required)
777
+ :type url: str
778
+ :param _request_timeout: timeout setting for this request. If one
779
+ number provided, it will be total request
780
+ timeout. It can also be a pair (tuple) of
781
+ (connection, read) timeouts.
782
+ :type _request_timeout: int, tuple(int, int), optional
783
+ :param _request_auth: set to override the auth_settings for an a single
784
+ request; this effectively ignores the
785
+ authentication in the spec for a single request.
786
+ :type _request_auth: dict, optional
787
+ :param _content_type: force content-type for the request.
788
+ :type _content_type: str, Optional
789
+ :param _headers: set to override the headers for a single
790
+ request; this effectively ignores the headers
791
+ in the spec for a single request.
792
+ :type _headers: dict, optional
793
+ :param _host_index: set to override the host_index for a single
794
+ request; this effectively ignores the host_index
795
+ in the spec for a single request.
796
+ :type _host_index: int, optional
797
+ :return: Returns the result object.
798
+ """ # noqa: E501
799
+
800
+ _param = self._get_url_results_monitor_graphs_graph_id_urls_results_get_serialize(
801
+ graph_id=graph_id,
802
+ url=url,
803
+ _request_auth=_request_auth,
804
+ _content_type=_content_type,
805
+ _headers=_headers,
806
+ _host_index=_host_index
807
+ )
808
+
809
+ _response_types_map: Dict[str, Optional[str]] = {
810
+ '200': "UrlResultsResponse",
811
+ '422': "HTTPValidationError1",
812
+ }
813
+ response_data = await self.api_client.call_api(
814
+ *_param,
815
+ _request_timeout=_request_timeout
816
+ )
817
+ return response_data.response
818
+
819
+
820
+ def _get_url_results_monitor_graphs_graph_id_urls_results_get_serialize(
821
+ self,
822
+ graph_id,
823
+ url,
824
+ _request_auth,
825
+ _content_type,
826
+ _headers,
827
+ _host_index,
828
+ ) -> RequestSerialized:
829
+
830
+ _host = None
831
+
832
+ _collection_formats: Dict[str, str] = {
833
+ }
834
+
835
+ _path_params: Dict[str, str] = {}
836
+ _query_params: List[Tuple[str, str]] = []
837
+ _header_params: Dict[str, Optional[str]] = _headers or {}
838
+ _form_params: List[Tuple[str, str]] = []
839
+ _files: Dict[str, Union[str, bytes]] = {}
840
+ _body_params: Optional[bytes] = None
841
+
842
+ # process the path parameters
843
+ if graph_id is not None:
844
+ _path_params['graph_id'] = graph_id
845
+ # process the query parameters
846
+ if url is not None:
847
+
848
+ _query_params.append(('url', url))
849
+
850
+ # process the header parameters
851
+ # process the form parameters
852
+ # process the body parameter
853
+
854
+
855
+ # set the HTTP header `Accept`
856
+ _header_params['Accept'] = self.api_client.select_header_accept(
857
+ [
858
+ 'application/json'
859
+ ]
860
+ )
861
+
862
+
863
+ # authentication setting
864
+ _auth_settings: List[str] = [
865
+ 'ApiKey'
866
+ ]
867
+
868
+ return self.api_client.param_serialize(
869
+ method='GET',
870
+ resource_path='/monitor/graphs/{graph_id}/urls/results',
871
+ path_params=_path_params,
872
+ query_params=_query_params,
873
+ header_params=_header_params,
874
+ body=_body_params,
875
+ post_params=_form_params,
876
+ files=_files,
877
+ auth_settings=_auth_settings,
878
+ collection_formats=_collection_formats,
879
+ _host=_host,
880
+ _request_auth=_request_auth
881
+ )
882
+
883
+
884
+
885
+
886
+ @validate_call
887
+ async def get_url_summary_monitor_graphs_graph_id_urls_summary_get(
888
+ self,
889
+ graph_id: StrictStr,
890
+ url: Annotated[str, Field(min_length=1, strict=True, max_length=2083)],
891
+ _request_timeout: Union[
892
+ None,
893
+ Annotated[StrictFloat, Field(gt=0)],
894
+ Tuple[
895
+ Annotated[StrictFloat, Field(gt=0)],
896
+ Annotated[StrictFloat, Field(gt=0)]
897
+ ]
898
+ ] = None,
899
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
900
+ _content_type: Optional[StrictStr] = None,
901
+ _headers: Optional[Dict[StrictStr, Any]] = None,
902
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
903
+ ) -> UrlSummaryResponse:
904
+ """Get Url Summary
905
+
906
+
907
+ :param graph_id: (required)
908
+ :type graph_id: str
909
+ :param url: (required)
910
+ :type url: str
911
+ :param _request_timeout: timeout setting for this request. If one
912
+ number provided, it will be total request
913
+ timeout. It can also be a pair (tuple) of
914
+ (connection, read) timeouts.
915
+ :type _request_timeout: int, tuple(int, int), optional
916
+ :param _request_auth: set to override the auth_settings for an a single
917
+ request; this effectively ignores the
918
+ authentication in the spec for a single request.
919
+ :type _request_auth: dict, optional
920
+ :param _content_type: force content-type for the request.
921
+ :type _content_type: str, Optional
922
+ :param _headers: set to override the headers for a single
923
+ request; this effectively ignores the headers
924
+ in the spec for a single request.
925
+ :type _headers: dict, optional
926
+ :param _host_index: set to override the host_index for a single
927
+ request; this effectively ignores the host_index
928
+ in the spec for a single request.
929
+ :type _host_index: int, optional
930
+ :return: Returns the result object.
931
+ """ # noqa: E501
932
+
933
+ _param = self._get_url_summary_monitor_graphs_graph_id_urls_summary_get_serialize(
934
+ graph_id=graph_id,
935
+ url=url,
936
+ _request_auth=_request_auth,
937
+ _content_type=_content_type,
938
+ _headers=_headers,
939
+ _host_index=_host_index
940
+ )
941
+
942
+ _response_types_map: Dict[str, Optional[str]] = {
943
+ '200': "UrlSummaryResponse",
944
+ '422': "HTTPValidationError1",
945
+ }
946
+ response_data = await self.api_client.call_api(
947
+ *_param,
948
+ _request_timeout=_request_timeout
949
+ )
950
+ await response_data.read()
951
+ return self.api_client.response_deserialize(
952
+ response_data=response_data,
953
+ response_types_map=_response_types_map,
954
+ ).data
955
+
956
+
957
+ @validate_call
958
+ async def get_url_summary_monitor_graphs_graph_id_urls_summary_get_with_http_info(
959
+ self,
960
+ graph_id: StrictStr,
961
+ url: Annotated[str, Field(min_length=1, strict=True, max_length=2083)],
962
+ _request_timeout: Union[
963
+ None,
964
+ Annotated[StrictFloat, Field(gt=0)],
965
+ Tuple[
966
+ Annotated[StrictFloat, Field(gt=0)],
967
+ Annotated[StrictFloat, Field(gt=0)]
968
+ ]
969
+ ] = None,
970
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
971
+ _content_type: Optional[StrictStr] = None,
972
+ _headers: Optional[Dict[StrictStr, Any]] = None,
973
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
974
+ ) -> ApiResponse[UrlSummaryResponse]:
975
+ """Get Url Summary
976
+
977
+
978
+ :param graph_id: (required)
979
+ :type graph_id: str
980
+ :param url: (required)
981
+ :type url: str
982
+ :param _request_timeout: timeout setting for this request. If one
983
+ number provided, it will be total request
984
+ timeout. It can also be a pair (tuple) of
985
+ (connection, read) timeouts.
986
+ :type _request_timeout: int, tuple(int, int), optional
987
+ :param _request_auth: set to override the auth_settings for an a single
988
+ request; this effectively ignores the
989
+ authentication in the spec for a single request.
990
+ :type _request_auth: dict, optional
991
+ :param _content_type: force content-type for the request.
992
+ :type _content_type: str, Optional
993
+ :param _headers: set to override the headers for a single
994
+ request; this effectively ignores the headers
995
+ in the spec for a single request.
996
+ :type _headers: dict, optional
997
+ :param _host_index: set to override the host_index for a single
998
+ request; this effectively ignores the host_index
999
+ in the spec for a single request.
1000
+ :type _host_index: int, optional
1001
+ :return: Returns the result object.
1002
+ """ # noqa: E501
1003
+
1004
+ _param = self._get_url_summary_monitor_graphs_graph_id_urls_summary_get_serialize(
1005
+ graph_id=graph_id,
1006
+ url=url,
1007
+ _request_auth=_request_auth,
1008
+ _content_type=_content_type,
1009
+ _headers=_headers,
1010
+ _host_index=_host_index
1011
+ )
1012
+
1013
+ _response_types_map: Dict[str, Optional[str]] = {
1014
+ '200': "UrlSummaryResponse",
1015
+ '422': "HTTPValidationError1",
1016
+ }
1017
+ response_data = await self.api_client.call_api(
1018
+ *_param,
1019
+ _request_timeout=_request_timeout
1020
+ )
1021
+ await response_data.read()
1022
+ return self.api_client.response_deserialize(
1023
+ response_data=response_data,
1024
+ response_types_map=_response_types_map,
1025
+ )
1026
+
1027
+
1028
+ @validate_call
1029
+ async def get_url_summary_monitor_graphs_graph_id_urls_summary_get_without_preload_content(
1030
+ self,
1031
+ graph_id: StrictStr,
1032
+ url: Annotated[str, Field(min_length=1, strict=True, max_length=2083)],
1033
+ _request_timeout: Union[
1034
+ None,
1035
+ Annotated[StrictFloat, Field(gt=0)],
1036
+ Tuple[
1037
+ Annotated[StrictFloat, Field(gt=0)],
1038
+ Annotated[StrictFloat, Field(gt=0)]
1039
+ ]
1040
+ ] = None,
1041
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1042
+ _content_type: Optional[StrictStr] = None,
1043
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1044
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1045
+ ) -> RESTResponseType:
1046
+ """Get Url Summary
1047
+
1048
+
1049
+ :param graph_id: (required)
1050
+ :type graph_id: str
1051
+ :param url: (required)
1052
+ :type url: str
1053
+ :param _request_timeout: timeout setting for this request. If one
1054
+ number provided, it will be total request
1055
+ timeout. It can also be a pair (tuple) of
1056
+ (connection, read) timeouts.
1057
+ :type _request_timeout: int, tuple(int, int), optional
1058
+ :param _request_auth: set to override the auth_settings for an a single
1059
+ request; this effectively ignores the
1060
+ authentication in the spec for a single request.
1061
+ :type _request_auth: dict, optional
1062
+ :param _content_type: force content-type for the request.
1063
+ :type _content_type: str, Optional
1064
+ :param _headers: set to override the headers for a single
1065
+ request; this effectively ignores the headers
1066
+ in the spec for a single request.
1067
+ :type _headers: dict, optional
1068
+ :param _host_index: set to override the host_index for a single
1069
+ request; this effectively ignores the host_index
1070
+ in the spec for a single request.
1071
+ :type _host_index: int, optional
1072
+ :return: Returns the result object.
1073
+ """ # noqa: E501
1074
+
1075
+ _param = self._get_url_summary_monitor_graphs_graph_id_urls_summary_get_serialize(
1076
+ graph_id=graph_id,
1077
+ url=url,
1078
+ _request_auth=_request_auth,
1079
+ _content_type=_content_type,
1080
+ _headers=_headers,
1081
+ _host_index=_host_index
1082
+ )
1083
+
1084
+ _response_types_map: Dict[str, Optional[str]] = {
1085
+ '200': "UrlSummaryResponse",
1086
+ '422': "HTTPValidationError1",
1087
+ }
1088
+ response_data = await self.api_client.call_api(
1089
+ *_param,
1090
+ _request_timeout=_request_timeout
1091
+ )
1092
+ return response_data.response
1093
+
1094
+
1095
+ def _get_url_summary_monitor_graphs_graph_id_urls_summary_get_serialize(
1096
+ self,
1097
+ graph_id,
1098
+ url,
1099
+ _request_auth,
1100
+ _content_type,
1101
+ _headers,
1102
+ _host_index,
1103
+ ) -> RequestSerialized:
1104
+
1105
+ _host = None
1106
+
1107
+ _collection_formats: Dict[str, str] = {
1108
+ }
1109
+
1110
+ _path_params: Dict[str, str] = {}
1111
+ _query_params: List[Tuple[str, str]] = []
1112
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1113
+ _form_params: List[Tuple[str, str]] = []
1114
+ _files: Dict[str, Union[str, bytes]] = {}
1115
+ _body_params: Optional[bytes] = None
1116
+
1117
+ # process the path parameters
1118
+ if graph_id is not None:
1119
+ _path_params['graph_id'] = graph_id
1120
+ # process the query parameters
1121
+ if url is not None:
1122
+
1123
+ _query_params.append(('url', url))
1124
+
1125
+ # process the header parameters
1126
+ # process the form parameters
1127
+ # process the body parameter
1128
+
1129
+
1130
+ # set the HTTP header `Accept`
1131
+ _header_params['Accept'] = self.api_client.select_header_accept(
1132
+ [
1133
+ 'application/json'
1134
+ ]
1135
+ )
1136
+
1137
+
1138
+ # authentication setting
1139
+ _auth_settings: List[str] = [
1140
+ 'ApiKey'
1141
+ ]
1142
+
1143
+ return self.api_client.param_serialize(
1144
+ method='GET',
1145
+ resource_path='/monitor/graphs/{graph_id}/urls/summary',
1146
+ path_params=_path_params,
1147
+ query_params=_query_params,
1148
+ header_params=_header_params,
1149
+ body=_body_params,
1150
+ post_params=_form_params,
1151
+ files=_files,
1152
+ auth_settings=_auth_settings,
1153
+ collection_formats=_collection_formats,
1154
+ _host=_host,
1155
+ _request_auth=_request_auth
1156
+ )
1157
+
1158
+
1159
+
1160
+
1161
+ @validate_call
1162
+ async def health_health_get(
1163
+ self,
1164
+ _request_timeout: Union[
1165
+ None,
1166
+ Annotated[StrictFloat, Field(gt=0)],
1167
+ Tuple[
1168
+ Annotated[StrictFloat, Field(gt=0)],
1169
+ Annotated[StrictFloat, Field(gt=0)]
1170
+ ]
1171
+ ] = None,
1172
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1173
+ _content_type: Optional[StrictStr] = None,
1174
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1175
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1176
+ ) -> object:
1177
+ """Health
1178
+
1179
+
1180
+ :param _request_timeout: timeout setting for this request. If one
1181
+ number provided, it will be total request
1182
+ timeout. It can also be a pair (tuple) of
1183
+ (connection, read) timeouts.
1184
+ :type _request_timeout: int, tuple(int, int), optional
1185
+ :param _request_auth: set to override the auth_settings for an a single
1186
+ request; this effectively ignores the
1187
+ authentication in the spec for a single request.
1188
+ :type _request_auth: dict, optional
1189
+ :param _content_type: force content-type for the request.
1190
+ :type _content_type: str, Optional
1191
+ :param _headers: set to override the headers for a single
1192
+ request; this effectively ignores the headers
1193
+ in the spec for a single request.
1194
+ :type _headers: dict, optional
1195
+ :param _host_index: set to override the host_index for a single
1196
+ request; this effectively ignores the host_index
1197
+ in the spec for a single request.
1198
+ :type _host_index: int, optional
1199
+ :return: Returns the result object.
1200
+ """ # noqa: E501
1201
+
1202
+ _param = self._health_health_get_serialize(
1203
+ _request_auth=_request_auth,
1204
+ _content_type=_content_type,
1205
+ _headers=_headers,
1206
+ _host_index=_host_index
1207
+ )
1208
+
1209
+ _response_types_map: Dict[str, Optional[str]] = {
1210
+ '200': "object",
1211
+ }
1212
+ response_data = await self.api_client.call_api(
1213
+ *_param,
1214
+ _request_timeout=_request_timeout
1215
+ )
1216
+ await response_data.read()
1217
+ return self.api_client.response_deserialize(
1218
+ response_data=response_data,
1219
+ response_types_map=_response_types_map,
1220
+ ).data
1221
+
1222
+
1223
+ @validate_call
1224
+ async def health_health_get_with_http_info(
1225
+ self,
1226
+ _request_timeout: Union[
1227
+ None,
1228
+ Annotated[StrictFloat, Field(gt=0)],
1229
+ Tuple[
1230
+ Annotated[StrictFloat, Field(gt=0)],
1231
+ Annotated[StrictFloat, Field(gt=0)]
1232
+ ]
1233
+ ] = None,
1234
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1235
+ _content_type: Optional[StrictStr] = None,
1236
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1237
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1238
+ ) -> ApiResponse[object]:
1239
+ """Health
1240
+
1241
+
1242
+ :param _request_timeout: timeout setting for this request. If one
1243
+ number provided, it will be total request
1244
+ timeout. It can also be a pair (tuple) of
1245
+ (connection, read) timeouts.
1246
+ :type _request_timeout: int, tuple(int, int), optional
1247
+ :param _request_auth: set to override the auth_settings for an a single
1248
+ request; this effectively ignores the
1249
+ authentication in the spec for a single request.
1250
+ :type _request_auth: dict, optional
1251
+ :param _content_type: force content-type for the request.
1252
+ :type _content_type: str, Optional
1253
+ :param _headers: set to override the headers for a single
1254
+ request; this effectively ignores the headers
1255
+ in the spec for a single request.
1256
+ :type _headers: dict, optional
1257
+ :param _host_index: set to override the host_index for a single
1258
+ request; this effectively ignores the host_index
1259
+ in the spec for a single request.
1260
+ :type _host_index: int, optional
1261
+ :return: Returns the result object.
1262
+ """ # noqa: E501
1263
+
1264
+ _param = self._health_health_get_serialize(
1265
+ _request_auth=_request_auth,
1266
+ _content_type=_content_type,
1267
+ _headers=_headers,
1268
+ _host_index=_host_index
1269
+ )
1270
+
1271
+ _response_types_map: Dict[str, Optional[str]] = {
1272
+ '200': "object",
1273
+ }
1274
+ response_data = await self.api_client.call_api(
1275
+ *_param,
1276
+ _request_timeout=_request_timeout
1277
+ )
1278
+ await response_data.read()
1279
+ return self.api_client.response_deserialize(
1280
+ response_data=response_data,
1281
+ response_types_map=_response_types_map,
1282
+ )
1283
+
1284
+
1285
+ @validate_call
1286
+ async def health_health_get_without_preload_content(
1287
+ self,
1288
+ _request_timeout: Union[
1289
+ None,
1290
+ Annotated[StrictFloat, Field(gt=0)],
1291
+ Tuple[
1292
+ Annotated[StrictFloat, Field(gt=0)],
1293
+ Annotated[StrictFloat, Field(gt=0)]
1294
+ ]
1295
+ ] = None,
1296
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1297
+ _content_type: Optional[StrictStr] = None,
1298
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1299
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1300
+ ) -> RESTResponseType:
1301
+ """Health
1302
+
1303
+
1304
+ :param _request_timeout: timeout setting for this request. If one
1305
+ number provided, it will be total request
1306
+ timeout. It can also be a pair (tuple) of
1307
+ (connection, read) timeouts.
1308
+ :type _request_timeout: int, tuple(int, int), optional
1309
+ :param _request_auth: set to override the auth_settings for an a single
1310
+ request; this effectively ignores the
1311
+ authentication in the spec for a single request.
1312
+ :type _request_auth: dict, optional
1313
+ :param _content_type: force content-type for the request.
1314
+ :type _content_type: str, Optional
1315
+ :param _headers: set to override the headers for a single
1316
+ request; this effectively ignores the headers
1317
+ in the spec for a single request.
1318
+ :type _headers: dict, optional
1319
+ :param _host_index: set to override the host_index for a single
1320
+ request; this effectively ignores the host_index
1321
+ in the spec for a single request.
1322
+ :type _host_index: int, optional
1323
+ :return: Returns the result object.
1324
+ """ # noqa: E501
1325
+
1326
+ _param = self._health_health_get_serialize(
1327
+ _request_auth=_request_auth,
1328
+ _content_type=_content_type,
1329
+ _headers=_headers,
1330
+ _host_index=_host_index
1331
+ )
1332
+
1333
+ _response_types_map: Dict[str, Optional[str]] = {
1334
+ '200': "object",
1335
+ }
1336
+ response_data = await self.api_client.call_api(
1337
+ *_param,
1338
+ _request_timeout=_request_timeout
1339
+ )
1340
+ return response_data.response
1341
+
1342
+
1343
+ def _health_health_get_serialize(
1344
+ self,
1345
+ _request_auth,
1346
+ _content_type,
1347
+ _headers,
1348
+ _host_index,
1349
+ ) -> RequestSerialized:
1350
+
1351
+ _host = None
1352
+
1353
+ _collection_formats: Dict[str, str] = {
1354
+ }
1355
+
1356
+ _path_params: Dict[str, str] = {}
1357
+ _query_params: List[Tuple[str, str]] = []
1358
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1359
+ _form_params: List[Tuple[str, str]] = []
1360
+ _files: Dict[str, Union[str, bytes]] = {}
1361
+ _body_params: Optional[bytes] = None
1362
+
1363
+ # process the path parameters
1364
+ # process the query parameters
1365
+ # process the header parameters
1366
+ # process the form parameters
1367
+ # process the body parameter
1368
+
1369
+
1370
+ # set the HTTP header `Accept`
1371
+ _header_params['Accept'] = self.api_client.select_header_accept(
1372
+ [
1373
+ 'application/json'
1374
+ ]
1375
+ )
1376
+
1377
+
1378
+ # authentication setting
1379
+ _auth_settings: List[str] = [
1380
+ 'ApiKey'
1381
+ ]
1382
+
1383
+ return self.api_client.param_serialize(
1384
+ method='GET',
1385
+ resource_path='/health',
1386
+ path_params=_path_params,
1387
+ query_params=_query_params,
1388
+ header_params=_header_params,
1389
+ body=_body_params,
1390
+ post_params=_form_params,
1391
+ files=_files,
1392
+ auth_settings=_auth_settings,
1393
+ collection_formats=_collection_formats,
1394
+ _host=_host,
1395
+ _request_auth=_request_auth
1396
+ )
1397
+
1398
+
1399
+
1400
+
1401
+ @validate_call
1402
+ async def list_graph_urls_monitor_graphs_graph_id_urls_get(
1403
+ self,
1404
+ graph_id: StrictStr,
1405
+ limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
1406
+ cursor: Optional[StrictStr] = None,
1407
+ status: Optional[List[StrictStr]] = None,
1408
+ q: Optional[StrictStr] = None,
1409
+ var_from: Optional[StrictStr] = None,
1410
+ to: Optional[StrictStr] = None,
1411
+ _request_timeout: Union[
1412
+ None,
1413
+ Annotated[StrictFloat, Field(gt=0)],
1414
+ Tuple[
1415
+ Annotated[StrictFloat, Field(gt=0)],
1416
+ Annotated[StrictFloat, Field(gt=0)]
1417
+ ]
1418
+ ] = None,
1419
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1420
+ _content_type: Optional[StrictStr] = None,
1421
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1422
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1423
+ ) -> UrlListResponse:
1424
+ """List Graph Urls
1425
+
1426
+
1427
+ :param graph_id: (required)
1428
+ :type graph_id: str
1429
+ :param limit:
1430
+ :type limit: int
1431
+ :param cursor:
1432
+ :type cursor: str
1433
+ :param status:
1434
+ :type status: List[str]
1435
+ :param q:
1436
+ :type q: str
1437
+ :param var_from:
1438
+ :type var_from: str
1439
+ :param to:
1440
+ :type to: str
1441
+ :param _request_timeout: timeout setting for this request. If one
1442
+ number provided, it will be total request
1443
+ timeout. It can also be a pair (tuple) of
1444
+ (connection, read) timeouts.
1445
+ :type _request_timeout: int, tuple(int, int), optional
1446
+ :param _request_auth: set to override the auth_settings for an a single
1447
+ request; this effectively ignores the
1448
+ authentication in the spec for a single request.
1449
+ :type _request_auth: dict, optional
1450
+ :param _content_type: force content-type for the request.
1451
+ :type _content_type: str, Optional
1452
+ :param _headers: set to override the headers for a single
1453
+ request; this effectively ignores the headers
1454
+ in the spec for a single request.
1455
+ :type _headers: dict, optional
1456
+ :param _host_index: set to override the host_index for a single
1457
+ request; this effectively ignores the host_index
1458
+ in the spec for a single request.
1459
+ :type _host_index: int, optional
1460
+ :return: Returns the result object.
1461
+ """ # noqa: E501
1462
+
1463
+ _param = self._list_graph_urls_monitor_graphs_graph_id_urls_get_serialize(
1464
+ graph_id=graph_id,
1465
+ limit=limit,
1466
+ cursor=cursor,
1467
+ status=status,
1468
+ q=q,
1469
+ var_from=var_from,
1470
+ to=to,
1471
+ _request_auth=_request_auth,
1472
+ _content_type=_content_type,
1473
+ _headers=_headers,
1474
+ _host_index=_host_index
1475
+ )
1476
+
1477
+ _response_types_map: Dict[str, Optional[str]] = {
1478
+ '200': "UrlListResponse",
1479
+ '422': "HTTPValidationError1",
1480
+ }
1481
+ response_data = await self.api_client.call_api(
1482
+ *_param,
1483
+ _request_timeout=_request_timeout
1484
+ )
1485
+ await response_data.read()
1486
+ return self.api_client.response_deserialize(
1487
+ response_data=response_data,
1488
+ response_types_map=_response_types_map,
1489
+ ).data
1490
+
1491
+
1492
+ @validate_call
1493
+ async def list_graph_urls_monitor_graphs_graph_id_urls_get_with_http_info(
1494
+ self,
1495
+ graph_id: StrictStr,
1496
+ limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
1497
+ cursor: Optional[StrictStr] = None,
1498
+ status: Optional[List[StrictStr]] = None,
1499
+ q: Optional[StrictStr] = None,
1500
+ var_from: Optional[StrictStr] = None,
1501
+ to: Optional[StrictStr] = None,
1502
+ _request_timeout: Union[
1503
+ None,
1504
+ Annotated[StrictFloat, Field(gt=0)],
1505
+ Tuple[
1506
+ Annotated[StrictFloat, Field(gt=0)],
1507
+ Annotated[StrictFloat, Field(gt=0)]
1508
+ ]
1509
+ ] = None,
1510
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1511
+ _content_type: Optional[StrictStr] = None,
1512
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1513
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1514
+ ) -> ApiResponse[UrlListResponse]:
1515
+ """List Graph Urls
1516
+
1517
+
1518
+ :param graph_id: (required)
1519
+ :type graph_id: str
1520
+ :param limit:
1521
+ :type limit: int
1522
+ :param cursor:
1523
+ :type cursor: str
1524
+ :param status:
1525
+ :type status: List[str]
1526
+ :param q:
1527
+ :type q: str
1528
+ :param var_from:
1529
+ :type var_from: str
1530
+ :param to:
1531
+ :type to: str
1532
+ :param _request_timeout: timeout setting for this request. If one
1533
+ number provided, it will be total request
1534
+ timeout. It can also be a pair (tuple) of
1535
+ (connection, read) timeouts.
1536
+ :type _request_timeout: int, tuple(int, int), optional
1537
+ :param _request_auth: set to override the auth_settings for an a single
1538
+ request; this effectively ignores the
1539
+ authentication in the spec for a single request.
1540
+ :type _request_auth: dict, optional
1541
+ :param _content_type: force content-type for the request.
1542
+ :type _content_type: str, Optional
1543
+ :param _headers: set to override the headers for a single
1544
+ request; this effectively ignores the headers
1545
+ in the spec for a single request.
1546
+ :type _headers: dict, optional
1547
+ :param _host_index: set to override the host_index for a single
1548
+ request; this effectively ignores the host_index
1549
+ in the spec for a single request.
1550
+ :type _host_index: int, optional
1551
+ :return: Returns the result object.
1552
+ """ # noqa: E501
1553
+
1554
+ _param = self._list_graph_urls_monitor_graphs_graph_id_urls_get_serialize(
1555
+ graph_id=graph_id,
1556
+ limit=limit,
1557
+ cursor=cursor,
1558
+ status=status,
1559
+ q=q,
1560
+ var_from=var_from,
1561
+ to=to,
1562
+ _request_auth=_request_auth,
1563
+ _content_type=_content_type,
1564
+ _headers=_headers,
1565
+ _host_index=_host_index
1566
+ )
1567
+
1568
+ _response_types_map: Dict[str, Optional[str]] = {
1569
+ '200': "UrlListResponse",
1570
+ '422': "HTTPValidationError1",
1571
+ }
1572
+ response_data = await self.api_client.call_api(
1573
+ *_param,
1574
+ _request_timeout=_request_timeout
1575
+ )
1576
+ await response_data.read()
1577
+ return self.api_client.response_deserialize(
1578
+ response_data=response_data,
1579
+ response_types_map=_response_types_map,
1580
+ )
1581
+
1582
+
1583
+ @validate_call
1584
+ async def list_graph_urls_monitor_graphs_graph_id_urls_get_without_preload_content(
1585
+ self,
1586
+ graph_id: StrictStr,
1587
+ limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
1588
+ cursor: Optional[StrictStr] = None,
1589
+ status: Optional[List[StrictStr]] = None,
1590
+ q: Optional[StrictStr] = None,
1591
+ var_from: Optional[StrictStr] = None,
1592
+ to: Optional[StrictStr] = None,
1593
+ _request_timeout: Union[
1594
+ None,
1595
+ Annotated[StrictFloat, Field(gt=0)],
1596
+ Tuple[
1597
+ Annotated[StrictFloat, Field(gt=0)],
1598
+ Annotated[StrictFloat, Field(gt=0)]
1599
+ ]
1600
+ ] = None,
1601
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1602
+ _content_type: Optional[StrictStr] = None,
1603
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1604
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1605
+ ) -> RESTResponseType:
1606
+ """List Graph Urls
1607
+
1608
+
1609
+ :param graph_id: (required)
1610
+ :type graph_id: str
1611
+ :param limit:
1612
+ :type limit: int
1613
+ :param cursor:
1614
+ :type cursor: str
1615
+ :param status:
1616
+ :type status: List[str]
1617
+ :param q:
1618
+ :type q: str
1619
+ :param var_from:
1620
+ :type var_from: str
1621
+ :param to:
1622
+ :type to: str
1623
+ :param _request_timeout: timeout setting for this request. If one
1624
+ number provided, it will be total request
1625
+ timeout. It can also be a pair (tuple) of
1626
+ (connection, read) timeouts.
1627
+ :type _request_timeout: int, tuple(int, int), optional
1628
+ :param _request_auth: set to override the auth_settings for an a single
1629
+ request; this effectively ignores the
1630
+ authentication in the spec for a single request.
1631
+ :type _request_auth: dict, optional
1632
+ :param _content_type: force content-type for the request.
1633
+ :type _content_type: str, Optional
1634
+ :param _headers: set to override the headers for a single
1635
+ request; this effectively ignores the headers
1636
+ in the spec for a single request.
1637
+ :type _headers: dict, optional
1638
+ :param _host_index: set to override the host_index for a single
1639
+ request; this effectively ignores the host_index
1640
+ in the spec for a single request.
1641
+ :type _host_index: int, optional
1642
+ :return: Returns the result object.
1643
+ """ # noqa: E501
1644
+
1645
+ _param = self._list_graph_urls_monitor_graphs_graph_id_urls_get_serialize(
1646
+ graph_id=graph_id,
1647
+ limit=limit,
1648
+ cursor=cursor,
1649
+ status=status,
1650
+ q=q,
1651
+ var_from=var_from,
1652
+ to=to,
1653
+ _request_auth=_request_auth,
1654
+ _content_type=_content_type,
1655
+ _headers=_headers,
1656
+ _host_index=_host_index
1657
+ )
1658
+
1659
+ _response_types_map: Dict[str, Optional[str]] = {
1660
+ '200': "UrlListResponse",
1661
+ '422': "HTTPValidationError1",
1662
+ }
1663
+ response_data = await self.api_client.call_api(
1664
+ *_param,
1665
+ _request_timeout=_request_timeout
1666
+ )
1667
+ return response_data.response
1668
+
1669
+
1670
+ def _list_graph_urls_monitor_graphs_graph_id_urls_get_serialize(
1671
+ self,
1672
+ graph_id,
1673
+ limit,
1674
+ cursor,
1675
+ status,
1676
+ q,
1677
+ var_from,
1678
+ to,
1679
+ _request_auth,
1680
+ _content_type,
1681
+ _headers,
1682
+ _host_index,
1683
+ ) -> RequestSerialized:
1684
+
1685
+ _host = None
1686
+
1687
+ _collection_formats: Dict[str, str] = {
1688
+ 'status': 'multi',
1689
+ }
1690
+
1691
+ _path_params: Dict[str, str] = {}
1692
+ _query_params: List[Tuple[str, str]] = []
1693
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1694
+ _form_params: List[Tuple[str, str]] = []
1695
+ _files: Dict[str, Union[str, bytes]] = {}
1696
+ _body_params: Optional[bytes] = None
1697
+
1698
+ # process the path parameters
1699
+ if graph_id is not None:
1700
+ _path_params['graph_id'] = graph_id
1701
+ # process the query parameters
1702
+ if limit is not None:
1703
+
1704
+ _query_params.append(('limit', limit))
1705
+
1706
+ if cursor is not None:
1707
+
1708
+ _query_params.append(('cursor', cursor))
1709
+
1710
+ if status is not None:
1711
+
1712
+ _query_params.append(('status', status))
1713
+
1714
+ if q is not None:
1715
+
1716
+ _query_params.append(('q', q))
1717
+
1718
+ if var_from is not None:
1719
+
1720
+ _query_params.append(('from', var_from))
1721
+
1722
+ if to is not None:
1723
+
1724
+ _query_params.append(('to', to))
1725
+
1726
+ # process the header parameters
1727
+ # process the form parameters
1728
+ # process the body parameter
1729
+
1730
+
1731
+ # set the HTTP header `Accept`
1732
+ _header_params['Accept'] = self.api_client.select_header_accept(
1733
+ [
1734
+ 'application/json'
1735
+ ]
1736
+ )
1737
+
1738
+
1739
+ # authentication setting
1740
+ _auth_settings: List[str] = [
1741
+ 'ApiKey'
1742
+ ]
1743
+
1744
+ return self.api_client.param_serialize(
1745
+ method='GET',
1746
+ resource_path='/monitor/graphs/{graph_id}/urls',
1747
+ path_params=_path_params,
1748
+ query_params=_query_params,
1749
+ header_params=_header_params,
1750
+ body=_body_params,
1751
+ post_params=_form_params,
1752
+ files=_files,
1753
+ auth_settings=_auth_settings,
1754
+ collection_formats=_collection_formats,
1755
+ _host=_host,
1756
+ _request_auth=_request_auth
1757
+ )
1758
+
1759
+
1760
+
1761
+
1762
+ @validate_call
1763
+ async def list_jobs_monitor_graphs_graph_id_jobs_get(
1764
+ self,
1765
+ graph_id: StrictStr,
1766
+ limit: Optional[StrictInt] = None,
1767
+ _request_timeout: Union[
1768
+ None,
1769
+ Annotated[StrictFloat, Field(gt=0)],
1770
+ Tuple[
1771
+ Annotated[StrictFloat, Field(gt=0)],
1772
+ Annotated[StrictFloat, Field(gt=0)]
1773
+ ]
1774
+ ] = None,
1775
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1776
+ _content_type: Optional[StrictStr] = None,
1777
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1778
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1779
+ ) -> object:
1780
+ """List Jobs
1781
+
1782
+ Lists recent jobs for a graph.
1783
+
1784
+ :param graph_id: (required)
1785
+ :type graph_id: str
1786
+ :param limit:
1787
+ :type limit: int
1788
+ :param _request_timeout: timeout setting for this request. If one
1789
+ number provided, it will be total request
1790
+ timeout. It can also be a pair (tuple) of
1791
+ (connection, read) timeouts.
1792
+ :type _request_timeout: int, tuple(int, int), optional
1793
+ :param _request_auth: set to override the auth_settings for an a single
1794
+ request; this effectively ignores the
1795
+ authentication in the spec for a single request.
1796
+ :type _request_auth: dict, optional
1797
+ :param _content_type: force content-type for the request.
1798
+ :type _content_type: str, Optional
1799
+ :param _headers: set to override the headers for a single
1800
+ request; this effectively ignores the headers
1801
+ in the spec for a single request.
1802
+ :type _headers: dict, optional
1803
+ :param _host_index: set to override the host_index for a single
1804
+ request; this effectively ignores the host_index
1805
+ in the spec for a single request.
1806
+ :type _host_index: int, optional
1807
+ :return: Returns the result object.
1808
+ """ # noqa: E501
1809
+
1810
+ _param = self._list_jobs_monitor_graphs_graph_id_jobs_get_serialize(
1811
+ graph_id=graph_id,
1812
+ limit=limit,
1813
+ _request_auth=_request_auth,
1814
+ _content_type=_content_type,
1815
+ _headers=_headers,
1816
+ _host_index=_host_index
1817
+ )
1818
+
1819
+ _response_types_map: Dict[str, Optional[str]] = {
1820
+ '200': "object",
1821
+ '422': "HTTPValidationError1",
1822
+ }
1823
+ response_data = await self.api_client.call_api(
1824
+ *_param,
1825
+ _request_timeout=_request_timeout
1826
+ )
1827
+ await response_data.read()
1828
+ return self.api_client.response_deserialize(
1829
+ response_data=response_data,
1830
+ response_types_map=_response_types_map,
1831
+ ).data
1832
+
1833
+
1834
+ @validate_call
1835
+ async def list_jobs_monitor_graphs_graph_id_jobs_get_with_http_info(
1836
+ self,
1837
+ graph_id: StrictStr,
1838
+ limit: Optional[StrictInt] = None,
1839
+ _request_timeout: Union[
1840
+ None,
1841
+ Annotated[StrictFloat, Field(gt=0)],
1842
+ Tuple[
1843
+ Annotated[StrictFloat, Field(gt=0)],
1844
+ Annotated[StrictFloat, Field(gt=0)]
1845
+ ]
1846
+ ] = None,
1847
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1848
+ _content_type: Optional[StrictStr] = None,
1849
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1850
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1851
+ ) -> ApiResponse[object]:
1852
+ """List Jobs
1853
+
1854
+ Lists recent jobs for a graph.
1855
+
1856
+ :param graph_id: (required)
1857
+ :type graph_id: str
1858
+ :param limit:
1859
+ :type limit: int
1860
+ :param _request_timeout: timeout setting for this request. If one
1861
+ number provided, it will be total request
1862
+ timeout. It can also be a pair (tuple) of
1863
+ (connection, read) timeouts.
1864
+ :type _request_timeout: int, tuple(int, int), optional
1865
+ :param _request_auth: set to override the auth_settings for an a single
1866
+ request; this effectively ignores the
1867
+ authentication in the spec for a single request.
1868
+ :type _request_auth: dict, optional
1869
+ :param _content_type: force content-type for the request.
1870
+ :type _content_type: str, Optional
1871
+ :param _headers: set to override the headers for a single
1872
+ request; this effectively ignores the headers
1873
+ in the spec for a single request.
1874
+ :type _headers: dict, optional
1875
+ :param _host_index: set to override the host_index for a single
1876
+ request; this effectively ignores the host_index
1877
+ in the spec for a single request.
1878
+ :type _host_index: int, optional
1879
+ :return: Returns the result object.
1880
+ """ # noqa: E501
1881
+
1882
+ _param = self._list_jobs_monitor_graphs_graph_id_jobs_get_serialize(
1883
+ graph_id=graph_id,
1884
+ limit=limit,
1885
+ _request_auth=_request_auth,
1886
+ _content_type=_content_type,
1887
+ _headers=_headers,
1888
+ _host_index=_host_index
1889
+ )
1890
+
1891
+ _response_types_map: Dict[str, Optional[str]] = {
1892
+ '200': "object",
1893
+ '422': "HTTPValidationError1",
1894
+ }
1895
+ response_data = await self.api_client.call_api(
1896
+ *_param,
1897
+ _request_timeout=_request_timeout
1898
+ )
1899
+ await response_data.read()
1900
+ return self.api_client.response_deserialize(
1901
+ response_data=response_data,
1902
+ response_types_map=_response_types_map,
1903
+ )
1904
+
1905
+
1906
+ @validate_call
1907
+ async def list_jobs_monitor_graphs_graph_id_jobs_get_without_preload_content(
1908
+ self,
1909
+ graph_id: StrictStr,
1910
+ limit: Optional[StrictInt] = None,
1911
+ _request_timeout: Union[
1912
+ None,
1913
+ Annotated[StrictFloat, Field(gt=0)],
1914
+ Tuple[
1915
+ Annotated[StrictFloat, Field(gt=0)],
1916
+ Annotated[StrictFloat, Field(gt=0)]
1917
+ ]
1918
+ ] = None,
1919
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1920
+ _content_type: Optional[StrictStr] = None,
1921
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1922
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1923
+ ) -> RESTResponseType:
1924
+ """List Jobs
1925
+
1926
+ Lists recent jobs for a graph.
1927
+
1928
+ :param graph_id: (required)
1929
+ :type graph_id: str
1930
+ :param limit:
1931
+ :type limit: int
1932
+ :param _request_timeout: timeout setting for this request. If one
1933
+ number provided, it will be total request
1934
+ timeout. It can also be a pair (tuple) of
1935
+ (connection, read) timeouts.
1936
+ :type _request_timeout: int, tuple(int, int), optional
1937
+ :param _request_auth: set to override the auth_settings for an a single
1938
+ request; this effectively ignores the
1939
+ authentication in the spec for a single request.
1940
+ :type _request_auth: dict, optional
1941
+ :param _content_type: force content-type for the request.
1942
+ :type _content_type: str, Optional
1943
+ :param _headers: set to override the headers for a single
1944
+ request; this effectively ignores the headers
1945
+ in the spec for a single request.
1946
+ :type _headers: dict, optional
1947
+ :param _host_index: set to override the host_index for a single
1948
+ request; this effectively ignores the host_index
1949
+ in the spec for a single request.
1950
+ :type _host_index: int, optional
1951
+ :return: Returns the result object.
1952
+ """ # noqa: E501
1953
+
1954
+ _param = self._list_jobs_monitor_graphs_graph_id_jobs_get_serialize(
1955
+ graph_id=graph_id,
1956
+ limit=limit,
1957
+ _request_auth=_request_auth,
1958
+ _content_type=_content_type,
1959
+ _headers=_headers,
1960
+ _host_index=_host_index
1961
+ )
1962
+
1963
+ _response_types_map: Dict[str, Optional[str]] = {
1964
+ '200': "object",
1965
+ '422': "HTTPValidationError1",
1966
+ }
1967
+ response_data = await self.api_client.call_api(
1968
+ *_param,
1969
+ _request_timeout=_request_timeout
1970
+ )
1971
+ return response_data.response
1972
+
1973
+
1974
+ def _list_jobs_monitor_graphs_graph_id_jobs_get_serialize(
1975
+ self,
1976
+ graph_id,
1977
+ limit,
1978
+ _request_auth,
1979
+ _content_type,
1980
+ _headers,
1981
+ _host_index,
1982
+ ) -> RequestSerialized:
1983
+
1984
+ _host = None
1985
+
1986
+ _collection_formats: Dict[str, str] = {
1987
+ }
1988
+
1989
+ _path_params: Dict[str, str] = {}
1990
+ _query_params: List[Tuple[str, str]] = []
1991
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1992
+ _form_params: List[Tuple[str, str]] = []
1993
+ _files: Dict[str, Union[str, bytes]] = {}
1994
+ _body_params: Optional[bytes] = None
1995
+
1996
+ # process the path parameters
1997
+ if graph_id is not None:
1998
+ _path_params['graph_id'] = graph_id
1999
+ # process the query parameters
2000
+ if limit is not None:
2001
+
2002
+ _query_params.append(('limit', limit))
2003
+
2004
+ # process the header parameters
2005
+ # process the form parameters
2006
+ # process the body parameter
2007
+
2008
+
2009
+ # set the HTTP header `Accept`
2010
+ _header_params['Accept'] = self.api_client.select_header_accept(
2011
+ [
2012
+ 'application/json'
2013
+ ]
2014
+ )
2015
+
2016
+
2017
+ # authentication setting
2018
+ _auth_settings: List[str] = [
2019
+ 'ApiKey'
2020
+ ]
2021
+
2022
+ return self.api_client.param_serialize(
2023
+ method='GET',
2024
+ resource_path='/monitor/graphs/{graph_id}/jobs',
297
2025
  path_params=_path_params,
298
2026
  query_params=_query_params,
299
2027
  header_params=_header_params,