vectorize_client.api.pipelines_api
Vectorize API (Beta)
API for Vectorize services
The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
1# coding: utf-8 2 3""" 4 Vectorize API (Beta) 5 6 API for Vectorize services 7 8 The version of the OpenAPI document: 0.0.1 9 Generated by OpenAPI Generator (https://openapi-generator.tech) 10 11 Do not edit the class manually. 12""" # noqa: E501 13 14import warnings 15from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt 16from typing import Any, Dict, List, Optional, Tuple, Union 17from typing_extensions import Annotated 18 19from pydantic import StrictStr 20from typing import Optional 21from vectorize_client.models.create_pipeline_response import CreatePipelineResponse 22from vectorize_client.models.delete_pipeline_response import DeletePipelineResponse 23from vectorize_client.models.get_deep_research_response import GetDeepResearchResponse 24from vectorize_client.models.get_pipeline_events_response import GetPipelineEventsResponse 25from vectorize_client.models.get_pipeline_metrics_response import GetPipelineMetricsResponse 26from vectorize_client.models.get_pipeline_response import GetPipelineResponse 27from vectorize_client.models.get_pipelines_response import GetPipelinesResponse 28from vectorize_client.models.pipeline_configuration_schema import PipelineConfigurationSchema 29from vectorize_client.models.retrieve_documents_request import RetrieveDocumentsRequest 30from vectorize_client.models.retrieve_documents_response import RetrieveDocumentsResponse 31from vectorize_client.models.start_deep_research_request import StartDeepResearchRequest 32from vectorize_client.models.start_deep_research_response import StartDeepResearchResponse 33from vectorize_client.models.start_pipeline_response import StartPipelineResponse 34from vectorize_client.models.stop_pipeline_response import StopPipelineResponse 35 36from vectorize_client.api_client import ApiClient, RequestSerialized 37from vectorize_client.api_response import ApiResponse 38from vectorize_client.rest import RESTResponseType 39 40 41class PipelinesApi: 42 """NOTE: This class is auto generated by OpenAPI Generator 43 Ref: https://openapi-generator.tech 44 45 Do not edit the class manually. 46 """ 47 48 def __init__(self, api_client=None) -> None: 49 if api_client is None: 50 api_client = ApiClient.get_default() 51 self.api_client = api_client 52 53 54 @validate_call 55 def create_pipeline( 56 self, 57 organization: StrictStr, 58 pipeline_configuration_schema: PipelineConfigurationSchema, 59 _request_timeout: Union[ 60 None, 61 Annotated[StrictFloat, Field(gt=0)], 62 Tuple[ 63 Annotated[StrictFloat, Field(gt=0)], 64 Annotated[StrictFloat, Field(gt=0)] 65 ] 66 ] = None, 67 _request_auth: Optional[Dict[StrictStr, Any]] = None, 68 _content_type: Optional[StrictStr] = None, 69 _headers: Optional[Dict[StrictStr, Any]] = None, 70 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 71 ) -> CreatePipelineResponse: 72 """Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Supabase (SUPABASE): Table Name (table): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: 73 74 75 :param organization: (required) 76 :type organization: str 77 :param pipeline_configuration_schema: (required) 78 :type pipeline_configuration_schema: PipelineConfigurationSchema 79 :param _request_timeout: timeout setting for this request. If one 80 number provided, it will be total request 81 timeout. It can also be a pair (tuple) of 82 (connection, read) timeouts. 83 :type _request_timeout: int, tuple(int, int), optional 84 :param _request_auth: set to override the auth_settings for an a single 85 request; this effectively ignores the 86 authentication in the spec for a single request. 87 :type _request_auth: dict, optional 88 :param _content_type: force content-type for the request. 89 :type _content_type: str, Optional 90 :param _headers: set to override the headers for a single 91 request; this effectively ignores the headers 92 in the spec for a single request. 93 :type _headers: dict, optional 94 :param _host_index: set to override the host_index for a single 95 request; this effectively ignores the host_index 96 in the spec for a single request. 97 :type _host_index: int, optional 98 :return: Returns the result object. 99 """ # noqa: E501 100 101 _param = self._create_pipeline_serialize( 102 organization=organization, 103 pipeline_configuration_schema=pipeline_configuration_schema, 104 _request_auth=_request_auth, 105 _content_type=_content_type, 106 _headers=_headers, 107 _host_index=_host_index 108 ) 109 110 _response_types_map: Dict[str, Optional[str]] = { 111 '200': "CreatePipelineResponse", 112 '400': "GetPipelines400Response", 113 '401': "GetPipelines400Response", 114 '403': "GetPipelines400Response", 115 '404': "GetPipelines400Response", 116 '500': "GetPipelines400Response", 117 } 118 response_data = self.api_client.call_api( 119 *_param, 120 _request_timeout=_request_timeout 121 ) 122 response_data.read() 123 return self.api_client.response_deserialize( 124 response_data=response_data, 125 response_types_map=_response_types_map, 126 ).data 127 128 129 @validate_call 130 def create_pipeline_with_http_info( 131 self, 132 organization: StrictStr, 133 pipeline_configuration_schema: PipelineConfigurationSchema, 134 _request_timeout: Union[ 135 None, 136 Annotated[StrictFloat, Field(gt=0)], 137 Tuple[ 138 Annotated[StrictFloat, Field(gt=0)], 139 Annotated[StrictFloat, Field(gt=0)] 140 ] 141 ] = None, 142 _request_auth: Optional[Dict[StrictStr, Any]] = None, 143 _content_type: Optional[StrictStr] = None, 144 _headers: Optional[Dict[StrictStr, Any]] = None, 145 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 146 ) -> ApiResponse[CreatePipelineResponse]: 147 """Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Supabase (SUPABASE): Table Name (table): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: 148 149 150 :param organization: (required) 151 :type organization: str 152 :param pipeline_configuration_schema: (required) 153 :type pipeline_configuration_schema: PipelineConfigurationSchema 154 :param _request_timeout: timeout setting for this request. If one 155 number provided, it will be total request 156 timeout. It can also be a pair (tuple) of 157 (connection, read) timeouts. 158 :type _request_timeout: int, tuple(int, int), optional 159 :param _request_auth: set to override the auth_settings for an a single 160 request; this effectively ignores the 161 authentication in the spec for a single request. 162 :type _request_auth: dict, optional 163 :param _content_type: force content-type for the request. 164 :type _content_type: str, Optional 165 :param _headers: set to override the headers for a single 166 request; this effectively ignores the headers 167 in the spec for a single request. 168 :type _headers: dict, optional 169 :param _host_index: set to override the host_index for a single 170 request; this effectively ignores the host_index 171 in the spec for a single request. 172 :type _host_index: int, optional 173 :return: Returns the result object. 174 """ # noqa: E501 175 176 _param = self._create_pipeline_serialize( 177 organization=organization, 178 pipeline_configuration_schema=pipeline_configuration_schema, 179 _request_auth=_request_auth, 180 _content_type=_content_type, 181 _headers=_headers, 182 _host_index=_host_index 183 ) 184 185 _response_types_map: Dict[str, Optional[str]] = { 186 '200': "CreatePipelineResponse", 187 '400': "GetPipelines400Response", 188 '401': "GetPipelines400Response", 189 '403': "GetPipelines400Response", 190 '404': "GetPipelines400Response", 191 '500': "GetPipelines400Response", 192 } 193 response_data = self.api_client.call_api( 194 *_param, 195 _request_timeout=_request_timeout 196 ) 197 response_data.read() 198 return self.api_client.response_deserialize( 199 response_data=response_data, 200 response_types_map=_response_types_map, 201 ) 202 203 204 @validate_call 205 def create_pipeline_without_preload_content( 206 self, 207 organization: StrictStr, 208 pipeline_configuration_schema: PipelineConfigurationSchema, 209 _request_timeout: Union[ 210 None, 211 Annotated[StrictFloat, Field(gt=0)], 212 Tuple[ 213 Annotated[StrictFloat, Field(gt=0)], 214 Annotated[StrictFloat, Field(gt=0)] 215 ] 216 ] = None, 217 _request_auth: Optional[Dict[StrictStr, Any]] = None, 218 _content_type: Optional[StrictStr] = None, 219 _headers: Optional[Dict[StrictStr, Any]] = None, 220 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 221 ) -> RESTResponseType: 222 """Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Supabase (SUPABASE): Table Name (table): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: 223 224 225 :param organization: (required) 226 :type organization: str 227 :param pipeline_configuration_schema: (required) 228 :type pipeline_configuration_schema: PipelineConfigurationSchema 229 :param _request_timeout: timeout setting for this request. If one 230 number provided, it will be total request 231 timeout. It can also be a pair (tuple) of 232 (connection, read) timeouts. 233 :type _request_timeout: int, tuple(int, int), optional 234 :param _request_auth: set to override the auth_settings for an a single 235 request; this effectively ignores the 236 authentication in the spec for a single request. 237 :type _request_auth: dict, optional 238 :param _content_type: force content-type for the request. 239 :type _content_type: str, Optional 240 :param _headers: set to override the headers for a single 241 request; this effectively ignores the headers 242 in the spec for a single request. 243 :type _headers: dict, optional 244 :param _host_index: set to override the host_index for a single 245 request; this effectively ignores the host_index 246 in the spec for a single request. 247 :type _host_index: int, optional 248 :return: Returns the result object. 249 """ # noqa: E501 250 251 _param = self._create_pipeline_serialize( 252 organization=organization, 253 pipeline_configuration_schema=pipeline_configuration_schema, 254 _request_auth=_request_auth, 255 _content_type=_content_type, 256 _headers=_headers, 257 _host_index=_host_index 258 ) 259 260 _response_types_map: Dict[str, Optional[str]] = { 261 '200': "CreatePipelineResponse", 262 '400': "GetPipelines400Response", 263 '401': "GetPipelines400Response", 264 '403': "GetPipelines400Response", 265 '404': "GetPipelines400Response", 266 '500': "GetPipelines400Response", 267 } 268 response_data = self.api_client.call_api( 269 *_param, 270 _request_timeout=_request_timeout 271 ) 272 return response_data.response 273 274 275 def _create_pipeline_serialize( 276 self, 277 organization, 278 pipeline_configuration_schema, 279 _request_auth, 280 _content_type, 281 _headers, 282 _host_index, 283 ) -> RequestSerialized: 284 285 _host = None 286 287 _collection_formats: Dict[str, str] = { 288 } 289 290 _path_params: Dict[str, str] = {} 291 _query_params: List[Tuple[str, str]] = [] 292 _header_params: Dict[str, Optional[str]] = _headers or {} 293 _form_params: List[Tuple[str, str]] = [] 294 _files: Dict[ 295 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 296 ] = {} 297 _body_params: Optional[bytes] = None 298 299 # process the path parameters 300 if organization is not None: 301 _path_params['organization'] = organization 302 # process the query parameters 303 # process the header parameters 304 # process the form parameters 305 # process the body parameter 306 if pipeline_configuration_schema is not None: 307 _body_params = pipeline_configuration_schema 308 309 310 # set the HTTP header `Accept` 311 if 'Accept' not in _header_params: 312 _header_params['Accept'] = self.api_client.select_header_accept( 313 [ 314 'application/json' 315 ] 316 ) 317 318 # set the HTTP header `Content-Type` 319 if _content_type: 320 _header_params['Content-Type'] = _content_type 321 else: 322 _default_content_type = ( 323 self.api_client.select_header_content_type( 324 [ 325 'application/json' 326 ] 327 ) 328 ) 329 if _default_content_type is not None: 330 _header_params['Content-Type'] = _default_content_type 331 332 # authentication setting 333 _auth_settings: List[str] = [ 334 'bearerAuth' 335 ] 336 337 return self.api_client.param_serialize( 338 method='POST', 339 resource_path='/org/{organization}/pipelines', 340 path_params=_path_params, 341 query_params=_query_params, 342 header_params=_header_params, 343 body=_body_params, 344 post_params=_form_params, 345 files=_files, 346 auth_settings=_auth_settings, 347 collection_formats=_collection_formats, 348 _host=_host, 349 _request_auth=_request_auth 350 ) 351 352 353 354 355 @validate_call 356 def delete_pipeline( 357 self, 358 organization: StrictStr, 359 pipeline: StrictStr, 360 _request_timeout: Union[ 361 None, 362 Annotated[StrictFloat, Field(gt=0)], 363 Tuple[ 364 Annotated[StrictFloat, Field(gt=0)], 365 Annotated[StrictFloat, Field(gt=0)] 366 ] 367 ] = None, 368 _request_auth: Optional[Dict[StrictStr, Any]] = None, 369 _content_type: Optional[StrictStr] = None, 370 _headers: Optional[Dict[StrictStr, Any]] = None, 371 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 372 ) -> DeletePipelineResponse: 373 """Delete a pipeline 374 375 376 :param organization: (required) 377 :type organization: str 378 :param pipeline: (required) 379 :type pipeline: str 380 :param _request_timeout: timeout setting for this request. If one 381 number provided, it will be total request 382 timeout. It can also be a pair (tuple) of 383 (connection, read) timeouts. 384 :type _request_timeout: int, tuple(int, int), optional 385 :param _request_auth: set to override the auth_settings for an a single 386 request; this effectively ignores the 387 authentication in the spec for a single request. 388 :type _request_auth: dict, optional 389 :param _content_type: force content-type for the request. 390 :type _content_type: str, Optional 391 :param _headers: set to override the headers for a single 392 request; this effectively ignores the headers 393 in the spec for a single request. 394 :type _headers: dict, optional 395 :param _host_index: set to override the host_index for a single 396 request; this effectively ignores the host_index 397 in the spec for a single request. 398 :type _host_index: int, optional 399 :return: Returns the result object. 400 """ # noqa: E501 401 402 _param = self._delete_pipeline_serialize( 403 organization=organization, 404 pipeline=pipeline, 405 _request_auth=_request_auth, 406 _content_type=_content_type, 407 _headers=_headers, 408 _host_index=_host_index 409 ) 410 411 _response_types_map: Dict[str, Optional[str]] = { 412 '200': "DeletePipelineResponse", 413 '400': "GetPipelines400Response", 414 '401': "GetPipelines400Response", 415 '403': "GetPipelines400Response", 416 '404': "GetPipelines400Response", 417 '500': "GetPipelines400Response", 418 } 419 response_data = self.api_client.call_api( 420 *_param, 421 _request_timeout=_request_timeout 422 ) 423 response_data.read() 424 return self.api_client.response_deserialize( 425 response_data=response_data, 426 response_types_map=_response_types_map, 427 ).data 428 429 430 @validate_call 431 def delete_pipeline_with_http_info( 432 self, 433 organization: StrictStr, 434 pipeline: StrictStr, 435 _request_timeout: Union[ 436 None, 437 Annotated[StrictFloat, Field(gt=0)], 438 Tuple[ 439 Annotated[StrictFloat, Field(gt=0)], 440 Annotated[StrictFloat, Field(gt=0)] 441 ] 442 ] = None, 443 _request_auth: Optional[Dict[StrictStr, Any]] = None, 444 _content_type: Optional[StrictStr] = None, 445 _headers: Optional[Dict[StrictStr, Any]] = None, 446 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 447 ) -> ApiResponse[DeletePipelineResponse]: 448 """Delete a pipeline 449 450 451 :param organization: (required) 452 :type organization: str 453 :param pipeline: (required) 454 :type pipeline: str 455 :param _request_timeout: timeout setting for this request. If one 456 number provided, it will be total request 457 timeout. It can also be a pair (tuple) of 458 (connection, read) timeouts. 459 :type _request_timeout: int, tuple(int, int), optional 460 :param _request_auth: set to override the auth_settings for an a single 461 request; this effectively ignores the 462 authentication in the spec for a single request. 463 :type _request_auth: dict, optional 464 :param _content_type: force content-type for the request. 465 :type _content_type: str, Optional 466 :param _headers: set to override the headers for a single 467 request; this effectively ignores the headers 468 in the spec for a single request. 469 :type _headers: dict, optional 470 :param _host_index: set to override the host_index for a single 471 request; this effectively ignores the host_index 472 in the spec for a single request. 473 :type _host_index: int, optional 474 :return: Returns the result object. 475 """ # noqa: E501 476 477 _param = self._delete_pipeline_serialize( 478 organization=organization, 479 pipeline=pipeline, 480 _request_auth=_request_auth, 481 _content_type=_content_type, 482 _headers=_headers, 483 _host_index=_host_index 484 ) 485 486 _response_types_map: Dict[str, Optional[str]] = { 487 '200': "DeletePipelineResponse", 488 '400': "GetPipelines400Response", 489 '401': "GetPipelines400Response", 490 '403': "GetPipelines400Response", 491 '404': "GetPipelines400Response", 492 '500': "GetPipelines400Response", 493 } 494 response_data = self.api_client.call_api( 495 *_param, 496 _request_timeout=_request_timeout 497 ) 498 response_data.read() 499 return self.api_client.response_deserialize( 500 response_data=response_data, 501 response_types_map=_response_types_map, 502 ) 503 504 505 @validate_call 506 def delete_pipeline_without_preload_content( 507 self, 508 organization: StrictStr, 509 pipeline: StrictStr, 510 _request_timeout: Union[ 511 None, 512 Annotated[StrictFloat, Field(gt=0)], 513 Tuple[ 514 Annotated[StrictFloat, Field(gt=0)], 515 Annotated[StrictFloat, Field(gt=0)] 516 ] 517 ] = None, 518 _request_auth: Optional[Dict[StrictStr, Any]] = None, 519 _content_type: Optional[StrictStr] = None, 520 _headers: Optional[Dict[StrictStr, Any]] = None, 521 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 522 ) -> RESTResponseType: 523 """Delete a pipeline 524 525 526 :param organization: (required) 527 :type organization: str 528 :param pipeline: (required) 529 :type pipeline: str 530 :param _request_timeout: timeout setting for this request. If one 531 number provided, it will be total request 532 timeout. It can also be a pair (tuple) of 533 (connection, read) timeouts. 534 :type _request_timeout: int, tuple(int, int), optional 535 :param _request_auth: set to override the auth_settings for an a single 536 request; this effectively ignores the 537 authentication in the spec for a single request. 538 :type _request_auth: dict, optional 539 :param _content_type: force content-type for the request. 540 :type _content_type: str, Optional 541 :param _headers: set to override the headers for a single 542 request; this effectively ignores the headers 543 in the spec for a single request. 544 :type _headers: dict, optional 545 :param _host_index: set to override the host_index for a single 546 request; this effectively ignores the host_index 547 in the spec for a single request. 548 :type _host_index: int, optional 549 :return: Returns the result object. 550 """ # noqa: E501 551 552 _param = self._delete_pipeline_serialize( 553 organization=organization, 554 pipeline=pipeline, 555 _request_auth=_request_auth, 556 _content_type=_content_type, 557 _headers=_headers, 558 _host_index=_host_index 559 ) 560 561 _response_types_map: Dict[str, Optional[str]] = { 562 '200': "DeletePipelineResponse", 563 '400': "GetPipelines400Response", 564 '401': "GetPipelines400Response", 565 '403': "GetPipelines400Response", 566 '404': "GetPipelines400Response", 567 '500': "GetPipelines400Response", 568 } 569 response_data = self.api_client.call_api( 570 *_param, 571 _request_timeout=_request_timeout 572 ) 573 return response_data.response 574 575 576 def _delete_pipeline_serialize( 577 self, 578 organization, 579 pipeline, 580 _request_auth, 581 _content_type, 582 _headers, 583 _host_index, 584 ) -> RequestSerialized: 585 586 _host = None 587 588 _collection_formats: Dict[str, str] = { 589 } 590 591 _path_params: Dict[str, str] = {} 592 _query_params: List[Tuple[str, str]] = [] 593 _header_params: Dict[str, Optional[str]] = _headers or {} 594 _form_params: List[Tuple[str, str]] = [] 595 _files: Dict[ 596 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 597 ] = {} 598 _body_params: Optional[bytes] = None 599 600 # process the path parameters 601 if organization is not None: 602 _path_params['organization'] = organization 603 if pipeline is not None: 604 _path_params['pipeline'] = pipeline 605 # process the query parameters 606 # process the header parameters 607 # process the form parameters 608 # process the body parameter 609 610 611 # set the HTTP header `Accept` 612 if 'Accept' not in _header_params: 613 _header_params['Accept'] = self.api_client.select_header_accept( 614 [ 615 'application/json' 616 ] 617 ) 618 619 620 # authentication setting 621 _auth_settings: List[str] = [ 622 'bearerAuth' 623 ] 624 625 return self.api_client.param_serialize( 626 method='DELETE', 627 resource_path='/org/{organization}/pipelines/{pipeline}', 628 path_params=_path_params, 629 query_params=_query_params, 630 header_params=_header_params, 631 body=_body_params, 632 post_params=_form_params, 633 files=_files, 634 auth_settings=_auth_settings, 635 collection_formats=_collection_formats, 636 _host=_host, 637 _request_auth=_request_auth 638 ) 639 640 641 642 643 @validate_call 644 def get_deep_research_result( 645 self, 646 organization: StrictStr, 647 pipeline: StrictStr, 648 research_id: StrictStr, 649 _request_timeout: Union[ 650 None, 651 Annotated[StrictFloat, Field(gt=0)], 652 Tuple[ 653 Annotated[StrictFloat, Field(gt=0)], 654 Annotated[StrictFloat, Field(gt=0)] 655 ] 656 ] = None, 657 _request_auth: Optional[Dict[StrictStr, Any]] = None, 658 _content_type: Optional[StrictStr] = None, 659 _headers: Optional[Dict[StrictStr, Any]] = None, 660 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 661 ) -> GetDeepResearchResponse: 662 """Get deep research result 663 664 665 :param organization: (required) 666 :type organization: str 667 :param pipeline: (required) 668 :type pipeline: str 669 :param research_id: (required) 670 :type research_id: str 671 :param _request_timeout: timeout setting for this request. If one 672 number provided, it will be total request 673 timeout. It can also be a pair (tuple) of 674 (connection, read) timeouts. 675 :type _request_timeout: int, tuple(int, int), optional 676 :param _request_auth: set to override the auth_settings for an a single 677 request; this effectively ignores the 678 authentication in the spec for a single request. 679 :type _request_auth: dict, optional 680 :param _content_type: force content-type for the request. 681 :type _content_type: str, Optional 682 :param _headers: set to override the headers for a single 683 request; this effectively ignores the headers 684 in the spec for a single request. 685 :type _headers: dict, optional 686 :param _host_index: set to override the host_index for a single 687 request; this effectively ignores the host_index 688 in the spec for a single request. 689 :type _host_index: int, optional 690 :return: Returns the result object. 691 """ # noqa: E501 692 693 _param = self._get_deep_research_result_serialize( 694 organization=organization, 695 pipeline=pipeline, 696 research_id=research_id, 697 _request_auth=_request_auth, 698 _content_type=_content_type, 699 _headers=_headers, 700 _host_index=_host_index 701 ) 702 703 _response_types_map: Dict[str, Optional[str]] = { 704 '200': "GetDeepResearchResponse", 705 '400': "GetPipelines400Response", 706 '401': "GetPipelines400Response", 707 '403': "GetPipelines400Response", 708 '404': "GetPipelines400Response", 709 '500': "GetPipelines400Response", 710 } 711 response_data = self.api_client.call_api( 712 *_param, 713 _request_timeout=_request_timeout 714 ) 715 response_data.read() 716 return self.api_client.response_deserialize( 717 response_data=response_data, 718 response_types_map=_response_types_map, 719 ).data 720 721 722 @validate_call 723 def get_deep_research_result_with_http_info( 724 self, 725 organization: StrictStr, 726 pipeline: StrictStr, 727 research_id: StrictStr, 728 _request_timeout: Union[ 729 None, 730 Annotated[StrictFloat, Field(gt=0)], 731 Tuple[ 732 Annotated[StrictFloat, Field(gt=0)], 733 Annotated[StrictFloat, Field(gt=0)] 734 ] 735 ] = None, 736 _request_auth: Optional[Dict[StrictStr, Any]] = None, 737 _content_type: Optional[StrictStr] = None, 738 _headers: Optional[Dict[StrictStr, Any]] = None, 739 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 740 ) -> ApiResponse[GetDeepResearchResponse]: 741 """Get deep research result 742 743 744 :param organization: (required) 745 :type organization: str 746 :param pipeline: (required) 747 :type pipeline: str 748 :param research_id: (required) 749 :type research_id: str 750 :param _request_timeout: timeout setting for this request. If one 751 number provided, it will be total request 752 timeout. It can also be a pair (tuple) of 753 (connection, read) timeouts. 754 :type _request_timeout: int, tuple(int, int), optional 755 :param _request_auth: set to override the auth_settings for an a single 756 request; this effectively ignores the 757 authentication in the spec for a single request. 758 :type _request_auth: dict, optional 759 :param _content_type: force content-type for the request. 760 :type _content_type: str, Optional 761 :param _headers: set to override the headers for a single 762 request; this effectively ignores the headers 763 in the spec for a single request. 764 :type _headers: dict, optional 765 :param _host_index: set to override the host_index for a single 766 request; this effectively ignores the host_index 767 in the spec for a single request. 768 :type _host_index: int, optional 769 :return: Returns the result object. 770 """ # noqa: E501 771 772 _param = self._get_deep_research_result_serialize( 773 organization=organization, 774 pipeline=pipeline, 775 research_id=research_id, 776 _request_auth=_request_auth, 777 _content_type=_content_type, 778 _headers=_headers, 779 _host_index=_host_index 780 ) 781 782 _response_types_map: Dict[str, Optional[str]] = { 783 '200': "GetDeepResearchResponse", 784 '400': "GetPipelines400Response", 785 '401': "GetPipelines400Response", 786 '403': "GetPipelines400Response", 787 '404': "GetPipelines400Response", 788 '500': "GetPipelines400Response", 789 } 790 response_data = self.api_client.call_api( 791 *_param, 792 _request_timeout=_request_timeout 793 ) 794 response_data.read() 795 return self.api_client.response_deserialize( 796 response_data=response_data, 797 response_types_map=_response_types_map, 798 ) 799 800 801 @validate_call 802 def get_deep_research_result_without_preload_content( 803 self, 804 organization: StrictStr, 805 pipeline: StrictStr, 806 research_id: StrictStr, 807 _request_timeout: Union[ 808 None, 809 Annotated[StrictFloat, Field(gt=0)], 810 Tuple[ 811 Annotated[StrictFloat, Field(gt=0)], 812 Annotated[StrictFloat, Field(gt=0)] 813 ] 814 ] = None, 815 _request_auth: Optional[Dict[StrictStr, Any]] = None, 816 _content_type: Optional[StrictStr] = None, 817 _headers: Optional[Dict[StrictStr, Any]] = None, 818 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 819 ) -> RESTResponseType: 820 """Get deep research result 821 822 823 :param organization: (required) 824 :type organization: str 825 :param pipeline: (required) 826 :type pipeline: str 827 :param research_id: (required) 828 :type research_id: str 829 :param _request_timeout: timeout setting for this request. If one 830 number provided, it will be total request 831 timeout. It can also be a pair (tuple) of 832 (connection, read) timeouts. 833 :type _request_timeout: int, tuple(int, int), optional 834 :param _request_auth: set to override the auth_settings for an a single 835 request; this effectively ignores the 836 authentication in the spec for a single request. 837 :type _request_auth: dict, optional 838 :param _content_type: force content-type for the request. 839 :type _content_type: str, Optional 840 :param _headers: set to override the headers for a single 841 request; this effectively ignores the headers 842 in the spec for a single request. 843 :type _headers: dict, optional 844 :param _host_index: set to override the host_index for a single 845 request; this effectively ignores the host_index 846 in the spec for a single request. 847 :type _host_index: int, optional 848 :return: Returns the result object. 849 """ # noqa: E501 850 851 _param = self._get_deep_research_result_serialize( 852 organization=organization, 853 pipeline=pipeline, 854 research_id=research_id, 855 _request_auth=_request_auth, 856 _content_type=_content_type, 857 _headers=_headers, 858 _host_index=_host_index 859 ) 860 861 _response_types_map: Dict[str, Optional[str]] = { 862 '200': "GetDeepResearchResponse", 863 '400': "GetPipelines400Response", 864 '401': "GetPipelines400Response", 865 '403': "GetPipelines400Response", 866 '404': "GetPipelines400Response", 867 '500': "GetPipelines400Response", 868 } 869 response_data = self.api_client.call_api( 870 *_param, 871 _request_timeout=_request_timeout 872 ) 873 return response_data.response 874 875 876 def _get_deep_research_result_serialize( 877 self, 878 organization, 879 pipeline, 880 research_id, 881 _request_auth, 882 _content_type, 883 _headers, 884 _host_index, 885 ) -> RequestSerialized: 886 887 _host = None 888 889 _collection_formats: Dict[str, str] = { 890 } 891 892 _path_params: Dict[str, str] = {} 893 _query_params: List[Tuple[str, str]] = [] 894 _header_params: Dict[str, Optional[str]] = _headers or {} 895 _form_params: List[Tuple[str, str]] = [] 896 _files: Dict[ 897 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 898 ] = {} 899 _body_params: Optional[bytes] = None 900 901 # process the path parameters 902 if organization is not None: 903 _path_params['organization'] = organization 904 if pipeline is not None: 905 _path_params['pipeline'] = pipeline 906 if research_id is not None: 907 _path_params['researchId'] = research_id 908 # process the query parameters 909 # process the header parameters 910 # process the form parameters 911 # process the body parameter 912 913 914 # set the HTTP header `Accept` 915 if 'Accept' not in _header_params: 916 _header_params['Accept'] = self.api_client.select_header_accept( 917 [ 918 'application/json' 919 ] 920 ) 921 922 923 # authentication setting 924 _auth_settings: List[str] = [ 925 'bearerAuth' 926 ] 927 928 return self.api_client.param_serialize( 929 method='GET', 930 resource_path='/org/{organization}/pipelines/{pipeline}/deep-research/{researchId}', 931 path_params=_path_params, 932 query_params=_query_params, 933 header_params=_header_params, 934 body=_body_params, 935 post_params=_form_params, 936 files=_files, 937 auth_settings=_auth_settings, 938 collection_formats=_collection_formats, 939 _host=_host, 940 _request_auth=_request_auth 941 ) 942 943 944 945 946 @validate_call 947 def get_pipeline( 948 self, 949 organization: StrictStr, 950 pipeline: StrictStr, 951 _request_timeout: Union[ 952 None, 953 Annotated[StrictFloat, Field(gt=0)], 954 Tuple[ 955 Annotated[StrictFloat, Field(gt=0)], 956 Annotated[StrictFloat, Field(gt=0)] 957 ] 958 ] = None, 959 _request_auth: Optional[Dict[StrictStr, Any]] = None, 960 _content_type: Optional[StrictStr] = None, 961 _headers: Optional[Dict[StrictStr, Any]] = None, 962 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 963 ) -> GetPipelineResponse: 964 """Get a pipeline 965 966 967 :param organization: (required) 968 :type organization: str 969 :param pipeline: (required) 970 :type pipeline: str 971 :param _request_timeout: timeout setting for this request. If one 972 number provided, it will be total request 973 timeout. It can also be a pair (tuple) of 974 (connection, read) timeouts. 975 :type _request_timeout: int, tuple(int, int), optional 976 :param _request_auth: set to override the auth_settings for an a single 977 request; this effectively ignores the 978 authentication in the spec for a single request. 979 :type _request_auth: dict, optional 980 :param _content_type: force content-type for the request. 981 :type _content_type: str, Optional 982 :param _headers: set to override the headers for a single 983 request; this effectively ignores the headers 984 in the spec for a single request. 985 :type _headers: dict, optional 986 :param _host_index: set to override the host_index for a single 987 request; this effectively ignores the host_index 988 in the spec for a single request. 989 :type _host_index: int, optional 990 :return: Returns the result object. 991 """ # noqa: E501 992 993 _param = self._get_pipeline_serialize( 994 organization=organization, 995 pipeline=pipeline, 996 _request_auth=_request_auth, 997 _content_type=_content_type, 998 _headers=_headers, 999 _host_index=_host_index 1000 ) 1001 1002 _response_types_map: Dict[str, Optional[str]] = { 1003 '200': "GetPipelineResponse", 1004 '400': "GetPipelines400Response", 1005 '401': "GetPipelines400Response", 1006 '403': "GetPipelines400Response", 1007 '404': "GetPipelines400Response", 1008 '500': "GetPipelines400Response", 1009 } 1010 response_data = self.api_client.call_api( 1011 *_param, 1012 _request_timeout=_request_timeout 1013 ) 1014 response_data.read() 1015 return self.api_client.response_deserialize( 1016 response_data=response_data, 1017 response_types_map=_response_types_map, 1018 ).data 1019 1020 1021 @validate_call 1022 def get_pipeline_with_http_info( 1023 self, 1024 organization: StrictStr, 1025 pipeline: StrictStr, 1026 _request_timeout: Union[ 1027 None, 1028 Annotated[StrictFloat, Field(gt=0)], 1029 Tuple[ 1030 Annotated[StrictFloat, Field(gt=0)], 1031 Annotated[StrictFloat, Field(gt=0)] 1032 ] 1033 ] = None, 1034 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1035 _content_type: Optional[StrictStr] = None, 1036 _headers: Optional[Dict[StrictStr, Any]] = None, 1037 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1038 ) -> ApiResponse[GetPipelineResponse]: 1039 """Get a pipeline 1040 1041 1042 :param organization: (required) 1043 :type organization: str 1044 :param pipeline: (required) 1045 :type pipeline: str 1046 :param _request_timeout: timeout setting for this request. If one 1047 number provided, it will be total request 1048 timeout. It can also be a pair (tuple) of 1049 (connection, read) timeouts. 1050 :type _request_timeout: int, tuple(int, int), optional 1051 :param _request_auth: set to override the auth_settings for an a single 1052 request; this effectively ignores the 1053 authentication in the spec for a single request. 1054 :type _request_auth: dict, optional 1055 :param _content_type: force content-type for the request. 1056 :type _content_type: str, Optional 1057 :param _headers: set to override the headers for a single 1058 request; this effectively ignores the headers 1059 in the spec for a single request. 1060 :type _headers: dict, optional 1061 :param _host_index: set to override the host_index for a single 1062 request; this effectively ignores the host_index 1063 in the spec for a single request. 1064 :type _host_index: int, optional 1065 :return: Returns the result object. 1066 """ # noqa: E501 1067 1068 _param = self._get_pipeline_serialize( 1069 organization=organization, 1070 pipeline=pipeline, 1071 _request_auth=_request_auth, 1072 _content_type=_content_type, 1073 _headers=_headers, 1074 _host_index=_host_index 1075 ) 1076 1077 _response_types_map: Dict[str, Optional[str]] = { 1078 '200': "GetPipelineResponse", 1079 '400': "GetPipelines400Response", 1080 '401': "GetPipelines400Response", 1081 '403': "GetPipelines400Response", 1082 '404': "GetPipelines400Response", 1083 '500': "GetPipelines400Response", 1084 } 1085 response_data = self.api_client.call_api( 1086 *_param, 1087 _request_timeout=_request_timeout 1088 ) 1089 response_data.read() 1090 return self.api_client.response_deserialize( 1091 response_data=response_data, 1092 response_types_map=_response_types_map, 1093 ) 1094 1095 1096 @validate_call 1097 def get_pipeline_without_preload_content( 1098 self, 1099 organization: StrictStr, 1100 pipeline: StrictStr, 1101 _request_timeout: Union[ 1102 None, 1103 Annotated[StrictFloat, Field(gt=0)], 1104 Tuple[ 1105 Annotated[StrictFloat, Field(gt=0)], 1106 Annotated[StrictFloat, Field(gt=0)] 1107 ] 1108 ] = None, 1109 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1110 _content_type: Optional[StrictStr] = None, 1111 _headers: Optional[Dict[StrictStr, Any]] = None, 1112 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1113 ) -> RESTResponseType: 1114 """Get a pipeline 1115 1116 1117 :param organization: (required) 1118 :type organization: str 1119 :param pipeline: (required) 1120 :type pipeline: str 1121 :param _request_timeout: timeout setting for this request. If one 1122 number provided, it will be total request 1123 timeout. It can also be a pair (tuple) of 1124 (connection, read) timeouts. 1125 :type _request_timeout: int, tuple(int, int), optional 1126 :param _request_auth: set to override the auth_settings for an a single 1127 request; this effectively ignores the 1128 authentication in the spec for a single request. 1129 :type _request_auth: dict, optional 1130 :param _content_type: force content-type for the request. 1131 :type _content_type: str, Optional 1132 :param _headers: set to override the headers for a single 1133 request; this effectively ignores the headers 1134 in the spec for a single request. 1135 :type _headers: dict, optional 1136 :param _host_index: set to override the host_index for a single 1137 request; this effectively ignores the host_index 1138 in the spec for a single request. 1139 :type _host_index: int, optional 1140 :return: Returns the result object. 1141 """ # noqa: E501 1142 1143 _param = self._get_pipeline_serialize( 1144 organization=organization, 1145 pipeline=pipeline, 1146 _request_auth=_request_auth, 1147 _content_type=_content_type, 1148 _headers=_headers, 1149 _host_index=_host_index 1150 ) 1151 1152 _response_types_map: Dict[str, Optional[str]] = { 1153 '200': "GetPipelineResponse", 1154 '400': "GetPipelines400Response", 1155 '401': "GetPipelines400Response", 1156 '403': "GetPipelines400Response", 1157 '404': "GetPipelines400Response", 1158 '500': "GetPipelines400Response", 1159 } 1160 response_data = self.api_client.call_api( 1161 *_param, 1162 _request_timeout=_request_timeout 1163 ) 1164 return response_data.response 1165 1166 1167 def _get_pipeline_serialize( 1168 self, 1169 organization, 1170 pipeline, 1171 _request_auth, 1172 _content_type, 1173 _headers, 1174 _host_index, 1175 ) -> RequestSerialized: 1176 1177 _host = None 1178 1179 _collection_formats: Dict[str, str] = { 1180 } 1181 1182 _path_params: Dict[str, str] = {} 1183 _query_params: List[Tuple[str, str]] = [] 1184 _header_params: Dict[str, Optional[str]] = _headers or {} 1185 _form_params: List[Tuple[str, str]] = [] 1186 _files: Dict[ 1187 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 1188 ] = {} 1189 _body_params: Optional[bytes] = None 1190 1191 # process the path parameters 1192 if organization is not None: 1193 _path_params['organization'] = organization 1194 if pipeline is not None: 1195 _path_params['pipeline'] = pipeline 1196 # process the query parameters 1197 # process the header parameters 1198 # process the form parameters 1199 # process the body parameter 1200 1201 1202 # set the HTTP header `Accept` 1203 if 'Accept' not in _header_params: 1204 _header_params['Accept'] = self.api_client.select_header_accept( 1205 [ 1206 'application/json' 1207 ] 1208 ) 1209 1210 1211 # authentication setting 1212 _auth_settings: List[str] = [ 1213 'bearerAuth' 1214 ] 1215 1216 return self.api_client.param_serialize( 1217 method='GET', 1218 resource_path='/org/{organization}/pipelines/{pipeline}', 1219 path_params=_path_params, 1220 query_params=_query_params, 1221 header_params=_header_params, 1222 body=_body_params, 1223 post_params=_form_params, 1224 files=_files, 1225 auth_settings=_auth_settings, 1226 collection_formats=_collection_formats, 1227 _host=_host, 1228 _request_auth=_request_auth 1229 ) 1230 1231 1232 1233 1234 @validate_call 1235 def get_pipeline_events( 1236 self, 1237 organization: StrictStr, 1238 pipeline: StrictStr, 1239 next_token: Optional[StrictStr] = None, 1240 _request_timeout: Union[ 1241 None, 1242 Annotated[StrictFloat, Field(gt=0)], 1243 Tuple[ 1244 Annotated[StrictFloat, Field(gt=0)], 1245 Annotated[StrictFloat, Field(gt=0)] 1246 ] 1247 ] = None, 1248 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1249 _content_type: Optional[StrictStr] = None, 1250 _headers: Optional[Dict[StrictStr, Any]] = None, 1251 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1252 ) -> GetPipelineEventsResponse: 1253 """Get pipeline events 1254 1255 1256 :param organization: (required) 1257 :type organization: str 1258 :param pipeline: (required) 1259 :type pipeline: str 1260 :param next_token: 1261 :type next_token: str 1262 :param _request_timeout: timeout setting for this request. If one 1263 number provided, it will be total request 1264 timeout. It can also be a pair (tuple) of 1265 (connection, read) timeouts. 1266 :type _request_timeout: int, tuple(int, int), optional 1267 :param _request_auth: set to override the auth_settings for an a single 1268 request; this effectively ignores the 1269 authentication in the spec for a single request. 1270 :type _request_auth: dict, optional 1271 :param _content_type: force content-type for the request. 1272 :type _content_type: str, Optional 1273 :param _headers: set to override the headers for a single 1274 request; this effectively ignores the headers 1275 in the spec for a single request. 1276 :type _headers: dict, optional 1277 :param _host_index: set to override the host_index for a single 1278 request; this effectively ignores the host_index 1279 in the spec for a single request. 1280 :type _host_index: int, optional 1281 :return: Returns the result object. 1282 """ # noqa: E501 1283 1284 _param = self._get_pipeline_events_serialize( 1285 organization=organization, 1286 pipeline=pipeline, 1287 next_token=next_token, 1288 _request_auth=_request_auth, 1289 _content_type=_content_type, 1290 _headers=_headers, 1291 _host_index=_host_index 1292 ) 1293 1294 _response_types_map: Dict[str, Optional[str]] = { 1295 '200': "GetPipelineEventsResponse", 1296 '400': "GetPipelines400Response", 1297 '401': "GetPipelines400Response", 1298 '403': "GetPipelines400Response", 1299 '404': "GetPipelines400Response", 1300 '500': "GetPipelines400Response", 1301 } 1302 response_data = self.api_client.call_api( 1303 *_param, 1304 _request_timeout=_request_timeout 1305 ) 1306 response_data.read() 1307 return self.api_client.response_deserialize( 1308 response_data=response_data, 1309 response_types_map=_response_types_map, 1310 ).data 1311 1312 1313 @validate_call 1314 def get_pipeline_events_with_http_info( 1315 self, 1316 organization: StrictStr, 1317 pipeline: StrictStr, 1318 next_token: Optional[StrictStr] = None, 1319 _request_timeout: Union[ 1320 None, 1321 Annotated[StrictFloat, Field(gt=0)], 1322 Tuple[ 1323 Annotated[StrictFloat, Field(gt=0)], 1324 Annotated[StrictFloat, Field(gt=0)] 1325 ] 1326 ] = None, 1327 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1328 _content_type: Optional[StrictStr] = None, 1329 _headers: Optional[Dict[StrictStr, Any]] = None, 1330 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1331 ) -> ApiResponse[GetPipelineEventsResponse]: 1332 """Get pipeline events 1333 1334 1335 :param organization: (required) 1336 :type organization: str 1337 :param pipeline: (required) 1338 :type pipeline: str 1339 :param next_token: 1340 :type next_token: str 1341 :param _request_timeout: timeout setting for this request. If one 1342 number provided, it will be total request 1343 timeout. It can also be a pair (tuple) of 1344 (connection, read) timeouts. 1345 :type _request_timeout: int, tuple(int, int), optional 1346 :param _request_auth: set to override the auth_settings for an a single 1347 request; this effectively ignores the 1348 authentication in the spec for a single request. 1349 :type _request_auth: dict, optional 1350 :param _content_type: force content-type for the request. 1351 :type _content_type: str, Optional 1352 :param _headers: set to override the headers for a single 1353 request; this effectively ignores the headers 1354 in the spec for a single request. 1355 :type _headers: dict, optional 1356 :param _host_index: set to override the host_index for a single 1357 request; this effectively ignores the host_index 1358 in the spec for a single request. 1359 :type _host_index: int, optional 1360 :return: Returns the result object. 1361 """ # noqa: E501 1362 1363 _param = self._get_pipeline_events_serialize( 1364 organization=organization, 1365 pipeline=pipeline, 1366 next_token=next_token, 1367 _request_auth=_request_auth, 1368 _content_type=_content_type, 1369 _headers=_headers, 1370 _host_index=_host_index 1371 ) 1372 1373 _response_types_map: Dict[str, Optional[str]] = { 1374 '200': "GetPipelineEventsResponse", 1375 '400': "GetPipelines400Response", 1376 '401': "GetPipelines400Response", 1377 '403': "GetPipelines400Response", 1378 '404': "GetPipelines400Response", 1379 '500': "GetPipelines400Response", 1380 } 1381 response_data = self.api_client.call_api( 1382 *_param, 1383 _request_timeout=_request_timeout 1384 ) 1385 response_data.read() 1386 return self.api_client.response_deserialize( 1387 response_data=response_data, 1388 response_types_map=_response_types_map, 1389 ) 1390 1391 1392 @validate_call 1393 def get_pipeline_events_without_preload_content( 1394 self, 1395 organization: StrictStr, 1396 pipeline: StrictStr, 1397 next_token: Optional[StrictStr] = None, 1398 _request_timeout: Union[ 1399 None, 1400 Annotated[StrictFloat, Field(gt=0)], 1401 Tuple[ 1402 Annotated[StrictFloat, Field(gt=0)], 1403 Annotated[StrictFloat, Field(gt=0)] 1404 ] 1405 ] = None, 1406 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1407 _content_type: Optional[StrictStr] = None, 1408 _headers: Optional[Dict[StrictStr, Any]] = None, 1409 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1410 ) -> RESTResponseType: 1411 """Get pipeline events 1412 1413 1414 :param organization: (required) 1415 :type organization: str 1416 :param pipeline: (required) 1417 :type pipeline: str 1418 :param next_token: 1419 :type next_token: str 1420 :param _request_timeout: timeout setting for this request. If one 1421 number provided, it will be total request 1422 timeout. It can also be a pair (tuple) of 1423 (connection, read) timeouts. 1424 :type _request_timeout: int, tuple(int, int), optional 1425 :param _request_auth: set to override the auth_settings for an a single 1426 request; this effectively ignores the 1427 authentication in the spec for a single request. 1428 :type _request_auth: dict, optional 1429 :param _content_type: force content-type for the request. 1430 :type _content_type: str, Optional 1431 :param _headers: set to override the headers for a single 1432 request; this effectively ignores the headers 1433 in the spec for a single request. 1434 :type _headers: dict, optional 1435 :param _host_index: set to override the host_index for a single 1436 request; this effectively ignores the host_index 1437 in the spec for a single request. 1438 :type _host_index: int, optional 1439 :return: Returns the result object. 1440 """ # noqa: E501 1441 1442 _param = self._get_pipeline_events_serialize( 1443 organization=organization, 1444 pipeline=pipeline, 1445 next_token=next_token, 1446 _request_auth=_request_auth, 1447 _content_type=_content_type, 1448 _headers=_headers, 1449 _host_index=_host_index 1450 ) 1451 1452 _response_types_map: Dict[str, Optional[str]] = { 1453 '200': "GetPipelineEventsResponse", 1454 '400': "GetPipelines400Response", 1455 '401': "GetPipelines400Response", 1456 '403': "GetPipelines400Response", 1457 '404': "GetPipelines400Response", 1458 '500': "GetPipelines400Response", 1459 } 1460 response_data = self.api_client.call_api( 1461 *_param, 1462 _request_timeout=_request_timeout 1463 ) 1464 return response_data.response 1465 1466 1467 def _get_pipeline_events_serialize( 1468 self, 1469 organization, 1470 pipeline, 1471 next_token, 1472 _request_auth, 1473 _content_type, 1474 _headers, 1475 _host_index, 1476 ) -> RequestSerialized: 1477 1478 _host = None 1479 1480 _collection_formats: Dict[str, str] = { 1481 } 1482 1483 _path_params: Dict[str, str] = {} 1484 _query_params: List[Tuple[str, str]] = [] 1485 _header_params: Dict[str, Optional[str]] = _headers or {} 1486 _form_params: List[Tuple[str, str]] = [] 1487 _files: Dict[ 1488 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 1489 ] = {} 1490 _body_params: Optional[bytes] = None 1491 1492 # process the path parameters 1493 if organization is not None: 1494 _path_params['organization'] = organization 1495 if pipeline is not None: 1496 _path_params['pipeline'] = pipeline 1497 # process the query parameters 1498 if next_token is not None: 1499 1500 _query_params.append(('nextToken', next_token)) 1501 1502 # process the header parameters 1503 # process the form parameters 1504 # process the body parameter 1505 1506 1507 # set the HTTP header `Accept` 1508 if 'Accept' not in _header_params: 1509 _header_params['Accept'] = self.api_client.select_header_accept( 1510 [ 1511 'application/json' 1512 ] 1513 ) 1514 1515 1516 # authentication setting 1517 _auth_settings: List[str] = [ 1518 'bearerAuth' 1519 ] 1520 1521 return self.api_client.param_serialize( 1522 method='GET', 1523 resource_path='/org/{organization}/pipelines/{pipeline}/events', 1524 path_params=_path_params, 1525 query_params=_query_params, 1526 header_params=_header_params, 1527 body=_body_params, 1528 post_params=_form_params, 1529 files=_files, 1530 auth_settings=_auth_settings, 1531 collection_formats=_collection_formats, 1532 _host=_host, 1533 _request_auth=_request_auth 1534 ) 1535 1536 1537 1538 1539 @validate_call 1540 def get_pipeline_metrics( 1541 self, 1542 organization: StrictStr, 1543 pipeline: StrictStr, 1544 _request_timeout: Union[ 1545 None, 1546 Annotated[StrictFloat, Field(gt=0)], 1547 Tuple[ 1548 Annotated[StrictFloat, Field(gt=0)], 1549 Annotated[StrictFloat, Field(gt=0)] 1550 ] 1551 ] = None, 1552 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1553 _content_type: Optional[StrictStr] = None, 1554 _headers: Optional[Dict[StrictStr, Any]] = None, 1555 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1556 ) -> GetPipelineMetricsResponse: 1557 """Get pipeline metrics 1558 1559 1560 :param organization: (required) 1561 :type organization: str 1562 :param pipeline: (required) 1563 :type pipeline: str 1564 :param _request_timeout: timeout setting for this request. If one 1565 number provided, it will be total request 1566 timeout. It can also be a pair (tuple) of 1567 (connection, read) timeouts. 1568 :type _request_timeout: int, tuple(int, int), optional 1569 :param _request_auth: set to override the auth_settings for an a single 1570 request; this effectively ignores the 1571 authentication in the spec for a single request. 1572 :type _request_auth: dict, optional 1573 :param _content_type: force content-type for the request. 1574 :type _content_type: str, Optional 1575 :param _headers: set to override the headers for a single 1576 request; this effectively ignores the headers 1577 in the spec for a single request. 1578 :type _headers: dict, optional 1579 :param _host_index: set to override the host_index for a single 1580 request; this effectively ignores the host_index 1581 in the spec for a single request. 1582 :type _host_index: int, optional 1583 :return: Returns the result object. 1584 """ # noqa: E501 1585 1586 _param = self._get_pipeline_metrics_serialize( 1587 organization=organization, 1588 pipeline=pipeline, 1589 _request_auth=_request_auth, 1590 _content_type=_content_type, 1591 _headers=_headers, 1592 _host_index=_host_index 1593 ) 1594 1595 _response_types_map: Dict[str, Optional[str]] = { 1596 '200': "GetPipelineMetricsResponse", 1597 '400': "GetPipelines400Response", 1598 '401': "GetPipelines400Response", 1599 '403': "GetPipelines400Response", 1600 '404': "GetPipelines400Response", 1601 '500': "GetPipelines400Response", 1602 } 1603 response_data = self.api_client.call_api( 1604 *_param, 1605 _request_timeout=_request_timeout 1606 ) 1607 response_data.read() 1608 return self.api_client.response_deserialize( 1609 response_data=response_data, 1610 response_types_map=_response_types_map, 1611 ).data 1612 1613 1614 @validate_call 1615 def get_pipeline_metrics_with_http_info( 1616 self, 1617 organization: StrictStr, 1618 pipeline: StrictStr, 1619 _request_timeout: Union[ 1620 None, 1621 Annotated[StrictFloat, Field(gt=0)], 1622 Tuple[ 1623 Annotated[StrictFloat, Field(gt=0)], 1624 Annotated[StrictFloat, Field(gt=0)] 1625 ] 1626 ] = None, 1627 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1628 _content_type: Optional[StrictStr] = None, 1629 _headers: Optional[Dict[StrictStr, Any]] = None, 1630 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1631 ) -> ApiResponse[GetPipelineMetricsResponse]: 1632 """Get pipeline metrics 1633 1634 1635 :param organization: (required) 1636 :type organization: str 1637 :param pipeline: (required) 1638 :type pipeline: str 1639 :param _request_timeout: timeout setting for this request. If one 1640 number provided, it will be total request 1641 timeout. It can also be a pair (tuple) of 1642 (connection, read) timeouts. 1643 :type _request_timeout: int, tuple(int, int), optional 1644 :param _request_auth: set to override the auth_settings for an a single 1645 request; this effectively ignores the 1646 authentication in the spec for a single request. 1647 :type _request_auth: dict, optional 1648 :param _content_type: force content-type for the request. 1649 :type _content_type: str, Optional 1650 :param _headers: set to override the headers for a single 1651 request; this effectively ignores the headers 1652 in the spec for a single request. 1653 :type _headers: dict, optional 1654 :param _host_index: set to override the host_index for a single 1655 request; this effectively ignores the host_index 1656 in the spec for a single request. 1657 :type _host_index: int, optional 1658 :return: Returns the result object. 1659 """ # noqa: E501 1660 1661 _param = self._get_pipeline_metrics_serialize( 1662 organization=organization, 1663 pipeline=pipeline, 1664 _request_auth=_request_auth, 1665 _content_type=_content_type, 1666 _headers=_headers, 1667 _host_index=_host_index 1668 ) 1669 1670 _response_types_map: Dict[str, Optional[str]] = { 1671 '200': "GetPipelineMetricsResponse", 1672 '400': "GetPipelines400Response", 1673 '401': "GetPipelines400Response", 1674 '403': "GetPipelines400Response", 1675 '404': "GetPipelines400Response", 1676 '500': "GetPipelines400Response", 1677 } 1678 response_data = self.api_client.call_api( 1679 *_param, 1680 _request_timeout=_request_timeout 1681 ) 1682 response_data.read() 1683 return self.api_client.response_deserialize( 1684 response_data=response_data, 1685 response_types_map=_response_types_map, 1686 ) 1687 1688 1689 @validate_call 1690 def get_pipeline_metrics_without_preload_content( 1691 self, 1692 organization: StrictStr, 1693 pipeline: StrictStr, 1694 _request_timeout: Union[ 1695 None, 1696 Annotated[StrictFloat, Field(gt=0)], 1697 Tuple[ 1698 Annotated[StrictFloat, Field(gt=0)], 1699 Annotated[StrictFloat, Field(gt=0)] 1700 ] 1701 ] = None, 1702 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1703 _content_type: Optional[StrictStr] = None, 1704 _headers: Optional[Dict[StrictStr, Any]] = None, 1705 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1706 ) -> RESTResponseType: 1707 """Get pipeline metrics 1708 1709 1710 :param organization: (required) 1711 :type organization: str 1712 :param pipeline: (required) 1713 :type pipeline: str 1714 :param _request_timeout: timeout setting for this request. If one 1715 number provided, it will be total request 1716 timeout. It can also be a pair (tuple) of 1717 (connection, read) timeouts. 1718 :type _request_timeout: int, tuple(int, int), optional 1719 :param _request_auth: set to override the auth_settings for an a single 1720 request; this effectively ignores the 1721 authentication in the spec for a single request. 1722 :type _request_auth: dict, optional 1723 :param _content_type: force content-type for the request. 1724 :type _content_type: str, Optional 1725 :param _headers: set to override the headers for a single 1726 request; this effectively ignores the headers 1727 in the spec for a single request. 1728 :type _headers: dict, optional 1729 :param _host_index: set to override the host_index for a single 1730 request; this effectively ignores the host_index 1731 in the spec for a single request. 1732 :type _host_index: int, optional 1733 :return: Returns the result object. 1734 """ # noqa: E501 1735 1736 _param = self._get_pipeline_metrics_serialize( 1737 organization=organization, 1738 pipeline=pipeline, 1739 _request_auth=_request_auth, 1740 _content_type=_content_type, 1741 _headers=_headers, 1742 _host_index=_host_index 1743 ) 1744 1745 _response_types_map: Dict[str, Optional[str]] = { 1746 '200': "GetPipelineMetricsResponse", 1747 '400': "GetPipelines400Response", 1748 '401': "GetPipelines400Response", 1749 '403': "GetPipelines400Response", 1750 '404': "GetPipelines400Response", 1751 '500': "GetPipelines400Response", 1752 } 1753 response_data = self.api_client.call_api( 1754 *_param, 1755 _request_timeout=_request_timeout 1756 ) 1757 return response_data.response 1758 1759 1760 def _get_pipeline_metrics_serialize( 1761 self, 1762 organization, 1763 pipeline, 1764 _request_auth, 1765 _content_type, 1766 _headers, 1767 _host_index, 1768 ) -> RequestSerialized: 1769 1770 _host = None 1771 1772 _collection_formats: Dict[str, str] = { 1773 } 1774 1775 _path_params: Dict[str, str] = {} 1776 _query_params: List[Tuple[str, str]] = [] 1777 _header_params: Dict[str, Optional[str]] = _headers or {} 1778 _form_params: List[Tuple[str, str]] = [] 1779 _files: Dict[ 1780 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 1781 ] = {} 1782 _body_params: Optional[bytes] = None 1783 1784 # process the path parameters 1785 if organization is not None: 1786 _path_params['organization'] = organization 1787 if pipeline is not None: 1788 _path_params['pipeline'] = pipeline 1789 # process the query parameters 1790 # process the header parameters 1791 # process the form parameters 1792 # process the body parameter 1793 1794 1795 # set the HTTP header `Accept` 1796 if 'Accept' not in _header_params: 1797 _header_params['Accept'] = self.api_client.select_header_accept( 1798 [ 1799 'application/json' 1800 ] 1801 ) 1802 1803 1804 # authentication setting 1805 _auth_settings: List[str] = [ 1806 'bearerAuth' 1807 ] 1808 1809 return self.api_client.param_serialize( 1810 method='GET', 1811 resource_path='/org/{organization}/pipelines/{pipeline}/metrics', 1812 path_params=_path_params, 1813 query_params=_query_params, 1814 header_params=_header_params, 1815 body=_body_params, 1816 post_params=_form_params, 1817 files=_files, 1818 auth_settings=_auth_settings, 1819 collection_formats=_collection_formats, 1820 _host=_host, 1821 _request_auth=_request_auth 1822 ) 1823 1824 1825 1826 1827 @validate_call 1828 def get_pipelines( 1829 self, 1830 organization: StrictStr, 1831 _request_timeout: Union[ 1832 None, 1833 Annotated[StrictFloat, Field(gt=0)], 1834 Tuple[ 1835 Annotated[StrictFloat, Field(gt=0)], 1836 Annotated[StrictFloat, Field(gt=0)] 1837 ] 1838 ] = None, 1839 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1840 _content_type: Optional[StrictStr] = None, 1841 _headers: Optional[Dict[StrictStr, Any]] = None, 1842 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1843 ) -> GetPipelinesResponse: 1844 """Get all existing pipelines 1845 1846 1847 :param organization: (required) 1848 :type organization: str 1849 :param _request_timeout: timeout setting for this request. If one 1850 number provided, it will be total request 1851 timeout. It can also be a pair (tuple) of 1852 (connection, read) timeouts. 1853 :type _request_timeout: int, tuple(int, int), optional 1854 :param _request_auth: set to override the auth_settings for an a single 1855 request; this effectively ignores the 1856 authentication in the spec for a single request. 1857 :type _request_auth: dict, optional 1858 :param _content_type: force content-type for the request. 1859 :type _content_type: str, Optional 1860 :param _headers: set to override the headers for a single 1861 request; this effectively ignores the headers 1862 in the spec for a single request. 1863 :type _headers: dict, optional 1864 :param _host_index: set to override the host_index for a single 1865 request; this effectively ignores the host_index 1866 in the spec for a single request. 1867 :type _host_index: int, optional 1868 :return: Returns the result object. 1869 """ # noqa: E501 1870 1871 _param = self._get_pipelines_serialize( 1872 organization=organization, 1873 _request_auth=_request_auth, 1874 _content_type=_content_type, 1875 _headers=_headers, 1876 _host_index=_host_index 1877 ) 1878 1879 _response_types_map: Dict[str, Optional[str]] = { 1880 '200': "GetPipelinesResponse", 1881 '400': "GetPipelines400Response", 1882 '401': "GetPipelines400Response", 1883 '403': "GetPipelines400Response", 1884 '404': "GetPipelines400Response", 1885 '500': "GetPipelines400Response", 1886 } 1887 response_data = self.api_client.call_api( 1888 *_param, 1889 _request_timeout=_request_timeout 1890 ) 1891 response_data.read() 1892 return self.api_client.response_deserialize( 1893 response_data=response_data, 1894 response_types_map=_response_types_map, 1895 ).data 1896 1897 1898 @validate_call 1899 def get_pipelines_with_http_info( 1900 self, 1901 organization: StrictStr, 1902 _request_timeout: Union[ 1903 None, 1904 Annotated[StrictFloat, Field(gt=0)], 1905 Tuple[ 1906 Annotated[StrictFloat, Field(gt=0)], 1907 Annotated[StrictFloat, Field(gt=0)] 1908 ] 1909 ] = None, 1910 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1911 _content_type: Optional[StrictStr] = None, 1912 _headers: Optional[Dict[StrictStr, Any]] = None, 1913 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1914 ) -> ApiResponse[GetPipelinesResponse]: 1915 """Get all existing pipelines 1916 1917 1918 :param organization: (required) 1919 :type organization: str 1920 :param _request_timeout: timeout setting for this request. If one 1921 number provided, it will be total request 1922 timeout. It can also be a pair (tuple) of 1923 (connection, read) timeouts. 1924 :type _request_timeout: int, tuple(int, int), optional 1925 :param _request_auth: set to override the auth_settings for an a single 1926 request; this effectively ignores the 1927 authentication in the spec for a single request. 1928 :type _request_auth: dict, optional 1929 :param _content_type: force content-type for the request. 1930 :type _content_type: str, Optional 1931 :param _headers: set to override the headers for a single 1932 request; this effectively ignores the headers 1933 in the spec for a single request. 1934 :type _headers: dict, optional 1935 :param _host_index: set to override the host_index for a single 1936 request; this effectively ignores the host_index 1937 in the spec for a single request. 1938 :type _host_index: int, optional 1939 :return: Returns the result object. 1940 """ # noqa: E501 1941 1942 _param = self._get_pipelines_serialize( 1943 organization=organization, 1944 _request_auth=_request_auth, 1945 _content_type=_content_type, 1946 _headers=_headers, 1947 _host_index=_host_index 1948 ) 1949 1950 _response_types_map: Dict[str, Optional[str]] = { 1951 '200': "GetPipelinesResponse", 1952 '400': "GetPipelines400Response", 1953 '401': "GetPipelines400Response", 1954 '403': "GetPipelines400Response", 1955 '404': "GetPipelines400Response", 1956 '500': "GetPipelines400Response", 1957 } 1958 response_data = self.api_client.call_api( 1959 *_param, 1960 _request_timeout=_request_timeout 1961 ) 1962 response_data.read() 1963 return self.api_client.response_deserialize( 1964 response_data=response_data, 1965 response_types_map=_response_types_map, 1966 ) 1967 1968 1969 @validate_call 1970 def get_pipelines_without_preload_content( 1971 self, 1972 organization: StrictStr, 1973 _request_timeout: Union[ 1974 None, 1975 Annotated[StrictFloat, Field(gt=0)], 1976 Tuple[ 1977 Annotated[StrictFloat, Field(gt=0)], 1978 Annotated[StrictFloat, Field(gt=0)] 1979 ] 1980 ] = None, 1981 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1982 _content_type: Optional[StrictStr] = None, 1983 _headers: Optional[Dict[StrictStr, Any]] = None, 1984 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1985 ) -> RESTResponseType: 1986 """Get all existing pipelines 1987 1988 1989 :param organization: (required) 1990 :type organization: str 1991 :param _request_timeout: timeout setting for this request. If one 1992 number provided, it will be total request 1993 timeout. It can also be a pair (tuple) of 1994 (connection, read) timeouts. 1995 :type _request_timeout: int, tuple(int, int), optional 1996 :param _request_auth: set to override the auth_settings for an a single 1997 request; this effectively ignores the 1998 authentication in the spec for a single request. 1999 :type _request_auth: dict, optional 2000 :param _content_type: force content-type for the request. 2001 :type _content_type: str, Optional 2002 :param _headers: set to override the headers for a single 2003 request; this effectively ignores the headers 2004 in the spec for a single request. 2005 :type _headers: dict, optional 2006 :param _host_index: set to override the host_index for a single 2007 request; this effectively ignores the host_index 2008 in the spec for a single request. 2009 :type _host_index: int, optional 2010 :return: Returns the result object. 2011 """ # noqa: E501 2012 2013 _param = self._get_pipelines_serialize( 2014 organization=organization, 2015 _request_auth=_request_auth, 2016 _content_type=_content_type, 2017 _headers=_headers, 2018 _host_index=_host_index 2019 ) 2020 2021 _response_types_map: Dict[str, Optional[str]] = { 2022 '200': "GetPipelinesResponse", 2023 '400': "GetPipelines400Response", 2024 '401': "GetPipelines400Response", 2025 '403': "GetPipelines400Response", 2026 '404': "GetPipelines400Response", 2027 '500': "GetPipelines400Response", 2028 } 2029 response_data = self.api_client.call_api( 2030 *_param, 2031 _request_timeout=_request_timeout 2032 ) 2033 return response_data.response 2034 2035 2036 def _get_pipelines_serialize( 2037 self, 2038 organization, 2039 _request_auth, 2040 _content_type, 2041 _headers, 2042 _host_index, 2043 ) -> RequestSerialized: 2044 2045 _host = None 2046 2047 _collection_formats: Dict[str, str] = { 2048 } 2049 2050 _path_params: Dict[str, str] = {} 2051 _query_params: List[Tuple[str, str]] = [] 2052 _header_params: Dict[str, Optional[str]] = _headers or {} 2053 _form_params: List[Tuple[str, str]] = [] 2054 _files: Dict[ 2055 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 2056 ] = {} 2057 _body_params: Optional[bytes] = None 2058 2059 # process the path parameters 2060 if organization is not None: 2061 _path_params['organization'] = organization 2062 # process the query parameters 2063 # process the header parameters 2064 # process the form parameters 2065 # process the body parameter 2066 2067 2068 # set the HTTP header `Accept` 2069 if 'Accept' not in _header_params: 2070 _header_params['Accept'] = self.api_client.select_header_accept( 2071 [ 2072 'application/json' 2073 ] 2074 ) 2075 2076 2077 # authentication setting 2078 _auth_settings: List[str] = [ 2079 'bearerAuth' 2080 ] 2081 2082 return self.api_client.param_serialize( 2083 method='GET', 2084 resource_path='/org/{organization}/pipelines', 2085 path_params=_path_params, 2086 query_params=_query_params, 2087 header_params=_header_params, 2088 body=_body_params, 2089 post_params=_form_params, 2090 files=_files, 2091 auth_settings=_auth_settings, 2092 collection_formats=_collection_formats, 2093 _host=_host, 2094 _request_auth=_request_auth 2095 ) 2096 2097 2098 2099 2100 @validate_call 2101 def retrieve_documents( 2102 self, 2103 organization: StrictStr, 2104 pipeline: StrictStr, 2105 retrieve_documents_request: RetrieveDocumentsRequest, 2106 _request_timeout: Union[ 2107 None, 2108 Annotated[StrictFloat, Field(gt=0)], 2109 Tuple[ 2110 Annotated[StrictFloat, Field(gt=0)], 2111 Annotated[StrictFloat, Field(gt=0)] 2112 ] 2113 ] = None, 2114 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2115 _content_type: Optional[StrictStr] = None, 2116 _headers: Optional[Dict[StrictStr, Any]] = None, 2117 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2118 ) -> RetrieveDocumentsResponse: 2119 """Retrieve documents from a pipeline 2120 2121 2122 :param organization: (required) 2123 :type organization: str 2124 :param pipeline: (required) 2125 :type pipeline: str 2126 :param retrieve_documents_request: (required) 2127 :type retrieve_documents_request: RetrieveDocumentsRequest 2128 :param _request_timeout: timeout setting for this request. If one 2129 number provided, it will be total request 2130 timeout. It can also be a pair (tuple) of 2131 (connection, read) timeouts. 2132 :type _request_timeout: int, tuple(int, int), optional 2133 :param _request_auth: set to override the auth_settings for an a single 2134 request; this effectively ignores the 2135 authentication in the spec for a single request. 2136 :type _request_auth: dict, optional 2137 :param _content_type: force content-type for the request. 2138 :type _content_type: str, Optional 2139 :param _headers: set to override the headers for a single 2140 request; this effectively ignores the headers 2141 in the spec for a single request. 2142 :type _headers: dict, optional 2143 :param _host_index: set to override the host_index for a single 2144 request; this effectively ignores the host_index 2145 in the spec for a single request. 2146 :type _host_index: int, optional 2147 :return: Returns the result object. 2148 """ # noqa: E501 2149 2150 _param = self._retrieve_documents_serialize( 2151 organization=organization, 2152 pipeline=pipeline, 2153 retrieve_documents_request=retrieve_documents_request, 2154 _request_auth=_request_auth, 2155 _content_type=_content_type, 2156 _headers=_headers, 2157 _host_index=_host_index 2158 ) 2159 2160 _response_types_map: Dict[str, Optional[str]] = { 2161 '200': "RetrieveDocumentsResponse", 2162 '400': "GetPipelines400Response", 2163 '401': "GetPipelines400Response", 2164 '403': "GetPipelines400Response", 2165 '404': "GetPipelines400Response", 2166 '500': "GetPipelines400Response", 2167 } 2168 response_data = self.api_client.call_api( 2169 *_param, 2170 _request_timeout=_request_timeout 2171 ) 2172 response_data.read() 2173 return self.api_client.response_deserialize( 2174 response_data=response_data, 2175 response_types_map=_response_types_map, 2176 ).data 2177 2178 2179 @validate_call 2180 def retrieve_documents_with_http_info( 2181 self, 2182 organization: StrictStr, 2183 pipeline: StrictStr, 2184 retrieve_documents_request: RetrieveDocumentsRequest, 2185 _request_timeout: Union[ 2186 None, 2187 Annotated[StrictFloat, Field(gt=0)], 2188 Tuple[ 2189 Annotated[StrictFloat, Field(gt=0)], 2190 Annotated[StrictFloat, Field(gt=0)] 2191 ] 2192 ] = None, 2193 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2194 _content_type: Optional[StrictStr] = None, 2195 _headers: Optional[Dict[StrictStr, Any]] = None, 2196 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2197 ) -> ApiResponse[RetrieveDocumentsResponse]: 2198 """Retrieve documents from a pipeline 2199 2200 2201 :param organization: (required) 2202 :type organization: str 2203 :param pipeline: (required) 2204 :type pipeline: str 2205 :param retrieve_documents_request: (required) 2206 :type retrieve_documents_request: RetrieveDocumentsRequest 2207 :param _request_timeout: timeout setting for this request. If one 2208 number provided, it will be total request 2209 timeout. It can also be a pair (tuple) of 2210 (connection, read) timeouts. 2211 :type _request_timeout: int, tuple(int, int), optional 2212 :param _request_auth: set to override the auth_settings for an a single 2213 request; this effectively ignores the 2214 authentication in the spec for a single request. 2215 :type _request_auth: dict, optional 2216 :param _content_type: force content-type for the request. 2217 :type _content_type: str, Optional 2218 :param _headers: set to override the headers for a single 2219 request; this effectively ignores the headers 2220 in the spec for a single request. 2221 :type _headers: dict, optional 2222 :param _host_index: set to override the host_index for a single 2223 request; this effectively ignores the host_index 2224 in the spec for a single request. 2225 :type _host_index: int, optional 2226 :return: Returns the result object. 2227 """ # noqa: E501 2228 2229 _param = self._retrieve_documents_serialize( 2230 organization=organization, 2231 pipeline=pipeline, 2232 retrieve_documents_request=retrieve_documents_request, 2233 _request_auth=_request_auth, 2234 _content_type=_content_type, 2235 _headers=_headers, 2236 _host_index=_host_index 2237 ) 2238 2239 _response_types_map: Dict[str, Optional[str]] = { 2240 '200': "RetrieveDocumentsResponse", 2241 '400': "GetPipelines400Response", 2242 '401': "GetPipelines400Response", 2243 '403': "GetPipelines400Response", 2244 '404': "GetPipelines400Response", 2245 '500': "GetPipelines400Response", 2246 } 2247 response_data = self.api_client.call_api( 2248 *_param, 2249 _request_timeout=_request_timeout 2250 ) 2251 response_data.read() 2252 return self.api_client.response_deserialize( 2253 response_data=response_data, 2254 response_types_map=_response_types_map, 2255 ) 2256 2257 2258 @validate_call 2259 def retrieve_documents_without_preload_content( 2260 self, 2261 organization: StrictStr, 2262 pipeline: StrictStr, 2263 retrieve_documents_request: RetrieveDocumentsRequest, 2264 _request_timeout: Union[ 2265 None, 2266 Annotated[StrictFloat, Field(gt=0)], 2267 Tuple[ 2268 Annotated[StrictFloat, Field(gt=0)], 2269 Annotated[StrictFloat, Field(gt=0)] 2270 ] 2271 ] = None, 2272 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2273 _content_type: Optional[StrictStr] = None, 2274 _headers: Optional[Dict[StrictStr, Any]] = None, 2275 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2276 ) -> RESTResponseType: 2277 """Retrieve documents from a pipeline 2278 2279 2280 :param organization: (required) 2281 :type organization: str 2282 :param pipeline: (required) 2283 :type pipeline: str 2284 :param retrieve_documents_request: (required) 2285 :type retrieve_documents_request: RetrieveDocumentsRequest 2286 :param _request_timeout: timeout setting for this request. If one 2287 number provided, it will be total request 2288 timeout. It can also be a pair (tuple) of 2289 (connection, read) timeouts. 2290 :type _request_timeout: int, tuple(int, int), optional 2291 :param _request_auth: set to override the auth_settings for an a single 2292 request; this effectively ignores the 2293 authentication in the spec for a single request. 2294 :type _request_auth: dict, optional 2295 :param _content_type: force content-type for the request. 2296 :type _content_type: str, Optional 2297 :param _headers: set to override the headers for a single 2298 request; this effectively ignores the headers 2299 in the spec for a single request. 2300 :type _headers: dict, optional 2301 :param _host_index: set to override the host_index for a single 2302 request; this effectively ignores the host_index 2303 in the spec for a single request. 2304 :type _host_index: int, optional 2305 :return: Returns the result object. 2306 """ # noqa: E501 2307 2308 _param = self._retrieve_documents_serialize( 2309 organization=organization, 2310 pipeline=pipeline, 2311 retrieve_documents_request=retrieve_documents_request, 2312 _request_auth=_request_auth, 2313 _content_type=_content_type, 2314 _headers=_headers, 2315 _host_index=_host_index 2316 ) 2317 2318 _response_types_map: Dict[str, Optional[str]] = { 2319 '200': "RetrieveDocumentsResponse", 2320 '400': "GetPipelines400Response", 2321 '401': "GetPipelines400Response", 2322 '403': "GetPipelines400Response", 2323 '404': "GetPipelines400Response", 2324 '500': "GetPipelines400Response", 2325 } 2326 response_data = self.api_client.call_api( 2327 *_param, 2328 _request_timeout=_request_timeout 2329 ) 2330 return response_data.response 2331 2332 2333 def _retrieve_documents_serialize( 2334 self, 2335 organization, 2336 pipeline, 2337 retrieve_documents_request, 2338 _request_auth, 2339 _content_type, 2340 _headers, 2341 _host_index, 2342 ) -> RequestSerialized: 2343 2344 _host = None 2345 2346 _collection_formats: Dict[str, str] = { 2347 } 2348 2349 _path_params: Dict[str, str] = {} 2350 _query_params: List[Tuple[str, str]] = [] 2351 _header_params: Dict[str, Optional[str]] = _headers or {} 2352 _form_params: List[Tuple[str, str]] = [] 2353 _files: Dict[ 2354 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 2355 ] = {} 2356 _body_params: Optional[bytes] = None 2357 2358 # process the path parameters 2359 if organization is not None: 2360 _path_params['organization'] = organization 2361 if pipeline is not None: 2362 _path_params['pipeline'] = pipeline 2363 # process the query parameters 2364 # process the header parameters 2365 # process the form parameters 2366 # process the body parameter 2367 if retrieve_documents_request is not None: 2368 _body_params = retrieve_documents_request 2369 2370 2371 # set the HTTP header `Accept` 2372 if 'Accept' not in _header_params: 2373 _header_params['Accept'] = self.api_client.select_header_accept( 2374 [ 2375 'application/json' 2376 ] 2377 ) 2378 2379 # set the HTTP header `Content-Type` 2380 if _content_type: 2381 _header_params['Content-Type'] = _content_type 2382 else: 2383 _default_content_type = ( 2384 self.api_client.select_header_content_type( 2385 [ 2386 'application/json' 2387 ] 2388 ) 2389 ) 2390 if _default_content_type is not None: 2391 _header_params['Content-Type'] = _default_content_type 2392 2393 # authentication setting 2394 _auth_settings: List[str] = [ 2395 'bearerAuth' 2396 ] 2397 2398 return self.api_client.param_serialize( 2399 method='POST', 2400 resource_path='/org/{organization}/pipelines/{pipeline}/retrieval', 2401 path_params=_path_params, 2402 query_params=_query_params, 2403 header_params=_header_params, 2404 body=_body_params, 2405 post_params=_form_params, 2406 files=_files, 2407 auth_settings=_auth_settings, 2408 collection_formats=_collection_formats, 2409 _host=_host, 2410 _request_auth=_request_auth 2411 ) 2412 2413 2414 2415 2416 @validate_call 2417 def start_deep_research( 2418 self, 2419 organization: StrictStr, 2420 pipeline: StrictStr, 2421 start_deep_research_request: StartDeepResearchRequest, 2422 _request_timeout: Union[ 2423 None, 2424 Annotated[StrictFloat, Field(gt=0)], 2425 Tuple[ 2426 Annotated[StrictFloat, Field(gt=0)], 2427 Annotated[StrictFloat, Field(gt=0)] 2428 ] 2429 ] = None, 2430 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2431 _content_type: Optional[StrictStr] = None, 2432 _headers: Optional[Dict[StrictStr, Any]] = None, 2433 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2434 ) -> StartDeepResearchResponse: 2435 """Start a deep research 2436 2437 2438 :param organization: (required) 2439 :type organization: str 2440 :param pipeline: (required) 2441 :type pipeline: str 2442 :param start_deep_research_request: (required) 2443 :type start_deep_research_request: StartDeepResearchRequest 2444 :param _request_timeout: timeout setting for this request. If one 2445 number provided, it will be total request 2446 timeout. It can also be a pair (tuple) of 2447 (connection, read) timeouts. 2448 :type _request_timeout: int, tuple(int, int), optional 2449 :param _request_auth: set to override the auth_settings for an a single 2450 request; this effectively ignores the 2451 authentication in the spec for a single request. 2452 :type _request_auth: dict, optional 2453 :param _content_type: force content-type for the request. 2454 :type _content_type: str, Optional 2455 :param _headers: set to override the headers for a single 2456 request; this effectively ignores the headers 2457 in the spec for a single request. 2458 :type _headers: dict, optional 2459 :param _host_index: set to override the host_index for a single 2460 request; this effectively ignores the host_index 2461 in the spec for a single request. 2462 :type _host_index: int, optional 2463 :return: Returns the result object. 2464 """ # noqa: E501 2465 2466 _param = self._start_deep_research_serialize( 2467 organization=organization, 2468 pipeline=pipeline, 2469 start_deep_research_request=start_deep_research_request, 2470 _request_auth=_request_auth, 2471 _content_type=_content_type, 2472 _headers=_headers, 2473 _host_index=_host_index 2474 ) 2475 2476 _response_types_map: Dict[str, Optional[str]] = { 2477 '200': "StartDeepResearchResponse", 2478 '400': "GetPipelines400Response", 2479 '401': "GetPipelines400Response", 2480 '403': "GetPipelines400Response", 2481 '404': "GetPipelines400Response", 2482 '500': "GetPipelines400Response", 2483 } 2484 response_data = self.api_client.call_api( 2485 *_param, 2486 _request_timeout=_request_timeout 2487 ) 2488 response_data.read() 2489 return self.api_client.response_deserialize( 2490 response_data=response_data, 2491 response_types_map=_response_types_map, 2492 ).data 2493 2494 2495 @validate_call 2496 def start_deep_research_with_http_info( 2497 self, 2498 organization: StrictStr, 2499 pipeline: StrictStr, 2500 start_deep_research_request: StartDeepResearchRequest, 2501 _request_timeout: Union[ 2502 None, 2503 Annotated[StrictFloat, Field(gt=0)], 2504 Tuple[ 2505 Annotated[StrictFloat, Field(gt=0)], 2506 Annotated[StrictFloat, Field(gt=0)] 2507 ] 2508 ] = None, 2509 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2510 _content_type: Optional[StrictStr] = None, 2511 _headers: Optional[Dict[StrictStr, Any]] = None, 2512 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2513 ) -> ApiResponse[StartDeepResearchResponse]: 2514 """Start a deep research 2515 2516 2517 :param organization: (required) 2518 :type organization: str 2519 :param pipeline: (required) 2520 :type pipeline: str 2521 :param start_deep_research_request: (required) 2522 :type start_deep_research_request: StartDeepResearchRequest 2523 :param _request_timeout: timeout setting for this request. If one 2524 number provided, it will be total request 2525 timeout. It can also be a pair (tuple) of 2526 (connection, read) timeouts. 2527 :type _request_timeout: int, tuple(int, int), optional 2528 :param _request_auth: set to override the auth_settings for an a single 2529 request; this effectively ignores the 2530 authentication in the spec for a single request. 2531 :type _request_auth: dict, optional 2532 :param _content_type: force content-type for the request. 2533 :type _content_type: str, Optional 2534 :param _headers: set to override the headers for a single 2535 request; this effectively ignores the headers 2536 in the spec for a single request. 2537 :type _headers: dict, optional 2538 :param _host_index: set to override the host_index for a single 2539 request; this effectively ignores the host_index 2540 in the spec for a single request. 2541 :type _host_index: int, optional 2542 :return: Returns the result object. 2543 """ # noqa: E501 2544 2545 _param = self._start_deep_research_serialize( 2546 organization=organization, 2547 pipeline=pipeline, 2548 start_deep_research_request=start_deep_research_request, 2549 _request_auth=_request_auth, 2550 _content_type=_content_type, 2551 _headers=_headers, 2552 _host_index=_host_index 2553 ) 2554 2555 _response_types_map: Dict[str, Optional[str]] = { 2556 '200': "StartDeepResearchResponse", 2557 '400': "GetPipelines400Response", 2558 '401': "GetPipelines400Response", 2559 '403': "GetPipelines400Response", 2560 '404': "GetPipelines400Response", 2561 '500': "GetPipelines400Response", 2562 } 2563 response_data = self.api_client.call_api( 2564 *_param, 2565 _request_timeout=_request_timeout 2566 ) 2567 response_data.read() 2568 return self.api_client.response_deserialize( 2569 response_data=response_data, 2570 response_types_map=_response_types_map, 2571 ) 2572 2573 2574 @validate_call 2575 def start_deep_research_without_preload_content( 2576 self, 2577 organization: StrictStr, 2578 pipeline: StrictStr, 2579 start_deep_research_request: StartDeepResearchRequest, 2580 _request_timeout: Union[ 2581 None, 2582 Annotated[StrictFloat, Field(gt=0)], 2583 Tuple[ 2584 Annotated[StrictFloat, Field(gt=0)], 2585 Annotated[StrictFloat, Field(gt=0)] 2586 ] 2587 ] = None, 2588 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2589 _content_type: Optional[StrictStr] = None, 2590 _headers: Optional[Dict[StrictStr, Any]] = None, 2591 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2592 ) -> RESTResponseType: 2593 """Start a deep research 2594 2595 2596 :param organization: (required) 2597 :type organization: str 2598 :param pipeline: (required) 2599 :type pipeline: str 2600 :param start_deep_research_request: (required) 2601 :type start_deep_research_request: StartDeepResearchRequest 2602 :param _request_timeout: timeout setting for this request. If one 2603 number provided, it will be total request 2604 timeout. It can also be a pair (tuple) of 2605 (connection, read) timeouts. 2606 :type _request_timeout: int, tuple(int, int), optional 2607 :param _request_auth: set to override the auth_settings for an a single 2608 request; this effectively ignores the 2609 authentication in the spec for a single request. 2610 :type _request_auth: dict, optional 2611 :param _content_type: force content-type for the request. 2612 :type _content_type: str, Optional 2613 :param _headers: set to override the headers for a single 2614 request; this effectively ignores the headers 2615 in the spec for a single request. 2616 :type _headers: dict, optional 2617 :param _host_index: set to override the host_index for a single 2618 request; this effectively ignores the host_index 2619 in the spec for a single request. 2620 :type _host_index: int, optional 2621 :return: Returns the result object. 2622 """ # noqa: E501 2623 2624 _param = self._start_deep_research_serialize( 2625 organization=organization, 2626 pipeline=pipeline, 2627 start_deep_research_request=start_deep_research_request, 2628 _request_auth=_request_auth, 2629 _content_type=_content_type, 2630 _headers=_headers, 2631 _host_index=_host_index 2632 ) 2633 2634 _response_types_map: Dict[str, Optional[str]] = { 2635 '200': "StartDeepResearchResponse", 2636 '400': "GetPipelines400Response", 2637 '401': "GetPipelines400Response", 2638 '403': "GetPipelines400Response", 2639 '404': "GetPipelines400Response", 2640 '500': "GetPipelines400Response", 2641 } 2642 response_data = self.api_client.call_api( 2643 *_param, 2644 _request_timeout=_request_timeout 2645 ) 2646 return response_data.response 2647 2648 2649 def _start_deep_research_serialize( 2650 self, 2651 organization, 2652 pipeline, 2653 start_deep_research_request, 2654 _request_auth, 2655 _content_type, 2656 _headers, 2657 _host_index, 2658 ) -> RequestSerialized: 2659 2660 _host = None 2661 2662 _collection_formats: Dict[str, str] = { 2663 } 2664 2665 _path_params: Dict[str, str] = {} 2666 _query_params: List[Tuple[str, str]] = [] 2667 _header_params: Dict[str, Optional[str]] = _headers or {} 2668 _form_params: List[Tuple[str, str]] = [] 2669 _files: Dict[ 2670 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 2671 ] = {} 2672 _body_params: Optional[bytes] = None 2673 2674 # process the path parameters 2675 if organization is not None: 2676 _path_params['organization'] = organization 2677 if pipeline is not None: 2678 _path_params['pipeline'] = pipeline 2679 # process the query parameters 2680 # process the header parameters 2681 # process the form parameters 2682 # process the body parameter 2683 if start_deep_research_request is not None: 2684 _body_params = start_deep_research_request 2685 2686 2687 # set the HTTP header `Accept` 2688 if 'Accept' not in _header_params: 2689 _header_params['Accept'] = self.api_client.select_header_accept( 2690 [ 2691 'application/json' 2692 ] 2693 ) 2694 2695 # set the HTTP header `Content-Type` 2696 if _content_type: 2697 _header_params['Content-Type'] = _content_type 2698 else: 2699 _default_content_type = ( 2700 self.api_client.select_header_content_type( 2701 [ 2702 'application/json' 2703 ] 2704 ) 2705 ) 2706 if _default_content_type is not None: 2707 _header_params['Content-Type'] = _default_content_type 2708 2709 # authentication setting 2710 _auth_settings: List[str] = [ 2711 'bearerAuth' 2712 ] 2713 2714 return self.api_client.param_serialize( 2715 method='POST', 2716 resource_path='/org/{organization}/pipelines/{pipeline}/deep-research', 2717 path_params=_path_params, 2718 query_params=_query_params, 2719 header_params=_header_params, 2720 body=_body_params, 2721 post_params=_form_params, 2722 files=_files, 2723 auth_settings=_auth_settings, 2724 collection_formats=_collection_formats, 2725 _host=_host, 2726 _request_auth=_request_auth 2727 ) 2728 2729 2730 2731 2732 @validate_call 2733 def start_pipeline( 2734 self, 2735 organization: StrictStr, 2736 pipeline: StrictStr, 2737 _request_timeout: Union[ 2738 None, 2739 Annotated[StrictFloat, Field(gt=0)], 2740 Tuple[ 2741 Annotated[StrictFloat, Field(gt=0)], 2742 Annotated[StrictFloat, Field(gt=0)] 2743 ] 2744 ] = None, 2745 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2746 _content_type: Optional[StrictStr] = None, 2747 _headers: Optional[Dict[StrictStr, Any]] = None, 2748 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2749 ) -> StartPipelineResponse: 2750 """Start a pipeline 2751 2752 2753 :param organization: (required) 2754 :type organization: str 2755 :param pipeline: (required) 2756 :type pipeline: str 2757 :param _request_timeout: timeout setting for this request. If one 2758 number provided, it will be total request 2759 timeout. It can also be a pair (tuple) of 2760 (connection, read) timeouts. 2761 :type _request_timeout: int, tuple(int, int), optional 2762 :param _request_auth: set to override the auth_settings for an a single 2763 request; this effectively ignores the 2764 authentication in the spec for a single request. 2765 :type _request_auth: dict, optional 2766 :param _content_type: force content-type for the request. 2767 :type _content_type: str, Optional 2768 :param _headers: set to override the headers for a single 2769 request; this effectively ignores the headers 2770 in the spec for a single request. 2771 :type _headers: dict, optional 2772 :param _host_index: set to override the host_index for a single 2773 request; this effectively ignores the host_index 2774 in the spec for a single request. 2775 :type _host_index: int, optional 2776 :return: Returns the result object. 2777 """ # noqa: E501 2778 2779 _param = self._start_pipeline_serialize( 2780 organization=organization, 2781 pipeline=pipeline, 2782 _request_auth=_request_auth, 2783 _content_type=_content_type, 2784 _headers=_headers, 2785 _host_index=_host_index 2786 ) 2787 2788 _response_types_map: Dict[str, Optional[str]] = { 2789 '200': "StartPipelineResponse", 2790 '400': "GetPipelines400Response", 2791 '401': "GetPipelines400Response", 2792 '403': "GetPipelines400Response", 2793 '404': "GetPipelines400Response", 2794 '500': "GetPipelines400Response", 2795 } 2796 response_data = self.api_client.call_api( 2797 *_param, 2798 _request_timeout=_request_timeout 2799 ) 2800 response_data.read() 2801 return self.api_client.response_deserialize( 2802 response_data=response_data, 2803 response_types_map=_response_types_map, 2804 ).data 2805 2806 2807 @validate_call 2808 def start_pipeline_with_http_info( 2809 self, 2810 organization: StrictStr, 2811 pipeline: StrictStr, 2812 _request_timeout: Union[ 2813 None, 2814 Annotated[StrictFloat, Field(gt=0)], 2815 Tuple[ 2816 Annotated[StrictFloat, Field(gt=0)], 2817 Annotated[StrictFloat, Field(gt=0)] 2818 ] 2819 ] = None, 2820 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2821 _content_type: Optional[StrictStr] = None, 2822 _headers: Optional[Dict[StrictStr, Any]] = None, 2823 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2824 ) -> ApiResponse[StartPipelineResponse]: 2825 """Start a pipeline 2826 2827 2828 :param organization: (required) 2829 :type organization: str 2830 :param pipeline: (required) 2831 :type pipeline: str 2832 :param _request_timeout: timeout setting for this request. If one 2833 number provided, it will be total request 2834 timeout. It can also be a pair (tuple) of 2835 (connection, read) timeouts. 2836 :type _request_timeout: int, tuple(int, int), optional 2837 :param _request_auth: set to override the auth_settings for an a single 2838 request; this effectively ignores the 2839 authentication in the spec for a single request. 2840 :type _request_auth: dict, optional 2841 :param _content_type: force content-type for the request. 2842 :type _content_type: str, Optional 2843 :param _headers: set to override the headers for a single 2844 request; this effectively ignores the headers 2845 in the spec for a single request. 2846 :type _headers: dict, optional 2847 :param _host_index: set to override the host_index for a single 2848 request; this effectively ignores the host_index 2849 in the spec for a single request. 2850 :type _host_index: int, optional 2851 :return: Returns the result object. 2852 """ # noqa: E501 2853 2854 _param = self._start_pipeline_serialize( 2855 organization=organization, 2856 pipeline=pipeline, 2857 _request_auth=_request_auth, 2858 _content_type=_content_type, 2859 _headers=_headers, 2860 _host_index=_host_index 2861 ) 2862 2863 _response_types_map: Dict[str, Optional[str]] = { 2864 '200': "StartPipelineResponse", 2865 '400': "GetPipelines400Response", 2866 '401': "GetPipelines400Response", 2867 '403': "GetPipelines400Response", 2868 '404': "GetPipelines400Response", 2869 '500': "GetPipelines400Response", 2870 } 2871 response_data = self.api_client.call_api( 2872 *_param, 2873 _request_timeout=_request_timeout 2874 ) 2875 response_data.read() 2876 return self.api_client.response_deserialize( 2877 response_data=response_data, 2878 response_types_map=_response_types_map, 2879 ) 2880 2881 2882 @validate_call 2883 def start_pipeline_without_preload_content( 2884 self, 2885 organization: StrictStr, 2886 pipeline: StrictStr, 2887 _request_timeout: Union[ 2888 None, 2889 Annotated[StrictFloat, Field(gt=0)], 2890 Tuple[ 2891 Annotated[StrictFloat, Field(gt=0)], 2892 Annotated[StrictFloat, Field(gt=0)] 2893 ] 2894 ] = None, 2895 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2896 _content_type: Optional[StrictStr] = None, 2897 _headers: Optional[Dict[StrictStr, Any]] = None, 2898 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2899 ) -> RESTResponseType: 2900 """Start a pipeline 2901 2902 2903 :param organization: (required) 2904 :type organization: str 2905 :param pipeline: (required) 2906 :type pipeline: str 2907 :param _request_timeout: timeout setting for this request. If one 2908 number provided, it will be total request 2909 timeout. It can also be a pair (tuple) of 2910 (connection, read) timeouts. 2911 :type _request_timeout: int, tuple(int, int), optional 2912 :param _request_auth: set to override the auth_settings for an a single 2913 request; this effectively ignores the 2914 authentication in the spec for a single request. 2915 :type _request_auth: dict, optional 2916 :param _content_type: force content-type for the request. 2917 :type _content_type: str, Optional 2918 :param _headers: set to override the headers for a single 2919 request; this effectively ignores the headers 2920 in the spec for a single request. 2921 :type _headers: dict, optional 2922 :param _host_index: set to override the host_index for a single 2923 request; this effectively ignores the host_index 2924 in the spec for a single request. 2925 :type _host_index: int, optional 2926 :return: Returns the result object. 2927 """ # noqa: E501 2928 2929 _param = self._start_pipeline_serialize( 2930 organization=organization, 2931 pipeline=pipeline, 2932 _request_auth=_request_auth, 2933 _content_type=_content_type, 2934 _headers=_headers, 2935 _host_index=_host_index 2936 ) 2937 2938 _response_types_map: Dict[str, Optional[str]] = { 2939 '200': "StartPipelineResponse", 2940 '400': "GetPipelines400Response", 2941 '401': "GetPipelines400Response", 2942 '403': "GetPipelines400Response", 2943 '404': "GetPipelines400Response", 2944 '500': "GetPipelines400Response", 2945 } 2946 response_data = self.api_client.call_api( 2947 *_param, 2948 _request_timeout=_request_timeout 2949 ) 2950 return response_data.response 2951 2952 2953 def _start_pipeline_serialize( 2954 self, 2955 organization, 2956 pipeline, 2957 _request_auth, 2958 _content_type, 2959 _headers, 2960 _host_index, 2961 ) -> RequestSerialized: 2962 2963 _host = None 2964 2965 _collection_formats: Dict[str, str] = { 2966 } 2967 2968 _path_params: Dict[str, str] = {} 2969 _query_params: List[Tuple[str, str]] = [] 2970 _header_params: Dict[str, Optional[str]] = _headers or {} 2971 _form_params: List[Tuple[str, str]] = [] 2972 _files: Dict[ 2973 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 2974 ] = {} 2975 _body_params: Optional[bytes] = None 2976 2977 # process the path parameters 2978 if organization is not None: 2979 _path_params['organization'] = organization 2980 if pipeline is not None: 2981 _path_params['pipeline'] = pipeline 2982 # process the query parameters 2983 # process the header parameters 2984 # process the form parameters 2985 # process the body parameter 2986 2987 2988 # set the HTTP header `Accept` 2989 if 'Accept' not in _header_params: 2990 _header_params['Accept'] = self.api_client.select_header_accept( 2991 [ 2992 'application/json' 2993 ] 2994 ) 2995 2996 2997 # authentication setting 2998 _auth_settings: List[str] = [ 2999 'bearerAuth' 3000 ] 3001 3002 return self.api_client.param_serialize( 3003 method='POST', 3004 resource_path='/org/{organization}/pipelines/{pipeline}/start', 3005 path_params=_path_params, 3006 query_params=_query_params, 3007 header_params=_header_params, 3008 body=_body_params, 3009 post_params=_form_params, 3010 files=_files, 3011 auth_settings=_auth_settings, 3012 collection_formats=_collection_formats, 3013 _host=_host, 3014 _request_auth=_request_auth 3015 ) 3016 3017 3018 3019 3020 @validate_call 3021 def stop_pipeline( 3022 self, 3023 organization: StrictStr, 3024 pipeline: StrictStr, 3025 _request_timeout: Union[ 3026 None, 3027 Annotated[StrictFloat, Field(gt=0)], 3028 Tuple[ 3029 Annotated[StrictFloat, Field(gt=0)], 3030 Annotated[StrictFloat, Field(gt=0)] 3031 ] 3032 ] = None, 3033 _request_auth: Optional[Dict[StrictStr, Any]] = None, 3034 _content_type: Optional[StrictStr] = None, 3035 _headers: Optional[Dict[StrictStr, Any]] = None, 3036 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 3037 ) -> StopPipelineResponse: 3038 """Stop a pipeline 3039 3040 3041 :param organization: (required) 3042 :type organization: str 3043 :param pipeline: (required) 3044 :type pipeline: str 3045 :param _request_timeout: timeout setting for this request. If one 3046 number provided, it will be total request 3047 timeout. It can also be a pair (tuple) of 3048 (connection, read) timeouts. 3049 :type _request_timeout: int, tuple(int, int), optional 3050 :param _request_auth: set to override the auth_settings for an a single 3051 request; this effectively ignores the 3052 authentication in the spec for a single request. 3053 :type _request_auth: dict, optional 3054 :param _content_type: force content-type for the request. 3055 :type _content_type: str, Optional 3056 :param _headers: set to override the headers for a single 3057 request; this effectively ignores the headers 3058 in the spec for a single request. 3059 :type _headers: dict, optional 3060 :param _host_index: set to override the host_index for a single 3061 request; this effectively ignores the host_index 3062 in the spec for a single request. 3063 :type _host_index: int, optional 3064 :return: Returns the result object. 3065 """ # noqa: E501 3066 3067 _param = self._stop_pipeline_serialize( 3068 organization=organization, 3069 pipeline=pipeline, 3070 _request_auth=_request_auth, 3071 _content_type=_content_type, 3072 _headers=_headers, 3073 _host_index=_host_index 3074 ) 3075 3076 _response_types_map: Dict[str, Optional[str]] = { 3077 '200': "StopPipelineResponse", 3078 '400': "GetPipelines400Response", 3079 '401': "GetPipelines400Response", 3080 '403': "GetPipelines400Response", 3081 '404': "GetPipelines400Response", 3082 '500': "GetPipelines400Response", 3083 } 3084 response_data = self.api_client.call_api( 3085 *_param, 3086 _request_timeout=_request_timeout 3087 ) 3088 response_data.read() 3089 return self.api_client.response_deserialize( 3090 response_data=response_data, 3091 response_types_map=_response_types_map, 3092 ).data 3093 3094 3095 @validate_call 3096 def stop_pipeline_with_http_info( 3097 self, 3098 organization: StrictStr, 3099 pipeline: StrictStr, 3100 _request_timeout: Union[ 3101 None, 3102 Annotated[StrictFloat, Field(gt=0)], 3103 Tuple[ 3104 Annotated[StrictFloat, Field(gt=0)], 3105 Annotated[StrictFloat, Field(gt=0)] 3106 ] 3107 ] = None, 3108 _request_auth: Optional[Dict[StrictStr, Any]] = None, 3109 _content_type: Optional[StrictStr] = None, 3110 _headers: Optional[Dict[StrictStr, Any]] = None, 3111 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 3112 ) -> ApiResponse[StopPipelineResponse]: 3113 """Stop a pipeline 3114 3115 3116 :param organization: (required) 3117 :type organization: str 3118 :param pipeline: (required) 3119 :type pipeline: str 3120 :param _request_timeout: timeout setting for this request. If one 3121 number provided, it will be total request 3122 timeout. It can also be a pair (tuple) of 3123 (connection, read) timeouts. 3124 :type _request_timeout: int, tuple(int, int), optional 3125 :param _request_auth: set to override the auth_settings for an a single 3126 request; this effectively ignores the 3127 authentication in the spec for a single request. 3128 :type _request_auth: dict, optional 3129 :param _content_type: force content-type for the request. 3130 :type _content_type: str, Optional 3131 :param _headers: set to override the headers for a single 3132 request; this effectively ignores the headers 3133 in the spec for a single request. 3134 :type _headers: dict, optional 3135 :param _host_index: set to override the host_index for a single 3136 request; this effectively ignores the host_index 3137 in the spec for a single request. 3138 :type _host_index: int, optional 3139 :return: Returns the result object. 3140 """ # noqa: E501 3141 3142 _param = self._stop_pipeline_serialize( 3143 organization=organization, 3144 pipeline=pipeline, 3145 _request_auth=_request_auth, 3146 _content_type=_content_type, 3147 _headers=_headers, 3148 _host_index=_host_index 3149 ) 3150 3151 _response_types_map: Dict[str, Optional[str]] = { 3152 '200': "StopPipelineResponse", 3153 '400': "GetPipelines400Response", 3154 '401': "GetPipelines400Response", 3155 '403': "GetPipelines400Response", 3156 '404': "GetPipelines400Response", 3157 '500': "GetPipelines400Response", 3158 } 3159 response_data = self.api_client.call_api( 3160 *_param, 3161 _request_timeout=_request_timeout 3162 ) 3163 response_data.read() 3164 return self.api_client.response_deserialize( 3165 response_data=response_data, 3166 response_types_map=_response_types_map, 3167 ) 3168 3169 3170 @validate_call 3171 def stop_pipeline_without_preload_content( 3172 self, 3173 organization: StrictStr, 3174 pipeline: StrictStr, 3175 _request_timeout: Union[ 3176 None, 3177 Annotated[StrictFloat, Field(gt=0)], 3178 Tuple[ 3179 Annotated[StrictFloat, Field(gt=0)], 3180 Annotated[StrictFloat, Field(gt=0)] 3181 ] 3182 ] = None, 3183 _request_auth: Optional[Dict[StrictStr, Any]] = None, 3184 _content_type: Optional[StrictStr] = None, 3185 _headers: Optional[Dict[StrictStr, Any]] = None, 3186 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 3187 ) -> RESTResponseType: 3188 """Stop a pipeline 3189 3190 3191 :param organization: (required) 3192 :type organization: str 3193 :param pipeline: (required) 3194 :type pipeline: str 3195 :param _request_timeout: timeout setting for this request. If one 3196 number provided, it will be total request 3197 timeout. It can also be a pair (tuple) of 3198 (connection, read) timeouts. 3199 :type _request_timeout: int, tuple(int, int), optional 3200 :param _request_auth: set to override the auth_settings for an a single 3201 request; this effectively ignores the 3202 authentication in the spec for a single request. 3203 :type _request_auth: dict, optional 3204 :param _content_type: force content-type for the request. 3205 :type _content_type: str, Optional 3206 :param _headers: set to override the headers for a single 3207 request; this effectively ignores the headers 3208 in the spec for a single request. 3209 :type _headers: dict, optional 3210 :param _host_index: set to override the host_index for a single 3211 request; this effectively ignores the host_index 3212 in the spec for a single request. 3213 :type _host_index: int, optional 3214 :return: Returns the result object. 3215 """ # noqa: E501 3216 3217 _param = self._stop_pipeline_serialize( 3218 organization=organization, 3219 pipeline=pipeline, 3220 _request_auth=_request_auth, 3221 _content_type=_content_type, 3222 _headers=_headers, 3223 _host_index=_host_index 3224 ) 3225 3226 _response_types_map: Dict[str, Optional[str]] = { 3227 '200': "StopPipelineResponse", 3228 '400': "GetPipelines400Response", 3229 '401': "GetPipelines400Response", 3230 '403': "GetPipelines400Response", 3231 '404': "GetPipelines400Response", 3232 '500': "GetPipelines400Response", 3233 } 3234 response_data = self.api_client.call_api( 3235 *_param, 3236 _request_timeout=_request_timeout 3237 ) 3238 return response_data.response 3239 3240 3241 def _stop_pipeline_serialize( 3242 self, 3243 organization, 3244 pipeline, 3245 _request_auth, 3246 _content_type, 3247 _headers, 3248 _host_index, 3249 ) -> RequestSerialized: 3250 3251 _host = None 3252 3253 _collection_formats: Dict[str, str] = { 3254 } 3255 3256 _path_params: Dict[str, str] = {} 3257 _query_params: List[Tuple[str, str]] = [] 3258 _header_params: Dict[str, Optional[str]] = _headers or {} 3259 _form_params: List[Tuple[str, str]] = [] 3260 _files: Dict[ 3261 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 3262 ] = {} 3263 _body_params: Optional[bytes] = None 3264 3265 # process the path parameters 3266 if organization is not None: 3267 _path_params['organization'] = organization 3268 if pipeline is not None: 3269 _path_params['pipeline'] = pipeline 3270 # process the query parameters 3271 # process the header parameters 3272 # process the form parameters 3273 # process the body parameter 3274 3275 3276 # set the HTTP header `Accept` 3277 if 'Accept' not in _header_params: 3278 _header_params['Accept'] = self.api_client.select_header_accept( 3279 [ 3280 'application/json' 3281 ] 3282 ) 3283 3284 3285 # authentication setting 3286 _auth_settings: List[str] = [ 3287 'bearerAuth' 3288 ] 3289 3290 return self.api_client.param_serialize( 3291 method='POST', 3292 resource_path='/org/{organization}/pipelines/{pipeline}/stop', 3293 path_params=_path_params, 3294 query_params=_query_params, 3295 header_params=_header_params, 3296 body=_body_params, 3297 post_params=_form_params, 3298 files=_files, 3299 auth_settings=_auth_settings, 3300 collection_formats=_collection_formats, 3301 _host=_host, 3302 _request_auth=_request_auth 3303 )
42class PipelinesApi: 43 """NOTE: This class is auto generated by OpenAPI Generator 44 Ref: https://openapi-generator.tech 45 46 Do not edit the class manually. 47 """ 48 49 def __init__(self, api_client=None) -> None: 50 if api_client is None: 51 api_client = ApiClient.get_default() 52 self.api_client = api_client 53 54 55 @validate_call 56 def create_pipeline( 57 self, 58 organization: StrictStr, 59 pipeline_configuration_schema: PipelineConfigurationSchema, 60 _request_timeout: Union[ 61 None, 62 Annotated[StrictFloat, Field(gt=0)], 63 Tuple[ 64 Annotated[StrictFloat, Field(gt=0)], 65 Annotated[StrictFloat, Field(gt=0)] 66 ] 67 ] = None, 68 _request_auth: Optional[Dict[StrictStr, Any]] = None, 69 _content_type: Optional[StrictStr] = None, 70 _headers: Optional[Dict[StrictStr, Any]] = None, 71 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 72 ) -> CreatePipelineResponse: 73 """Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Supabase (SUPABASE): Table Name (table): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: 74 75 76 :param organization: (required) 77 :type organization: str 78 :param pipeline_configuration_schema: (required) 79 :type pipeline_configuration_schema: PipelineConfigurationSchema 80 :param _request_timeout: timeout setting for this request. If one 81 number provided, it will be total request 82 timeout. It can also be a pair (tuple) of 83 (connection, read) timeouts. 84 :type _request_timeout: int, tuple(int, int), optional 85 :param _request_auth: set to override the auth_settings for an a single 86 request; this effectively ignores the 87 authentication in the spec for a single request. 88 :type _request_auth: dict, optional 89 :param _content_type: force content-type for the request. 90 :type _content_type: str, Optional 91 :param _headers: set to override the headers for a single 92 request; this effectively ignores the headers 93 in the spec for a single request. 94 :type _headers: dict, optional 95 :param _host_index: set to override the host_index for a single 96 request; this effectively ignores the host_index 97 in the spec for a single request. 98 :type _host_index: int, optional 99 :return: Returns the result object. 100 """ # noqa: E501 101 102 _param = self._create_pipeline_serialize( 103 organization=organization, 104 pipeline_configuration_schema=pipeline_configuration_schema, 105 _request_auth=_request_auth, 106 _content_type=_content_type, 107 _headers=_headers, 108 _host_index=_host_index 109 ) 110 111 _response_types_map: Dict[str, Optional[str]] = { 112 '200': "CreatePipelineResponse", 113 '400': "GetPipelines400Response", 114 '401': "GetPipelines400Response", 115 '403': "GetPipelines400Response", 116 '404': "GetPipelines400Response", 117 '500': "GetPipelines400Response", 118 } 119 response_data = self.api_client.call_api( 120 *_param, 121 _request_timeout=_request_timeout 122 ) 123 response_data.read() 124 return self.api_client.response_deserialize( 125 response_data=response_data, 126 response_types_map=_response_types_map, 127 ).data 128 129 130 @validate_call 131 def create_pipeline_with_http_info( 132 self, 133 organization: StrictStr, 134 pipeline_configuration_schema: PipelineConfigurationSchema, 135 _request_timeout: Union[ 136 None, 137 Annotated[StrictFloat, Field(gt=0)], 138 Tuple[ 139 Annotated[StrictFloat, Field(gt=0)], 140 Annotated[StrictFloat, Field(gt=0)] 141 ] 142 ] = None, 143 _request_auth: Optional[Dict[StrictStr, Any]] = None, 144 _content_type: Optional[StrictStr] = None, 145 _headers: Optional[Dict[StrictStr, Any]] = None, 146 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 147 ) -> ApiResponse[CreatePipelineResponse]: 148 """Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Supabase (SUPABASE): Table Name (table): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: 149 150 151 :param organization: (required) 152 :type organization: str 153 :param pipeline_configuration_schema: (required) 154 :type pipeline_configuration_schema: PipelineConfigurationSchema 155 :param _request_timeout: timeout setting for this request. If one 156 number provided, it will be total request 157 timeout. It can also be a pair (tuple) of 158 (connection, read) timeouts. 159 :type _request_timeout: int, tuple(int, int), optional 160 :param _request_auth: set to override the auth_settings for an a single 161 request; this effectively ignores the 162 authentication in the spec for a single request. 163 :type _request_auth: dict, optional 164 :param _content_type: force content-type for the request. 165 :type _content_type: str, Optional 166 :param _headers: set to override the headers for a single 167 request; this effectively ignores the headers 168 in the spec for a single request. 169 :type _headers: dict, optional 170 :param _host_index: set to override the host_index for a single 171 request; this effectively ignores the host_index 172 in the spec for a single request. 173 :type _host_index: int, optional 174 :return: Returns the result object. 175 """ # noqa: E501 176 177 _param = self._create_pipeline_serialize( 178 organization=organization, 179 pipeline_configuration_schema=pipeline_configuration_schema, 180 _request_auth=_request_auth, 181 _content_type=_content_type, 182 _headers=_headers, 183 _host_index=_host_index 184 ) 185 186 _response_types_map: Dict[str, Optional[str]] = { 187 '200': "CreatePipelineResponse", 188 '400': "GetPipelines400Response", 189 '401': "GetPipelines400Response", 190 '403': "GetPipelines400Response", 191 '404': "GetPipelines400Response", 192 '500': "GetPipelines400Response", 193 } 194 response_data = self.api_client.call_api( 195 *_param, 196 _request_timeout=_request_timeout 197 ) 198 response_data.read() 199 return self.api_client.response_deserialize( 200 response_data=response_data, 201 response_types_map=_response_types_map, 202 ) 203 204 205 @validate_call 206 def create_pipeline_without_preload_content( 207 self, 208 organization: StrictStr, 209 pipeline_configuration_schema: PipelineConfigurationSchema, 210 _request_timeout: Union[ 211 None, 212 Annotated[StrictFloat, Field(gt=0)], 213 Tuple[ 214 Annotated[StrictFloat, Field(gt=0)], 215 Annotated[StrictFloat, Field(gt=0)] 216 ] 217 ] = None, 218 _request_auth: Optional[Dict[StrictStr, Any]] = None, 219 _content_type: Optional[StrictStr] = None, 220 _headers: Optional[Dict[StrictStr, Any]] = None, 221 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 222 ) -> RESTResponseType: 223 """Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Supabase (SUPABASE): Table Name (table): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: 224 225 226 :param organization: (required) 227 :type organization: str 228 :param pipeline_configuration_schema: (required) 229 :type pipeline_configuration_schema: PipelineConfigurationSchema 230 :param _request_timeout: timeout setting for this request. If one 231 number provided, it will be total request 232 timeout. It can also be a pair (tuple) of 233 (connection, read) timeouts. 234 :type _request_timeout: int, tuple(int, int), optional 235 :param _request_auth: set to override the auth_settings for an a single 236 request; this effectively ignores the 237 authentication in the spec for a single request. 238 :type _request_auth: dict, optional 239 :param _content_type: force content-type for the request. 240 :type _content_type: str, Optional 241 :param _headers: set to override the headers for a single 242 request; this effectively ignores the headers 243 in the spec for a single request. 244 :type _headers: dict, optional 245 :param _host_index: set to override the host_index for a single 246 request; this effectively ignores the host_index 247 in the spec for a single request. 248 :type _host_index: int, optional 249 :return: Returns the result object. 250 """ # noqa: E501 251 252 _param = self._create_pipeline_serialize( 253 organization=organization, 254 pipeline_configuration_schema=pipeline_configuration_schema, 255 _request_auth=_request_auth, 256 _content_type=_content_type, 257 _headers=_headers, 258 _host_index=_host_index 259 ) 260 261 _response_types_map: Dict[str, Optional[str]] = { 262 '200': "CreatePipelineResponse", 263 '400': "GetPipelines400Response", 264 '401': "GetPipelines400Response", 265 '403': "GetPipelines400Response", 266 '404': "GetPipelines400Response", 267 '500': "GetPipelines400Response", 268 } 269 response_data = self.api_client.call_api( 270 *_param, 271 _request_timeout=_request_timeout 272 ) 273 return response_data.response 274 275 276 def _create_pipeline_serialize( 277 self, 278 organization, 279 pipeline_configuration_schema, 280 _request_auth, 281 _content_type, 282 _headers, 283 _host_index, 284 ) -> RequestSerialized: 285 286 _host = None 287 288 _collection_formats: Dict[str, str] = { 289 } 290 291 _path_params: Dict[str, str] = {} 292 _query_params: List[Tuple[str, str]] = [] 293 _header_params: Dict[str, Optional[str]] = _headers or {} 294 _form_params: List[Tuple[str, str]] = [] 295 _files: Dict[ 296 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 297 ] = {} 298 _body_params: Optional[bytes] = None 299 300 # process the path parameters 301 if organization is not None: 302 _path_params['organization'] = organization 303 # process the query parameters 304 # process the header parameters 305 # process the form parameters 306 # process the body parameter 307 if pipeline_configuration_schema is not None: 308 _body_params = pipeline_configuration_schema 309 310 311 # set the HTTP header `Accept` 312 if 'Accept' not in _header_params: 313 _header_params['Accept'] = self.api_client.select_header_accept( 314 [ 315 'application/json' 316 ] 317 ) 318 319 # set the HTTP header `Content-Type` 320 if _content_type: 321 _header_params['Content-Type'] = _content_type 322 else: 323 _default_content_type = ( 324 self.api_client.select_header_content_type( 325 [ 326 'application/json' 327 ] 328 ) 329 ) 330 if _default_content_type is not None: 331 _header_params['Content-Type'] = _default_content_type 332 333 # authentication setting 334 _auth_settings: List[str] = [ 335 'bearerAuth' 336 ] 337 338 return self.api_client.param_serialize( 339 method='POST', 340 resource_path='/org/{organization}/pipelines', 341 path_params=_path_params, 342 query_params=_query_params, 343 header_params=_header_params, 344 body=_body_params, 345 post_params=_form_params, 346 files=_files, 347 auth_settings=_auth_settings, 348 collection_formats=_collection_formats, 349 _host=_host, 350 _request_auth=_request_auth 351 ) 352 353 354 355 356 @validate_call 357 def delete_pipeline( 358 self, 359 organization: StrictStr, 360 pipeline: StrictStr, 361 _request_timeout: Union[ 362 None, 363 Annotated[StrictFloat, Field(gt=0)], 364 Tuple[ 365 Annotated[StrictFloat, Field(gt=0)], 366 Annotated[StrictFloat, Field(gt=0)] 367 ] 368 ] = None, 369 _request_auth: Optional[Dict[StrictStr, Any]] = None, 370 _content_type: Optional[StrictStr] = None, 371 _headers: Optional[Dict[StrictStr, Any]] = None, 372 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 373 ) -> DeletePipelineResponse: 374 """Delete a pipeline 375 376 377 :param organization: (required) 378 :type organization: str 379 :param pipeline: (required) 380 :type pipeline: str 381 :param _request_timeout: timeout setting for this request. If one 382 number provided, it will be total request 383 timeout. It can also be a pair (tuple) of 384 (connection, read) timeouts. 385 :type _request_timeout: int, tuple(int, int), optional 386 :param _request_auth: set to override the auth_settings for an a single 387 request; this effectively ignores the 388 authentication in the spec for a single request. 389 :type _request_auth: dict, optional 390 :param _content_type: force content-type for the request. 391 :type _content_type: str, Optional 392 :param _headers: set to override the headers for a single 393 request; this effectively ignores the headers 394 in the spec for a single request. 395 :type _headers: dict, optional 396 :param _host_index: set to override the host_index for a single 397 request; this effectively ignores the host_index 398 in the spec for a single request. 399 :type _host_index: int, optional 400 :return: Returns the result object. 401 """ # noqa: E501 402 403 _param = self._delete_pipeline_serialize( 404 organization=organization, 405 pipeline=pipeline, 406 _request_auth=_request_auth, 407 _content_type=_content_type, 408 _headers=_headers, 409 _host_index=_host_index 410 ) 411 412 _response_types_map: Dict[str, Optional[str]] = { 413 '200': "DeletePipelineResponse", 414 '400': "GetPipelines400Response", 415 '401': "GetPipelines400Response", 416 '403': "GetPipelines400Response", 417 '404': "GetPipelines400Response", 418 '500': "GetPipelines400Response", 419 } 420 response_data = self.api_client.call_api( 421 *_param, 422 _request_timeout=_request_timeout 423 ) 424 response_data.read() 425 return self.api_client.response_deserialize( 426 response_data=response_data, 427 response_types_map=_response_types_map, 428 ).data 429 430 431 @validate_call 432 def delete_pipeline_with_http_info( 433 self, 434 organization: StrictStr, 435 pipeline: StrictStr, 436 _request_timeout: Union[ 437 None, 438 Annotated[StrictFloat, Field(gt=0)], 439 Tuple[ 440 Annotated[StrictFloat, Field(gt=0)], 441 Annotated[StrictFloat, Field(gt=0)] 442 ] 443 ] = None, 444 _request_auth: Optional[Dict[StrictStr, Any]] = None, 445 _content_type: Optional[StrictStr] = None, 446 _headers: Optional[Dict[StrictStr, Any]] = None, 447 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 448 ) -> ApiResponse[DeletePipelineResponse]: 449 """Delete a pipeline 450 451 452 :param organization: (required) 453 :type organization: str 454 :param pipeline: (required) 455 :type pipeline: str 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._delete_pipeline_serialize( 479 organization=organization, 480 pipeline=pipeline, 481 _request_auth=_request_auth, 482 _content_type=_content_type, 483 _headers=_headers, 484 _host_index=_host_index 485 ) 486 487 _response_types_map: Dict[str, Optional[str]] = { 488 '200': "DeletePipelineResponse", 489 '400': "GetPipelines400Response", 490 '401': "GetPipelines400Response", 491 '403': "GetPipelines400Response", 492 '404': "GetPipelines400Response", 493 '500': "GetPipelines400Response", 494 } 495 response_data = self.api_client.call_api( 496 *_param, 497 _request_timeout=_request_timeout 498 ) 499 response_data.read() 500 return self.api_client.response_deserialize( 501 response_data=response_data, 502 response_types_map=_response_types_map, 503 ) 504 505 506 @validate_call 507 def delete_pipeline_without_preload_content( 508 self, 509 organization: StrictStr, 510 pipeline: StrictStr, 511 _request_timeout: Union[ 512 None, 513 Annotated[StrictFloat, Field(gt=0)], 514 Tuple[ 515 Annotated[StrictFloat, Field(gt=0)], 516 Annotated[StrictFloat, Field(gt=0)] 517 ] 518 ] = None, 519 _request_auth: Optional[Dict[StrictStr, Any]] = None, 520 _content_type: Optional[StrictStr] = None, 521 _headers: Optional[Dict[StrictStr, Any]] = None, 522 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 523 ) -> RESTResponseType: 524 """Delete a pipeline 525 526 527 :param organization: (required) 528 :type organization: str 529 :param pipeline: (required) 530 :type pipeline: str 531 :param _request_timeout: timeout setting for this request. If one 532 number provided, it will be total request 533 timeout. It can also be a pair (tuple) of 534 (connection, read) timeouts. 535 :type _request_timeout: int, tuple(int, int), optional 536 :param _request_auth: set to override the auth_settings for an a single 537 request; this effectively ignores the 538 authentication in the spec for a single request. 539 :type _request_auth: dict, optional 540 :param _content_type: force content-type for the request. 541 :type _content_type: str, Optional 542 :param _headers: set to override the headers for a single 543 request; this effectively ignores the headers 544 in the spec for a single request. 545 :type _headers: dict, optional 546 :param _host_index: set to override the host_index for a single 547 request; this effectively ignores the host_index 548 in the spec for a single request. 549 :type _host_index: int, optional 550 :return: Returns the result object. 551 """ # noqa: E501 552 553 _param = self._delete_pipeline_serialize( 554 organization=organization, 555 pipeline=pipeline, 556 _request_auth=_request_auth, 557 _content_type=_content_type, 558 _headers=_headers, 559 _host_index=_host_index 560 ) 561 562 _response_types_map: Dict[str, Optional[str]] = { 563 '200': "DeletePipelineResponse", 564 '400': "GetPipelines400Response", 565 '401': "GetPipelines400Response", 566 '403': "GetPipelines400Response", 567 '404': "GetPipelines400Response", 568 '500': "GetPipelines400Response", 569 } 570 response_data = self.api_client.call_api( 571 *_param, 572 _request_timeout=_request_timeout 573 ) 574 return response_data.response 575 576 577 def _delete_pipeline_serialize( 578 self, 579 organization, 580 pipeline, 581 _request_auth, 582 _content_type, 583 _headers, 584 _host_index, 585 ) -> RequestSerialized: 586 587 _host = None 588 589 _collection_formats: Dict[str, str] = { 590 } 591 592 _path_params: Dict[str, str] = {} 593 _query_params: List[Tuple[str, str]] = [] 594 _header_params: Dict[str, Optional[str]] = _headers or {} 595 _form_params: List[Tuple[str, str]] = [] 596 _files: Dict[ 597 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 598 ] = {} 599 _body_params: Optional[bytes] = None 600 601 # process the path parameters 602 if organization is not None: 603 _path_params['organization'] = organization 604 if pipeline is not None: 605 _path_params['pipeline'] = pipeline 606 # process the query parameters 607 # process the header parameters 608 # process the form parameters 609 # process the body parameter 610 611 612 # set the HTTP header `Accept` 613 if 'Accept' not in _header_params: 614 _header_params['Accept'] = self.api_client.select_header_accept( 615 [ 616 'application/json' 617 ] 618 ) 619 620 621 # authentication setting 622 _auth_settings: List[str] = [ 623 'bearerAuth' 624 ] 625 626 return self.api_client.param_serialize( 627 method='DELETE', 628 resource_path='/org/{organization}/pipelines/{pipeline}', 629 path_params=_path_params, 630 query_params=_query_params, 631 header_params=_header_params, 632 body=_body_params, 633 post_params=_form_params, 634 files=_files, 635 auth_settings=_auth_settings, 636 collection_formats=_collection_formats, 637 _host=_host, 638 _request_auth=_request_auth 639 ) 640 641 642 643 644 @validate_call 645 def get_deep_research_result( 646 self, 647 organization: StrictStr, 648 pipeline: StrictStr, 649 research_id: StrictStr, 650 _request_timeout: Union[ 651 None, 652 Annotated[StrictFloat, Field(gt=0)], 653 Tuple[ 654 Annotated[StrictFloat, Field(gt=0)], 655 Annotated[StrictFloat, Field(gt=0)] 656 ] 657 ] = None, 658 _request_auth: Optional[Dict[StrictStr, Any]] = None, 659 _content_type: Optional[StrictStr] = None, 660 _headers: Optional[Dict[StrictStr, Any]] = None, 661 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 662 ) -> GetDeepResearchResponse: 663 """Get deep research result 664 665 666 :param organization: (required) 667 :type organization: str 668 :param pipeline: (required) 669 :type pipeline: str 670 :param research_id: (required) 671 :type research_id: str 672 :param _request_timeout: timeout setting for this request. If one 673 number provided, it will be total request 674 timeout. It can also be a pair (tuple) of 675 (connection, read) timeouts. 676 :type _request_timeout: int, tuple(int, int), optional 677 :param _request_auth: set to override the auth_settings for an a single 678 request; this effectively ignores the 679 authentication in the spec for a single request. 680 :type _request_auth: dict, optional 681 :param _content_type: force content-type for the request. 682 :type _content_type: str, Optional 683 :param _headers: set to override the headers for a single 684 request; this effectively ignores the headers 685 in the spec for a single request. 686 :type _headers: dict, optional 687 :param _host_index: set to override the host_index for a single 688 request; this effectively ignores the host_index 689 in the spec for a single request. 690 :type _host_index: int, optional 691 :return: Returns the result object. 692 """ # noqa: E501 693 694 _param = self._get_deep_research_result_serialize( 695 organization=organization, 696 pipeline=pipeline, 697 research_id=research_id, 698 _request_auth=_request_auth, 699 _content_type=_content_type, 700 _headers=_headers, 701 _host_index=_host_index 702 ) 703 704 _response_types_map: Dict[str, Optional[str]] = { 705 '200': "GetDeepResearchResponse", 706 '400': "GetPipelines400Response", 707 '401': "GetPipelines400Response", 708 '403': "GetPipelines400Response", 709 '404': "GetPipelines400Response", 710 '500': "GetPipelines400Response", 711 } 712 response_data = self.api_client.call_api( 713 *_param, 714 _request_timeout=_request_timeout 715 ) 716 response_data.read() 717 return self.api_client.response_deserialize( 718 response_data=response_data, 719 response_types_map=_response_types_map, 720 ).data 721 722 723 @validate_call 724 def get_deep_research_result_with_http_info( 725 self, 726 organization: StrictStr, 727 pipeline: StrictStr, 728 research_id: StrictStr, 729 _request_timeout: Union[ 730 None, 731 Annotated[StrictFloat, Field(gt=0)], 732 Tuple[ 733 Annotated[StrictFloat, Field(gt=0)], 734 Annotated[StrictFloat, Field(gt=0)] 735 ] 736 ] = None, 737 _request_auth: Optional[Dict[StrictStr, Any]] = None, 738 _content_type: Optional[StrictStr] = None, 739 _headers: Optional[Dict[StrictStr, Any]] = None, 740 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 741 ) -> ApiResponse[GetDeepResearchResponse]: 742 """Get deep research result 743 744 745 :param organization: (required) 746 :type organization: str 747 :param pipeline: (required) 748 :type pipeline: str 749 :param research_id: (required) 750 :type research_id: str 751 :param _request_timeout: timeout setting for this request. If one 752 number provided, it will be total request 753 timeout. It can also be a pair (tuple) of 754 (connection, read) timeouts. 755 :type _request_timeout: int, tuple(int, int), optional 756 :param _request_auth: set to override the auth_settings for an a single 757 request; this effectively ignores the 758 authentication in the spec for a single request. 759 :type _request_auth: dict, optional 760 :param _content_type: force content-type for the request. 761 :type _content_type: str, Optional 762 :param _headers: set to override the headers for a single 763 request; this effectively ignores the headers 764 in the spec for a single request. 765 :type _headers: dict, optional 766 :param _host_index: set to override the host_index for a single 767 request; this effectively ignores the host_index 768 in the spec for a single request. 769 :type _host_index: int, optional 770 :return: Returns the result object. 771 """ # noqa: E501 772 773 _param = self._get_deep_research_result_serialize( 774 organization=organization, 775 pipeline=pipeline, 776 research_id=research_id, 777 _request_auth=_request_auth, 778 _content_type=_content_type, 779 _headers=_headers, 780 _host_index=_host_index 781 ) 782 783 _response_types_map: Dict[str, Optional[str]] = { 784 '200': "GetDeepResearchResponse", 785 '400': "GetPipelines400Response", 786 '401': "GetPipelines400Response", 787 '403': "GetPipelines400Response", 788 '404': "GetPipelines400Response", 789 '500': "GetPipelines400Response", 790 } 791 response_data = self.api_client.call_api( 792 *_param, 793 _request_timeout=_request_timeout 794 ) 795 response_data.read() 796 return self.api_client.response_deserialize( 797 response_data=response_data, 798 response_types_map=_response_types_map, 799 ) 800 801 802 @validate_call 803 def get_deep_research_result_without_preload_content( 804 self, 805 organization: StrictStr, 806 pipeline: StrictStr, 807 research_id: StrictStr, 808 _request_timeout: Union[ 809 None, 810 Annotated[StrictFloat, Field(gt=0)], 811 Tuple[ 812 Annotated[StrictFloat, Field(gt=0)], 813 Annotated[StrictFloat, Field(gt=0)] 814 ] 815 ] = None, 816 _request_auth: Optional[Dict[StrictStr, Any]] = None, 817 _content_type: Optional[StrictStr] = None, 818 _headers: Optional[Dict[StrictStr, Any]] = None, 819 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 820 ) -> RESTResponseType: 821 """Get deep research result 822 823 824 :param organization: (required) 825 :type organization: str 826 :param pipeline: (required) 827 :type pipeline: str 828 :param research_id: (required) 829 :type research_id: str 830 :param _request_timeout: timeout setting for this request. If one 831 number provided, it will be total request 832 timeout. It can also be a pair (tuple) of 833 (connection, read) timeouts. 834 :type _request_timeout: int, tuple(int, int), optional 835 :param _request_auth: set to override the auth_settings for an a single 836 request; this effectively ignores the 837 authentication in the spec for a single request. 838 :type _request_auth: dict, optional 839 :param _content_type: force content-type for the request. 840 :type _content_type: str, Optional 841 :param _headers: set to override the headers for a single 842 request; this effectively ignores the headers 843 in the spec for a single request. 844 :type _headers: dict, optional 845 :param _host_index: set to override the host_index for a single 846 request; this effectively ignores the host_index 847 in the spec for a single request. 848 :type _host_index: int, optional 849 :return: Returns the result object. 850 """ # noqa: E501 851 852 _param = self._get_deep_research_result_serialize( 853 organization=organization, 854 pipeline=pipeline, 855 research_id=research_id, 856 _request_auth=_request_auth, 857 _content_type=_content_type, 858 _headers=_headers, 859 _host_index=_host_index 860 ) 861 862 _response_types_map: Dict[str, Optional[str]] = { 863 '200': "GetDeepResearchResponse", 864 '400': "GetPipelines400Response", 865 '401': "GetPipelines400Response", 866 '403': "GetPipelines400Response", 867 '404': "GetPipelines400Response", 868 '500': "GetPipelines400Response", 869 } 870 response_data = self.api_client.call_api( 871 *_param, 872 _request_timeout=_request_timeout 873 ) 874 return response_data.response 875 876 877 def _get_deep_research_result_serialize( 878 self, 879 organization, 880 pipeline, 881 research_id, 882 _request_auth, 883 _content_type, 884 _headers, 885 _host_index, 886 ) -> RequestSerialized: 887 888 _host = None 889 890 _collection_formats: Dict[str, str] = { 891 } 892 893 _path_params: Dict[str, str] = {} 894 _query_params: List[Tuple[str, str]] = [] 895 _header_params: Dict[str, Optional[str]] = _headers or {} 896 _form_params: List[Tuple[str, str]] = [] 897 _files: Dict[ 898 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 899 ] = {} 900 _body_params: Optional[bytes] = None 901 902 # process the path parameters 903 if organization is not None: 904 _path_params['organization'] = organization 905 if pipeline is not None: 906 _path_params['pipeline'] = pipeline 907 if research_id is not None: 908 _path_params['researchId'] = research_id 909 # process the query parameters 910 # process the header parameters 911 # process the form parameters 912 # process the body parameter 913 914 915 # set the HTTP header `Accept` 916 if 'Accept' not in _header_params: 917 _header_params['Accept'] = self.api_client.select_header_accept( 918 [ 919 'application/json' 920 ] 921 ) 922 923 924 # authentication setting 925 _auth_settings: List[str] = [ 926 'bearerAuth' 927 ] 928 929 return self.api_client.param_serialize( 930 method='GET', 931 resource_path='/org/{organization}/pipelines/{pipeline}/deep-research/{researchId}', 932 path_params=_path_params, 933 query_params=_query_params, 934 header_params=_header_params, 935 body=_body_params, 936 post_params=_form_params, 937 files=_files, 938 auth_settings=_auth_settings, 939 collection_formats=_collection_formats, 940 _host=_host, 941 _request_auth=_request_auth 942 ) 943 944 945 946 947 @validate_call 948 def get_pipeline( 949 self, 950 organization: StrictStr, 951 pipeline: StrictStr, 952 _request_timeout: Union[ 953 None, 954 Annotated[StrictFloat, Field(gt=0)], 955 Tuple[ 956 Annotated[StrictFloat, Field(gt=0)], 957 Annotated[StrictFloat, Field(gt=0)] 958 ] 959 ] = None, 960 _request_auth: Optional[Dict[StrictStr, Any]] = None, 961 _content_type: Optional[StrictStr] = None, 962 _headers: Optional[Dict[StrictStr, Any]] = None, 963 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 964 ) -> GetPipelineResponse: 965 """Get a pipeline 966 967 968 :param organization: (required) 969 :type organization: str 970 :param pipeline: (required) 971 :type pipeline: str 972 :param _request_timeout: timeout setting for this request. If one 973 number provided, it will be total request 974 timeout. It can also be a pair (tuple) of 975 (connection, read) timeouts. 976 :type _request_timeout: int, tuple(int, int), optional 977 :param _request_auth: set to override the auth_settings for an a single 978 request; this effectively ignores the 979 authentication in the spec for a single request. 980 :type _request_auth: dict, optional 981 :param _content_type: force content-type for the request. 982 :type _content_type: str, Optional 983 :param _headers: set to override the headers for a single 984 request; this effectively ignores the headers 985 in the spec for a single request. 986 :type _headers: dict, optional 987 :param _host_index: set to override the host_index for a single 988 request; this effectively ignores the host_index 989 in the spec for a single request. 990 :type _host_index: int, optional 991 :return: Returns the result object. 992 """ # noqa: E501 993 994 _param = self._get_pipeline_serialize( 995 organization=organization, 996 pipeline=pipeline, 997 _request_auth=_request_auth, 998 _content_type=_content_type, 999 _headers=_headers, 1000 _host_index=_host_index 1001 ) 1002 1003 _response_types_map: Dict[str, Optional[str]] = { 1004 '200': "GetPipelineResponse", 1005 '400': "GetPipelines400Response", 1006 '401': "GetPipelines400Response", 1007 '403': "GetPipelines400Response", 1008 '404': "GetPipelines400Response", 1009 '500': "GetPipelines400Response", 1010 } 1011 response_data = self.api_client.call_api( 1012 *_param, 1013 _request_timeout=_request_timeout 1014 ) 1015 response_data.read() 1016 return self.api_client.response_deserialize( 1017 response_data=response_data, 1018 response_types_map=_response_types_map, 1019 ).data 1020 1021 1022 @validate_call 1023 def get_pipeline_with_http_info( 1024 self, 1025 organization: StrictStr, 1026 pipeline: StrictStr, 1027 _request_timeout: Union[ 1028 None, 1029 Annotated[StrictFloat, Field(gt=0)], 1030 Tuple[ 1031 Annotated[StrictFloat, Field(gt=0)], 1032 Annotated[StrictFloat, Field(gt=0)] 1033 ] 1034 ] = None, 1035 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1036 _content_type: Optional[StrictStr] = None, 1037 _headers: Optional[Dict[StrictStr, Any]] = None, 1038 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1039 ) -> ApiResponse[GetPipelineResponse]: 1040 """Get a pipeline 1041 1042 1043 :param organization: (required) 1044 :type organization: str 1045 :param pipeline: (required) 1046 :type pipeline: str 1047 :param _request_timeout: timeout setting for this request. If one 1048 number provided, it will be total request 1049 timeout. It can also be a pair (tuple) of 1050 (connection, read) timeouts. 1051 :type _request_timeout: int, tuple(int, int), optional 1052 :param _request_auth: set to override the auth_settings for an a single 1053 request; this effectively ignores the 1054 authentication in the spec for a single request. 1055 :type _request_auth: dict, optional 1056 :param _content_type: force content-type for the request. 1057 :type _content_type: str, Optional 1058 :param _headers: set to override the headers for a single 1059 request; this effectively ignores the headers 1060 in the spec for a single request. 1061 :type _headers: dict, optional 1062 :param _host_index: set to override the host_index for a single 1063 request; this effectively ignores the host_index 1064 in the spec for a single request. 1065 :type _host_index: int, optional 1066 :return: Returns the result object. 1067 """ # noqa: E501 1068 1069 _param = self._get_pipeline_serialize( 1070 organization=organization, 1071 pipeline=pipeline, 1072 _request_auth=_request_auth, 1073 _content_type=_content_type, 1074 _headers=_headers, 1075 _host_index=_host_index 1076 ) 1077 1078 _response_types_map: Dict[str, Optional[str]] = { 1079 '200': "GetPipelineResponse", 1080 '400': "GetPipelines400Response", 1081 '401': "GetPipelines400Response", 1082 '403': "GetPipelines400Response", 1083 '404': "GetPipelines400Response", 1084 '500': "GetPipelines400Response", 1085 } 1086 response_data = self.api_client.call_api( 1087 *_param, 1088 _request_timeout=_request_timeout 1089 ) 1090 response_data.read() 1091 return self.api_client.response_deserialize( 1092 response_data=response_data, 1093 response_types_map=_response_types_map, 1094 ) 1095 1096 1097 @validate_call 1098 def get_pipeline_without_preload_content( 1099 self, 1100 organization: StrictStr, 1101 pipeline: StrictStr, 1102 _request_timeout: Union[ 1103 None, 1104 Annotated[StrictFloat, Field(gt=0)], 1105 Tuple[ 1106 Annotated[StrictFloat, Field(gt=0)], 1107 Annotated[StrictFloat, Field(gt=0)] 1108 ] 1109 ] = None, 1110 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1111 _content_type: Optional[StrictStr] = None, 1112 _headers: Optional[Dict[StrictStr, Any]] = None, 1113 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1114 ) -> RESTResponseType: 1115 """Get a pipeline 1116 1117 1118 :param organization: (required) 1119 :type organization: str 1120 :param pipeline: (required) 1121 :type pipeline: str 1122 :param _request_timeout: timeout setting for this request. If one 1123 number provided, it will be total request 1124 timeout. It can also be a pair (tuple) of 1125 (connection, read) timeouts. 1126 :type _request_timeout: int, tuple(int, int), optional 1127 :param _request_auth: set to override the auth_settings for an a single 1128 request; this effectively ignores the 1129 authentication in the spec for a single request. 1130 :type _request_auth: dict, optional 1131 :param _content_type: force content-type for the request. 1132 :type _content_type: str, Optional 1133 :param _headers: set to override the headers for a single 1134 request; this effectively ignores the headers 1135 in the spec for a single request. 1136 :type _headers: dict, optional 1137 :param _host_index: set to override the host_index for a single 1138 request; this effectively ignores the host_index 1139 in the spec for a single request. 1140 :type _host_index: int, optional 1141 :return: Returns the result object. 1142 """ # noqa: E501 1143 1144 _param = self._get_pipeline_serialize( 1145 organization=organization, 1146 pipeline=pipeline, 1147 _request_auth=_request_auth, 1148 _content_type=_content_type, 1149 _headers=_headers, 1150 _host_index=_host_index 1151 ) 1152 1153 _response_types_map: Dict[str, Optional[str]] = { 1154 '200': "GetPipelineResponse", 1155 '400': "GetPipelines400Response", 1156 '401': "GetPipelines400Response", 1157 '403': "GetPipelines400Response", 1158 '404': "GetPipelines400Response", 1159 '500': "GetPipelines400Response", 1160 } 1161 response_data = self.api_client.call_api( 1162 *_param, 1163 _request_timeout=_request_timeout 1164 ) 1165 return response_data.response 1166 1167 1168 def _get_pipeline_serialize( 1169 self, 1170 organization, 1171 pipeline, 1172 _request_auth, 1173 _content_type, 1174 _headers, 1175 _host_index, 1176 ) -> RequestSerialized: 1177 1178 _host = None 1179 1180 _collection_formats: Dict[str, str] = { 1181 } 1182 1183 _path_params: Dict[str, str] = {} 1184 _query_params: List[Tuple[str, str]] = [] 1185 _header_params: Dict[str, Optional[str]] = _headers or {} 1186 _form_params: List[Tuple[str, str]] = [] 1187 _files: Dict[ 1188 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 1189 ] = {} 1190 _body_params: Optional[bytes] = None 1191 1192 # process the path parameters 1193 if organization is not None: 1194 _path_params['organization'] = organization 1195 if pipeline is not None: 1196 _path_params['pipeline'] = pipeline 1197 # process the query parameters 1198 # process the header parameters 1199 # process the form parameters 1200 # process the body parameter 1201 1202 1203 # set the HTTP header `Accept` 1204 if 'Accept' not in _header_params: 1205 _header_params['Accept'] = self.api_client.select_header_accept( 1206 [ 1207 'application/json' 1208 ] 1209 ) 1210 1211 1212 # authentication setting 1213 _auth_settings: List[str] = [ 1214 'bearerAuth' 1215 ] 1216 1217 return self.api_client.param_serialize( 1218 method='GET', 1219 resource_path='/org/{organization}/pipelines/{pipeline}', 1220 path_params=_path_params, 1221 query_params=_query_params, 1222 header_params=_header_params, 1223 body=_body_params, 1224 post_params=_form_params, 1225 files=_files, 1226 auth_settings=_auth_settings, 1227 collection_formats=_collection_formats, 1228 _host=_host, 1229 _request_auth=_request_auth 1230 ) 1231 1232 1233 1234 1235 @validate_call 1236 def get_pipeline_events( 1237 self, 1238 organization: StrictStr, 1239 pipeline: StrictStr, 1240 next_token: Optional[StrictStr] = None, 1241 _request_timeout: Union[ 1242 None, 1243 Annotated[StrictFloat, Field(gt=0)], 1244 Tuple[ 1245 Annotated[StrictFloat, Field(gt=0)], 1246 Annotated[StrictFloat, Field(gt=0)] 1247 ] 1248 ] = None, 1249 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1250 _content_type: Optional[StrictStr] = None, 1251 _headers: Optional[Dict[StrictStr, Any]] = None, 1252 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1253 ) -> GetPipelineEventsResponse: 1254 """Get pipeline events 1255 1256 1257 :param organization: (required) 1258 :type organization: str 1259 :param pipeline: (required) 1260 :type pipeline: str 1261 :param next_token: 1262 :type next_token: str 1263 :param _request_timeout: timeout setting for this request. If one 1264 number provided, it will be total request 1265 timeout. It can also be a pair (tuple) of 1266 (connection, read) timeouts. 1267 :type _request_timeout: int, tuple(int, int), optional 1268 :param _request_auth: set to override the auth_settings for an a single 1269 request; this effectively ignores the 1270 authentication in the spec for a single request. 1271 :type _request_auth: dict, optional 1272 :param _content_type: force content-type for the request. 1273 :type _content_type: str, Optional 1274 :param _headers: set to override the headers for a single 1275 request; this effectively ignores the headers 1276 in the spec for a single request. 1277 :type _headers: dict, optional 1278 :param _host_index: set to override the host_index for a single 1279 request; this effectively ignores the host_index 1280 in the spec for a single request. 1281 :type _host_index: int, optional 1282 :return: Returns the result object. 1283 """ # noqa: E501 1284 1285 _param = self._get_pipeline_events_serialize( 1286 organization=organization, 1287 pipeline=pipeline, 1288 next_token=next_token, 1289 _request_auth=_request_auth, 1290 _content_type=_content_type, 1291 _headers=_headers, 1292 _host_index=_host_index 1293 ) 1294 1295 _response_types_map: Dict[str, Optional[str]] = { 1296 '200': "GetPipelineEventsResponse", 1297 '400': "GetPipelines400Response", 1298 '401': "GetPipelines400Response", 1299 '403': "GetPipelines400Response", 1300 '404': "GetPipelines400Response", 1301 '500': "GetPipelines400Response", 1302 } 1303 response_data = self.api_client.call_api( 1304 *_param, 1305 _request_timeout=_request_timeout 1306 ) 1307 response_data.read() 1308 return self.api_client.response_deserialize( 1309 response_data=response_data, 1310 response_types_map=_response_types_map, 1311 ).data 1312 1313 1314 @validate_call 1315 def get_pipeline_events_with_http_info( 1316 self, 1317 organization: StrictStr, 1318 pipeline: StrictStr, 1319 next_token: Optional[StrictStr] = None, 1320 _request_timeout: Union[ 1321 None, 1322 Annotated[StrictFloat, Field(gt=0)], 1323 Tuple[ 1324 Annotated[StrictFloat, Field(gt=0)], 1325 Annotated[StrictFloat, Field(gt=0)] 1326 ] 1327 ] = None, 1328 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1329 _content_type: Optional[StrictStr] = None, 1330 _headers: Optional[Dict[StrictStr, Any]] = None, 1331 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1332 ) -> ApiResponse[GetPipelineEventsResponse]: 1333 """Get pipeline events 1334 1335 1336 :param organization: (required) 1337 :type organization: str 1338 :param pipeline: (required) 1339 :type pipeline: str 1340 :param next_token: 1341 :type next_token: str 1342 :param _request_timeout: timeout setting for this request. If one 1343 number provided, it will be total request 1344 timeout. It can also be a pair (tuple) of 1345 (connection, read) timeouts. 1346 :type _request_timeout: int, tuple(int, int), optional 1347 :param _request_auth: set to override the auth_settings for an a single 1348 request; this effectively ignores the 1349 authentication in the spec for a single request. 1350 :type _request_auth: dict, optional 1351 :param _content_type: force content-type for the request. 1352 :type _content_type: str, Optional 1353 :param _headers: set to override the headers for a single 1354 request; this effectively ignores the headers 1355 in the spec for a single request. 1356 :type _headers: dict, optional 1357 :param _host_index: set to override the host_index for a single 1358 request; this effectively ignores the host_index 1359 in the spec for a single request. 1360 :type _host_index: int, optional 1361 :return: Returns the result object. 1362 """ # noqa: E501 1363 1364 _param = self._get_pipeline_events_serialize( 1365 organization=organization, 1366 pipeline=pipeline, 1367 next_token=next_token, 1368 _request_auth=_request_auth, 1369 _content_type=_content_type, 1370 _headers=_headers, 1371 _host_index=_host_index 1372 ) 1373 1374 _response_types_map: Dict[str, Optional[str]] = { 1375 '200': "GetPipelineEventsResponse", 1376 '400': "GetPipelines400Response", 1377 '401': "GetPipelines400Response", 1378 '403': "GetPipelines400Response", 1379 '404': "GetPipelines400Response", 1380 '500': "GetPipelines400Response", 1381 } 1382 response_data = self.api_client.call_api( 1383 *_param, 1384 _request_timeout=_request_timeout 1385 ) 1386 response_data.read() 1387 return self.api_client.response_deserialize( 1388 response_data=response_data, 1389 response_types_map=_response_types_map, 1390 ) 1391 1392 1393 @validate_call 1394 def get_pipeline_events_without_preload_content( 1395 self, 1396 organization: StrictStr, 1397 pipeline: StrictStr, 1398 next_token: Optional[StrictStr] = None, 1399 _request_timeout: Union[ 1400 None, 1401 Annotated[StrictFloat, Field(gt=0)], 1402 Tuple[ 1403 Annotated[StrictFloat, Field(gt=0)], 1404 Annotated[StrictFloat, Field(gt=0)] 1405 ] 1406 ] = None, 1407 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1408 _content_type: Optional[StrictStr] = None, 1409 _headers: Optional[Dict[StrictStr, Any]] = None, 1410 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1411 ) -> RESTResponseType: 1412 """Get pipeline events 1413 1414 1415 :param organization: (required) 1416 :type organization: str 1417 :param pipeline: (required) 1418 :type pipeline: str 1419 :param next_token: 1420 :type next_token: str 1421 :param _request_timeout: timeout setting for this request. If one 1422 number provided, it will be total request 1423 timeout. It can also be a pair (tuple) of 1424 (connection, read) timeouts. 1425 :type _request_timeout: int, tuple(int, int), optional 1426 :param _request_auth: set to override the auth_settings for an a single 1427 request; this effectively ignores the 1428 authentication in the spec for a single request. 1429 :type _request_auth: dict, optional 1430 :param _content_type: force content-type for the request. 1431 :type _content_type: str, Optional 1432 :param _headers: set to override the headers for a single 1433 request; this effectively ignores the headers 1434 in the spec for a single request. 1435 :type _headers: dict, optional 1436 :param _host_index: set to override the host_index for a single 1437 request; this effectively ignores the host_index 1438 in the spec for a single request. 1439 :type _host_index: int, optional 1440 :return: Returns the result object. 1441 """ # noqa: E501 1442 1443 _param = self._get_pipeline_events_serialize( 1444 organization=organization, 1445 pipeline=pipeline, 1446 next_token=next_token, 1447 _request_auth=_request_auth, 1448 _content_type=_content_type, 1449 _headers=_headers, 1450 _host_index=_host_index 1451 ) 1452 1453 _response_types_map: Dict[str, Optional[str]] = { 1454 '200': "GetPipelineEventsResponse", 1455 '400': "GetPipelines400Response", 1456 '401': "GetPipelines400Response", 1457 '403': "GetPipelines400Response", 1458 '404': "GetPipelines400Response", 1459 '500': "GetPipelines400Response", 1460 } 1461 response_data = self.api_client.call_api( 1462 *_param, 1463 _request_timeout=_request_timeout 1464 ) 1465 return response_data.response 1466 1467 1468 def _get_pipeline_events_serialize( 1469 self, 1470 organization, 1471 pipeline, 1472 next_token, 1473 _request_auth, 1474 _content_type, 1475 _headers, 1476 _host_index, 1477 ) -> RequestSerialized: 1478 1479 _host = None 1480 1481 _collection_formats: Dict[str, str] = { 1482 } 1483 1484 _path_params: Dict[str, str] = {} 1485 _query_params: List[Tuple[str, str]] = [] 1486 _header_params: Dict[str, Optional[str]] = _headers or {} 1487 _form_params: List[Tuple[str, str]] = [] 1488 _files: Dict[ 1489 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 1490 ] = {} 1491 _body_params: Optional[bytes] = None 1492 1493 # process the path parameters 1494 if organization is not None: 1495 _path_params['organization'] = organization 1496 if pipeline is not None: 1497 _path_params['pipeline'] = pipeline 1498 # process the query parameters 1499 if next_token is not None: 1500 1501 _query_params.append(('nextToken', next_token)) 1502 1503 # process the header parameters 1504 # process the form parameters 1505 # process the body parameter 1506 1507 1508 # set the HTTP header `Accept` 1509 if 'Accept' not in _header_params: 1510 _header_params['Accept'] = self.api_client.select_header_accept( 1511 [ 1512 'application/json' 1513 ] 1514 ) 1515 1516 1517 # authentication setting 1518 _auth_settings: List[str] = [ 1519 'bearerAuth' 1520 ] 1521 1522 return self.api_client.param_serialize( 1523 method='GET', 1524 resource_path='/org/{organization}/pipelines/{pipeline}/events', 1525 path_params=_path_params, 1526 query_params=_query_params, 1527 header_params=_header_params, 1528 body=_body_params, 1529 post_params=_form_params, 1530 files=_files, 1531 auth_settings=_auth_settings, 1532 collection_formats=_collection_formats, 1533 _host=_host, 1534 _request_auth=_request_auth 1535 ) 1536 1537 1538 1539 1540 @validate_call 1541 def get_pipeline_metrics( 1542 self, 1543 organization: StrictStr, 1544 pipeline: StrictStr, 1545 _request_timeout: Union[ 1546 None, 1547 Annotated[StrictFloat, Field(gt=0)], 1548 Tuple[ 1549 Annotated[StrictFloat, Field(gt=0)], 1550 Annotated[StrictFloat, Field(gt=0)] 1551 ] 1552 ] = None, 1553 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1554 _content_type: Optional[StrictStr] = None, 1555 _headers: Optional[Dict[StrictStr, Any]] = None, 1556 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1557 ) -> GetPipelineMetricsResponse: 1558 """Get pipeline metrics 1559 1560 1561 :param organization: (required) 1562 :type organization: str 1563 :param pipeline: (required) 1564 :type pipeline: str 1565 :param _request_timeout: timeout setting for this request. If one 1566 number provided, it will be total request 1567 timeout. It can also be a pair (tuple) of 1568 (connection, read) timeouts. 1569 :type _request_timeout: int, tuple(int, int), optional 1570 :param _request_auth: set to override the auth_settings for an a single 1571 request; this effectively ignores the 1572 authentication in the spec for a single request. 1573 :type _request_auth: dict, optional 1574 :param _content_type: force content-type for the request. 1575 :type _content_type: str, Optional 1576 :param _headers: set to override the headers for a single 1577 request; this effectively ignores the headers 1578 in the spec for a single request. 1579 :type _headers: dict, optional 1580 :param _host_index: set to override the host_index for a single 1581 request; this effectively ignores the host_index 1582 in the spec for a single request. 1583 :type _host_index: int, optional 1584 :return: Returns the result object. 1585 """ # noqa: E501 1586 1587 _param = self._get_pipeline_metrics_serialize( 1588 organization=organization, 1589 pipeline=pipeline, 1590 _request_auth=_request_auth, 1591 _content_type=_content_type, 1592 _headers=_headers, 1593 _host_index=_host_index 1594 ) 1595 1596 _response_types_map: Dict[str, Optional[str]] = { 1597 '200': "GetPipelineMetricsResponse", 1598 '400': "GetPipelines400Response", 1599 '401': "GetPipelines400Response", 1600 '403': "GetPipelines400Response", 1601 '404': "GetPipelines400Response", 1602 '500': "GetPipelines400Response", 1603 } 1604 response_data = self.api_client.call_api( 1605 *_param, 1606 _request_timeout=_request_timeout 1607 ) 1608 response_data.read() 1609 return self.api_client.response_deserialize( 1610 response_data=response_data, 1611 response_types_map=_response_types_map, 1612 ).data 1613 1614 1615 @validate_call 1616 def get_pipeline_metrics_with_http_info( 1617 self, 1618 organization: StrictStr, 1619 pipeline: StrictStr, 1620 _request_timeout: Union[ 1621 None, 1622 Annotated[StrictFloat, Field(gt=0)], 1623 Tuple[ 1624 Annotated[StrictFloat, Field(gt=0)], 1625 Annotated[StrictFloat, Field(gt=0)] 1626 ] 1627 ] = None, 1628 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1629 _content_type: Optional[StrictStr] = None, 1630 _headers: Optional[Dict[StrictStr, Any]] = None, 1631 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1632 ) -> ApiResponse[GetPipelineMetricsResponse]: 1633 """Get pipeline metrics 1634 1635 1636 :param organization: (required) 1637 :type organization: str 1638 :param pipeline: (required) 1639 :type pipeline: str 1640 :param _request_timeout: timeout setting for this request. If one 1641 number provided, it will be total request 1642 timeout. It can also be a pair (tuple) of 1643 (connection, read) timeouts. 1644 :type _request_timeout: int, tuple(int, int), optional 1645 :param _request_auth: set to override the auth_settings for an a single 1646 request; this effectively ignores the 1647 authentication in the spec for a single request. 1648 :type _request_auth: dict, optional 1649 :param _content_type: force content-type for the request. 1650 :type _content_type: str, Optional 1651 :param _headers: set to override the headers for a single 1652 request; this effectively ignores the headers 1653 in the spec for a single request. 1654 :type _headers: dict, optional 1655 :param _host_index: set to override the host_index for a single 1656 request; this effectively ignores the host_index 1657 in the spec for a single request. 1658 :type _host_index: int, optional 1659 :return: Returns the result object. 1660 """ # noqa: E501 1661 1662 _param = self._get_pipeline_metrics_serialize( 1663 organization=organization, 1664 pipeline=pipeline, 1665 _request_auth=_request_auth, 1666 _content_type=_content_type, 1667 _headers=_headers, 1668 _host_index=_host_index 1669 ) 1670 1671 _response_types_map: Dict[str, Optional[str]] = { 1672 '200': "GetPipelineMetricsResponse", 1673 '400': "GetPipelines400Response", 1674 '401': "GetPipelines400Response", 1675 '403': "GetPipelines400Response", 1676 '404': "GetPipelines400Response", 1677 '500': "GetPipelines400Response", 1678 } 1679 response_data = self.api_client.call_api( 1680 *_param, 1681 _request_timeout=_request_timeout 1682 ) 1683 response_data.read() 1684 return self.api_client.response_deserialize( 1685 response_data=response_data, 1686 response_types_map=_response_types_map, 1687 ) 1688 1689 1690 @validate_call 1691 def get_pipeline_metrics_without_preload_content( 1692 self, 1693 organization: StrictStr, 1694 pipeline: StrictStr, 1695 _request_timeout: Union[ 1696 None, 1697 Annotated[StrictFloat, Field(gt=0)], 1698 Tuple[ 1699 Annotated[StrictFloat, Field(gt=0)], 1700 Annotated[StrictFloat, Field(gt=0)] 1701 ] 1702 ] = None, 1703 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1704 _content_type: Optional[StrictStr] = None, 1705 _headers: Optional[Dict[StrictStr, Any]] = None, 1706 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1707 ) -> RESTResponseType: 1708 """Get pipeline metrics 1709 1710 1711 :param organization: (required) 1712 :type organization: str 1713 :param pipeline: (required) 1714 :type pipeline: str 1715 :param _request_timeout: timeout setting for this request. If one 1716 number provided, it will be total request 1717 timeout. It can also be a pair (tuple) of 1718 (connection, read) timeouts. 1719 :type _request_timeout: int, tuple(int, int), optional 1720 :param _request_auth: set to override the auth_settings for an a single 1721 request; this effectively ignores the 1722 authentication in the spec for a single request. 1723 :type _request_auth: dict, optional 1724 :param _content_type: force content-type for the request. 1725 :type _content_type: str, Optional 1726 :param _headers: set to override the headers for a single 1727 request; this effectively ignores the headers 1728 in the spec for a single request. 1729 :type _headers: dict, optional 1730 :param _host_index: set to override the host_index for a single 1731 request; this effectively ignores the host_index 1732 in the spec for a single request. 1733 :type _host_index: int, optional 1734 :return: Returns the result object. 1735 """ # noqa: E501 1736 1737 _param = self._get_pipeline_metrics_serialize( 1738 organization=organization, 1739 pipeline=pipeline, 1740 _request_auth=_request_auth, 1741 _content_type=_content_type, 1742 _headers=_headers, 1743 _host_index=_host_index 1744 ) 1745 1746 _response_types_map: Dict[str, Optional[str]] = { 1747 '200': "GetPipelineMetricsResponse", 1748 '400': "GetPipelines400Response", 1749 '401': "GetPipelines400Response", 1750 '403': "GetPipelines400Response", 1751 '404': "GetPipelines400Response", 1752 '500': "GetPipelines400Response", 1753 } 1754 response_data = self.api_client.call_api( 1755 *_param, 1756 _request_timeout=_request_timeout 1757 ) 1758 return response_data.response 1759 1760 1761 def _get_pipeline_metrics_serialize( 1762 self, 1763 organization, 1764 pipeline, 1765 _request_auth, 1766 _content_type, 1767 _headers, 1768 _host_index, 1769 ) -> RequestSerialized: 1770 1771 _host = None 1772 1773 _collection_formats: Dict[str, str] = { 1774 } 1775 1776 _path_params: Dict[str, str] = {} 1777 _query_params: List[Tuple[str, str]] = [] 1778 _header_params: Dict[str, Optional[str]] = _headers or {} 1779 _form_params: List[Tuple[str, str]] = [] 1780 _files: Dict[ 1781 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 1782 ] = {} 1783 _body_params: Optional[bytes] = None 1784 1785 # process the path parameters 1786 if organization is not None: 1787 _path_params['organization'] = organization 1788 if pipeline is not None: 1789 _path_params['pipeline'] = pipeline 1790 # process the query parameters 1791 # process the header parameters 1792 # process the form parameters 1793 # process the body parameter 1794 1795 1796 # set the HTTP header `Accept` 1797 if 'Accept' not in _header_params: 1798 _header_params['Accept'] = self.api_client.select_header_accept( 1799 [ 1800 'application/json' 1801 ] 1802 ) 1803 1804 1805 # authentication setting 1806 _auth_settings: List[str] = [ 1807 'bearerAuth' 1808 ] 1809 1810 return self.api_client.param_serialize( 1811 method='GET', 1812 resource_path='/org/{organization}/pipelines/{pipeline}/metrics', 1813 path_params=_path_params, 1814 query_params=_query_params, 1815 header_params=_header_params, 1816 body=_body_params, 1817 post_params=_form_params, 1818 files=_files, 1819 auth_settings=_auth_settings, 1820 collection_formats=_collection_formats, 1821 _host=_host, 1822 _request_auth=_request_auth 1823 ) 1824 1825 1826 1827 1828 @validate_call 1829 def get_pipelines( 1830 self, 1831 organization: StrictStr, 1832 _request_timeout: Union[ 1833 None, 1834 Annotated[StrictFloat, Field(gt=0)], 1835 Tuple[ 1836 Annotated[StrictFloat, Field(gt=0)], 1837 Annotated[StrictFloat, Field(gt=0)] 1838 ] 1839 ] = None, 1840 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1841 _content_type: Optional[StrictStr] = None, 1842 _headers: Optional[Dict[StrictStr, Any]] = None, 1843 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1844 ) -> GetPipelinesResponse: 1845 """Get all existing pipelines 1846 1847 1848 :param organization: (required) 1849 :type organization: str 1850 :param _request_timeout: timeout setting for this request. If one 1851 number provided, it will be total request 1852 timeout. It can also be a pair (tuple) of 1853 (connection, read) timeouts. 1854 :type _request_timeout: int, tuple(int, int), optional 1855 :param _request_auth: set to override the auth_settings for an a single 1856 request; this effectively ignores the 1857 authentication in the spec for a single request. 1858 :type _request_auth: dict, optional 1859 :param _content_type: force content-type for the request. 1860 :type _content_type: str, Optional 1861 :param _headers: set to override the headers for a single 1862 request; this effectively ignores the headers 1863 in the spec for a single request. 1864 :type _headers: dict, optional 1865 :param _host_index: set to override the host_index for a single 1866 request; this effectively ignores the host_index 1867 in the spec for a single request. 1868 :type _host_index: int, optional 1869 :return: Returns the result object. 1870 """ # noqa: E501 1871 1872 _param = self._get_pipelines_serialize( 1873 organization=organization, 1874 _request_auth=_request_auth, 1875 _content_type=_content_type, 1876 _headers=_headers, 1877 _host_index=_host_index 1878 ) 1879 1880 _response_types_map: Dict[str, Optional[str]] = { 1881 '200': "GetPipelinesResponse", 1882 '400': "GetPipelines400Response", 1883 '401': "GetPipelines400Response", 1884 '403': "GetPipelines400Response", 1885 '404': "GetPipelines400Response", 1886 '500': "GetPipelines400Response", 1887 } 1888 response_data = self.api_client.call_api( 1889 *_param, 1890 _request_timeout=_request_timeout 1891 ) 1892 response_data.read() 1893 return self.api_client.response_deserialize( 1894 response_data=response_data, 1895 response_types_map=_response_types_map, 1896 ).data 1897 1898 1899 @validate_call 1900 def get_pipelines_with_http_info( 1901 self, 1902 organization: StrictStr, 1903 _request_timeout: Union[ 1904 None, 1905 Annotated[StrictFloat, Field(gt=0)], 1906 Tuple[ 1907 Annotated[StrictFloat, Field(gt=0)], 1908 Annotated[StrictFloat, Field(gt=0)] 1909 ] 1910 ] = None, 1911 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1912 _content_type: Optional[StrictStr] = None, 1913 _headers: Optional[Dict[StrictStr, Any]] = None, 1914 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1915 ) -> ApiResponse[GetPipelinesResponse]: 1916 """Get all existing pipelines 1917 1918 1919 :param organization: (required) 1920 :type organization: str 1921 :param _request_timeout: timeout setting for this request. If one 1922 number provided, it will be total request 1923 timeout. It can also be a pair (tuple) of 1924 (connection, read) timeouts. 1925 :type _request_timeout: int, tuple(int, int), optional 1926 :param _request_auth: set to override the auth_settings for an a single 1927 request; this effectively ignores the 1928 authentication in the spec for a single request. 1929 :type _request_auth: dict, optional 1930 :param _content_type: force content-type for the request. 1931 :type _content_type: str, Optional 1932 :param _headers: set to override the headers for a single 1933 request; this effectively ignores the headers 1934 in the spec for a single request. 1935 :type _headers: dict, optional 1936 :param _host_index: set to override the host_index for a single 1937 request; this effectively ignores the host_index 1938 in the spec for a single request. 1939 :type _host_index: int, optional 1940 :return: Returns the result object. 1941 """ # noqa: E501 1942 1943 _param = self._get_pipelines_serialize( 1944 organization=organization, 1945 _request_auth=_request_auth, 1946 _content_type=_content_type, 1947 _headers=_headers, 1948 _host_index=_host_index 1949 ) 1950 1951 _response_types_map: Dict[str, Optional[str]] = { 1952 '200': "GetPipelinesResponse", 1953 '400': "GetPipelines400Response", 1954 '401': "GetPipelines400Response", 1955 '403': "GetPipelines400Response", 1956 '404': "GetPipelines400Response", 1957 '500': "GetPipelines400Response", 1958 } 1959 response_data = self.api_client.call_api( 1960 *_param, 1961 _request_timeout=_request_timeout 1962 ) 1963 response_data.read() 1964 return self.api_client.response_deserialize( 1965 response_data=response_data, 1966 response_types_map=_response_types_map, 1967 ) 1968 1969 1970 @validate_call 1971 def get_pipelines_without_preload_content( 1972 self, 1973 organization: StrictStr, 1974 _request_timeout: Union[ 1975 None, 1976 Annotated[StrictFloat, Field(gt=0)], 1977 Tuple[ 1978 Annotated[StrictFloat, Field(gt=0)], 1979 Annotated[StrictFloat, Field(gt=0)] 1980 ] 1981 ] = None, 1982 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1983 _content_type: Optional[StrictStr] = None, 1984 _headers: Optional[Dict[StrictStr, Any]] = None, 1985 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1986 ) -> RESTResponseType: 1987 """Get all existing pipelines 1988 1989 1990 :param organization: (required) 1991 :type organization: str 1992 :param _request_timeout: timeout setting for this request. If one 1993 number provided, it will be total request 1994 timeout. It can also be a pair (tuple) of 1995 (connection, read) timeouts. 1996 :type _request_timeout: int, tuple(int, int), optional 1997 :param _request_auth: set to override the auth_settings for an a single 1998 request; this effectively ignores the 1999 authentication in the spec for a single request. 2000 :type _request_auth: dict, optional 2001 :param _content_type: force content-type for the request. 2002 :type _content_type: str, Optional 2003 :param _headers: set to override the headers for a single 2004 request; this effectively ignores the headers 2005 in the spec for a single request. 2006 :type _headers: dict, optional 2007 :param _host_index: set to override the host_index for a single 2008 request; this effectively ignores the host_index 2009 in the spec for a single request. 2010 :type _host_index: int, optional 2011 :return: Returns the result object. 2012 """ # noqa: E501 2013 2014 _param = self._get_pipelines_serialize( 2015 organization=organization, 2016 _request_auth=_request_auth, 2017 _content_type=_content_type, 2018 _headers=_headers, 2019 _host_index=_host_index 2020 ) 2021 2022 _response_types_map: Dict[str, Optional[str]] = { 2023 '200': "GetPipelinesResponse", 2024 '400': "GetPipelines400Response", 2025 '401': "GetPipelines400Response", 2026 '403': "GetPipelines400Response", 2027 '404': "GetPipelines400Response", 2028 '500': "GetPipelines400Response", 2029 } 2030 response_data = self.api_client.call_api( 2031 *_param, 2032 _request_timeout=_request_timeout 2033 ) 2034 return response_data.response 2035 2036 2037 def _get_pipelines_serialize( 2038 self, 2039 organization, 2040 _request_auth, 2041 _content_type, 2042 _headers, 2043 _host_index, 2044 ) -> RequestSerialized: 2045 2046 _host = None 2047 2048 _collection_formats: Dict[str, str] = { 2049 } 2050 2051 _path_params: Dict[str, str] = {} 2052 _query_params: List[Tuple[str, str]] = [] 2053 _header_params: Dict[str, Optional[str]] = _headers or {} 2054 _form_params: List[Tuple[str, str]] = [] 2055 _files: Dict[ 2056 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 2057 ] = {} 2058 _body_params: Optional[bytes] = None 2059 2060 # process the path parameters 2061 if organization is not None: 2062 _path_params['organization'] = organization 2063 # process the query parameters 2064 # process the header parameters 2065 # process the form parameters 2066 # process the body parameter 2067 2068 2069 # set the HTTP header `Accept` 2070 if 'Accept' not in _header_params: 2071 _header_params['Accept'] = self.api_client.select_header_accept( 2072 [ 2073 'application/json' 2074 ] 2075 ) 2076 2077 2078 # authentication setting 2079 _auth_settings: List[str] = [ 2080 'bearerAuth' 2081 ] 2082 2083 return self.api_client.param_serialize( 2084 method='GET', 2085 resource_path='/org/{organization}/pipelines', 2086 path_params=_path_params, 2087 query_params=_query_params, 2088 header_params=_header_params, 2089 body=_body_params, 2090 post_params=_form_params, 2091 files=_files, 2092 auth_settings=_auth_settings, 2093 collection_formats=_collection_formats, 2094 _host=_host, 2095 _request_auth=_request_auth 2096 ) 2097 2098 2099 2100 2101 @validate_call 2102 def retrieve_documents( 2103 self, 2104 organization: StrictStr, 2105 pipeline: StrictStr, 2106 retrieve_documents_request: RetrieveDocumentsRequest, 2107 _request_timeout: Union[ 2108 None, 2109 Annotated[StrictFloat, Field(gt=0)], 2110 Tuple[ 2111 Annotated[StrictFloat, Field(gt=0)], 2112 Annotated[StrictFloat, Field(gt=0)] 2113 ] 2114 ] = None, 2115 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2116 _content_type: Optional[StrictStr] = None, 2117 _headers: Optional[Dict[StrictStr, Any]] = None, 2118 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2119 ) -> RetrieveDocumentsResponse: 2120 """Retrieve documents from a pipeline 2121 2122 2123 :param organization: (required) 2124 :type organization: str 2125 :param pipeline: (required) 2126 :type pipeline: str 2127 :param retrieve_documents_request: (required) 2128 :type retrieve_documents_request: RetrieveDocumentsRequest 2129 :param _request_timeout: timeout setting for this request. If one 2130 number provided, it will be total request 2131 timeout. It can also be a pair (tuple) of 2132 (connection, read) timeouts. 2133 :type _request_timeout: int, tuple(int, int), optional 2134 :param _request_auth: set to override the auth_settings for an a single 2135 request; this effectively ignores the 2136 authentication in the spec for a single request. 2137 :type _request_auth: dict, optional 2138 :param _content_type: force content-type for the request. 2139 :type _content_type: str, Optional 2140 :param _headers: set to override the headers for a single 2141 request; this effectively ignores the headers 2142 in the spec for a single request. 2143 :type _headers: dict, optional 2144 :param _host_index: set to override the host_index for a single 2145 request; this effectively ignores the host_index 2146 in the spec for a single request. 2147 :type _host_index: int, optional 2148 :return: Returns the result object. 2149 """ # noqa: E501 2150 2151 _param = self._retrieve_documents_serialize( 2152 organization=organization, 2153 pipeline=pipeline, 2154 retrieve_documents_request=retrieve_documents_request, 2155 _request_auth=_request_auth, 2156 _content_type=_content_type, 2157 _headers=_headers, 2158 _host_index=_host_index 2159 ) 2160 2161 _response_types_map: Dict[str, Optional[str]] = { 2162 '200': "RetrieveDocumentsResponse", 2163 '400': "GetPipelines400Response", 2164 '401': "GetPipelines400Response", 2165 '403': "GetPipelines400Response", 2166 '404': "GetPipelines400Response", 2167 '500': "GetPipelines400Response", 2168 } 2169 response_data = self.api_client.call_api( 2170 *_param, 2171 _request_timeout=_request_timeout 2172 ) 2173 response_data.read() 2174 return self.api_client.response_deserialize( 2175 response_data=response_data, 2176 response_types_map=_response_types_map, 2177 ).data 2178 2179 2180 @validate_call 2181 def retrieve_documents_with_http_info( 2182 self, 2183 organization: StrictStr, 2184 pipeline: StrictStr, 2185 retrieve_documents_request: RetrieveDocumentsRequest, 2186 _request_timeout: Union[ 2187 None, 2188 Annotated[StrictFloat, Field(gt=0)], 2189 Tuple[ 2190 Annotated[StrictFloat, Field(gt=0)], 2191 Annotated[StrictFloat, Field(gt=0)] 2192 ] 2193 ] = None, 2194 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2195 _content_type: Optional[StrictStr] = None, 2196 _headers: Optional[Dict[StrictStr, Any]] = None, 2197 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2198 ) -> ApiResponse[RetrieveDocumentsResponse]: 2199 """Retrieve documents from a pipeline 2200 2201 2202 :param organization: (required) 2203 :type organization: str 2204 :param pipeline: (required) 2205 :type pipeline: str 2206 :param retrieve_documents_request: (required) 2207 :type retrieve_documents_request: RetrieveDocumentsRequest 2208 :param _request_timeout: timeout setting for this request. If one 2209 number provided, it will be total request 2210 timeout. It can also be a pair (tuple) of 2211 (connection, read) timeouts. 2212 :type _request_timeout: int, tuple(int, int), optional 2213 :param _request_auth: set to override the auth_settings for an a single 2214 request; this effectively ignores the 2215 authentication in the spec for a single request. 2216 :type _request_auth: dict, optional 2217 :param _content_type: force content-type for the request. 2218 :type _content_type: str, Optional 2219 :param _headers: set to override the headers for a single 2220 request; this effectively ignores the headers 2221 in the spec for a single request. 2222 :type _headers: dict, optional 2223 :param _host_index: set to override the host_index for a single 2224 request; this effectively ignores the host_index 2225 in the spec for a single request. 2226 :type _host_index: int, optional 2227 :return: Returns the result object. 2228 """ # noqa: E501 2229 2230 _param = self._retrieve_documents_serialize( 2231 organization=organization, 2232 pipeline=pipeline, 2233 retrieve_documents_request=retrieve_documents_request, 2234 _request_auth=_request_auth, 2235 _content_type=_content_type, 2236 _headers=_headers, 2237 _host_index=_host_index 2238 ) 2239 2240 _response_types_map: Dict[str, Optional[str]] = { 2241 '200': "RetrieveDocumentsResponse", 2242 '400': "GetPipelines400Response", 2243 '401': "GetPipelines400Response", 2244 '403': "GetPipelines400Response", 2245 '404': "GetPipelines400Response", 2246 '500': "GetPipelines400Response", 2247 } 2248 response_data = self.api_client.call_api( 2249 *_param, 2250 _request_timeout=_request_timeout 2251 ) 2252 response_data.read() 2253 return self.api_client.response_deserialize( 2254 response_data=response_data, 2255 response_types_map=_response_types_map, 2256 ) 2257 2258 2259 @validate_call 2260 def retrieve_documents_without_preload_content( 2261 self, 2262 organization: StrictStr, 2263 pipeline: StrictStr, 2264 retrieve_documents_request: RetrieveDocumentsRequest, 2265 _request_timeout: Union[ 2266 None, 2267 Annotated[StrictFloat, Field(gt=0)], 2268 Tuple[ 2269 Annotated[StrictFloat, Field(gt=0)], 2270 Annotated[StrictFloat, Field(gt=0)] 2271 ] 2272 ] = None, 2273 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2274 _content_type: Optional[StrictStr] = None, 2275 _headers: Optional[Dict[StrictStr, Any]] = None, 2276 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2277 ) -> RESTResponseType: 2278 """Retrieve documents from a pipeline 2279 2280 2281 :param organization: (required) 2282 :type organization: str 2283 :param pipeline: (required) 2284 :type pipeline: str 2285 :param retrieve_documents_request: (required) 2286 :type retrieve_documents_request: RetrieveDocumentsRequest 2287 :param _request_timeout: timeout setting for this request. If one 2288 number provided, it will be total request 2289 timeout. It can also be a pair (tuple) of 2290 (connection, read) timeouts. 2291 :type _request_timeout: int, tuple(int, int), optional 2292 :param _request_auth: set to override the auth_settings for an a single 2293 request; this effectively ignores the 2294 authentication in the spec for a single request. 2295 :type _request_auth: dict, optional 2296 :param _content_type: force content-type for the request. 2297 :type _content_type: str, Optional 2298 :param _headers: set to override the headers for a single 2299 request; this effectively ignores the headers 2300 in the spec for a single request. 2301 :type _headers: dict, optional 2302 :param _host_index: set to override the host_index for a single 2303 request; this effectively ignores the host_index 2304 in the spec for a single request. 2305 :type _host_index: int, optional 2306 :return: Returns the result object. 2307 """ # noqa: E501 2308 2309 _param = self._retrieve_documents_serialize( 2310 organization=organization, 2311 pipeline=pipeline, 2312 retrieve_documents_request=retrieve_documents_request, 2313 _request_auth=_request_auth, 2314 _content_type=_content_type, 2315 _headers=_headers, 2316 _host_index=_host_index 2317 ) 2318 2319 _response_types_map: Dict[str, Optional[str]] = { 2320 '200': "RetrieveDocumentsResponse", 2321 '400': "GetPipelines400Response", 2322 '401': "GetPipelines400Response", 2323 '403': "GetPipelines400Response", 2324 '404': "GetPipelines400Response", 2325 '500': "GetPipelines400Response", 2326 } 2327 response_data = self.api_client.call_api( 2328 *_param, 2329 _request_timeout=_request_timeout 2330 ) 2331 return response_data.response 2332 2333 2334 def _retrieve_documents_serialize( 2335 self, 2336 organization, 2337 pipeline, 2338 retrieve_documents_request, 2339 _request_auth, 2340 _content_type, 2341 _headers, 2342 _host_index, 2343 ) -> RequestSerialized: 2344 2345 _host = None 2346 2347 _collection_formats: Dict[str, str] = { 2348 } 2349 2350 _path_params: Dict[str, str] = {} 2351 _query_params: List[Tuple[str, str]] = [] 2352 _header_params: Dict[str, Optional[str]] = _headers or {} 2353 _form_params: List[Tuple[str, str]] = [] 2354 _files: Dict[ 2355 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 2356 ] = {} 2357 _body_params: Optional[bytes] = None 2358 2359 # process the path parameters 2360 if organization is not None: 2361 _path_params['organization'] = organization 2362 if pipeline is not None: 2363 _path_params['pipeline'] = pipeline 2364 # process the query parameters 2365 # process the header parameters 2366 # process the form parameters 2367 # process the body parameter 2368 if retrieve_documents_request is not None: 2369 _body_params = retrieve_documents_request 2370 2371 2372 # set the HTTP header `Accept` 2373 if 'Accept' not in _header_params: 2374 _header_params['Accept'] = self.api_client.select_header_accept( 2375 [ 2376 'application/json' 2377 ] 2378 ) 2379 2380 # set the HTTP header `Content-Type` 2381 if _content_type: 2382 _header_params['Content-Type'] = _content_type 2383 else: 2384 _default_content_type = ( 2385 self.api_client.select_header_content_type( 2386 [ 2387 'application/json' 2388 ] 2389 ) 2390 ) 2391 if _default_content_type is not None: 2392 _header_params['Content-Type'] = _default_content_type 2393 2394 # authentication setting 2395 _auth_settings: List[str] = [ 2396 'bearerAuth' 2397 ] 2398 2399 return self.api_client.param_serialize( 2400 method='POST', 2401 resource_path='/org/{organization}/pipelines/{pipeline}/retrieval', 2402 path_params=_path_params, 2403 query_params=_query_params, 2404 header_params=_header_params, 2405 body=_body_params, 2406 post_params=_form_params, 2407 files=_files, 2408 auth_settings=_auth_settings, 2409 collection_formats=_collection_formats, 2410 _host=_host, 2411 _request_auth=_request_auth 2412 ) 2413 2414 2415 2416 2417 @validate_call 2418 def start_deep_research( 2419 self, 2420 organization: StrictStr, 2421 pipeline: StrictStr, 2422 start_deep_research_request: StartDeepResearchRequest, 2423 _request_timeout: Union[ 2424 None, 2425 Annotated[StrictFloat, Field(gt=0)], 2426 Tuple[ 2427 Annotated[StrictFloat, Field(gt=0)], 2428 Annotated[StrictFloat, Field(gt=0)] 2429 ] 2430 ] = None, 2431 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2432 _content_type: Optional[StrictStr] = None, 2433 _headers: Optional[Dict[StrictStr, Any]] = None, 2434 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2435 ) -> StartDeepResearchResponse: 2436 """Start a deep research 2437 2438 2439 :param organization: (required) 2440 :type organization: str 2441 :param pipeline: (required) 2442 :type pipeline: str 2443 :param start_deep_research_request: (required) 2444 :type start_deep_research_request: StartDeepResearchRequest 2445 :param _request_timeout: timeout setting for this request. If one 2446 number provided, it will be total request 2447 timeout. It can also be a pair (tuple) of 2448 (connection, read) timeouts. 2449 :type _request_timeout: int, tuple(int, int), optional 2450 :param _request_auth: set to override the auth_settings for an a single 2451 request; this effectively ignores the 2452 authentication in the spec for a single request. 2453 :type _request_auth: dict, optional 2454 :param _content_type: force content-type for the request. 2455 :type _content_type: str, Optional 2456 :param _headers: set to override the headers for a single 2457 request; this effectively ignores the headers 2458 in the spec for a single request. 2459 :type _headers: dict, optional 2460 :param _host_index: set to override the host_index for a single 2461 request; this effectively ignores the host_index 2462 in the spec for a single request. 2463 :type _host_index: int, optional 2464 :return: Returns the result object. 2465 """ # noqa: E501 2466 2467 _param = self._start_deep_research_serialize( 2468 organization=organization, 2469 pipeline=pipeline, 2470 start_deep_research_request=start_deep_research_request, 2471 _request_auth=_request_auth, 2472 _content_type=_content_type, 2473 _headers=_headers, 2474 _host_index=_host_index 2475 ) 2476 2477 _response_types_map: Dict[str, Optional[str]] = { 2478 '200': "StartDeepResearchResponse", 2479 '400': "GetPipelines400Response", 2480 '401': "GetPipelines400Response", 2481 '403': "GetPipelines400Response", 2482 '404': "GetPipelines400Response", 2483 '500': "GetPipelines400Response", 2484 } 2485 response_data = self.api_client.call_api( 2486 *_param, 2487 _request_timeout=_request_timeout 2488 ) 2489 response_data.read() 2490 return self.api_client.response_deserialize( 2491 response_data=response_data, 2492 response_types_map=_response_types_map, 2493 ).data 2494 2495 2496 @validate_call 2497 def start_deep_research_with_http_info( 2498 self, 2499 organization: StrictStr, 2500 pipeline: StrictStr, 2501 start_deep_research_request: StartDeepResearchRequest, 2502 _request_timeout: Union[ 2503 None, 2504 Annotated[StrictFloat, Field(gt=0)], 2505 Tuple[ 2506 Annotated[StrictFloat, Field(gt=0)], 2507 Annotated[StrictFloat, Field(gt=0)] 2508 ] 2509 ] = None, 2510 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2511 _content_type: Optional[StrictStr] = None, 2512 _headers: Optional[Dict[StrictStr, Any]] = None, 2513 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2514 ) -> ApiResponse[StartDeepResearchResponse]: 2515 """Start a deep research 2516 2517 2518 :param organization: (required) 2519 :type organization: str 2520 :param pipeline: (required) 2521 :type pipeline: str 2522 :param start_deep_research_request: (required) 2523 :type start_deep_research_request: StartDeepResearchRequest 2524 :param _request_timeout: timeout setting for this request. If one 2525 number provided, it will be total request 2526 timeout. It can also be a pair (tuple) of 2527 (connection, read) timeouts. 2528 :type _request_timeout: int, tuple(int, int), optional 2529 :param _request_auth: set to override the auth_settings for an a single 2530 request; this effectively ignores the 2531 authentication in the spec for a single request. 2532 :type _request_auth: dict, optional 2533 :param _content_type: force content-type for the request. 2534 :type _content_type: str, Optional 2535 :param _headers: set to override the headers for a single 2536 request; this effectively ignores the headers 2537 in the spec for a single request. 2538 :type _headers: dict, optional 2539 :param _host_index: set to override the host_index for a single 2540 request; this effectively ignores the host_index 2541 in the spec for a single request. 2542 :type _host_index: int, optional 2543 :return: Returns the result object. 2544 """ # noqa: E501 2545 2546 _param = self._start_deep_research_serialize( 2547 organization=organization, 2548 pipeline=pipeline, 2549 start_deep_research_request=start_deep_research_request, 2550 _request_auth=_request_auth, 2551 _content_type=_content_type, 2552 _headers=_headers, 2553 _host_index=_host_index 2554 ) 2555 2556 _response_types_map: Dict[str, Optional[str]] = { 2557 '200': "StartDeepResearchResponse", 2558 '400': "GetPipelines400Response", 2559 '401': "GetPipelines400Response", 2560 '403': "GetPipelines400Response", 2561 '404': "GetPipelines400Response", 2562 '500': "GetPipelines400Response", 2563 } 2564 response_data = self.api_client.call_api( 2565 *_param, 2566 _request_timeout=_request_timeout 2567 ) 2568 response_data.read() 2569 return self.api_client.response_deserialize( 2570 response_data=response_data, 2571 response_types_map=_response_types_map, 2572 ) 2573 2574 2575 @validate_call 2576 def start_deep_research_without_preload_content( 2577 self, 2578 organization: StrictStr, 2579 pipeline: StrictStr, 2580 start_deep_research_request: StartDeepResearchRequest, 2581 _request_timeout: Union[ 2582 None, 2583 Annotated[StrictFloat, Field(gt=0)], 2584 Tuple[ 2585 Annotated[StrictFloat, Field(gt=0)], 2586 Annotated[StrictFloat, Field(gt=0)] 2587 ] 2588 ] = None, 2589 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2590 _content_type: Optional[StrictStr] = None, 2591 _headers: Optional[Dict[StrictStr, Any]] = None, 2592 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2593 ) -> RESTResponseType: 2594 """Start a deep research 2595 2596 2597 :param organization: (required) 2598 :type organization: str 2599 :param pipeline: (required) 2600 :type pipeline: str 2601 :param start_deep_research_request: (required) 2602 :type start_deep_research_request: StartDeepResearchRequest 2603 :param _request_timeout: timeout setting for this request. If one 2604 number provided, it will be total request 2605 timeout. It can also be a pair (tuple) of 2606 (connection, read) timeouts. 2607 :type _request_timeout: int, tuple(int, int), optional 2608 :param _request_auth: set to override the auth_settings for an a single 2609 request; this effectively ignores the 2610 authentication in the spec for a single request. 2611 :type _request_auth: dict, optional 2612 :param _content_type: force content-type for the request. 2613 :type _content_type: str, Optional 2614 :param _headers: set to override the headers for a single 2615 request; this effectively ignores the headers 2616 in the spec for a single request. 2617 :type _headers: dict, optional 2618 :param _host_index: set to override the host_index for a single 2619 request; this effectively ignores the host_index 2620 in the spec for a single request. 2621 :type _host_index: int, optional 2622 :return: Returns the result object. 2623 """ # noqa: E501 2624 2625 _param = self._start_deep_research_serialize( 2626 organization=organization, 2627 pipeline=pipeline, 2628 start_deep_research_request=start_deep_research_request, 2629 _request_auth=_request_auth, 2630 _content_type=_content_type, 2631 _headers=_headers, 2632 _host_index=_host_index 2633 ) 2634 2635 _response_types_map: Dict[str, Optional[str]] = { 2636 '200': "StartDeepResearchResponse", 2637 '400': "GetPipelines400Response", 2638 '401': "GetPipelines400Response", 2639 '403': "GetPipelines400Response", 2640 '404': "GetPipelines400Response", 2641 '500': "GetPipelines400Response", 2642 } 2643 response_data = self.api_client.call_api( 2644 *_param, 2645 _request_timeout=_request_timeout 2646 ) 2647 return response_data.response 2648 2649 2650 def _start_deep_research_serialize( 2651 self, 2652 organization, 2653 pipeline, 2654 start_deep_research_request, 2655 _request_auth, 2656 _content_type, 2657 _headers, 2658 _host_index, 2659 ) -> RequestSerialized: 2660 2661 _host = None 2662 2663 _collection_formats: Dict[str, str] = { 2664 } 2665 2666 _path_params: Dict[str, str] = {} 2667 _query_params: List[Tuple[str, str]] = [] 2668 _header_params: Dict[str, Optional[str]] = _headers or {} 2669 _form_params: List[Tuple[str, str]] = [] 2670 _files: Dict[ 2671 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 2672 ] = {} 2673 _body_params: Optional[bytes] = None 2674 2675 # process the path parameters 2676 if organization is not None: 2677 _path_params['organization'] = organization 2678 if pipeline is not None: 2679 _path_params['pipeline'] = pipeline 2680 # process the query parameters 2681 # process the header parameters 2682 # process the form parameters 2683 # process the body parameter 2684 if start_deep_research_request is not None: 2685 _body_params = start_deep_research_request 2686 2687 2688 # set the HTTP header `Accept` 2689 if 'Accept' not in _header_params: 2690 _header_params['Accept'] = self.api_client.select_header_accept( 2691 [ 2692 'application/json' 2693 ] 2694 ) 2695 2696 # set the HTTP header `Content-Type` 2697 if _content_type: 2698 _header_params['Content-Type'] = _content_type 2699 else: 2700 _default_content_type = ( 2701 self.api_client.select_header_content_type( 2702 [ 2703 'application/json' 2704 ] 2705 ) 2706 ) 2707 if _default_content_type is not None: 2708 _header_params['Content-Type'] = _default_content_type 2709 2710 # authentication setting 2711 _auth_settings: List[str] = [ 2712 'bearerAuth' 2713 ] 2714 2715 return self.api_client.param_serialize( 2716 method='POST', 2717 resource_path='/org/{organization}/pipelines/{pipeline}/deep-research', 2718 path_params=_path_params, 2719 query_params=_query_params, 2720 header_params=_header_params, 2721 body=_body_params, 2722 post_params=_form_params, 2723 files=_files, 2724 auth_settings=_auth_settings, 2725 collection_formats=_collection_formats, 2726 _host=_host, 2727 _request_auth=_request_auth 2728 ) 2729 2730 2731 2732 2733 @validate_call 2734 def start_pipeline( 2735 self, 2736 organization: StrictStr, 2737 pipeline: StrictStr, 2738 _request_timeout: Union[ 2739 None, 2740 Annotated[StrictFloat, Field(gt=0)], 2741 Tuple[ 2742 Annotated[StrictFloat, Field(gt=0)], 2743 Annotated[StrictFloat, Field(gt=0)] 2744 ] 2745 ] = None, 2746 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2747 _content_type: Optional[StrictStr] = None, 2748 _headers: Optional[Dict[StrictStr, Any]] = None, 2749 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2750 ) -> StartPipelineResponse: 2751 """Start a pipeline 2752 2753 2754 :param organization: (required) 2755 :type organization: str 2756 :param pipeline: (required) 2757 :type pipeline: str 2758 :param _request_timeout: timeout setting for this request. If one 2759 number provided, it will be total request 2760 timeout. It can also be a pair (tuple) of 2761 (connection, read) timeouts. 2762 :type _request_timeout: int, tuple(int, int), optional 2763 :param _request_auth: set to override the auth_settings for an a single 2764 request; this effectively ignores the 2765 authentication in the spec for a single request. 2766 :type _request_auth: dict, optional 2767 :param _content_type: force content-type for the request. 2768 :type _content_type: str, Optional 2769 :param _headers: set to override the headers for a single 2770 request; this effectively ignores the headers 2771 in the spec for a single request. 2772 :type _headers: dict, optional 2773 :param _host_index: set to override the host_index for a single 2774 request; this effectively ignores the host_index 2775 in the spec for a single request. 2776 :type _host_index: int, optional 2777 :return: Returns the result object. 2778 """ # noqa: E501 2779 2780 _param = self._start_pipeline_serialize( 2781 organization=organization, 2782 pipeline=pipeline, 2783 _request_auth=_request_auth, 2784 _content_type=_content_type, 2785 _headers=_headers, 2786 _host_index=_host_index 2787 ) 2788 2789 _response_types_map: Dict[str, Optional[str]] = { 2790 '200': "StartPipelineResponse", 2791 '400': "GetPipelines400Response", 2792 '401': "GetPipelines400Response", 2793 '403': "GetPipelines400Response", 2794 '404': "GetPipelines400Response", 2795 '500': "GetPipelines400Response", 2796 } 2797 response_data = self.api_client.call_api( 2798 *_param, 2799 _request_timeout=_request_timeout 2800 ) 2801 response_data.read() 2802 return self.api_client.response_deserialize( 2803 response_data=response_data, 2804 response_types_map=_response_types_map, 2805 ).data 2806 2807 2808 @validate_call 2809 def start_pipeline_with_http_info( 2810 self, 2811 organization: StrictStr, 2812 pipeline: StrictStr, 2813 _request_timeout: Union[ 2814 None, 2815 Annotated[StrictFloat, Field(gt=0)], 2816 Tuple[ 2817 Annotated[StrictFloat, Field(gt=0)], 2818 Annotated[StrictFloat, Field(gt=0)] 2819 ] 2820 ] = None, 2821 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2822 _content_type: Optional[StrictStr] = None, 2823 _headers: Optional[Dict[StrictStr, Any]] = None, 2824 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2825 ) -> ApiResponse[StartPipelineResponse]: 2826 """Start a pipeline 2827 2828 2829 :param organization: (required) 2830 :type organization: str 2831 :param pipeline: (required) 2832 :type pipeline: str 2833 :param _request_timeout: timeout setting for this request. If one 2834 number provided, it will be total request 2835 timeout. It can also be a pair (tuple) of 2836 (connection, read) timeouts. 2837 :type _request_timeout: int, tuple(int, int), optional 2838 :param _request_auth: set to override the auth_settings for an a single 2839 request; this effectively ignores the 2840 authentication in the spec for a single request. 2841 :type _request_auth: dict, optional 2842 :param _content_type: force content-type for the request. 2843 :type _content_type: str, Optional 2844 :param _headers: set to override the headers for a single 2845 request; this effectively ignores the headers 2846 in the spec for a single request. 2847 :type _headers: dict, optional 2848 :param _host_index: set to override the host_index for a single 2849 request; this effectively ignores the host_index 2850 in the spec for a single request. 2851 :type _host_index: int, optional 2852 :return: Returns the result object. 2853 """ # noqa: E501 2854 2855 _param = self._start_pipeline_serialize( 2856 organization=organization, 2857 pipeline=pipeline, 2858 _request_auth=_request_auth, 2859 _content_type=_content_type, 2860 _headers=_headers, 2861 _host_index=_host_index 2862 ) 2863 2864 _response_types_map: Dict[str, Optional[str]] = { 2865 '200': "StartPipelineResponse", 2866 '400': "GetPipelines400Response", 2867 '401': "GetPipelines400Response", 2868 '403': "GetPipelines400Response", 2869 '404': "GetPipelines400Response", 2870 '500': "GetPipelines400Response", 2871 } 2872 response_data = self.api_client.call_api( 2873 *_param, 2874 _request_timeout=_request_timeout 2875 ) 2876 response_data.read() 2877 return self.api_client.response_deserialize( 2878 response_data=response_data, 2879 response_types_map=_response_types_map, 2880 ) 2881 2882 2883 @validate_call 2884 def start_pipeline_without_preload_content( 2885 self, 2886 organization: StrictStr, 2887 pipeline: StrictStr, 2888 _request_timeout: Union[ 2889 None, 2890 Annotated[StrictFloat, Field(gt=0)], 2891 Tuple[ 2892 Annotated[StrictFloat, Field(gt=0)], 2893 Annotated[StrictFloat, Field(gt=0)] 2894 ] 2895 ] = None, 2896 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2897 _content_type: Optional[StrictStr] = None, 2898 _headers: Optional[Dict[StrictStr, Any]] = None, 2899 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2900 ) -> RESTResponseType: 2901 """Start a pipeline 2902 2903 2904 :param organization: (required) 2905 :type organization: str 2906 :param pipeline: (required) 2907 :type pipeline: str 2908 :param _request_timeout: timeout setting for this request. If one 2909 number provided, it will be total request 2910 timeout. It can also be a pair (tuple) of 2911 (connection, read) timeouts. 2912 :type _request_timeout: int, tuple(int, int), optional 2913 :param _request_auth: set to override the auth_settings for an a single 2914 request; this effectively ignores the 2915 authentication in the spec for a single request. 2916 :type _request_auth: dict, optional 2917 :param _content_type: force content-type for the request. 2918 :type _content_type: str, Optional 2919 :param _headers: set to override the headers for a single 2920 request; this effectively ignores the headers 2921 in the spec for a single request. 2922 :type _headers: dict, optional 2923 :param _host_index: set to override the host_index for a single 2924 request; this effectively ignores the host_index 2925 in the spec for a single request. 2926 :type _host_index: int, optional 2927 :return: Returns the result object. 2928 """ # noqa: E501 2929 2930 _param = self._start_pipeline_serialize( 2931 organization=organization, 2932 pipeline=pipeline, 2933 _request_auth=_request_auth, 2934 _content_type=_content_type, 2935 _headers=_headers, 2936 _host_index=_host_index 2937 ) 2938 2939 _response_types_map: Dict[str, Optional[str]] = { 2940 '200': "StartPipelineResponse", 2941 '400': "GetPipelines400Response", 2942 '401': "GetPipelines400Response", 2943 '403': "GetPipelines400Response", 2944 '404': "GetPipelines400Response", 2945 '500': "GetPipelines400Response", 2946 } 2947 response_data = self.api_client.call_api( 2948 *_param, 2949 _request_timeout=_request_timeout 2950 ) 2951 return response_data.response 2952 2953 2954 def _start_pipeline_serialize( 2955 self, 2956 organization, 2957 pipeline, 2958 _request_auth, 2959 _content_type, 2960 _headers, 2961 _host_index, 2962 ) -> RequestSerialized: 2963 2964 _host = None 2965 2966 _collection_formats: Dict[str, str] = { 2967 } 2968 2969 _path_params: Dict[str, str] = {} 2970 _query_params: List[Tuple[str, str]] = [] 2971 _header_params: Dict[str, Optional[str]] = _headers or {} 2972 _form_params: List[Tuple[str, str]] = [] 2973 _files: Dict[ 2974 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 2975 ] = {} 2976 _body_params: Optional[bytes] = None 2977 2978 # process the path parameters 2979 if organization is not None: 2980 _path_params['organization'] = organization 2981 if pipeline is not None: 2982 _path_params['pipeline'] = pipeline 2983 # process the query parameters 2984 # process the header parameters 2985 # process the form parameters 2986 # process the body parameter 2987 2988 2989 # set the HTTP header `Accept` 2990 if 'Accept' not in _header_params: 2991 _header_params['Accept'] = self.api_client.select_header_accept( 2992 [ 2993 'application/json' 2994 ] 2995 ) 2996 2997 2998 # authentication setting 2999 _auth_settings: List[str] = [ 3000 'bearerAuth' 3001 ] 3002 3003 return self.api_client.param_serialize( 3004 method='POST', 3005 resource_path='/org/{organization}/pipelines/{pipeline}/start', 3006 path_params=_path_params, 3007 query_params=_query_params, 3008 header_params=_header_params, 3009 body=_body_params, 3010 post_params=_form_params, 3011 files=_files, 3012 auth_settings=_auth_settings, 3013 collection_formats=_collection_formats, 3014 _host=_host, 3015 _request_auth=_request_auth 3016 ) 3017 3018 3019 3020 3021 @validate_call 3022 def stop_pipeline( 3023 self, 3024 organization: StrictStr, 3025 pipeline: StrictStr, 3026 _request_timeout: Union[ 3027 None, 3028 Annotated[StrictFloat, Field(gt=0)], 3029 Tuple[ 3030 Annotated[StrictFloat, Field(gt=0)], 3031 Annotated[StrictFloat, Field(gt=0)] 3032 ] 3033 ] = None, 3034 _request_auth: Optional[Dict[StrictStr, Any]] = None, 3035 _content_type: Optional[StrictStr] = None, 3036 _headers: Optional[Dict[StrictStr, Any]] = None, 3037 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 3038 ) -> StopPipelineResponse: 3039 """Stop a pipeline 3040 3041 3042 :param organization: (required) 3043 :type organization: str 3044 :param pipeline: (required) 3045 :type pipeline: str 3046 :param _request_timeout: timeout setting for this request. If one 3047 number provided, it will be total request 3048 timeout. It can also be a pair (tuple) of 3049 (connection, read) timeouts. 3050 :type _request_timeout: int, tuple(int, int), optional 3051 :param _request_auth: set to override the auth_settings for an a single 3052 request; this effectively ignores the 3053 authentication in the spec for a single request. 3054 :type _request_auth: dict, optional 3055 :param _content_type: force content-type for the request. 3056 :type _content_type: str, Optional 3057 :param _headers: set to override the headers for a single 3058 request; this effectively ignores the headers 3059 in the spec for a single request. 3060 :type _headers: dict, optional 3061 :param _host_index: set to override the host_index for a single 3062 request; this effectively ignores the host_index 3063 in the spec for a single request. 3064 :type _host_index: int, optional 3065 :return: Returns the result object. 3066 """ # noqa: E501 3067 3068 _param = self._stop_pipeline_serialize( 3069 organization=organization, 3070 pipeline=pipeline, 3071 _request_auth=_request_auth, 3072 _content_type=_content_type, 3073 _headers=_headers, 3074 _host_index=_host_index 3075 ) 3076 3077 _response_types_map: Dict[str, Optional[str]] = { 3078 '200': "StopPipelineResponse", 3079 '400': "GetPipelines400Response", 3080 '401': "GetPipelines400Response", 3081 '403': "GetPipelines400Response", 3082 '404': "GetPipelines400Response", 3083 '500': "GetPipelines400Response", 3084 } 3085 response_data = self.api_client.call_api( 3086 *_param, 3087 _request_timeout=_request_timeout 3088 ) 3089 response_data.read() 3090 return self.api_client.response_deserialize( 3091 response_data=response_data, 3092 response_types_map=_response_types_map, 3093 ).data 3094 3095 3096 @validate_call 3097 def stop_pipeline_with_http_info( 3098 self, 3099 organization: StrictStr, 3100 pipeline: StrictStr, 3101 _request_timeout: Union[ 3102 None, 3103 Annotated[StrictFloat, Field(gt=0)], 3104 Tuple[ 3105 Annotated[StrictFloat, Field(gt=0)], 3106 Annotated[StrictFloat, Field(gt=0)] 3107 ] 3108 ] = None, 3109 _request_auth: Optional[Dict[StrictStr, Any]] = None, 3110 _content_type: Optional[StrictStr] = None, 3111 _headers: Optional[Dict[StrictStr, Any]] = None, 3112 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 3113 ) -> ApiResponse[StopPipelineResponse]: 3114 """Stop a pipeline 3115 3116 3117 :param organization: (required) 3118 :type organization: str 3119 :param pipeline: (required) 3120 :type pipeline: str 3121 :param _request_timeout: timeout setting for this request. If one 3122 number provided, it will be total request 3123 timeout. It can also be a pair (tuple) of 3124 (connection, read) timeouts. 3125 :type _request_timeout: int, tuple(int, int), optional 3126 :param _request_auth: set to override the auth_settings for an a single 3127 request; this effectively ignores the 3128 authentication in the spec for a single request. 3129 :type _request_auth: dict, optional 3130 :param _content_type: force content-type for the request. 3131 :type _content_type: str, Optional 3132 :param _headers: set to override the headers for a single 3133 request; this effectively ignores the headers 3134 in the spec for a single request. 3135 :type _headers: dict, optional 3136 :param _host_index: set to override the host_index for a single 3137 request; this effectively ignores the host_index 3138 in the spec for a single request. 3139 :type _host_index: int, optional 3140 :return: Returns the result object. 3141 """ # noqa: E501 3142 3143 _param = self._stop_pipeline_serialize( 3144 organization=organization, 3145 pipeline=pipeline, 3146 _request_auth=_request_auth, 3147 _content_type=_content_type, 3148 _headers=_headers, 3149 _host_index=_host_index 3150 ) 3151 3152 _response_types_map: Dict[str, Optional[str]] = { 3153 '200': "StopPipelineResponse", 3154 '400': "GetPipelines400Response", 3155 '401': "GetPipelines400Response", 3156 '403': "GetPipelines400Response", 3157 '404': "GetPipelines400Response", 3158 '500': "GetPipelines400Response", 3159 } 3160 response_data = self.api_client.call_api( 3161 *_param, 3162 _request_timeout=_request_timeout 3163 ) 3164 response_data.read() 3165 return self.api_client.response_deserialize( 3166 response_data=response_data, 3167 response_types_map=_response_types_map, 3168 ) 3169 3170 3171 @validate_call 3172 def stop_pipeline_without_preload_content( 3173 self, 3174 organization: StrictStr, 3175 pipeline: StrictStr, 3176 _request_timeout: Union[ 3177 None, 3178 Annotated[StrictFloat, Field(gt=0)], 3179 Tuple[ 3180 Annotated[StrictFloat, Field(gt=0)], 3181 Annotated[StrictFloat, Field(gt=0)] 3182 ] 3183 ] = None, 3184 _request_auth: Optional[Dict[StrictStr, Any]] = None, 3185 _content_type: Optional[StrictStr] = None, 3186 _headers: Optional[Dict[StrictStr, Any]] = None, 3187 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 3188 ) -> RESTResponseType: 3189 """Stop a pipeline 3190 3191 3192 :param organization: (required) 3193 :type organization: str 3194 :param pipeline: (required) 3195 :type pipeline: str 3196 :param _request_timeout: timeout setting for this request. If one 3197 number provided, it will be total request 3198 timeout. It can also be a pair (tuple) of 3199 (connection, read) timeouts. 3200 :type _request_timeout: int, tuple(int, int), optional 3201 :param _request_auth: set to override the auth_settings for an a single 3202 request; this effectively ignores the 3203 authentication in the spec for a single request. 3204 :type _request_auth: dict, optional 3205 :param _content_type: force content-type for the request. 3206 :type _content_type: str, Optional 3207 :param _headers: set to override the headers for a single 3208 request; this effectively ignores the headers 3209 in the spec for a single request. 3210 :type _headers: dict, optional 3211 :param _host_index: set to override the host_index for a single 3212 request; this effectively ignores the host_index 3213 in the spec for a single request. 3214 :type _host_index: int, optional 3215 :return: Returns the result object. 3216 """ # noqa: E501 3217 3218 _param = self._stop_pipeline_serialize( 3219 organization=organization, 3220 pipeline=pipeline, 3221 _request_auth=_request_auth, 3222 _content_type=_content_type, 3223 _headers=_headers, 3224 _host_index=_host_index 3225 ) 3226 3227 _response_types_map: Dict[str, Optional[str]] = { 3228 '200': "StopPipelineResponse", 3229 '400': "GetPipelines400Response", 3230 '401': "GetPipelines400Response", 3231 '403': "GetPipelines400Response", 3232 '404': "GetPipelines400Response", 3233 '500': "GetPipelines400Response", 3234 } 3235 response_data = self.api_client.call_api( 3236 *_param, 3237 _request_timeout=_request_timeout 3238 ) 3239 return response_data.response 3240 3241 3242 def _stop_pipeline_serialize( 3243 self, 3244 organization, 3245 pipeline, 3246 _request_auth, 3247 _content_type, 3248 _headers, 3249 _host_index, 3250 ) -> RequestSerialized: 3251 3252 _host = None 3253 3254 _collection_formats: Dict[str, str] = { 3255 } 3256 3257 _path_params: Dict[str, str] = {} 3258 _query_params: List[Tuple[str, str]] = [] 3259 _header_params: Dict[str, Optional[str]] = _headers or {} 3260 _form_params: List[Tuple[str, str]] = [] 3261 _files: Dict[ 3262 str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] 3263 ] = {} 3264 _body_params: Optional[bytes] = None 3265 3266 # process the path parameters 3267 if organization is not None: 3268 _path_params['organization'] = organization 3269 if pipeline is not None: 3270 _path_params['pipeline'] = pipeline 3271 # process the query parameters 3272 # process the header parameters 3273 # process the form parameters 3274 # process the body parameter 3275 3276 3277 # set the HTTP header `Accept` 3278 if 'Accept' not in _header_params: 3279 _header_params['Accept'] = self.api_client.select_header_accept( 3280 [ 3281 'application/json' 3282 ] 3283 ) 3284 3285 3286 # authentication setting 3287 _auth_settings: List[str] = [ 3288 'bearerAuth' 3289 ] 3290 3291 return self.api_client.param_serialize( 3292 method='POST', 3293 resource_path='/org/{organization}/pipelines/{pipeline}/stop', 3294 path_params=_path_params, 3295 query_params=_query_params, 3296 header_params=_header_params, 3297 body=_body_params, 3298 post_params=_form_params, 3299 files=_files, 3300 auth_settings=_auth_settings, 3301 collection_formats=_collection_formats, 3302 _host=_host, 3303 _request_auth=_request_auth 3304 )
NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech
Do not edit the class manually.
55 @validate_call 56 def create_pipeline( 57 self, 58 organization: StrictStr, 59 pipeline_configuration_schema: PipelineConfigurationSchema, 60 _request_timeout: Union[ 61 None, 62 Annotated[StrictFloat, Field(gt=0)], 63 Tuple[ 64 Annotated[StrictFloat, Field(gt=0)], 65 Annotated[StrictFloat, Field(gt=0)] 66 ] 67 ] = None, 68 _request_auth: Optional[Dict[StrictStr, Any]] = None, 69 _content_type: Optional[StrictStr] = None, 70 _headers: Optional[Dict[StrictStr, Any]] = None, 71 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 72 ) -> CreatePipelineResponse: 73 """Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Supabase (SUPABASE): Table Name (table): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: 74 75 76 :param organization: (required) 77 :type organization: str 78 :param pipeline_configuration_schema: (required) 79 :type pipeline_configuration_schema: PipelineConfigurationSchema 80 :param _request_timeout: timeout setting for this request. If one 81 number provided, it will be total request 82 timeout. It can also be a pair (tuple) of 83 (connection, read) timeouts. 84 :type _request_timeout: int, tuple(int, int), optional 85 :param _request_auth: set to override the auth_settings for an a single 86 request; this effectively ignores the 87 authentication in the spec for a single request. 88 :type _request_auth: dict, optional 89 :param _content_type: force content-type for the request. 90 :type _content_type: str, Optional 91 :param _headers: set to override the headers for a single 92 request; this effectively ignores the headers 93 in the spec for a single request. 94 :type _headers: dict, optional 95 :param _host_index: set to override the host_index for a single 96 request; this effectively ignores the host_index 97 in the spec for a single request. 98 :type _host_index: int, optional 99 :return: Returns the result object. 100 """ # noqa: E501 101 102 _param = self._create_pipeline_serialize( 103 organization=organization, 104 pipeline_configuration_schema=pipeline_configuration_schema, 105 _request_auth=_request_auth, 106 _content_type=_content_type, 107 _headers=_headers, 108 _host_index=_host_index 109 ) 110 111 _response_types_map: Dict[str, Optional[str]] = { 112 '200': "CreatePipelineResponse", 113 '400': "GetPipelines400Response", 114 '401': "GetPipelines400Response", 115 '403': "GetPipelines400Response", 116 '404': "GetPipelines400Response", 117 '500': "GetPipelines400Response", 118 } 119 response_data = self.api_client.call_api( 120 *_param, 121 _request_timeout=_request_timeout 122 ) 123 response_data.read() 124 return self.api_client.response_deserialize( 125 response_data=response_data, 126 response_types_map=_response_types_map, 127 ).data
Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Supabase (SUPABASE): Table Name (table): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms:
Parameters
- organization: (required)
- pipeline_configuration_schema: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
130 @validate_call 131 def create_pipeline_with_http_info( 132 self, 133 organization: StrictStr, 134 pipeline_configuration_schema: PipelineConfigurationSchema, 135 _request_timeout: Union[ 136 None, 137 Annotated[StrictFloat, Field(gt=0)], 138 Tuple[ 139 Annotated[StrictFloat, Field(gt=0)], 140 Annotated[StrictFloat, Field(gt=0)] 141 ] 142 ] = None, 143 _request_auth: Optional[Dict[StrictStr, Any]] = None, 144 _content_type: Optional[StrictStr] = None, 145 _headers: Optional[Dict[StrictStr, Any]] = None, 146 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 147 ) -> ApiResponse[CreatePipelineResponse]: 148 """Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Supabase (SUPABASE): Table Name (table): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: 149 150 151 :param organization: (required) 152 :type organization: str 153 :param pipeline_configuration_schema: (required) 154 :type pipeline_configuration_schema: PipelineConfigurationSchema 155 :param _request_timeout: timeout setting for this request. If one 156 number provided, it will be total request 157 timeout. It can also be a pair (tuple) of 158 (connection, read) timeouts. 159 :type _request_timeout: int, tuple(int, int), optional 160 :param _request_auth: set to override the auth_settings for an a single 161 request; this effectively ignores the 162 authentication in the spec for a single request. 163 :type _request_auth: dict, optional 164 :param _content_type: force content-type for the request. 165 :type _content_type: str, Optional 166 :param _headers: set to override the headers for a single 167 request; this effectively ignores the headers 168 in the spec for a single request. 169 :type _headers: dict, optional 170 :param _host_index: set to override the host_index for a single 171 request; this effectively ignores the host_index 172 in the spec for a single request. 173 :type _host_index: int, optional 174 :return: Returns the result object. 175 """ # noqa: E501 176 177 _param = self._create_pipeline_serialize( 178 organization=organization, 179 pipeline_configuration_schema=pipeline_configuration_schema, 180 _request_auth=_request_auth, 181 _content_type=_content_type, 182 _headers=_headers, 183 _host_index=_host_index 184 ) 185 186 _response_types_map: Dict[str, Optional[str]] = { 187 '200': "CreatePipelineResponse", 188 '400': "GetPipelines400Response", 189 '401': "GetPipelines400Response", 190 '403': "GetPipelines400Response", 191 '404': "GetPipelines400Response", 192 '500': "GetPipelines400Response", 193 } 194 response_data = self.api_client.call_api( 195 *_param, 196 _request_timeout=_request_timeout 197 ) 198 response_data.read() 199 return self.api_client.response_deserialize( 200 response_data=response_data, 201 response_types_map=_response_types_map, 202 )
Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Supabase (SUPABASE): Table Name (table): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms:
Parameters
- organization: (required)
- pipeline_configuration_schema: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
205 @validate_call 206 def create_pipeline_without_preload_content( 207 self, 208 organization: StrictStr, 209 pipeline_configuration_schema: PipelineConfigurationSchema, 210 _request_timeout: Union[ 211 None, 212 Annotated[StrictFloat, Field(gt=0)], 213 Tuple[ 214 Annotated[StrictFloat, Field(gt=0)], 215 Annotated[StrictFloat, Field(gt=0)] 216 ] 217 ] = None, 218 _request_auth: Optional[Dict[StrictStr, Any]] = None, 219 _content_type: Optional[StrictStr] = None, 220 _headers: Optional[Dict[StrictStr, Any]] = None, 221 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 222 ) -> RESTResponseType: 223 """Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Supabase (SUPABASE): Table Name (table): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: 224 225 226 :param organization: (required) 227 :type organization: str 228 :param pipeline_configuration_schema: (required) 229 :type pipeline_configuration_schema: PipelineConfigurationSchema 230 :param _request_timeout: timeout setting for this request. If one 231 number provided, it will be total request 232 timeout. It can also be a pair (tuple) of 233 (connection, read) timeouts. 234 :type _request_timeout: int, tuple(int, int), optional 235 :param _request_auth: set to override the auth_settings for an a single 236 request; this effectively ignores the 237 authentication in the spec for a single request. 238 :type _request_auth: dict, optional 239 :param _content_type: force content-type for the request. 240 :type _content_type: str, Optional 241 :param _headers: set to override the headers for a single 242 request; this effectively ignores the headers 243 in the spec for a single request. 244 :type _headers: dict, optional 245 :param _host_index: set to override the host_index for a single 246 request; this effectively ignores the host_index 247 in the spec for a single request. 248 :type _host_index: int, optional 249 :return: Returns the result object. 250 """ # noqa: E501 251 252 _param = self._create_pipeline_serialize( 253 organization=organization, 254 pipeline_configuration_schema=pipeline_configuration_schema, 255 _request_auth=_request_auth, 256 _content_type=_content_type, 257 _headers=_headers, 258 _host_index=_host_index 259 ) 260 261 _response_types_map: Dict[str, Optional[str]] = { 262 '200': "CreatePipelineResponse", 263 '400': "GetPipelines400Response", 264 '401': "GetPipelines400Response", 265 '403': "GetPipelines400Response", 266 '404': "GetPipelines400Response", 267 '500': "GetPipelines400Response", 268 } 269 response_data = self.api_client.call_api( 270 *_param, 271 _request_timeout=_request_timeout 272 ) 273 return response_data.response
Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Supabase (SUPABASE): Table Name (table): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms:
Parameters
- organization: (required)
- pipeline_configuration_schema: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
356 @validate_call 357 def delete_pipeline( 358 self, 359 organization: StrictStr, 360 pipeline: StrictStr, 361 _request_timeout: Union[ 362 None, 363 Annotated[StrictFloat, Field(gt=0)], 364 Tuple[ 365 Annotated[StrictFloat, Field(gt=0)], 366 Annotated[StrictFloat, Field(gt=0)] 367 ] 368 ] = None, 369 _request_auth: Optional[Dict[StrictStr, Any]] = None, 370 _content_type: Optional[StrictStr] = None, 371 _headers: Optional[Dict[StrictStr, Any]] = None, 372 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 373 ) -> DeletePipelineResponse: 374 """Delete a pipeline 375 376 377 :param organization: (required) 378 :type organization: str 379 :param pipeline: (required) 380 :type pipeline: str 381 :param _request_timeout: timeout setting for this request. If one 382 number provided, it will be total request 383 timeout. It can also be a pair (tuple) of 384 (connection, read) timeouts. 385 :type _request_timeout: int, tuple(int, int), optional 386 :param _request_auth: set to override the auth_settings for an a single 387 request; this effectively ignores the 388 authentication in the spec for a single request. 389 :type _request_auth: dict, optional 390 :param _content_type: force content-type for the request. 391 :type _content_type: str, Optional 392 :param _headers: set to override the headers for a single 393 request; this effectively ignores the headers 394 in the spec for a single request. 395 :type _headers: dict, optional 396 :param _host_index: set to override the host_index for a single 397 request; this effectively ignores the host_index 398 in the spec for a single request. 399 :type _host_index: int, optional 400 :return: Returns the result object. 401 """ # noqa: E501 402 403 _param = self._delete_pipeline_serialize( 404 organization=organization, 405 pipeline=pipeline, 406 _request_auth=_request_auth, 407 _content_type=_content_type, 408 _headers=_headers, 409 _host_index=_host_index 410 ) 411 412 _response_types_map: Dict[str, Optional[str]] = { 413 '200': "DeletePipelineResponse", 414 '400': "GetPipelines400Response", 415 '401': "GetPipelines400Response", 416 '403': "GetPipelines400Response", 417 '404': "GetPipelines400Response", 418 '500': "GetPipelines400Response", 419 } 420 response_data = self.api_client.call_api( 421 *_param, 422 _request_timeout=_request_timeout 423 ) 424 response_data.read() 425 return self.api_client.response_deserialize( 426 response_data=response_data, 427 response_types_map=_response_types_map, 428 ).data
Delete a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
431 @validate_call 432 def delete_pipeline_with_http_info( 433 self, 434 organization: StrictStr, 435 pipeline: StrictStr, 436 _request_timeout: Union[ 437 None, 438 Annotated[StrictFloat, Field(gt=0)], 439 Tuple[ 440 Annotated[StrictFloat, Field(gt=0)], 441 Annotated[StrictFloat, Field(gt=0)] 442 ] 443 ] = None, 444 _request_auth: Optional[Dict[StrictStr, Any]] = None, 445 _content_type: Optional[StrictStr] = None, 446 _headers: Optional[Dict[StrictStr, Any]] = None, 447 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 448 ) -> ApiResponse[DeletePipelineResponse]: 449 """Delete a pipeline 450 451 452 :param organization: (required) 453 :type organization: str 454 :param pipeline: (required) 455 :type pipeline: str 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._delete_pipeline_serialize( 479 organization=organization, 480 pipeline=pipeline, 481 _request_auth=_request_auth, 482 _content_type=_content_type, 483 _headers=_headers, 484 _host_index=_host_index 485 ) 486 487 _response_types_map: Dict[str, Optional[str]] = { 488 '200': "DeletePipelineResponse", 489 '400': "GetPipelines400Response", 490 '401': "GetPipelines400Response", 491 '403': "GetPipelines400Response", 492 '404': "GetPipelines400Response", 493 '500': "GetPipelines400Response", 494 } 495 response_data = self.api_client.call_api( 496 *_param, 497 _request_timeout=_request_timeout 498 ) 499 response_data.read() 500 return self.api_client.response_deserialize( 501 response_data=response_data, 502 response_types_map=_response_types_map, 503 )
Delete a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
506 @validate_call 507 def delete_pipeline_without_preload_content( 508 self, 509 organization: StrictStr, 510 pipeline: StrictStr, 511 _request_timeout: Union[ 512 None, 513 Annotated[StrictFloat, Field(gt=0)], 514 Tuple[ 515 Annotated[StrictFloat, Field(gt=0)], 516 Annotated[StrictFloat, Field(gt=0)] 517 ] 518 ] = None, 519 _request_auth: Optional[Dict[StrictStr, Any]] = None, 520 _content_type: Optional[StrictStr] = None, 521 _headers: Optional[Dict[StrictStr, Any]] = None, 522 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 523 ) -> RESTResponseType: 524 """Delete a pipeline 525 526 527 :param organization: (required) 528 :type organization: str 529 :param pipeline: (required) 530 :type pipeline: str 531 :param _request_timeout: timeout setting for this request. If one 532 number provided, it will be total request 533 timeout. It can also be a pair (tuple) of 534 (connection, read) timeouts. 535 :type _request_timeout: int, tuple(int, int), optional 536 :param _request_auth: set to override the auth_settings for an a single 537 request; this effectively ignores the 538 authentication in the spec for a single request. 539 :type _request_auth: dict, optional 540 :param _content_type: force content-type for the request. 541 :type _content_type: str, Optional 542 :param _headers: set to override the headers for a single 543 request; this effectively ignores the headers 544 in the spec for a single request. 545 :type _headers: dict, optional 546 :param _host_index: set to override the host_index for a single 547 request; this effectively ignores the host_index 548 in the spec for a single request. 549 :type _host_index: int, optional 550 :return: Returns the result object. 551 """ # noqa: E501 552 553 _param = self._delete_pipeline_serialize( 554 organization=organization, 555 pipeline=pipeline, 556 _request_auth=_request_auth, 557 _content_type=_content_type, 558 _headers=_headers, 559 _host_index=_host_index 560 ) 561 562 _response_types_map: Dict[str, Optional[str]] = { 563 '200': "DeletePipelineResponse", 564 '400': "GetPipelines400Response", 565 '401': "GetPipelines400Response", 566 '403': "GetPipelines400Response", 567 '404': "GetPipelines400Response", 568 '500': "GetPipelines400Response", 569 } 570 response_data = self.api_client.call_api( 571 *_param, 572 _request_timeout=_request_timeout 573 ) 574 return response_data.response
Delete a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
644 @validate_call 645 def get_deep_research_result( 646 self, 647 organization: StrictStr, 648 pipeline: StrictStr, 649 research_id: StrictStr, 650 _request_timeout: Union[ 651 None, 652 Annotated[StrictFloat, Field(gt=0)], 653 Tuple[ 654 Annotated[StrictFloat, Field(gt=0)], 655 Annotated[StrictFloat, Field(gt=0)] 656 ] 657 ] = None, 658 _request_auth: Optional[Dict[StrictStr, Any]] = None, 659 _content_type: Optional[StrictStr] = None, 660 _headers: Optional[Dict[StrictStr, Any]] = None, 661 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 662 ) -> GetDeepResearchResponse: 663 """Get deep research result 664 665 666 :param organization: (required) 667 :type organization: str 668 :param pipeline: (required) 669 :type pipeline: str 670 :param research_id: (required) 671 :type research_id: str 672 :param _request_timeout: timeout setting for this request. If one 673 number provided, it will be total request 674 timeout. It can also be a pair (tuple) of 675 (connection, read) timeouts. 676 :type _request_timeout: int, tuple(int, int), optional 677 :param _request_auth: set to override the auth_settings for an a single 678 request; this effectively ignores the 679 authentication in the spec for a single request. 680 :type _request_auth: dict, optional 681 :param _content_type: force content-type for the request. 682 :type _content_type: str, Optional 683 :param _headers: set to override the headers for a single 684 request; this effectively ignores the headers 685 in the spec for a single request. 686 :type _headers: dict, optional 687 :param _host_index: set to override the host_index for a single 688 request; this effectively ignores the host_index 689 in the spec for a single request. 690 :type _host_index: int, optional 691 :return: Returns the result object. 692 """ # noqa: E501 693 694 _param = self._get_deep_research_result_serialize( 695 organization=organization, 696 pipeline=pipeline, 697 research_id=research_id, 698 _request_auth=_request_auth, 699 _content_type=_content_type, 700 _headers=_headers, 701 _host_index=_host_index 702 ) 703 704 _response_types_map: Dict[str, Optional[str]] = { 705 '200': "GetDeepResearchResponse", 706 '400': "GetPipelines400Response", 707 '401': "GetPipelines400Response", 708 '403': "GetPipelines400Response", 709 '404': "GetPipelines400Response", 710 '500': "GetPipelines400Response", 711 } 712 response_data = self.api_client.call_api( 713 *_param, 714 _request_timeout=_request_timeout 715 ) 716 response_data.read() 717 return self.api_client.response_deserialize( 718 response_data=response_data, 719 response_types_map=_response_types_map, 720 ).data
Get deep research result
Parameters
- organization: (required)
- pipeline: (required)
- research_id: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
723 @validate_call 724 def get_deep_research_result_with_http_info( 725 self, 726 organization: StrictStr, 727 pipeline: StrictStr, 728 research_id: StrictStr, 729 _request_timeout: Union[ 730 None, 731 Annotated[StrictFloat, Field(gt=0)], 732 Tuple[ 733 Annotated[StrictFloat, Field(gt=0)], 734 Annotated[StrictFloat, Field(gt=0)] 735 ] 736 ] = None, 737 _request_auth: Optional[Dict[StrictStr, Any]] = None, 738 _content_type: Optional[StrictStr] = None, 739 _headers: Optional[Dict[StrictStr, Any]] = None, 740 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 741 ) -> ApiResponse[GetDeepResearchResponse]: 742 """Get deep research result 743 744 745 :param organization: (required) 746 :type organization: str 747 :param pipeline: (required) 748 :type pipeline: str 749 :param research_id: (required) 750 :type research_id: str 751 :param _request_timeout: timeout setting for this request. If one 752 number provided, it will be total request 753 timeout. It can also be a pair (tuple) of 754 (connection, read) timeouts. 755 :type _request_timeout: int, tuple(int, int), optional 756 :param _request_auth: set to override the auth_settings for an a single 757 request; this effectively ignores the 758 authentication in the spec for a single request. 759 :type _request_auth: dict, optional 760 :param _content_type: force content-type for the request. 761 :type _content_type: str, Optional 762 :param _headers: set to override the headers for a single 763 request; this effectively ignores the headers 764 in the spec for a single request. 765 :type _headers: dict, optional 766 :param _host_index: set to override the host_index for a single 767 request; this effectively ignores the host_index 768 in the spec for a single request. 769 :type _host_index: int, optional 770 :return: Returns the result object. 771 """ # noqa: E501 772 773 _param = self._get_deep_research_result_serialize( 774 organization=organization, 775 pipeline=pipeline, 776 research_id=research_id, 777 _request_auth=_request_auth, 778 _content_type=_content_type, 779 _headers=_headers, 780 _host_index=_host_index 781 ) 782 783 _response_types_map: Dict[str, Optional[str]] = { 784 '200': "GetDeepResearchResponse", 785 '400': "GetPipelines400Response", 786 '401': "GetPipelines400Response", 787 '403': "GetPipelines400Response", 788 '404': "GetPipelines400Response", 789 '500': "GetPipelines400Response", 790 } 791 response_data = self.api_client.call_api( 792 *_param, 793 _request_timeout=_request_timeout 794 ) 795 response_data.read() 796 return self.api_client.response_deserialize( 797 response_data=response_data, 798 response_types_map=_response_types_map, 799 )
Get deep research result
Parameters
- organization: (required)
- pipeline: (required)
- research_id: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
802 @validate_call 803 def get_deep_research_result_without_preload_content( 804 self, 805 organization: StrictStr, 806 pipeline: StrictStr, 807 research_id: StrictStr, 808 _request_timeout: Union[ 809 None, 810 Annotated[StrictFloat, Field(gt=0)], 811 Tuple[ 812 Annotated[StrictFloat, Field(gt=0)], 813 Annotated[StrictFloat, Field(gt=0)] 814 ] 815 ] = None, 816 _request_auth: Optional[Dict[StrictStr, Any]] = None, 817 _content_type: Optional[StrictStr] = None, 818 _headers: Optional[Dict[StrictStr, Any]] = None, 819 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 820 ) -> RESTResponseType: 821 """Get deep research result 822 823 824 :param organization: (required) 825 :type organization: str 826 :param pipeline: (required) 827 :type pipeline: str 828 :param research_id: (required) 829 :type research_id: str 830 :param _request_timeout: timeout setting for this request. If one 831 number provided, it will be total request 832 timeout. It can also be a pair (tuple) of 833 (connection, read) timeouts. 834 :type _request_timeout: int, tuple(int, int), optional 835 :param _request_auth: set to override the auth_settings for an a single 836 request; this effectively ignores the 837 authentication in the spec for a single request. 838 :type _request_auth: dict, optional 839 :param _content_type: force content-type for the request. 840 :type _content_type: str, Optional 841 :param _headers: set to override the headers for a single 842 request; this effectively ignores the headers 843 in the spec for a single request. 844 :type _headers: dict, optional 845 :param _host_index: set to override the host_index for a single 846 request; this effectively ignores the host_index 847 in the spec for a single request. 848 :type _host_index: int, optional 849 :return: Returns the result object. 850 """ # noqa: E501 851 852 _param = self._get_deep_research_result_serialize( 853 organization=organization, 854 pipeline=pipeline, 855 research_id=research_id, 856 _request_auth=_request_auth, 857 _content_type=_content_type, 858 _headers=_headers, 859 _host_index=_host_index 860 ) 861 862 _response_types_map: Dict[str, Optional[str]] = { 863 '200': "GetDeepResearchResponse", 864 '400': "GetPipelines400Response", 865 '401': "GetPipelines400Response", 866 '403': "GetPipelines400Response", 867 '404': "GetPipelines400Response", 868 '500': "GetPipelines400Response", 869 } 870 response_data = self.api_client.call_api( 871 *_param, 872 _request_timeout=_request_timeout 873 ) 874 return response_data.response
Get deep research result
Parameters
- organization: (required)
- pipeline: (required)
- research_id: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
947 @validate_call 948 def get_pipeline( 949 self, 950 organization: StrictStr, 951 pipeline: StrictStr, 952 _request_timeout: Union[ 953 None, 954 Annotated[StrictFloat, Field(gt=0)], 955 Tuple[ 956 Annotated[StrictFloat, Field(gt=0)], 957 Annotated[StrictFloat, Field(gt=0)] 958 ] 959 ] = None, 960 _request_auth: Optional[Dict[StrictStr, Any]] = None, 961 _content_type: Optional[StrictStr] = None, 962 _headers: Optional[Dict[StrictStr, Any]] = None, 963 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 964 ) -> GetPipelineResponse: 965 """Get a pipeline 966 967 968 :param organization: (required) 969 :type organization: str 970 :param pipeline: (required) 971 :type pipeline: str 972 :param _request_timeout: timeout setting for this request. If one 973 number provided, it will be total request 974 timeout. It can also be a pair (tuple) of 975 (connection, read) timeouts. 976 :type _request_timeout: int, tuple(int, int), optional 977 :param _request_auth: set to override the auth_settings for an a single 978 request; this effectively ignores the 979 authentication in the spec for a single request. 980 :type _request_auth: dict, optional 981 :param _content_type: force content-type for the request. 982 :type _content_type: str, Optional 983 :param _headers: set to override the headers for a single 984 request; this effectively ignores the headers 985 in the spec for a single request. 986 :type _headers: dict, optional 987 :param _host_index: set to override the host_index for a single 988 request; this effectively ignores the host_index 989 in the spec for a single request. 990 :type _host_index: int, optional 991 :return: Returns the result object. 992 """ # noqa: E501 993 994 _param = self._get_pipeline_serialize( 995 organization=organization, 996 pipeline=pipeline, 997 _request_auth=_request_auth, 998 _content_type=_content_type, 999 _headers=_headers, 1000 _host_index=_host_index 1001 ) 1002 1003 _response_types_map: Dict[str, Optional[str]] = { 1004 '200': "GetPipelineResponse", 1005 '400': "GetPipelines400Response", 1006 '401': "GetPipelines400Response", 1007 '403': "GetPipelines400Response", 1008 '404': "GetPipelines400Response", 1009 '500': "GetPipelines400Response", 1010 } 1011 response_data = self.api_client.call_api( 1012 *_param, 1013 _request_timeout=_request_timeout 1014 ) 1015 response_data.read() 1016 return self.api_client.response_deserialize( 1017 response_data=response_data, 1018 response_types_map=_response_types_map, 1019 ).data
Get a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
1022 @validate_call 1023 def get_pipeline_with_http_info( 1024 self, 1025 organization: StrictStr, 1026 pipeline: StrictStr, 1027 _request_timeout: Union[ 1028 None, 1029 Annotated[StrictFloat, Field(gt=0)], 1030 Tuple[ 1031 Annotated[StrictFloat, Field(gt=0)], 1032 Annotated[StrictFloat, Field(gt=0)] 1033 ] 1034 ] = None, 1035 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1036 _content_type: Optional[StrictStr] = None, 1037 _headers: Optional[Dict[StrictStr, Any]] = None, 1038 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1039 ) -> ApiResponse[GetPipelineResponse]: 1040 """Get a pipeline 1041 1042 1043 :param organization: (required) 1044 :type organization: str 1045 :param pipeline: (required) 1046 :type pipeline: str 1047 :param _request_timeout: timeout setting for this request. If one 1048 number provided, it will be total request 1049 timeout. It can also be a pair (tuple) of 1050 (connection, read) timeouts. 1051 :type _request_timeout: int, tuple(int, int), optional 1052 :param _request_auth: set to override the auth_settings for an a single 1053 request; this effectively ignores the 1054 authentication in the spec for a single request. 1055 :type _request_auth: dict, optional 1056 :param _content_type: force content-type for the request. 1057 :type _content_type: str, Optional 1058 :param _headers: set to override the headers for a single 1059 request; this effectively ignores the headers 1060 in the spec for a single request. 1061 :type _headers: dict, optional 1062 :param _host_index: set to override the host_index for a single 1063 request; this effectively ignores the host_index 1064 in the spec for a single request. 1065 :type _host_index: int, optional 1066 :return: Returns the result object. 1067 """ # noqa: E501 1068 1069 _param = self._get_pipeline_serialize( 1070 organization=organization, 1071 pipeline=pipeline, 1072 _request_auth=_request_auth, 1073 _content_type=_content_type, 1074 _headers=_headers, 1075 _host_index=_host_index 1076 ) 1077 1078 _response_types_map: Dict[str, Optional[str]] = { 1079 '200': "GetPipelineResponse", 1080 '400': "GetPipelines400Response", 1081 '401': "GetPipelines400Response", 1082 '403': "GetPipelines400Response", 1083 '404': "GetPipelines400Response", 1084 '500': "GetPipelines400Response", 1085 } 1086 response_data = self.api_client.call_api( 1087 *_param, 1088 _request_timeout=_request_timeout 1089 ) 1090 response_data.read() 1091 return self.api_client.response_deserialize( 1092 response_data=response_data, 1093 response_types_map=_response_types_map, 1094 )
Get a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
1097 @validate_call 1098 def get_pipeline_without_preload_content( 1099 self, 1100 organization: StrictStr, 1101 pipeline: StrictStr, 1102 _request_timeout: Union[ 1103 None, 1104 Annotated[StrictFloat, Field(gt=0)], 1105 Tuple[ 1106 Annotated[StrictFloat, Field(gt=0)], 1107 Annotated[StrictFloat, Field(gt=0)] 1108 ] 1109 ] = None, 1110 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1111 _content_type: Optional[StrictStr] = None, 1112 _headers: Optional[Dict[StrictStr, Any]] = None, 1113 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1114 ) -> RESTResponseType: 1115 """Get a pipeline 1116 1117 1118 :param organization: (required) 1119 :type organization: str 1120 :param pipeline: (required) 1121 :type pipeline: str 1122 :param _request_timeout: timeout setting for this request. If one 1123 number provided, it will be total request 1124 timeout. It can also be a pair (tuple) of 1125 (connection, read) timeouts. 1126 :type _request_timeout: int, tuple(int, int), optional 1127 :param _request_auth: set to override the auth_settings for an a single 1128 request; this effectively ignores the 1129 authentication in the spec for a single request. 1130 :type _request_auth: dict, optional 1131 :param _content_type: force content-type for the request. 1132 :type _content_type: str, Optional 1133 :param _headers: set to override the headers for a single 1134 request; this effectively ignores the headers 1135 in the spec for a single request. 1136 :type _headers: dict, optional 1137 :param _host_index: set to override the host_index for a single 1138 request; this effectively ignores the host_index 1139 in the spec for a single request. 1140 :type _host_index: int, optional 1141 :return: Returns the result object. 1142 """ # noqa: E501 1143 1144 _param = self._get_pipeline_serialize( 1145 organization=organization, 1146 pipeline=pipeline, 1147 _request_auth=_request_auth, 1148 _content_type=_content_type, 1149 _headers=_headers, 1150 _host_index=_host_index 1151 ) 1152 1153 _response_types_map: Dict[str, Optional[str]] = { 1154 '200': "GetPipelineResponse", 1155 '400': "GetPipelines400Response", 1156 '401': "GetPipelines400Response", 1157 '403': "GetPipelines400Response", 1158 '404': "GetPipelines400Response", 1159 '500': "GetPipelines400Response", 1160 } 1161 response_data = self.api_client.call_api( 1162 *_param, 1163 _request_timeout=_request_timeout 1164 ) 1165 return response_data.response
Get a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
1235 @validate_call 1236 def get_pipeline_events( 1237 self, 1238 organization: StrictStr, 1239 pipeline: StrictStr, 1240 next_token: Optional[StrictStr] = None, 1241 _request_timeout: Union[ 1242 None, 1243 Annotated[StrictFloat, Field(gt=0)], 1244 Tuple[ 1245 Annotated[StrictFloat, Field(gt=0)], 1246 Annotated[StrictFloat, Field(gt=0)] 1247 ] 1248 ] = None, 1249 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1250 _content_type: Optional[StrictStr] = None, 1251 _headers: Optional[Dict[StrictStr, Any]] = None, 1252 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1253 ) -> GetPipelineEventsResponse: 1254 """Get pipeline events 1255 1256 1257 :param organization: (required) 1258 :type organization: str 1259 :param pipeline: (required) 1260 :type pipeline: str 1261 :param next_token: 1262 :type next_token: str 1263 :param _request_timeout: timeout setting for this request. If one 1264 number provided, it will be total request 1265 timeout. It can also be a pair (tuple) of 1266 (connection, read) timeouts. 1267 :type _request_timeout: int, tuple(int, int), optional 1268 :param _request_auth: set to override the auth_settings for an a single 1269 request; this effectively ignores the 1270 authentication in the spec for a single request. 1271 :type _request_auth: dict, optional 1272 :param _content_type: force content-type for the request. 1273 :type _content_type: str, Optional 1274 :param _headers: set to override the headers for a single 1275 request; this effectively ignores the headers 1276 in the spec for a single request. 1277 :type _headers: dict, optional 1278 :param _host_index: set to override the host_index for a single 1279 request; this effectively ignores the host_index 1280 in the spec for a single request. 1281 :type _host_index: int, optional 1282 :return: Returns the result object. 1283 """ # noqa: E501 1284 1285 _param = self._get_pipeline_events_serialize( 1286 organization=organization, 1287 pipeline=pipeline, 1288 next_token=next_token, 1289 _request_auth=_request_auth, 1290 _content_type=_content_type, 1291 _headers=_headers, 1292 _host_index=_host_index 1293 ) 1294 1295 _response_types_map: Dict[str, Optional[str]] = { 1296 '200': "GetPipelineEventsResponse", 1297 '400': "GetPipelines400Response", 1298 '401': "GetPipelines400Response", 1299 '403': "GetPipelines400Response", 1300 '404': "GetPipelines400Response", 1301 '500': "GetPipelines400Response", 1302 } 1303 response_data = self.api_client.call_api( 1304 *_param, 1305 _request_timeout=_request_timeout 1306 ) 1307 response_data.read() 1308 return self.api_client.response_deserialize( 1309 response_data=response_data, 1310 response_types_map=_response_types_map, 1311 ).data
Get pipeline events
Parameters
- organization: (required)
- pipeline: (required)
- next_token:
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
1314 @validate_call 1315 def get_pipeline_events_with_http_info( 1316 self, 1317 organization: StrictStr, 1318 pipeline: StrictStr, 1319 next_token: Optional[StrictStr] = None, 1320 _request_timeout: Union[ 1321 None, 1322 Annotated[StrictFloat, Field(gt=0)], 1323 Tuple[ 1324 Annotated[StrictFloat, Field(gt=0)], 1325 Annotated[StrictFloat, Field(gt=0)] 1326 ] 1327 ] = None, 1328 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1329 _content_type: Optional[StrictStr] = None, 1330 _headers: Optional[Dict[StrictStr, Any]] = None, 1331 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1332 ) -> ApiResponse[GetPipelineEventsResponse]: 1333 """Get pipeline events 1334 1335 1336 :param organization: (required) 1337 :type organization: str 1338 :param pipeline: (required) 1339 :type pipeline: str 1340 :param next_token: 1341 :type next_token: str 1342 :param _request_timeout: timeout setting for this request. If one 1343 number provided, it will be total request 1344 timeout. It can also be a pair (tuple) of 1345 (connection, read) timeouts. 1346 :type _request_timeout: int, tuple(int, int), optional 1347 :param _request_auth: set to override the auth_settings for an a single 1348 request; this effectively ignores the 1349 authentication in the spec for a single request. 1350 :type _request_auth: dict, optional 1351 :param _content_type: force content-type for the request. 1352 :type _content_type: str, Optional 1353 :param _headers: set to override the headers for a single 1354 request; this effectively ignores the headers 1355 in the spec for a single request. 1356 :type _headers: dict, optional 1357 :param _host_index: set to override the host_index for a single 1358 request; this effectively ignores the host_index 1359 in the spec for a single request. 1360 :type _host_index: int, optional 1361 :return: Returns the result object. 1362 """ # noqa: E501 1363 1364 _param = self._get_pipeline_events_serialize( 1365 organization=organization, 1366 pipeline=pipeline, 1367 next_token=next_token, 1368 _request_auth=_request_auth, 1369 _content_type=_content_type, 1370 _headers=_headers, 1371 _host_index=_host_index 1372 ) 1373 1374 _response_types_map: Dict[str, Optional[str]] = { 1375 '200': "GetPipelineEventsResponse", 1376 '400': "GetPipelines400Response", 1377 '401': "GetPipelines400Response", 1378 '403': "GetPipelines400Response", 1379 '404': "GetPipelines400Response", 1380 '500': "GetPipelines400Response", 1381 } 1382 response_data = self.api_client.call_api( 1383 *_param, 1384 _request_timeout=_request_timeout 1385 ) 1386 response_data.read() 1387 return self.api_client.response_deserialize( 1388 response_data=response_data, 1389 response_types_map=_response_types_map, 1390 )
Get pipeline events
Parameters
- organization: (required)
- pipeline: (required)
- next_token:
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
1393 @validate_call 1394 def get_pipeline_events_without_preload_content( 1395 self, 1396 organization: StrictStr, 1397 pipeline: StrictStr, 1398 next_token: Optional[StrictStr] = None, 1399 _request_timeout: Union[ 1400 None, 1401 Annotated[StrictFloat, Field(gt=0)], 1402 Tuple[ 1403 Annotated[StrictFloat, Field(gt=0)], 1404 Annotated[StrictFloat, Field(gt=0)] 1405 ] 1406 ] = None, 1407 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1408 _content_type: Optional[StrictStr] = None, 1409 _headers: Optional[Dict[StrictStr, Any]] = None, 1410 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1411 ) -> RESTResponseType: 1412 """Get pipeline events 1413 1414 1415 :param organization: (required) 1416 :type organization: str 1417 :param pipeline: (required) 1418 :type pipeline: str 1419 :param next_token: 1420 :type next_token: str 1421 :param _request_timeout: timeout setting for this request. If one 1422 number provided, it will be total request 1423 timeout. It can also be a pair (tuple) of 1424 (connection, read) timeouts. 1425 :type _request_timeout: int, tuple(int, int), optional 1426 :param _request_auth: set to override the auth_settings for an a single 1427 request; this effectively ignores the 1428 authentication in the spec for a single request. 1429 :type _request_auth: dict, optional 1430 :param _content_type: force content-type for the request. 1431 :type _content_type: str, Optional 1432 :param _headers: set to override the headers for a single 1433 request; this effectively ignores the headers 1434 in the spec for a single request. 1435 :type _headers: dict, optional 1436 :param _host_index: set to override the host_index for a single 1437 request; this effectively ignores the host_index 1438 in the spec for a single request. 1439 :type _host_index: int, optional 1440 :return: Returns the result object. 1441 """ # noqa: E501 1442 1443 _param = self._get_pipeline_events_serialize( 1444 organization=organization, 1445 pipeline=pipeline, 1446 next_token=next_token, 1447 _request_auth=_request_auth, 1448 _content_type=_content_type, 1449 _headers=_headers, 1450 _host_index=_host_index 1451 ) 1452 1453 _response_types_map: Dict[str, Optional[str]] = { 1454 '200': "GetPipelineEventsResponse", 1455 '400': "GetPipelines400Response", 1456 '401': "GetPipelines400Response", 1457 '403': "GetPipelines400Response", 1458 '404': "GetPipelines400Response", 1459 '500': "GetPipelines400Response", 1460 } 1461 response_data = self.api_client.call_api( 1462 *_param, 1463 _request_timeout=_request_timeout 1464 ) 1465 return response_data.response
Get pipeline events
Parameters
- organization: (required)
- pipeline: (required)
- next_token:
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
1540 @validate_call 1541 def get_pipeline_metrics( 1542 self, 1543 organization: StrictStr, 1544 pipeline: StrictStr, 1545 _request_timeout: Union[ 1546 None, 1547 Annotated[StrictFloat, Field(gt=0)], 1548 Tuple[ 1549 Annotated[StrictFloat, Field(gt=0)], 1550 Annotated[StrictFloat, Field(gt=0)] 1551 ] 1552 ] = None, 1553 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1554 _content_type: Optional[StrictStr] = None, 1555 _headers: Optional[Dict[StrictStr, Any]] = None, 1556 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1557 ) -> GetPipelineMetricsResponse: 1558 """Get pipeline metrics 1559 1560 1561 :param organization: (required) 1562 :type organization: str 1563 :param pipeline: (required) 1564 :type pipeline: str 1565 :param _request_timeout: timeout setting for this request. If one 1566 number provided, it will be total request 1567 timeout. It can also be a pair (tuple) of 1568 (connection, read) timeouts. 1569 :type _request_timeout: int, tuple(int, int), optional 1570 :param _request_auth: set to override the auth_settings for an a single 1571 request; this effectively ignores the 1572 authentication in the spec for a single request. 1573 :type _request_auth: dict, optional 1574 :param _content_type: force content-type for the request. 1575 :type _content_type: str, Optional 1576 :param _headers: set to override the headers for a single 1577 request; this effectively ignores the headers 1578 in the spec for a single request. 1579 :type _headers: dict, optional 1580 :param _host_index: set to override the host_index for a single 1581 request; this effectively ignores the host_index 1582 in the spec for a single request. 1583 :type _host_index: int, optional 1584 :return: Returns the result object. 1585 """ # noqa: E501 1586 1587 _param = self._get_pipeline_metrics_serialize( 1588 organization=organization, 1589 pipeline=pipeline, 1590 _request_auth=_request_auth, 1591 _content_type=_content_type, 1592 _headers=_headers, 1593 _host_index=_host_index 1594 ) 1595 1596 _response_types_map: Dict[str, Optional[str]] = { 1597 '200': "GetPipelineMetricsResponse", 1598 '400': "GetPipelines400Response", 1599 '401': "GetPipelines400Response", 1600 '403': "GetPipelines400Response", 1601 '404': "GetPipelines400Response", 1602 '500': "GetPipelines400Response", 1603 } 1604 response_data = self.api_client.call_api( 1605 *_param, 1606 _request_timeout=_request_timeout 1607 ) 1608 response_data.read() 1609 return self.api_client.response_deserialize( 1610 response_data=response_data, 1611 response_types_map=_response_types_map, 1612 ).data
Get pipeline metrics
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
1615 @validate_call 1616 def get_pipeline_metrics_with_http_info( 1617 self, 1618 organization: StrictStr, 1619 pipeline: StrictStr, 1620 _request_timeout: Union[ 1621 None, 1622 Annotated[StrictFloat, Field(gt=0)], 1623 Tuple[ 1624 Annotated[StrictFloat, Field(gt=0)], 1625 Annotated[StrictFloat, Field(gt=0)] 1626 ] 1627 ] = None, 1628 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1629 _content_type: Optional[StrictStr] = None, 1630 _headers: Optional[Dict[StrictStr, Any]] = None, 1631 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1632 ) -> ApiResponse[GetPipelineMetricsResponse]: 1633 """Get pipeline metrics 1634 1635 1636 :param organization: (required) 1637 :type organization: str 1638 :param pipeline: (required) 1639 :type pipeline: str 1640 :param _request_timeout: timeout setting for this request. If one 1641 number provided, it will be total request 1642 timeout. It can also be a pair (tuple) of 1643 (connection, read) timeouts. 1644 :type _request_timeout: int, tuple(int, int), optional 1645 :param _request_auth: set to override the auth_settings for an a single 1646 request; this effectively ignores the 1647 authentication in the spec for a single request. 1648 :type _request_auth: dict, optional 1649 :param _content_type: force content-type for the request. 1650 :type _content_type: str, Optional 1651 :param _headers: set to override the headers for a single 1652 request; this effectively ignores the headers 1653 in the spec for a single request. 1654 :type _headers: dict, optional 1655 :param _host_index: set to override the host_index for a single 1656 request; this effectively ignores the host_index 1657 in the spec for a single request. 1658 :type _host_index: int, optional 1659 :return: Returns the result object. 1660 """ # noqa: E501 1661 1662 _param = self._get_pipeline_metrics_serialize( 1663 organization=organization, 1664 pipeline=pipeline, 1665 _request_auth=_request_auth, 1666 _content_type=_content_type, 1667 _headers=_headers, 1668 _host_index=_host_index 1669 ) 1670 1671 _response_types_map: Dict[str, Optional[str]] = { 1672 '200': "GetPipelineMetricsResponse", 1673 '400': "GetPipelines400Response", 1674 '401': "GetPipelines400Response", 1675 '403': "GetPipelines400Response", 1676 '404': "GetPipelines400Response", 1677 '500': "GetPipelines400Response", 1678 } 1679 response_data = self.api_client.call_api( 1680 *_param, 1681 _request_timeout=_request_timeout 1682 ) 1683 response_data.read() 1684 return self.api_client.response_deserialize( 1685 response_data=response_data, 1686 response_types_map=_response_types_map, 1687 )
Get pipeline metrics
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
1690 @validate_call 1691 def get_pipeline_metrics_without_preload_content( 1692 self, 1693 organization: StrictStr, 1694 pipeline: StrictStr, 1695 _request_timeout: Union[ 1696 None, 1697 Annotated[StrictFloat, Field(gt=0)], 1698 Tuple[ 1699 Annotated[StrictFloat, Field(gt=0)], 1700 Annotated[StrictFloat, Field(gt=0)] 1701 ] 1702 ] = None, 1703 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1704 _content_type: Optional[StrictStr] = None, 1705 _headers: Optional[Dict[StrictStr, Any]] = None, 1706 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1707 ) -> RESTResponseType: 1708 """Get pipeline metrics 1709 1710 1711 :param organization: (required) 1712 :type organization: str 1713 :param pipeline: (required) 1714 :type pipeline: str 1715 :param _request_timeout: timeout setting for this request. If one 1716 number provided, it will be total request 1717 timeout. It can also be a pair (tuple) of 1718 (connection, read) timeouts. 1719 :type _request_timeout: int, tuple(int, int), optional 1720 :param _request_auth: set to override the auth_settings for an a single 1721 request; this effectively ignores the 1722 authentication in the spec for a single request. 1723 :type _request_auth: dict, optional 1724 :param _content_type: force content-type for the request. 1725 :type _content_type: str, Optional 1726 :param _headers: set to override the headers for a single 1727 request; this effectively ignores the headers 1728 in the spec for a single request. 1729 :type _headers: dict, optional 1730 :param _host_index: set to override the host_index for a single 1731 request; this effectively ignores the host_index 1732 in the spec for a single request. 1733 :type _host_index: int, optional 1734 :return: Returns the result object. 1735 """ # noqa: E501 1736 1737 _param = self._get_pipeline_metrics_serialize( 1738 organization=organization, 1739 pipeline=pipeline, 1740 _request_auth=_request_auth, 1741 _content_type=_content_type, 1742 _headers=_headers, 1743 _host_index=_host_index 1744 ) 1745 1746 _response_types_map: Dict[str, Optional[str]] = { 1747 '200': "GetPipelineMetricsResponse", 1748 '400': "GetPipelines400Response", 1749 '401': "GetPipelines400Response", 1750 '403': "GetPipelines400Response", 1751 '404': "GetPipelines400Response", 1752 '500': "GetPipelines400Response", 1753 } 1754 response_data = self.api_client.call_api( 1755 *_param, 1756 _request_timeout=_request_timeout 1757 ) 1758 return response_data.response
Get pipeline metrics
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
1828 @validate_call 1829 def get_pipelines( 1830 self, 1831 organization: StrictStr, 1832 _request_timeout: Union[ 1833 None, 1834 Annotated[StrictFloat, Field(gt=0)], 1835 Tuple[ 1836 Annotated[StrictFloat, Field(gt=0)], 1837 Annotated[StrictFloat, Field(gt=0)] 1838 ] 1839 ] = None, 1840 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1841 _content_type: Optional[StrictStr] = None, 1842 _headers: Optional[Dict[StrictStr, Any]] = None, 1843 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1844 ) -> GetPipelinesResponse: 1845 """Get all existing pipelines 1846 1847 1848 :param organization: (required) 1849 :type organization: str 1850 :param _request_timeout: timeout setting for this request. If one 1851 number provided, it will be total request 1852 timeout. It can also be a pair (tuple) of 1853 (connection, read) timeouts. 1854 :type _request_timeout: int, tuple(int, int), optional 1855 :param _request_auth: set to override the auth_settings for an a single 1856 request; this effectively ignores the 1857 authentication in the spec for a single request. 1858 :type _request_auth: dict, optional 1859 :param _content_type: force content-type for the request. 1860 :type _content_type: str, Optional 1861 :param _headers: set to override the headers for a single 1862 request; this effectively ignores the headers 1863 in the spec for a single request. 1864 :type _headers: dict, optional 1865 :param _host_index: set to override the host_index for a single 1866 request; this effectively ignores the host_index 1867 in the spec for a single request. 1868 :type _host_index: int, optional 1869 :return: Returns the result object. 1870 """ # noqa: E501 1871 1872 _param = self._get_pipelines_serialize( 1873 organization=organization, 1874 _request_auth=_request_auth, 1875 _content_type=_content_type, 1876 _headers=_headers, 1877 _host_index=_host_index 1878 ) 1879 1880 _response_types_map: Dict[str, Optional[str]] = { 1881 '200': "GetPipelinesResponse", 1882 '400': "GetPipelines400Response", 1883 '401': "GetPipelines400Response", 1884 '403': "GetPipelines400Response", 1885 '404': "GetPipelines400Response", 1886 '500': "GetPipelines400Response", 1887 } 1888 response_data = self.api_client.call_api( 1889 *_param, 1890 _request_timeout=_request_timeout 1891 ) 1892 response_data.read() 1893 return self.api_client.response_deserialize( 1894 response_data=response_data, 1895 response_types_map=_response_types_map, 1896 ).data
Get all existing pipelines
Parameters
- organization: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
1899 @validate_call 1900 def get_pipelines_with_http_info( 1901 self, 1902 organization: StrictStr, 1903 _request_timeout: Union[ 1904 None, 1905 Annotated[StrictFloat, Field(gt=0)], 1906 Tuple[ 1907 Annotated[StrictFloat, Field(gt=0)], 1908 Annotated[StrictFloat, Field(gt=0)] 1909 ] 1910 ] = None, 1911 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1912 _content_type: Optional[StrictStr] = None, 1913 _headers: Optional[Dict[StrictStr, Any]] = None, 1914 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1915 ) -> ApiResponse[GetPipelinesResponse]: 1916 """Get all existing pipelines 1917 1918 1919 :param organization: (required) 1920 :type organization: str 1921 :param _request_timeout: timeout setting for this request. If one 1922 number provided, it will be total request 1923 timeout. It can also be a pair (tuple) of 1924 (connection, read) timeouts. 1925 :type _request_timeout: int, tuple(int, int), optional 1926 :param _request_auth: set to override the auth_settings for an a single 1927 request; this effectively ignores the 1928 authentication in the spec for a single request. 1929 :type _request_auth: dict, optional 1930 :param _content_type: force content-type for the request. 1931 :type _content_type: str, Optional 1932 :param _headers: set to override the headers for a single 1933 request; this effectively ignores the headers 1934 in the spec for a single request. 1935 :type _headers: dict, optional 1936 :param _host_index: set to override the host_index for a single 1937 request; this effectively ignores the host_index 1938 in the spec for a single request. 1939 :type _host_index: int, optional 1940 :return: Returns the result object. 1941 """ # noqa: E501 1942 1943 _param = self._get_pipelines_serialize( 1944 organization=organization, 1945 _request_auth=_request_auth, 1946 _content_type=_content_type, 1947 _headers=_headers, 1948 _host_index=_host_index 1949 ) 1950 1951 _response_types_map: Dict[str, Optional[str]] = { 1952 '200': "GetPipelinesResponse", 1953 '400': "GetPipelines400Response", 1954 '401': "GetPipelines400Response", 1955 '403': "GetPipelines400Response", 1956 '404': "GetPipelines400Response", 1957 '500': "GetPipelines400Response", 1958 } 1959 response_data = self.api_client.call_api( 1960 *_param, 1961 _request_timeout=_request_timeout 1962 ) 1963 response_data.read() 1964 return self.api_client.response_deserialize( 1965 response_data=response_data, 1966 response_types_map=_response_types_map, 1967 )
Get all existing pipelines
Parameters
- organization: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
1970 @validate_call 1971 def get_pipelines_without_preload_content( 1972 self, 1973 organization: StrictStr, 1974 _request_timeout: Union[ 1975 None, 1976 Annotated[StrictFloat, Field(gt=0)], 1977 Tuple[ 1978 Annotated[StrictFloat, Field(gt=0)], 1979 Annotated[StrictFloat, Field(gt=0)] 1980 ] 1981 ] = None, 1982 _request_auth: Optional[Dict[StrictStr, Any]] = None, 1983 _content_type: Optional[StrictStr] = None, 1984 _headers: Optional[Dict[StrictStr, Any]] = None, 1985 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 1986 ) -> RESTResponseType: 1987 """Get all existing pipelines 1988 1989 1990 :param organization: (required) 1991 :type organization: str 1992 :param _request_timeout: timeout setting for this request. If one 1993 number provided, it will be total request 1994 timeout. It can also be a pair (tuple) of 1995 (connection, read) timeouts. 1996 :type _request_timeout: int, tuple(int, int), optional 1997 :param _request_auth: set to override the auth_settings for an a single 1998 request; this effectively ignores the 1999 authentication in the spec for a single request. 2000 :type _request_auth: dict, optional 2001 :param _content_type: force content-type for the request. 2002 :type _content_type: str, Optional 2003 :param _headers: set to override the headers for a single 2004 request; this effectively ignores the headers 2005 in the spec for a single request. 2006 :type _headers: dict, optional 2007 :param _host_index: set to override the host_index for a single 2008 request; this effectively ignores the host_index 2009 in the spec for a single request. 2010 :type _host_index: int, optional 2011 :return: Returns the result object. 2012 """ # noqa: E501 2013 2014 _param = self._get_pipelines_serialize( 2015 organization=organization, 2016 _request_auth=_request_auth, 2017 _content_type=_content_type, 2018 _headers=_headers, 2019 _host_index=_host_index 2020 ) 2021 2022 _response_types_map: Dict[str, Optional[str]] = { 2023 '200': "GetPipelinesResponse", 2024 '400': "GetPipelines400Response", 2025 '401': "GetPipelines400Response", 2026 '403': "GetPipelines400Response", 2027 '404': "GetPipelines400Response", 2028 '500': "GetPipelines400Response", 2029 } 2030 response_data = self.api_client.call_api( 2031 *_param, 2032 _request_timeout=_request_timeout 2033 ) 2034 return response_data.response
Get all existing pipelines
Parameters
- organization: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
2101 @validate_call 2102 def retrieve_documents( 2103 self, 2104 organization: StrictStr, 2105 pipeline: StrictStr, 2106 retrieve_documents_request: RetrieveDocumentsRequest, 2107 _request_timeout: Union[ 2108 None, 2109 Annotated[StrictFloat, Field(gt=0)], 2110 Tuple[ 2111 Annotated[StrictFloat, Field(gt=0)], 2112 Annotated[StrictFloat, Field(gt=0)] 2113 ] 2114 ] = None, 2115 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2116 _content_type: Optional[StrictStr] = None, 2117 _headers: Optional[Dict[StrictStr, Any]] = None, 2118 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2119 ) -> RetrieveDocumentsResponse: 2120 """Retrieve documents from a pipeline 2121 2122 2123 :param organization: (required) 2124 :type organization: str 2125 :param pipeline: (required) 2126 :type pipeline: str 2127 :param retrieve_documents_request: (required) 2128 :type retrieve_documents_request: RetrieveDocumentsRequest 2129 :param _request_timeout: timeout setting for this request. If one 2130 number provided, it will be total request 2131 timeout. It can also be a pair (tuple) of 2132 (connection, read) timeouts. 2133 :type _request_timeout: int, tuple(int, int), optional 2134 :param _request_auth: set to override the auth_settings for an a single 2135 request; this effectively ignores the 2136 authentication in the spec for a single request. 2137 :type _request_auth: dict, optional 2138 :param _content_type: force content-type for the request. 2139 :type _content_type: str, Optional 2140 :param _headers: set to override the headers for a single 2141 request; this effectively ignores the headers 2142 in the spec for a single request. 2143 :type _headers: dict, optional 2144 :param _host_index: set to override the host_index for a single 2145 request; this effectively ignores the host_index 2146 in the spec for a single request. 2147 :type _host_index: int, optional 2148 :return: Returns the result object. 2149 """ # noqa: E501 2150 2151 _param = self._retrieve_documents_serialize( 2152 organization=organization, 2153 pipeline=pipeline, 2154 retrieve_documents_request=retrieve_documents_request, 2155 _request_auth=_request_auth, 2156 _content_type=_content_type, 2157 _headers=_headers, 2158 _host_index=_host_index 2159 ) 2160 2161 _response_types_map: Dict[str, Optional[str]] = { 2162 '200': "RetrieveDocumentsResponse", 2163 '400': "GetPipelines400Response", 2164 '401': "GetPipelines400Response", 2165 '403': "GetPipelines400Response", 2166 '404': "GetPipelines400Response", 2167 '500': "GetPipelines400Response", 2168 } 2169 response_data = self.api_client.call_api( 2170 *_param, 2171 _request_timeout=_request_timeout 2172 ) 2173 response_data.read() 2174 return self.api_client.response_deserialize( 2175 response_data=response_data, 2176 response_types_map=_response_types_map, 2177 ).data
Retrieve documents from a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- retrieve_documents_request: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
2180 @validate_call 2181 def retrieve_documents_with_http_info( 2182 self, 2183 organization: StrictStr, 2184 pipeline: StrictStr, 2185 retrieve_documents_request: RetrieveDocumentsRequest, 2186 _request_timeout: Union[ 2187 None, 2188 Annotated[StrictFloat, Field(gt=0)], 2189 Tuple[ 2190 Annotated[StrictFloat, Field(gt=0)], 2191 Annotated[StrictFloat, Field(gt=0)] 2192 ] 2193 ] = None, 2194 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2195 _content_type: Optional[StrictStr] = None, 2196 _headers: Optional[Dict[StrictStr, Any]] = None, 2197 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2198 ) -> ApiResponse[RetrieveDocumentsResponse]: 2199 """Retrieve documents from a pipeline 2200 2201 2202 :param organization: (required) 2203 :type organization: str 2204 :param pipeline: (required) 2205 :type pipeline: str 2206 :param retrieve_documents_request: (required) 2207 :type retrieve_documents_request: RetrieveDocumentsRequest 2208 :param _request_timeout: timeout setting for this request. If one 2209 number provided, it will be total request 2210 timeout. It can also be a pair (tuple) of 2211 (connection, read) timeouts. 2212 :type _request_timeout: int, tuple(int, int), optional 2213 :param _request_auth: set to override the auth_settings for an a single 2214 request; this effectively ignores the 2215 authentication in the spec for a single request. 2216 :type _request_auth: dict, optional 2217 :param _content_type: force content-type for the request. 2218 :type _content_type: str, Optional 2219 :param _headers: set to override the headers for a single 2220 request; this effectively ignores the headers 2221 in the spec for a single request. 2222 :type _headers: dict, optional 2223 :param _host_index: set to override the host_index for a single 2224 request; this effectively ignores the host_index 2225 in the spec for a single request. 2226 :type _host_index: int, optional 2227 :return: Returns the result object. 2228 """ # noqa: E501 2229 2230 _param = self._retrieve_documents_serialize( 2231 organization=organization, 2232 pipeline=pipeline, 2233 retrieve_documents_request=retrieve_documents_request, 2234 _request_auth=_request_auth, 2235 _content_type=_content_type, 2236 _headers=_headers, 2237 _host_index=_host_index 2238 ) 2239 2240 _response_types_map: Dict[str, Optional[str]] = { 2241 '200': "RetrieveDocumentsResponse", 2242 '400': "GetPipelines400Response", 2243 '401': "GetPipelines400Response", 2244 '403': "GetPipelines400Response", 2245 '404': "GetPipelines400Response", 2246 '500': "GetPipelines400Response", 2247 } 2248 response_data = self.api_client.call_api( 2249 *_param, 2250 _request_timeout=_request_timeout 2251 ) 2252 response_data.read() 2253 return self.api_client.response_deserialize( 2254 response_data=response_data, 2255 response_types_map=_response_types_map, 2256 )
Retrieve documents from a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- retrieve_documents_request: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
2259 @validate_call 2260 def retrieve_documents_without_preload_content( 2261 self, 2262 organization: StrictStr, 2263 pipeline: StrictStr, 2264 retrieve_documents_request: RetrieveDocumentsRequest, 2265 _request_timeout: Union[ 2266 None, 2267 Annotated[StrictFloat, Field(gt=0)], 2268 Tuple[ 2269 Annotated[StrictFloat, Field(gt=0)], 2270 Annotated[StrictFloat, Field(gt=0)] 2271 ] 2272 ] = None, 2273 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2274 _content_type: Optional[StrictStr] = None, 2275 _headers: Optional[Dict[StrictStr, Any]] = None, 2276 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2277 ) -> RESTResponseType: 2278 """Retrieve documents from a pipeline 2279 2280 2281 :param organization: (required) 2282 :type organization: str 2283 :param pipeline: (required) 2284 :type pipeline: str 2285 :param retrieve_documents_request: (required) 2286 :type retrieve_documents_request: RetrieveDocumentsRequest 2287 :param _request_timeout: timeout setting for this request. If one 2288 number provided, it will be total request 2289 timeout. It can also be a pair (tuple) of 2290 (connection, read) timeouts. 2291 :type _request_timeout: int, tuple(int, int), optional 2292 :param _request_auth: set to override the auth_settings for an a single 2293 request; this effectively ignores the 2294 authentication in the spec for a single request. 2295 :type _request_auth: dict, optional 2296 :param _content_type: force content-type for the request. 2297 :type _content_type: str, Optional 2298 :param _headers: set to override the headers for a single 2299 request; this effectively ignores the headers 2300 in the spec for a single request. 2301 :type _headers: dict, optional 2302 :param _host_index: set to override the host_index for a single 2303 request; this effectively ignores the host_index 2304 in the spec for a single request. 2305 :type _host_index: int, optional 2306 :return: Returns the result object. 2307 """ # noqa: E501 2308 2309 _param = self._retrieve_documents_serialize( 2310 organization=organization, 2311 pipeline=pipeline, 2312 retrieve_documents_request=retrieve_documents_request, 2313 _request_auth=_request_auth, 2314 _content_type=_content_type, 2315 _headers=_headers, 2316 _host_index=_host_index 2317 ) 2318 2319 _response_types_map: Dict[str, Optional[str]] = { 2320 '200': "RetrieveDocumentsResponse", 2321 '400': "GetPipelines400Response", 2322 '401': "GetPipelines400Response", 2323 '403': "GetPipelines400Response", 2324 '404': "GetPipelines400Response", 2325 '500': "GetPipelines400Response", 2326 } 2327 response_data = self.api_client.call_api( 2328 *_param, 2329 _request_timeout=_request_timeout 2330 ) 2331 return response_data.response
Retrieve documents from a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- retrieve_documents_request: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
2417 @validate_call 2418 def start_deep_research( 2419 self, 2420 organization: StrictStr, 2421 pipeline: StrictStr, 2422 start_deep_research_request: StartDeepResearchRequest, 2423 _request_timeout: Union[ 2424 None, 2425 Annotated[StrictFloat, Field(gt=0)], 2426 Tuple[ 2427 Annotated[StrictFloat, Field(gt=0)], 2428 Annotated[StrictFloat, Field(gt=0)] 2429 ] 2430 ] = None, 2431 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2432 _content_type: Optional[StrictStr] = None, 2433 _headers: Optional[Dict[StrictStr, Any]] = None, 2434 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2435 ) -> StartDeepResearchResponse: 2436 """Start a deep research 2437 2438 2439 :param organization: (required) 2440 :type organization: str 2441 :param pipeline: (required) 2442 :type pipeline: str 2443 :param start_deep_research_request: (required) 2444 :type start_deep_research_request: StartDeepResearchRequest 2445 :param _request_timeout: timeout setting for this request. If one 2446 number provided, it will be total request 2447 timeout. It can also be a pair (tuple) of 2448 (connection, read) timeouts. 2449 :type _request_timeout: int, tuple(int, int), optional 2450 :param _request_auth: set to override the auth_settings for an a single 2451 request; this effectively ignores the 2452 authentication in the spec for a single request. 2453 :type _request_auth: dict, optional 2454 :param _content_type: force content-type for the request. 2455 :type _content_type: str, Optional 2456 :param _headers: set to override the headers for a single 2457 request; this effectively ignores the headers 2458 in the spec for a single request. 2459 :type _headers: dict, optional 2460 :param _host_index: set to override the host_index for a single 2461 request; this effectively ignores the host_index 2462 in the spec for a single request. 2463 :type _host_index: int, optional 2464 :return: Returns the result object. 2465 """ # noqa: E501 2466 2467 _param = self._start_deep_research_serialize( 2468 organization=organization, 2469 pipeline=pipeline, 2470 start_deep_research_request=start_deep_research_request, 2471 _request_auth=_request_auth, 2472 _content_type=_content_type, 2473 _headers=_headers, 2474 _host_index=_host_index 2475 ) 2476 2477 _response_types_map: Dict[str, Optional[str]] = { 2478 '200': "StartDeepResearchResponse", 2479 '400': "GetPipelines400Response", 2480 '401': "GetPipelines400Response", 2481 '403': "GetPipelines400Response", 2482 '404': "GetPipelines400Response", 2483 '500': "GetPipelines400Response", 2484 } 2485 response_data = self.api_client.call_api( 2486 *_param, 2487 _request_timeout=_request_timeout 2488 ) 2489 response_data.read() 2490 return self.api_client.response_deserialize( 2491 response_data=response_data, 2492 response_types_map=_response_types_map, 2493 ).data
Start a deep research
Parameters
- organization: (required)
- pipeline: (required)
- start_deep_research_request: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
2496 @validate_call 2497 def start_deep_research_with_http_info( 2498 self, 2499 organization: StrictStr, 2500 pipeline: StrictStr, 2501 start_deep_research_request: StartDeepResearchRequest, 2502 _request_timeout: Union[ 2503 None, 2504 Annotated[StrictFloat, Field(gt=0)], 2505 Tuple[ 2506 Annotated[StrictFloat, Field(gt=0)], 2507 Annotated[StrictFloat, Field(gt=0)] 2508 ] 2509 ] = None, 2510 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2511 _content_type: Optional[StrictStr] = None, 2512 _headers: Optional[Dict[StrictStr, Any]] = None, 2513 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2514 ) -> ApiResponse[StartDeepResearchResponse]: 2515 """Start a deep research 2516 2517 2518 :param organization: (required) 2519 :type organization: str 2520 :param pipeline: (required) 2521 :type pipeline: str 2522 :param start_deep_research_request: (required) 2523 :type start_deep_research_request: StartDeepResearchRequest 2524 :param _request_timeout: timeout setting for this request. If one 2525 number provided, it will be total request 2526 timeout. It can also be a pair (tuple) of 2527 (connection, read) timeouts. 2528 :type _request_timeout: int, tuple(int, int), optional 2529 :param _request_auth: set to override the auth_settings for an a single 2530 request; this effectively ignores the 2531 authentication in the spec for a single request. 2532 :type _request_auth: dict, optional 2533 :param _content_type: force content-type for the request. 2534 :type _content_type: str, Optional 2535 :param _headers: set to override the headers for a single 2536 request; this effectively ignores the headers 2537 in the spec for a single request. 2538 :type _headers: dict, optional 2539 :param _host_index: set to override the host_index for a single 2540 request; this effectively ignores the host_index 2541 in the spec for a single request. 2542 :type _host_index: int, optional 2543 :return: Returns the result object. 2544 """ # noqa: E501 2545 2546 _param = self._start_deep_research_serialize( 2547 organization=organization, 2548 pipeline=pipeline, 2549 start_deep_research_request=start_deep_research_request, 2550 _request_auth=_request_auth, 2551 _content_type=_content_type, 2552 _headers=_headers, 2553 _host_index=_host_index 2554 ) 2555 2556 _response_types_map: Dict[str, Optional[str]] = { 2557 '200': "StartDeepResearchResponse", 2558 '400': "GetPipelines400Response", 2559 '401': "GetPipelines400Response", 2560 '403': "GetPipelines400Response", 2561 '404': "GetPipelines400Response", 2562 '500': "GetPipelines400Response", 2563 } 2564 response_data = self.api_client.call_api( 2565 *_param, 2566 _request_timeout=_request_timeout 2567 ) 2568 response_data.read() 2569 return self.api_client.response_deserialize( 2570 response_data=response_data, 2571 response_types_map=_response_types_map, 2572 )
Start a deep research
Parameters
- organization: (required)
- pipeline: (required)
- start_deep_research_request: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
2575 @validate_call 2576 def start_deep_research_without_preload_content( 2577 self, 2578 organization: StrictStr, 2579 pipeline: StrictStr, 2580 start_deep_research_request: StartDeepResearchRequest, 2581 _request_timeout: Union[ 2582 None, 2583 Annotated[StrictFloat, Field(gt=0)], 2584 Tuple[ 2585 Annotated[StrictFloat, Field(gt=0)], 2586 Annotated[StrictFloat, Field(gt=0)] 2587 ] 2588 ] = None, 2589 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2590 _content_type: Optional[StrictStr] = None, 2591 _headers: Optional[Dict[StrictStr, Any]] = None, 2592 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2593 ) -> RESTResponseType: 2594 """Start a deep research 2595 2596 2597 :param organization: (required) 2598 :type organization: str 2599 :param pipeline: (required) 2600 :type pipeline: str 2601 :param start_deep_research_request: (required) 2602 :type start_deep_research_request: StartDeepResearchRequest 2603 :param _request_timeout: timeout setting for this request. If one 2604 number provided, it will be total request 2605 timeout. It can also be a pair (tuple) of 2606 (connection, read) timeouts. 2607 :type _request_timeout: int, tuple(int, int), optional 2608 :param _request_auth: set to override the auth_settings for an a single 2609 request; this effectively ignores the 2610 authentication in the spec for a single request. 2611 :type _request_auth: dict, optional 2612 :param _content_type: force content-type for the request. 2613 :type _content_type: str, Optional 2614 :param _headers: set to override the headers for a single 2615 request; this effectively ignores the headers 2616 in the spec for a single request. 2617 :type _headers: dict, optional 2618 :param _host_index: set to override the host_index for a single 2619 request; this effectively ignores the host_index 2620 in the spec for a single request. 2621 :type _host_index: int, optional 2622 :return: Returns the result object. 2623 """ # noqa: E501 2624 2625 _param = self._start_deep_research_serialize( 2626 organization=organization, 2627 pipeline=pipeline, 2628 start_deep_research_request=start_deep_research_request, 2629 _request_auth=_request_auth, 2630 _content_type=_content_type, 2631 _headers=_headers, 2632 _host_index=_host_index 2633 ) 2634 2635 _response_types_map: Dict[str, Optional[str]] = { 2636 '200': "StartDeepResearchResponse", 2637 '400': "GetPipelines400Response", 2638 '401': "GetPipelines400Response", 2639 '403': "GetPipelines400Response", 2640 '404': "GetPipelines400Response", 2641 '500': "GetPipelines400Response", 2642 } 2643 response_data = self.api_client.call_api( 2644 *_param, 2645 _request_timeout=_request_timeout 2646 ) 2647 return response_data.response
Start a deep research
Parameters
- organization: (required)
- pipeline: (required)
- start_deep_research_request: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
2733 @validate_call 2734 def start_pipeline( 2735 self, 2736 organization: StrictStr, 2737 pipeline: StrictStr, 2738 _request_timeout: Union[ 2739 None, 2740 Annotated[StrictFloat, Field(gt=0)], 2741 Tuple[ 2742 Annotated[StrictFloat, Field(gt=0)], 2743 Annotated[StrictFloat, Field(gt=0)] 2744 ] 2745 ] = None, 2746 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2747 _content_type: Optional[StrictStr] = None, 2748 _headers: Optional[Dict[StrictStr, Any]] = None, 2749 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2750 ) -> StartPipelineResponse: 2751 """Start a pipeline 2752 2753 2754 :param organization: (required) 2755 :type organization: str 2756 :param pipeline: (required) 2757 :type pipeline: str 2758 :param _request_timeout: timeout setting for this request. If one 2759 number provided, it will be total request 2760 timeout. It can also be a pair (tuple) of 2761 (connection, read) timeouts. 2762 :type _request_timeout: int, tuple(int, int), optional 2763 :param _request_auth: set to override the auth_settings for an a single 2764 request; this effectively ignores the 2765 authentication in the spec for a single request. 2766 :type _request_auth: dict, optional 2767 :param _content_type: force content-type for the request. 2768 :type _content_type: str, Optional 2769 :param _headers: set to override the headers for a single 2770 request; this effectively ignores the headers 2771 in the spec for a single request. 2772 :type _headers: dict, optional 2773 :param _host_index: set to override the host_index for a single 2774 request; this effectively ignores the host_index 2775 in the spec for a single request. 2776 :type _host_index: int, optional 2777 :return: Returns the result object. 2778 """ # noqa: E501 2779 2780 _param = self._start_pipeline_serialize( 2781 organization=organization, 2782 pipeline=pipeline, 2783 _request_auth=_request_auth, 2784 _content_type=_content_type, 2785 _headers=_headers, 2786 _host_index=_host_index 2787 ) 2788 2789 _response_types_map: Dict[str, Optional[str]] = { 2790 '200': "StartPipelineResponse", 2791 '400': "GetPipelines400Response", 2792 '401': "GetPipelines400Response", 2793 '403': "GetPipelines400Response", 2794 '404': "GetPipelines400Response", 2795 '500': "GetPipelines400Response", 2796 } 2797 response_data = self.api_client.call_api( 2798 *_param, 2799 _request_timeout=_request_timeout 2800 ) 2801 response_data.read() 2802 return self.api_client.response_deserialize( 2803 response_data=response_data, 2804 response_types_map=_response_types_map, 2805 ).data
Start a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
2808 @validate_call 2809 def start_pipeline_with_http_info( 2810 self, 2811 organization: StrictStr, 2812 pipeline: StrictStr, 2813 _request_timeout: Union[ 2814 None, 2815 Annotated[StrictFloat, Field(gt=0)], 2816 Tuple[ 2817 Annotated[StrictFloat, Field(gt=0)], 2818 Annotated[StrictFloat, Field(gt=0)] 2819 ] 2820 ] = None, 2821 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2822 _content_type: Optional[StrictStr] = None, 2823 _headers: Optional[Dict[StrictStr, Any]] = None, 2824 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2825 ) -> ApiResponse[StartPipelineResponse]: 2826 """Start a pipeline 2827 2828 2829 :param organization: (required) 2830 :type organization: str 2831 :param pipeline: (required) 2832 :type pipeline: str 2833 :param _request_timeout: timeout setting for this request. If one 2834 number provided, it will be total request 2835 timeout. It can also be a pair (tuple) of 2836 (connection, read) timeouts. 2837 :type _request_timeout: int, tuple(int, int), optional 2838 :param _request_auth: set to override the auth_settings for an a single 2839 request; this effectively ignores the 2840 authentication in the spec for a single request. 2841 :type _request_auth: dict, optional 2842 :param _content_type: force content-type for the request. 2843 :type _content_type: str, Optional 2844 :param _headers: set to override the headers for a single 2845 request; this effectively ignores the headers 2846 in the spec for a single request. 2847 :type _headers: dict, optional 2848 :param _host_index: set to override the host_index for a single 2849 request; this effectively ignores the host_index 2850 in the spec for a single request. 2851 :type _host_index: int, optional 2852 :return: Returns the result object. 2853 """ # noqa: E501 2854 2855 _param = self._start_pipeline_serialize( 2856 organization=organization, 2857 pipeline=pipeline, 2858 _request_auth=_request_auth, 2859 _content_type=_content_type, 2860 _headers=_headers, 2861 _host_index=_host_index 2862 ) 2863 2864 _response_types_map: Dict[str, Optional[str]] = { 2865 '200': "StartPipelineResponse", 2866 '400': "GetPipelines400Response", 2867 '401': "GetPipelines400Response", 2868 '403': "GetPipelines400Response", 2869 '404': "GetPipelines400Response", 2870 '500': "GetPipelines400Response", 2871 } 2872 response_data = self.api_client.call_api( 2873 *_param, 2874 _request_timeout=_request_timeout 2875 ) 2876 response_data.read() 2877 return self.api_client.response_deserialize( 2878 response_data=response_data, 2879 response_types_map=_response_types_map, 2880 )
Start a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
2883 @validate_call 2884 def start_pipeline_without_preload_content( 2885 self, 2886 organization: StrictStr, 2887 pipeline: StrictStr, 2888 _request_timeout: Union[ 2889 None, 2890 Annotated[StrictFloat, Field(gt=0)], 2891 Tuple[ 2892 Annotated[StrictFloat, Field(gt=0)], 2893 Annotated[StrictFloat, Field(gt=0)] 2894 ] 2895 ] = None, 2896 _request_auth: Optional[Dict[StrictStr, Any]] = None, 2897 _content_type: Optional[StrictStr] = None, 2898 _headers: Optional[Dict[StrictStr, Any]] = None, 2899 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 2900 ) -> RESTResponseType: 2901 """Start a pipeline 2902 2903 2904 :param organization: (required) 2905 :type organization: str 2906 :param pipeline: (required) 2907 :type pipeline: str 2908 :param _request_timeout: timeout setting for this request. If one 2909 number provided, it will be total request 2910 timeout. It can also be a pair (tuple) of 2911 (connection, read) timeouts. 2912 :type _request_timeout: int, tuple(int, int), optional 2913 :param _request_auth: set to override the auth_settings for an a single 2914 request; this effectively ignores the 2915 authentication in the spec for a single request. 2916 :type _request_auth: dict, optional 2917 :param _content_type: force content-type for the request. 2918 :type _content_type: str, Optional 2919 :param _headers: set to override the headers for a single 2920 request; this effectively ignores the headers 2921 in the spec for a single request. 2922 :type _headers: dict, optional 2923 :param _host_index: set to override the host_index for a single 2924 request; this effectively ignores the host_index 2925 in the spec for a single request. 2926 :type _host_index: int, optional 2927 :return: Returns the result object. 2928 """ # noqa: E501 2929 2930 _param = self._start_pipeline_serialize( 2931 organization=organization, 2932 pipeline=pipeline, 2933 _request_auth=_request_auth, 2934 _content_type=_content_type, 2935 _headers=_headers, 2936 _host_index=_host_index 2937 ) 2938 2939 _response_types_map: Dict[str, Optional[str]] = { 2940 '200': "StartPipelineResponse", 2941 '400': "GetPipelines400Response", 2942 '401': "GetPipelines400Response", 2943 '403': "GetPipelines400Response", 2944 '404': "GetPipelines400Response", 2945 '500': "GetPipelines400Response", 2946 } 2947 response_data = self.api_client.call_api( 2948 *_param, 2949 _request_timeout=_request_timeout 2950 ) 2951 return response_data.response
Start a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
3021 @validate_call 3022 def stop_pipeline( 3023 self, 3024 organization: StrictStr, 3025 pipeline: StrictStr, 3026 _request_timeout: Union[ 3027 None, 3028 Annotated[StrictFloat, Field(gt=0)], 3029 Tuple[ 3030 Annotated[StrictFloat, Field(gt=0)], 3031 Annotated[StrictFloat, Field(gt=0)] 3032 ] 3033 ] = None, 3034 _request_auth: Optional[Dict[StrictStr, Any]] = None, 3035 _content_type: Optional[StrictStr] = None, 3036 _headers: Optional[Dict[StrictStr, Any]] = None, 3037 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 3038 ) -> StopPipelineResponse: 3039 """Stop a pipeline 3040 3041 3042 :param organization: (required) 3043 :type organization: str 3044 :param pipeline: (required) 3045 :type pipeline: str 3046 :param _request_timeout: timeout setting for this request. If one 3047 number provided, it will be total request 3048 timeout. It can also be a pair (tuple) of 3049 (connection, read) timeouts. 3050 :type _request_timeout: int, tuple(int, int), optional 3051 :param _request_auth: set to override the auth_settings for an a single 3052 request; this effectively ignores the 3053 authentication in the spec for a single request. 3054 :type _request_auth: dict, optional 3055 :param _content_type: force content-type for the request. 3056 :type _content_type: str, Optional 3057 :param _headers: set to override the headers for a single 3058 request; this effectively ignores the headers 3059 in the spec for a single request. 3060 :type _headers: dict, optional 3061 :param _host_index: set to override the host_index for a single 3062 request; this effectively ignores the host_index 3063 in the spec for a single request. 3064 :type _host_index: int, optional 3065 :return: Returns the result object. 3066 """ # noqa: E501 3067 3068 _param = self._stop_pipeline_serialize( 3069 organization=organization, 3070 pipeline=pipeline, 3071 _request_auth=_request_auth, 3072 _content_type=_content_type, 3073 _headers=_headers, 3074 _host_index=_host_index 3075 ) 3076 3077 _response_types_map: Dict[str, Optional[str]] = { 3078 '200': "StopPipelineResponse", 3079 '400': "GetPipelines400Response", 3080 '401': "GetPipelines400Response", 3081 '403': "GetPipelines400Response", 3082 '404': "GetPipelines400Response", 3083 '500': "GetPipelines400Response", 3084 } 3085 response_data = self.api_client.call_api( 3086 *_param, 3087 _request_timeout=_request_timeout 3088 ) 3089 response_data.read() 3090 return self.api_client.response_deserialize( 3091 response_data=response_data, 3092 response_types_map=_response_types_map, 3093 ).data
Stop a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
3096 @validate_call 3097 def stop_pipeline_with_http_info( 3098 self, 3099 organization: StrictStr, 3100 pipeline: StrictStr, 3101 _request_timeout: Union[ 3102 None, 3103 Annotated[StrictFloat, Field(gt=0)], 3104 Tuple[ 3105 Annotated[StrictFloat, Field(gt=0)], 3106 Annotated[StrictFloat, Field(gt=0)] 3107 ] 3108 ] = None, 3109 _request_auth: Optional[Dict[StrictStr, Any]] = None, 3110 _content_type: Optional[StrictStr] = None, 3111 _headers: Optional[Dict[StrictStr, Any]] = None, 3112 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 3113 ) -> ApiResponse[StopPipelineResponse]: 3114 """Stop a pipeline 3115 3116 3117 :param organization: (required) 3118 :type organization: str 3119 :param pipeline: (required) 3120 :type pipeline: str 3121 :param _request_timeout: timeout setting for this request. If one 3122 number provided, it will be total request 3123 timeout. It can also be a pair (tuple) of 3124 (connection, read) timeouts. 3125 :type _request_timeout: int, tuple(int, int), optional 3126 :param _request_auth: set to override the auth_settings for an a single 3127 request; this effectively ignores the 3128 authentication in the spec for a single request. 3129 :type _request_auth: dict, optional 3130 :param _content_type: force content-type for the request. 3131 :type _content_type: str, Optional 3132 :param _headers: set to override the headers for a single 3133 request; this effectively ignores the headers 3134 in the spec for a single request. 3135 :type _headers: dict, optional 3136 :param _host_index: set to override the host_index for a single 3137 request; this effectively ignores the host_index 3138 in the spec for a single request. 3139 :type _host_index: int, optional 3140 :return: Returns the result object. 3141 """ # noqa: E501 3142 3143 _param = self._stop_pipeline_serialize( 3144 organization=organization, 3145 pipeline=pipeline, 3146 _request_auth=_request_auth, 3147 _content_type=_content_type, 3148 _headers=_headers, 3149 _host_index=_host_index 3150 ) 3151 3152 _response_types_map: Dict[str, Optional[str]] = { 3153 '200': "StopPipelineResponse", 3154 '400': "GetPipelines400Response", 3155 '401': "GetPipelines400Response", 3156 '403': "GetPipelines400Response", 3157 '404': "GetPipelines400Response", 3158 '500': "GetPipelines400Response", 3159 } 3160 response_data = self.api_client.call_api( 3161 *_param, 3162 _request_timeout=_request_timeout 3163 ) 3164 response_data.read() 3165 return self.api_client.response_deserialize( 3166 response_data=response_data, 3167 response_types_map=_response_types_map, 3168 )
Stop a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.
3171 @validate_call 3172 def stop_pipeline_without_preload_content( 3173 self, 3174 organization: StrictStr, 3175 pipeline: StrictStr, 3176 _request_timeout: Union[ 3177 None, 3178 Annotated[StrictFloat, Field(gt=0)], 3179 Tuple[ 3180 Annotated[StrictFloat, Field(gt=0)], 3181 Annotated[StrictFloat, Field(gt=0)] 3182 ] 3183 ] = None, 3184 _request_auth: Optional[Dict[StrictStr, Any]] = None, 3185 _content_type: Optional[StrictStr] = None, 3186 _headers: Optional[Dict[StrictStr, Any]] = None, 3187 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, 3188 ) -> RESTResponseType: 3189 """Stop a pipeline 3190 3191 3192 :param organization: (required) 3193 :type organization: str 3194 :param pipeline: (required) 3195 :type pipeline: str 3196 :param _request_timeout: timeout setting for this request. If one 3197 number provided, it will be total request 3198 timeout. It can also be a pair (tuple) of 3199 (connection, read) timeouts. 3200 :type _request_timeout: int, tuple(int, int), optional 3201 :param _request_auth: set to override the auth_settings for an a single 3202 request; this effectively ignores the 3203 authentication in the spec for a single request. 3204 :type _request_auth: dict, optional 3205 :param _content_type: force content-type for the request. 3206 :type _content_type: str, Optional 3207 :param _headers: set to override the headers for a single 3208 request; this effectively ignores the headers 3209 in the spec for a single request. 3210 :type _headers: dict, optional 3211 :param _host_index: set to override the host_index for a single 3212 request; this effectively ignores the host_index 3213 in the spec for a single request. 3214 :type _host_index: int, optional 3215 :return: Returns the result object. 3216 """ # noqa: E501 3217 3218 _param = self._stop_pipeline_serialize( 3219 organization=organization, 3220 pipeline=pipeline, 3221 _request_auth=_request_auth, 3222 _content_type=_content_type, 3223 _headers=_headers, 3224 _host_index=_host_index 3225 ) 3226 3227 _response_types_map: Dict[str, Optional[str]] = { 3228 '200': "StopPipelineResponse", 3229 '400': "GetPipelines400Response", 3230 '401': "GetPipelines400Response", 3231 '403': "GetPipelines400Response", 3232 '404': "GetPipelines400Response", 3233 '500': "GetPipelines400Response", 3234 } 3235 response_data = self.api_client.call_api( 3236 *_param, 3237 _request_timeout=_request_timeout 3238 ) 3239 return response_data.response
Stop a pipeline
Parameters
- organization: (required)
- pipeline: (required)
- _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- _request_auth: set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
- _content_type: force content-type for the request.
- _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
- _host_index: set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
Returns
Returns the result object.