vectorize_client.api.connectors_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 Field, StrictStr
  20from typing import List
  21from typing_extensions import Annotated
  22from vectorize_client.models.ai_platform import AIPlatform
  23from vectorize_client.models.add_user_from_source_connector_response import AddUserFromSourceConnectorResponse
  24from vectorize_client.models.add_user_to_source_connector_request import AddUserToSourceConnectorRequest
  25from vectorize_client.models.create_ai_platform_connector import CreateAIPlatformConnector
  26from vectorize_client.models.create_ai_platform_connector_response import CreateAIPlatformConnectorResponse
  27from vectorize_client.models.create_destination_connector import CreateDestinationConnector
  28from vectorize_client.models.create_destination_connector_response import CreateDestinationConnectorResponse
  29from vectorize_client.models.create_source_connector import CreateSourceConnector
  30from vectorize_client.models.create_source_connector_response import CreateSourceConnectorResponse
  31from vectorize_client.models.delete_ai_platform_connector_response import DeleteAIPlatformConnectorResponse
  32from vectorize_client.models.delete_destination_connector_response import DeleteDestinationConnectorResponse
  33from vectorize_client.models.delete_source_connector_response import DeleteSourceConnectorResponse
  34from vectorize_client.models.destination_connector import DestinationConnector
  35from vectorize_client.models.get_ai_platform_connectors200_response import GetAIPlatformConnectors200Response
  36from vectorize_client.models.get_destination_connectors200_response import GetDestinationConnectors200Response
  37from vectorize_client.models.get_source_connectors200_response import GetSourceConnectors200Response
  38from vectorize_client.models.remove_user_from_source_connector_request import RemoveUserFromSourceConnectorRequest
  39from vectorize_client.models.remove_user_from_source_connector_response import RemoveUserFromSourceConnectorResponse
  40from vectorize_client.models.source_connector import SourceConnector
  41from vectorize_client.models.update_ai_platform_connector_request import UpdateAIPlatformConnectorRequest
  42from vectorize_client.models.update_ai_platform_connector_response import UpdateAIPlatformConnectorResponse
  43from vectorize_client.models.update_destination_connector_request import UpdateDestinationConnectorRequest
  44from vectorize_client.models.update_destination_connector_response import UpdateDestinationConnectorResponse
  45from vectorize_client.models.update_source_connector_request import UpdateSourceConnectorRequest
  46from vectorize_client.models.update_source_connector_response import UpdateSourceConnectorResponse
  47from vectorize_client.models.update_user_in_source_connector_request import UpdateUserInSourceConnectorRequest
  48from vectorize_client.models.update_user_in_source_connector_response import UpdateUserInSourceConnectorResponse
  49
  50from vectorize_client.api_client import ApiClient, RequestSerialized
  51from vectorize_client.api_response import ApiResponse
  52from vectorize_client.rest import RESTResponseType
  53
  54
  55class ConnectorsApi:
  56    """NOTE: This class is auto generated by OpenAPI Generator
  57    Ref: https://openapi-generator.tech
  58
  59    Do not edit the class manually.
  60    """
  61
  62    def __init__(self, api_client=None) -> None:
  63        if api_client is None:
  64            api_client = ApiClient.get_default()
  65        self.api_client = api_client
  66
  67
  68    @validate_call
  69    def add_user_to_source_connector(
  70        self,
  71        organization: StrictStr,
  72        source_connector_id: StrictStr,
  73        add_user_to_source_connector_request: AddUserToSourceConnectorRequest,
  74        _request_timeout: Union[
  75            None,
  76            Annotated[StrictFloat, Field(gt=0)],
  77            Tuple[
  78                Annotated[StrictFloat, Field(gt=0)],
  79                Annotated[StrictFloat, Field(gt=0)]
  80            ]
  81        ] = None,
  82        _request_auth: Optional[Dict[StrictStr, Any]] = None,
  83        _content_type: Optional[StrictStr] = None,
  84        _headers: Optional[Dict[StrictStr, Any]] = None,
  85        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
  86    ) -> AddUserFromSourceConnectorResponse:
  87        """Add a user to a source connector
  88
  89
  90        :param organization: (required)
  91        :type organization: str
  92        :param source_connector_id: (required)
  93        :type source_connector_id: str
  94        :param add_user_to_source_connector_request: (required)
  95        :type add_user_to_source_connector_request: AddUserToSourceConnectorRequest
  96        :param _request_timeout: timeout setting for this request. If one
  97                                 number provided, it will be total request
  98                                 timeout. It can also be a pair (tuple) of
  99                                 (connection, read) timeouts.
 100        :type _request_timeout: int, tuple(int, int), optional
 101        :param _request_auth: set to override the auth_settings for an a single
 102                              request; this effectively ignores the
 103                              authentication in the spec for a single request.
 104        :type _request_auth: dict, optional
 105        :param _content_type: force content-type for the request.
 106        :type _content_type: str, Optional
 107        :param _headers: set to override the headers for a single
 108                         request; this effectively ignores the headers
 109                         in the spec for a single request.
 110        :type _headers: dict, optional
 111        :param _host_index: set to override the host_index for a single
 112                            request; this effectively ignores the host_index
 113                            in the spec for a single request.
 114        :type _host_index: int, optional
 115        :return: Returns the result object.
 116        """ # noqa: E501
 117
 118        _param = self._add_user_to_source_connector_serialize(
 119            organization=organization,
 120            source_connector_id=source_connector_id,
 121            add_user_to_source_connector_request=add_user_to_source_connector_request,
 122            _request_auth=_request_auth,
 123            _content_type=_content_type,
 124            _headers=_headers,
 125            _host_index=_host_index
 126        )
 127
 128        _response_types_map: Dict[str, Optional[str]] = {
 129            '200': "AddUserFromSourceConnectorResponse",
 130            '400': "GetPipelines400Response",
 131            '401': "GetPipelines400Response",
 132            '403': "GetPipelines400Response",
 133            '404': "GetPipelines400Response",
 134            '500': "GetPipelines400Response",
 135        }
 136        response_data = self.api_client.call_api(
 137            *_param,
 138            _request_timeout=_request_timeout
 139        )
 140        response_data.read()
 141        return self.api_client.response_deserialize(
 142            response_data=response_data,
 143            response_types_map=_response_types_map,
 144        ).data
 145
 146
 147    @validate_call
 148    def add_user_to_source_connector_with_http_info(
 149        self,
 150        organization: StrictStr,
 151        source_connector_id: StrictStr,
 152        add_user_to_source_connector_request: AddUserToSourceConnectorRequest,
 153        _request_timeout: Union[
 154            None,
 155            Annotated[StrictFloat, Field(gt=0)],
 156            Tuple[
 157                Annotated[StrictFloat, Field(gt=0)],
 158                Annotated[StrictFloat, Field(gt=0)]
 159            ]
 160        ] = None,
 161        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 162        _content_type: Optional[StrictStr] = None,
 163        _headers: Optional[Dict[StrictStr, Any]] = None,
 164        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 165    ) -> ApiResponse[AddUserFromSourceConnectorResponse]:
 166        """Add a user to a source connector
 167
 168
 169        :param organization: (required)
 170        :type organization: str
 171        :param source_connector_id: (required)
 172        :type source_connector_id: str
 173        :param add_user_to_source_connector_request: (required)
 174        :type add_user_to_source_connector_request: AddUserToSourceConnectorRequest
 175        :param _request_timeout: timeout setting for this request. If one
 176                                 number provided, it will be total request
 177                                 timeout. It can also be a pair (tuple) of
 178                                 (connection, read) timeouts.
 179        :type _request_timeout: int, tuple(int, int), optional
 180        :param _request_auth: set to override the auth_settings for an a single
 181                              request; this effectively ignores the
 182                              authentication in the spec for a single request.
 183        :type _request_auth: dict, optional
 184        :param _content_type: force content-type for the request.
 185        :type _content_type: str, Optional
 186        :param _headers: set to override the headers for a single
 187                         request; this effectively ignores the headers
 188                         in the spec for a single request.
 189        :type _headers: dict, optional
 190        :param _host_index: set to override the host_index for a single
 191                            request; this effectively ignores the host_index
 192                            in the spec for a single request.
 193        :type _host_index: int, optional
 194        :return: Returns the result object.
 195        """ # noqa: E501
 196
 197        _param = self._add_user_to_source_connector_serialize(
 198            organization=organization,
 199            source_connector_id=source_connector_id,
 200            add_user_to_source_connector_request=add_user_to_source_connector_request,
 201            _request_auth=_request_auth,
 202            _content_type=_content_type,
 203            _headers=_headers,
 204            _host_index=_host_index
 205        )
 206
 207        _response_types_map: Dict[str, Optional[str]] = {
 208            '200': "AddUserFromSourceConnectorResponse",
 209            '400': "GetPipelines400Response",
 210            '401': "GetPipelines400Response",
 211            '403': "GetPipelines400Response",
 212            '404': "GetPipelines400Response",
 213            '500': "GetPipelines400Response",
 214        }
 215        response_data = self.api_client.call_api(
 216            *_param,
 217            _request_timeout=_request_timeout
 218        )
 219        response_data.read()
 220        return self.api_client.response_deserialize(
 221            response_data=response_data,
 222            response_types_map=_response_types_map,
 223        )
 224
 225
 226    @validate_call
 227    def add_user_to_source_connector_without_preload_content(
 228        self,
 229        organization: StrictStr,
 230        source_connector_id: StrictStr,
 231        add_user_to_source_connector_request: AddUserToSourceConnectorRequest,
 232        _request_timeout: Union[
 233            None,
 234            Annotated[StrictFloat, Field(gt=0)],
 235            Tuple[
 236                Annotated[StrictFloat, Field(gt=0)],
 237                Annotated[StrictFloat, Field(gt=0)]
 238            ]
 239        ] = None,
 240        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 241        _content_type: Optional[StrictStr] = None,
 242        _headers: Optional[Dict[StrictStr, Any]] = None,
 243        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 244    ) -> RESTResponseType:
 245        """Add a user to a source connector
 246
 247
 248        :param organization: (required)
 249        :type organization: str
 250        :param source_connector_id: (required)
 251        :type source_connector_id: str
 252        :param add_user_to_source_connector_request: (required)
 253        :type add_user_to_source_connector_request: AddUserToSourceConnectorRequest
 254        :param _request_timeout: timeout setting for this request. If one
 255                                 number provided, it will be total request
 256                                 timeout. It can also be a pair (tuple) of
 257                                 (connection, read) timeouts.
 258        :type _request_timeout: int, tuple(int, int), optional
 259        :param _request_auth: set to override the auth_settings for an a single
 260                              request; this effectively ignores the
 261                              authentication in the spec for a single request.
 262        :type _request_auth: dict, optional
 263        :param _content_type: force content-type for the request.
 264        :type _content_type: str, Optional
 265        :param _headers: set to override the headers for a single
 266                         request; this effectively ignores the headers
 267                         in the spec for a single request.
 268        :type _headers: dict, optional
 269        :param _host_index: set to override the host_index for a single
 270                            request; this effectively ignores the host_index
 271                            in the spec for a single request.
 272        :type _host_index: int, optional
 273        :return: Returns the result object.
 274        """ # noqa: E501
 275
 276        _param = self._add_user_to_source_connector_serialize(
 277            organization=organization,
 278            source_connector_id=source_connector_id,
 279            add_user_to_source_connector_request=add_user_to_source_connector_request,
 280            _request_auth=_request_auth,
 281            _content_type=_content_type,
 282            _headers=_headers,
 283            _host_index=_host_index
 284        )
 285
 286        _response_types_map: Dict[str, Optional[str]] = {
 287            '200': "AddUserFromSourceConnectorResponse",
 288            '400': "GetPipelines400Response",
 289            '401': "GetPipelines400Response",
 290            '403': "GetPipelines400Response",
 291            '404': "GetPipelines400Response",
 292            '500': "GetPipelines400Response",
 293        }
 294        response_data = self.api_client.call_api(
 295            *_param,
 296            _request_timeout=_request_timeout
 297        )
 298        return response_data.response
 299
 300
 301    def _add_user_to_source_connector_serialize(
 302        self,
 303        organization,
 304        source_connector_id,
 305        add_user_to_source_connector_request,
 306        _request_auth,
 307        _content_type,
 308        _headers,
 309        _host_index,
 310    ) -> RequestSerialized:
 311
 312        _host = None
 313
 314        _collection_formats: Dict[str, str] = {
 315        }
 316
 317        _path_params: Dict[str, str] = {}
 318        _query_params: List[Tuple[str, str]] = []
 319        _header_params: Dict[str, Optional[str]] = _headers or {}
 320        _form_params: List[Tuple[str, str]] = []
 321        _files: Dict[
 322            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
 323        ] = {}
 324        _body_params: Optional[bytes] = None
 325
 326        # process the path parameters
 327        if organization is not None:
 328            _path_params['organization'] = organization
 329        if source_connector_id is not None:
 330            _path_params['sourceConnectorId'] = source_connector_id
 331        # process the query parameters
 332        # process the header parameters
 333        # process the form parameters
 334        # process the body parameter
 335        if add_user_to_source_connector_request is not None:
 336            _body_params = add_user_to_source_connector_request
 337
 338
 339        # set the HTTP header `Accept`
 340        if 'Accept' not in _header_params:
 341            _header_params['Accept'] = self.api_client.select_header_accept(
 342                [
 343                    'application/json'
 344                ]
 345            )
 346
 347        # set the HTTP header `Content-Type`
 348        if _content_type:
 349            _header_params['Content-Type'] = _content_type
 350        else:
 351            _default_content_type = (
 352                self.api_client.select_header_content_type(
 353                    [
 354                        'application/json'
 355                    ]
 356                )
 357            )
 358            if _default_content_type is not None:
 359                _header_params['Content-Type'] = _default_content_type
 360
 361        # authentication setting
 362        _auth_settings: List[str] = [
 363            'bearerAuth'
 364        ]
 365
 366        return self.api_client.param_serialize(
 367            method='POST',
 368            resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}/users',
 369            path_params=_path_params,
 370            query_params=_query_params,
 371            header_params=_header_params,
 372            body=_body_params,
 373            post_params=_form_params,
 374            files=_files,
 375            auth_settings=_auth_settings,
 376            collection_formats=_collection_formats,
 377            _host=_host,
 378            _request_auth=_request_auth
 379        )
 380
 381
 382
 383
 384    @validate_call
 385    def create_ai_platform_connector(
 386        self,
 387        organization: StrictStr,
 388        create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)],
 389        _request_timeout: Union[
 390            None,
 391            Annotated[StrictFloat, Field(gt=0)],
 392            Tuple[
 393                Annotated[StrictFloat, Field(gt=0)],
 394                Annotated[StrictFloat, Field(gt=0)]
 395            ]
 396        ] = None,
 397        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 398        _content_type: Optional[StrictStr] = None,
 399        _headers: Optional[Dict[StrictStr, Any]] = None,
 400        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 401    ) -> CreateAIPlatformConnectorResponse:
 402        """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK):  Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX):  Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI):  Name (name): text, API Key (key): text) | Voyage AI (VOYAGE):  Name (name): text, API Key (key): text) | Built-in (VECTORIZE):  )
 403
 404
 405        :param organization: (required)
 406        :type organization: str
 407        :param create_ai_platform_connector: (required)
 408        :type create_ai_platform_connector: List[CreateAIPlatformConnector]
 409        :param _request_timeout: timeout setting for this request. If one
 410                                 number provided, it will be total request
 411                                 timeout. It can also be a pair (tuple) of
 412                                 (connection, read) timeouts.
 413        :type _request_timeout: int, tuple(int, int), optional
 414        :param _request_auth: set to override the auth_settings for an a single
 415                              request; this effectively ignores the
 416                              authentication in the spec for a single request.
 417        :type _request_auth: dict, optional
 418        :param _content_type: force content-type for the request.
 419        :type _content_type: str, Optional
 420        :param _headers: set to override the headers for a single
 421                         request; this effectively ignores the headers
 422                         in the spec for a single request.
 423        :type _headers: dict, optional
 424        :param _host_index: set to override the host_index for a single
 425                            request; this effectively ignores the host_index
 426                            in the spec for a single request.
 427        :type _host_index: int, optional
 428        :return: Returns the result object.
 429        """ # noqa: E501
 430
 431        _param = self._create_ai_platform_connector_serialize(
 432            organization=organization,
 433            create_ai_platform_connector=create_ai_platform_connector,
 434            _request_auth=_request_auth,
 435            _content_type=_content_type,
 436            _headers=_headers,
 437            _host_index=_host_index
 438        )
 439
 440        _response_types_map: Dict[str, Optional[str]] = {
 441            '200': "CreateAIPlatformConnectorResponse",
 442            '400': "GetPipelines400Response",
 443            '401': "GetPipelines400Response",
 444            '403': "GetPipelines400Response",
 445            '404': "GetPipelines400Response",
 446            '500': "GetPipelines400Response",
 447        }
 448        response_data = self.api_client.call_api(
 449            *_param,
 450            _request_timeout=_request_timeout
 451        )
 452        response_data.read()
 453        return self.api_client.response_deserialize(
 454            response_data=response_data,
 455            response_types_map=_response_types_map,
 456        ).data
 457
 458
 459    @validate_call
 460    def create_ai_platform_connector_with_http_info(
 461        self,
 462        organization: StrictStr,
 463        create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)],
 464        _request_timeout: Union[
 465            None,
 466            Annotated[StrictFloat, Field(gt=0)],
 467            Tuple[
 468                Annotated[StrictFloat, Field(gt=0)],
 469                Annotated[StrictFloat, Field(gt=0)]
 470            ]
 471        ] = None,
 472        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 473        _content_type: Optional[StrictStr] = None,
 474        _headers: Optional[Dict[StrictStr, Any]] = None,
 475        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 476    ) -> ApiResponse[CreateAIPlatformConnectorResponse]:
 477        """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK):  Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX):  Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI):  Name (name): text, API Key (key): text) | Voyage AI (VOYAGE):  Name (name): text, API Key (key): text) | Built-in (VECTORIZE):  )
 478
 479
 480        :param organization: (required)
 481        :type organization: str
 482        :param create_ai_platform_connector: (required)
 483        :type create_ai_platform_connector: List[CreateAIPlatformConnector]
 484        :param _request_timeout: timeout setting for this request. If one
 485                                 number provided, it will be total request
 486                                 timeout. It can also be a pair (tuple) of
 487                                 (connection, read) timeouts.
 488        :type _request_timeout: int, tuple(int, int), optional
 489        :param _request_auth: set to override the auth_settings for an a single
 490                              request; this effectively ignores the
 491                              authentication in the spec for a single request.
 492        :type _request_auth: dict, optional
 493        :param _content_type: force content-type for the request.
 494        :type _content_type: str, Optional
 495        :param _headers: set to override the headers for a single
 496                         request; this effectively ignores the headers
 497                         in the spec for a single request.
 498        :type _headers: dict, optional
 499        :param _host_index: set to override the host_index for a single
 500                            request; this effectively ignores the host_index
 501                            in the spec for a single request.
 502        :type _host_index: int, optional
 503        :return: Returns the result object.
 504        """ # noqa: E501
 505
 506        _param = self._create_ai_platform_connector_serialize(
 507            organization=organization,
 508            create_ai_platform_connector=create_ai_platform_connector,
 509            _request_auth=_request_auth,
 510            _content_type=_content_type,
 511            _headers=_headers,
 512            _host_index=_host_index
 513        )
 514
 515        _response_types_map: Dict[str, Optional[str]] = {
 516            '200': "CreateAIPlatformConnectorResponse",
 517            '400': "GetPipelines400Response",
 518            '401': "GetPipelines400Response",
 519            '403': "GetPipelines400Response",
 520            '404': "GetPipelines400Response",
 521            '500': "GetPipelines400Response",
 522        }
 523        response_data = self.api_client.call_api(
 524            *_param,
 525            _request_timeout=_request_timeout
 526        )
 527        response_data.read()
 528        return self.api_client.response_deserialize(
 529            response_data=response_data,
 530            response_types_map=_response_types_map,
 531        )
 532
 533
 534    @validate_call
 535    def create_ai_platform_connector_without_preload_content(
 536        self,
 537        organization: StrictStr,
 538        create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)],
 539        _request_timeout: Union[
 540            None,
 541            Annotated[StrictFloat, Field(gt=0)],
 542            Tuple[
 543                Annotated[StrictFloat, Field(gt=0)],
 544                Annotated[StrictFloat, Field(gt=0)]
 545            ]
 546        ] = None,
 547        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 548        _content_type: Optional[StrictStr] = None,
 549        _headers: Optional[Dict[StrictStr, Any]] = None,
 550        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 551    ) -> RESTResponseType:
 552        """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK):  Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX):  Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI):  Name (name): text, API Key (key): text) | Voyage AI (VOYAGE):  Name (name): text, API Key (key): text) | Built-in (VECTORIZE):  )
 553
 554
 555        :param organization: (required)
 556        :type organization: str
 557        :param create_ai_platform_connector: (required)
 558        :type create_ai_platform_connector: List[CreateAIPlatformConnector]
 559        :param _request_timeout: timeout setting for this request. If one
 560                                 number provided, it will be total request
 561                                 timeout. It can also be a pair (tuple) of
 562                                 (connection, read) timeouts.
 563        :type _request_timeout: int, tuple(int, int), optional
 564        :param _request_auth: set to override the auth_settings for an a single
 565                              request; this effectively ignores the
 566                              authentication in the spec for a single request.
 567        :type _request_auth: dict, optional
 568        :param _content_type: force content-type for the request.
 569        :type _content_type: str, Optional
 570        :param _headers: set to override the headers for a single
 571                         request; this effectively ignores the headers
 572                         in the spec for a single request.
 573        :type _headers: dict, optional
 574        :param _host_index: set to override the host_index for a single
 575                            request; this effectively ignores the host_index
 576                            in the spec for a single request.
 577        :type _host_index: int, optional
 578        :return: Returns the result object.
 579        """ # noqa: E501
 580
 581        _param = self._create_ai_platform_connector_serialize(
 582            organization=organization,
 583            create_ai_platform_connector=create_ai_platform_connector,
 584            _request_auth=_request_auth,
 585            _content_type=_content_type,
 586            _headers=_headers,
 587            _host_index=_host_index
 588        )
 589
 590        _response_types_map: Dict[str, Optional[str]] = {
 591            '200': "CreateAIPlatformConnectorResponse",
 592            '400': "GetPipelines400Response",
 593            '401': "GetPipelines400Response",
 594            '403': "GetPipelines400Response",
 595            '404': "GetPipelines400Response",
 596            '500': "GetPipelines400Response",
 597        }
 598        response_data = self.api_client.call_api(
 599            *_param,
 600            _request_timeout=_request_timeout
 601        )
 602        return response_data.response
 603
 604
 605    def _create_ai_platform_connector_serialize(
 606        self,
 607        organization,
 608        create_ai_platform_connector,
 609        _request_auth,
 610        _content_type,
 611        _headers,
 612        _host_index,
 613    ) -> RequestSerialized:
 614
 615        _host = None
 616
 617        _collection_formats: Dict[str, str] = {
 618            'CreateAIPlatformConnector': '',
 619        }
 620
 621        _path_params: Dict[str, str] = {}
 622        _query_params: List[Tuple[str, str]] = []
 623        _header_params: Dict[str, Optional[str]] = _headers or {}
 624        _form_params: List[Tuple[str, str]] = []
 625        _files: Dict[
 626            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
 627        ] = {}
 628        _body_params: Optional[bytes] = None
 629
 630        # process the path parameters
 631        if organization is not None:
 632            _path_params['organization'] = organization
 633        # process the query parameters
 634        # process the header parameters
 635        # process the form parameters
 636        # process the body parameter
 637        if create_ai_platform_connector is not None:
 638            _body_params = create_ai_platform_connector
 639
 640
 641        # set the HTTP header `Accept`
 642        if 'Accept' not in _header_params:
 643            _header_params['Accept'] = self.api_client.select_header_accept(
 644                [
 645                    'application/json'
 646                ]
 647            )
 648
 649        # set the HTTP header `Content-Type`
 650        if _content_type:
 651            _header_params['Content-Type'] = _content_type
 652        else:
 653            _default_content_type = (
 654                self.api_client.select_header_content_type(
 655                    [
 656                        'application/json'
 657                    ]
 658                )
 659            )
 660            if _default_content_type is not None:
 661                _header_params['Content-Type'] = _default_content_type
 662
 663        # authentication setting
 664        _auth_settings: List[str] = [
 665            'bearerAuth'
 666        ]
 667
 668        return self.api_client.param_serialize(
 669            method='POST',
 670            resource_path='/org/{organization}/connectors/aiplatforms',
 671            path_params=_path_params,
 672            query_params=_query_params,
 673            header_params=_header_params,
 674            body=_body_params,
 675            post_params=_form_params,
 676            files=_files,
 677            auth_settings=_auth_settings,
 678            collection_formats=_collection_formats,
 679            _host=_host,
 680            _request_auth=_request_auth
 681        )
 682
 683
 684
 685
 686    @validate_call
 687    def create_destination_connector(
 688        self,
 689        organization: StrictStr,
 690        create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)],
 691        _request_timeout: Union[
 692            None,
 693            Annotated[StrictFloat, Field(gt=0)],
 694            Tuple[
 695                Annotated[StrictFloat, Field(gt=0)],
 696                Annotated[StrictFloat, Field(gt=0)]
 697            ]
 698        ] = None,
 699        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 700        _content_type: Optional[StrictStr] = None,
 701        _headers: Optional[Dict[StrictStr, Any]] = None,
 702        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 703    ) -> CreateDestinationConnectorResponse:
 704        """Create a new destination connector. Config values: Couchbase Capella (CAPELLA):  Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX):  Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC):  Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE):  Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS):  Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT):  Name (name): text, Host (host): text, API Key (api-key): text) | Supabase (SUPABASE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Weaviate (WEAVIATE):  Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH):  Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE):  ) | Chroma (CHROMA):  Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB):  Name (name): text, API Key (apiKey): text)
 705
 706
 707        :param organization: (required)
 708        :type organization: str
 709        :param create_destination_connector: (required)
 710        :type create_destination_connector: List[CreateDestinationConnector]
 711        :param _request_timeout: timeout setting for this request. If one
 712                                 number provided, it will be total request
 713                                 timeout. It can also be a pair (tuple) of
 714                                 (connection, read) timeouts.
 715        :type _request_timeout: int, tuple(int, int), optional
 716        :param _request_auth: set to override the auth_settings for an a single
 717                              request; this effectively ignores the
 718                              authentication in the spec for a single request.
 719        :type _request_auth: dict, optional
 720        :param _content_type: force content-type for the request.
 721        :type _content_type: str, Optional
 722        :param _headers: set to override the headers for a single
 723                         request; this effectively ignores the headers
 724                         in the spec for a single request.
 725        :type _headers: dict, optional
 726        :param _host_index: set to override the host_index for a single
 727                            request; this effectively ignores the host_index
 728                            in the spec for a single request.
 729        :type _host_index: int, optional
 730        :return: Returns the result object.
 731        """ # noqa: E501
 732
 733        _param = self._create_destination_connector_serialize(
 734            organization=organization,
 735            create_destination_connector=create_destination_connector,
 736            _request_auth=_request_auth,
 737            _content_type=_content_type,
 738            _headers=_headers,
 739            _host_index=_host_index
 740        )
 741
 742        _response_types_map: Dict[str, Optional[str]] = {
 743            '200': "CreateDestinationConnectorResponse",
 744            '400': "GetPipelines400Response",
 745            '401': "GetPipelines400Response",
 746            '403': "GetPipelines400Response",
 747            '404': "GetPipelines400Response",
 748            '500': "GetPipelines400Response",
 749        }
 750        response_data = self.api_client.call_api(
 751            *_param,
 752            _request_timeout=_request_timeout
 753        )
 754        response_data.read()
 755        return self.api_client.response_deserialize(
 756            response_data=response_data,
 757            response_types_map=_response_types_map,
 758        ).data
 759
 760
 761    @validate_call
 762    def create_destination_connector_with_http_info(
 763        self,
 764        organization: StrictStr,
 765        create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)],
 766        _request_timeout: Union[
 767            None,
 768            Annotated[StrictFloat, Field(gt=0)],
 769            Tuple[
 770                Annotated[StrictFloat, Field(gt=0)],
 771                Annotated[StrictFloat, Field(gt=0)]
 772            ]
 773        ] = None,
 774        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 775        _content_type: Optional[StrictStr] = None,
 776        _headers: Optional[Dict[StrictStr, Any]] = None,
 777        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 778    ) -> ApiResponse[CreateDestinationConnectorResponse]:
 779        """Create a new destination connector. Config values: Couchbase Capella (CAPELLA):  Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX):  Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC):  Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE):  Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS):  Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT):  Name (name): text, Host (host): text, API Key (api-key): text) | Supabase (SUPABASE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Weaviate (WEAVIATE):  Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH):  Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE):  ) | Chroma (CHROMA):  Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB):  Name (name): text, API Key (apiKey): text)
 780
 781
 782        :param organization: (required)
 783        :type organization: str
 784        :param create_destination_connector: (required)
 785        :type create_destination_connector: List[CreateDestinationConnector]
 786        :param _request_timeout: timeout setting for this request. If one
 787                                 number provided, it will be total request
 788                                 timeout. It can also be a pair (tuple) of
 789                                 (connection, read) timeouts.
 790        :type _request_timeout: int, tuple(int, int), optional
 791        :param _request_auth: set to override the auth_settings for an a single
 792                              request; this effectively ignores the
 793                              authentication in the spec for a single request.
 794        :type _request_auth: dict, optional
 795        :param _content_type: force content-type for the request.
 796        :type _content_type: str, Optional
 797        :param _headers: set to override the headers for a single
 798                         request; this effectively ignores the headers
 799                         in the spec for a single request.
 800        :type _headers: dict, optional
 801        :param _host_index: set to override the host_index for a single
 802                            request; this effectively ignores the host_index
 803                            in the spec for a single request.
 804        :type _host_index: int, optional
 805        :return: Returns the result object.
 806        """ # noqa: E501
 807
 808        _param = self._create_destination_connector_serialize(
 809            organization=organization,
 810            create_destination_connector=create_destination_connector,
 811            _request_auth=_request_auth,
 812            _content_type=_content_type,
 813            _headers=_headers,
 814            _host_index=_host_index
 815        )
 816
 817        _response_types_map: Dict[str, Optional[str]] = {
 818            '200': "CreateDestinationConnectorResponse",
 819            '400': "GetPipelines400Response",
 820            '401': "GetPipelines400Response",
 821            '403': "GetPipelines400Response",
 822            '404': "GetPipelines400Response",
 823            '500': "GetPipelines400Response",
 824        }
 825        response_data = self.api_client.call_api(
 826            *_param,
 827            _request_timeout=_request_timeout
 828        )
 829        response_data.read()
 830        return self.api_client.response_deserialize(
 831            response_data=response_data,
 832            response_types_map=_response_types_map,
 833        )
 834
 835
 836    @validate_call
 837    def create_destination_connector_without_preload_content(
 838        self,
 839        organization: StrictStr,
 840        create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)],
 841        _request_timeout: Union[
 842            None,
 843            Annotated[StrictFloat, Field(gt=0)],
 844            Tuple[
 845                Annotated[StrictFloat, Field(gt=0)],
 846                Annotated[StrictFloat, Field(gt=0)]
 847            ]
 848        ] = None,
 849        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 850        _content_type: Optional[StrictStr] = None,
 851        _headers: Optional[Dict[StrictStr, Any]] = None,
 852        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 853    ) -> RESTResponseType:
 854        """Create a new destination connector. Config values: Couchbase Capella (CAPELLA):  Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX):  Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC):  Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE):  Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS):  Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT):  Name (name): text, Host (host): text, API Key (api-key): text) | Supabase (SUPABASE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Weaviate (WEAVIATE):  Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH):  Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE):  ) | Chroma (CHROMA):  Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB):  Name (name): text, API Key (apiKey): text)
 855
 856
 857        :param organization: (required)
 858        :type organization: str
 859        :param create_destination_connector: (required)
 860        :type create_destination_connector: List[CreateDestinationConnector]
 861        :param _request_timeout: timeout setting for this request. If one
 862                                 number provided, it will be total request
 863                                 timeout. It can also be a pair (tuple) of
 864                                 (connection, read) timeouts.
 865        :type _request_timeout: int, tuple(int, int), optional
 866        :param _request_auth: set to override the auth_settings for an a single
 867                              request; this effectively ignores the
 868                              authentication in the spec for a single request.
 869        :type _request_auth: dict, optional
 870        :param _content_type: force content-type for the request.
 871        :type _content_type: str, Optional
 872        :param _headers: set to override the headers for a single
 873                         request; this effectively ignores the headers
 874                         in the spec for a single request.
 875        :type _headers: dict, optional
 876        :param _host_index: set to override the host_index for a single
 877                            request; this effectively ignores the host_index
 878                            in the spec for a single request.
 879        :type _host_index: int, optional
 880        :return: Returns the result object.
 881        """ # noqa: E501
 882
 883        _param = self._create_destination_connector_serialize(
 884            organization=organization,
 885            create_destination_connector=create_destination_connector,
 886            _request_auth=_request_auth,
 887            _content_type=_content_type,
 888            _headers=_headers,
 889            _host_index=_host_index
 890        )
 891
 892        _response_types_map: Dict[str, Optional[str]] = {
 893            '200': "CreateDestinationConnectorResponse",
 894            '400': "GetPipelines400Response",
 895            '401': "GetPipelines400Response",
 896            '403': "GetPipelines400Response",
 897            '404': "GetPipelines400Response",
 898            '500': "GetPipelines400Response",
 899        }
 900        response_data = self.api_client.call_api(
 901            *_param,
 902            _request_timeout=_request_timeout
 903        )
 904        return response_data.response
 905
 906
 907    def _create_destination_connector_serialize(
 908        self,
 909        organization,
 910        create_destination_connector,
 911        _request_auth,
 912        _content_type,
 913        _headers,
 914        _host_index,
 915    ) -> RequestSerialized:
 916
 917        _host = None
 918
 919        _collection_formats: Dict[str, str] = {
 920            'CreateDestinationConnector': '',
 921        }
 922
 923        _path_params: Dict[str, str] = {}
 924        _query_params: List[Tuple[str, str]] = []
 925        _header_params: Dict[str, Optional[str]] = _headers or {}
 926        _form_params: List[Tuple[str, str]] = []
 927        _files: Dict[
 928            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
 929        ] = {}
 930        _body_params: Optional[bytes] = None
 931
 932        # process the path parameters
 933        if organization is not None:
 934            _path_params['organization'] = organization
 935        # process the query parameters
 936        # process the header parameters
 937        # process the form parameters
 938        # process the body parameter
 939        if create_destination_connector is not None:
 940            _body_params = create_destination_connector
 941
 942
 943        # set the HTTP header `Accept`
 944        if 'Accept' not in _header_params:
 945            _header_params['Accept'] = self.api_client.select_header_accept(
 946                [
 947                    'application/json'
 948                ]
 949            )
 950
 951        # set the HTTP header `Content-Type`
 952        if _content_type:
 953            _header_params['Content-Type'] = _content_type
 954        else:
 955            _default_content_type = (
 956                self.api_client.select_header_content_type(
 957                    [
 958                        'application/json'
 959                    ]
 960                )
 961            )
 962            if _default_content_type is not None:
 963                _header_params['Content-Type'] = _default_content_type
 964
 965        # authentication setting
 966        _auth_settings: List[str] = [
 967            'bearerAuth'
 968        ]
 969
 970        return self.api_client.param_serialize(
 971            method='POST',
 972            resource_path='/org/{organization}/connectors/destinations',
 973            path_params=_path_params,
 974            query_params=_query_params,
 975            header_params=_header_params,
 976            body=_body_params,
 977            post_params=_form_params,
 978            files=_files,
 979            auth_settings=_auth_settings,
 980            collection_formats=_collection_formats,
 981            _host=_host,
 982            _request_auth=_request_auth
 983        )
 984
 985
 986
 987
 988    @validate_call
 989    def create_source_connector(
 990        self,
 991        organization: StrictStr,
 992        create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)],
 993        _request_timeout: Union[
 994            None,
 995            Annotated[StrictFloat, Field(gt=0)],
 996            Tuple[
 997                Annotated[StrictFloat, Field(gt=0)],
 998                Annotated[StrictFloat, Field(gt=0)]
 999            ]
1000        ] = None,
1001        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1002        _content_type: Optional[StrictStr] = None,
1003        _headers: Optional[Dict[StrictStr, Any]] = None,
1004        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1005    ) -> CreateSourceConnectorResponse:
1006        """Create a new source connector. Config values: Amazon S3 (AWS_S3):  Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB):  Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE):  Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD):  Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX):  Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH):  Name (name): text) | Google Drive (Service Account) (GOOGLE_DRIVE):  Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI):  Name (name): text) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM):  Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL):  Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS):  Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Intercom (INTERCOM):  Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER):  Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD):  Name (name): text)
1007
1008
1009        :param organization: (required)
1010        :type organization: str
1011        :param create_source_connector: (required)
1012        :type create_source_connector: List[CreateSourceConnector]
1013        :param _request_timeout: timeout setting for this request. If one
1014                                 number provided, it will be total request
1015                                 timeout. It can also be a pair (tuple) of
1016                                 (connection, read) timeouts.
1017        :type _request_timeout: int, tuple(int, int), optional
1018        :param _request_auth: set to override the auth_settings for an a single
1019                              request; this effectively ignores the
1020                              authentication in the spec for a single request.
1021        :type _request_auth: dict, optional
1022        :param _content_type: force content-type for the request.
1023        :type _content_type: str, Optional
1024        :param _headers: set to override the headers for a single
1025                         request; this effectively ignores the headers
1026                         in the spec for a single request.
1027        :type _headers: dict, optional
1028        :param _host_index: set to override the host_index for a single
1029                            request; this effectively ignores the host_index
1030                            in the spec for a single request.
1031        :type _host_index: int, optional
1032        :return: Returns the result object.
1033        """ # noqa: E501
1034
1035        _param = self._create_source_connector_serialize(
1036            organization=organization,
1037            create_source_connector=create_source_connector,
1038            _request_auth=_request_auth,
1039            _content_type=_content_type,
1040            _headers=_headers,
1041            _host_index=_host_index
1042        )
1043
1044        _response_types_map: Dict[str, Optional[str]] = {
1045            '200': "CreateSourceConnectorResponse",
1046            '400': "GetPipelines400Response",
1047            '401': "GetPipelines400Response",
1048            '403': "GetPipelines400Response",
1049            '404': "GetPipelines400Response",
1050            '500': "GetPipelines400Response",
1051        }
1052        response_data = self.api_client.call_api(
1053            *_param,
1054            _request_timeout=_request_timeout
1055        )
1056        response_data.read()
1057        return self.api_client.response_deserialize(
1058            response_data=response_data,
1059            response_types_map=_response_types_map,
1060        ).data
1061
1062
1063    @validate_call
1064    def create_source_connector_with_http_info(
1065        self,
1066        organization: StrictStr,
1067        create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)],
1068        _request_timeout: Union[
1069            None,
1070            Annotated[StrictFloat, Field(gt=0)],
1071            Tuple[
1072                Annotated[StrictFloat, Field(gt=0)],
1073                Annotated[StrictFloat, Field(gt=0)]
1074            ]
1075        ] = None,
1076        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1077        _content_type: Optional[StrictStr] = None,
1078        _headers: Optional[Dict[StrictStr, Any]] = None,
1079        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1080    ) -> ApiResponse[CreateSourceConnectorResponse]:
1081        """Create a new source connector. Config values: Amazon S3 (AWS_S3):  Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB):  Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE):  Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD):  Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX):  Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH):  Name (name): text) | Google Drive (Service Account) (GOOGLE_DRIVE):  Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI):  Name (name): text) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM):  Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL):  Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS):  Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Intercom (INTERCOM):  Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER):  Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD):  Name (name): text)
1082
1083
1084        :param organization: (required)
1085        :type organization: str
1086        :param create_source_connector: (required)
1087        :type create_source_connector: List[CreateSourceConnector]
1088        :param _request_timeout: timeout setting for this request. If one
1089                                 number provided, it will be total request
1090                                 timeout. It can also be a pair (tuple) of
1091                                 (connection, read) timeouts.
1092        :type _request_timeout: int, tuple(int, int), optional
1093        :param _request_auth: set to override the auth_settings for an a single
1094                              request; this effectively ignores the
1095                              authentication in the spec for a single request.
1096        :type _request_auth: dict, optional
1097        :param _content_type: force content-type for the request.
1098        :type _content_type: str, Optional
1099        :param _headers: set to override the headers for a single
1100                         request; this effectively ignores the headers
1101                         in the spec for a single request.
1102        :type _headers: dict, optional
1103        :param _host_index: set to override the host_index for a single
1104                            request; this effectively ignores the host_index
1105                            in the spec for a single request.
1106        :type _host_index: int, optional
1107        :return: Returns the result object.
1108        """ # noqa: E501
1109
1110        _param = self._create_source_connector_serialize(
1111            organization=organization,
1112            create_source_connector=create_source_connector,
1113            _request_auth=_request_auth,
1114            _content_type=_content_type,
1115            _headers=_headers,
1116            _host_index=_host_index
1117        )
1118
1119        _response_types_map: Dict[str, Optional[str]] = {
1120            '200': "CreateSourceConnectorResponse",
1121            '400': "GetPipelines400Response",
1122            '401': "GetPipelines400Response",
1123            '403': "GetPipelines400Response",
1124            '404': "GetPipelines400Response",
1125            '500': "GetPipelines400Response",
1126        }
1127        response_data = self.api_client.call_api(
1128            *_param,
1129            _request_timeout=_request_timeout
1130        )
1131        response_data.read()
1132        return self.api_client.response_deserialize(
1133            response_data=response_data,
1134            response_types_map=_response_types_map,
1135        )
1136
1137
1138    @validate_call
1139    def create_source_connector_without_preload_content(
1140        self,
1141        organization: StrictStr,
1142        create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)],
1143        _request_timeout: Union[
1144            None,
1145            Annotated[StrictFloat, Field(gt=0)],
1146            Tuple[
1147                Annotated[StrictFloat, Field(gt=0)],
1148                Annotated[StrictFloat, Field(gt=0)]
1149            ]
1150        ] = None,
1151        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1152        _content_type: Optional[StrictStr] = None,
1153        _headers: Optional[Dict[StrictStr, Any]] = None,
1154        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1155    ) -> RESTResponseType:
1156        """Create a new source connector. Config values: Amazon S3 (AWS_S3):  Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB):  Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE):  Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD):  Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX):  Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH):  Name (name): text) | Google Drive (Service Account) (GOOGLE_DRIVE):  Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI):  Name (name): text) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM):  Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL):  Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS):  Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Intercom (INTERCOM):  Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER):  Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD):  Name (name): text)
1157
1158
1159        :param organization: (required)
1160        :type organization: str
1161        :param create_source_connector: (required)
1162        :type create_source_connector: List[CreateSourceConnector]
1163        :param _request_timeout: timeout setting for this request. If one
1164                                 number provided, it will be total request
1165                                 timeout. It can also be a pair (tuple) of
1166                                 (connection, read) timeouts.
1167        :type _request_timeout: int, tuple(int, int), optional
1168        :param _request_auth: set to override the auth_settings for an a single
1169                              request; this effectively ignores the
1170                              authentication in the spec for a single request.
1171        :type _request_auth: dict, optional
1172        :param _content_type: force content-type for the request.
1173        :type _content_type: str, Optional
1174        :param _headers: set to override the headers for a single
1175                         request; this effectively ignores the headers
1176                         in the spec for a single request.
1177        :type _headers: dict, optional
1178        :param _host_index: set to override the host_index for a single
1179                            request; this effectively ignores the host_index
1180                            in the spec for a single request.
1181        :type _host_index: int, optional
1182        :return: Returns the result object.
1183        """ # noqa: E501
1184
1185        _param = self._create_source_connector_serialize(
1186            organization=organization,
1187            create_source_connector=create_source_connector,
1188            _request_auth=_request_auth,
1189            _content_type=_content_type,
1190            _headers=_headers,
1191            _host_index=_host_index
1192        )
1193
1194        _response_types_map: Dict[str, Optional[str]] = {
1195            '200': "CreateSourceConnectorResponse",
1196            '400': "GetPipelines400Response",
1197            '401': "GetPipelines400Response",
1198            '403': "GetPipelines400Response",
1199            '404': "GetPipelines400Response",
1200            '500': "GetPipelines400Response",
1201        }
1202        response_data = self.api_client.call_api(
1203            *_param,
1204            _request_timeout=_request_timeout
1205        )
1206        return response_data.response
1207
1208
1209    def _create_source_connector_serialize(
1210        self,
1211        organization,
1212        create_source_connector,
1213        _request_auth,
1214        _content_type,
1215        _headers,
1216        _host_index,
1217    ) -> RequestSerialized:
1218
1219        _host = None
1220
1221        _collection_formats: Dict[str, str] = {
1222            'CreateSourceConnector': '',
1223        }
1224
1225        _path_params: Dict[str, str] = {}
1226        _query_params: List[Tuple[str, str]] = []
1227        _header_params: Dict[str, Optional[str]] = _headers or {}
1228        _form_params: List[Tuple[str, str]] = []
1229        _files: Dict[
1230            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1231        ] = {}
1232        _body_params: Optional[bytes] = None
1233
1234        # process the path parameters
1235        if organization is not None:
1236            _path_params['organization'] = organization
1237        # process the query parameters
1238        # process the header parameters
1239        # process the form parameters
1240        # process the body parameter
1241        if create_source_connector is not None:
1242            _body_params = create_source_connector
1243
1244
1245        # set the HTTP header `Accept`
1246        if 'Accept' not in _header_params:
1247            _header_params['Accept'] = self.api_client.select_header_accept(
1248                [
1249                    'application/json'
1250                ]
1251            )
1252
1253        # set the HTTP header `Content-Type`
1254        if _content_type:
1255            _header_params['Content-Type'] = _content_type
1256        else:
1257            _default_content_type = (
1258                self.api_client.select_header_content_type(
1259                    [
1260                        'application/json'
1261                    ]
1262                )
1263            )
1264            if _default_content_type is not None:
1265                _header_params['Content-Type'] = _default_content_type
1266
1267        # authentication setting
1268        _auth_settings: List[str] = [
1269            'bearerAuth'
1270        ]
1271
1272        return self.api_client.param_serialize(
1273            method='POST',
1274            resource_path='/org/{organization}/connectors/sources',
1275            path_params=_path_params,
1276            query_params=_query_params,
1277            header_params=_header_params,
1278            body=_body_params,
1279            post_params=_form_params,
1280            files=_files,
1281            auth_settings=_auth_settings,
1282            collection_formats=_collection_formats,
1283            _host=_host,
1284            _request_auth=_request_auth
1285        )
1286
1287
1288
1289
1290    @validate_call
1291    def delete_ai_platform(
1292        self,
1293        organization: StrictStr,
1294        aiplatform_id: StrictStr,
1295        _request_timeout: Union[
1296            None,
1297            Annotated[StrictFloat, Field(gt=0)],
1298            Tuple[
1299                Annotated[StrictFloat, Field(gt=0)],
1300                Annotated[StrictFloat, Field(gt=0)]
1301            ]
1302        ] = None,
1303        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1304        _content_type: Optional[StrictStr] = None,
1305        _headers: Optional[Dict[StrictStr, Any]] = None,
1306        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1307    ) -> DeleteAIPlatformConnectorResponse:
1308        """Delete an AI platform connector
1309
1310
1311        :param organization: (required)
1312        :type organization: str
1313        :param aiplatform_id: (required)
1314        :type aiplatform_id: str
1315        :param _request_timeout: timeout setting for this request. If one
1316                                 number provided, it will be total request
1317                                 timeout. It can also be a pair (tuple) of
1318                                 (connection, read) timeouts.
1319        :type _request_timeout: int, tuple(int, int), optional
1320        :param _request_auth: set to override the auth_settings for an a single
1321                              request; this effectively ignores the
1322                              authentication in the spec for a single request.
1323        :type _request_auth: dict, optional
1324        :param _content_type: force content-type for the request.
1325        :type _content_type: str, Optional
1326        :param _headers: set to override the headers for a single
1327                         request; this effectively ignores the headers
1328                         in the spec for a single request.
1329        :type _headers: dict, optional
1330        :param _host_index: set to override the host_index for a single
1331                            request; this effectively ignores the host_index
1332                            in the spec for a single request.
1333        :type _host_index: int, optional
1334        :return: Returns the result object.
1335        """ # noqa: E501
1336
1337        _param = self._delete_ai_platform_serialize(
1338            organization=organization,
1339            aiplatform_id=aiplatform_id,
1340            _request_auth=_request_auth,
1341            _content_type=_content_type,
1342            _headers=_headers,
1343            _host_index=_host_index
1344        )
1345
1346        _response_types_map: Dict[str, Optional[str]] = {
1347            '200': "DeleteAIPlatformConnectorResponse",
1348            '400': "GetPipelines400Response",
1349            '401': "GetPipelines400Response",
1350            '403': "GetPipelines400Response",
1351            '404': "GetPipelines400Response",
1352            '500': "GetPipelines400Response",
1353        }
1354        response_data = self.api_client.call_api(
1355            *_param,
1356            _request_timeout=_request_timeout
1357        )
1358        response_data.read()
1359        return self.api_client.response_deserialize(
1360            response_data=response_data,
1361            response_types_map=_response_types_map,
1362        ).data
1363
1364
1365    @validate_call
1366    def delete_ai_platform_with_http_info(
1367        self,
1368        organization: StrictStr,
1369        aiplatform_id: StrictStr,
1370        _request_timeout: Union[
1371            None,
1372            Annotated[StrictFloat, Field(gt=0)],
1373            Tuple[
1374                Annotated[StrictFloat, Field(gt=0)],
1375                Annotated[StrictFloat, Field(gt=0)]
1376            ]
1377        ] = None,
1378        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1379        _content_type: Optional[StrictStr] = None,
1380        _headers: Optional[Dict[StrictStr, Any]] = None,
1381        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1382    ) -> ApiResponse[DeleteAIPlatformConnectorResponse]:
1383        """Delete an AI platform connector
1384
1385
1386        :param organization: (required)
1387        :type organization: str
1388        :param aiplatform_id: (required)
1389        :type aiplatform_id: str
1390        :param _request_timeout: timeout setting for this request. If one
1391                                 number provided, it will be total request
1392                                 timeout. It can also be a pair (tuple) of
1393                                 (connection, read) timeouts.
1394        :type _request_timeout: int, tuple(int, int), optional
1395        :param _request_auth: set to override the auth_settings for an a single
1396                              request; this effectively ignores the
1397                              authentication in the spec for a single request.
1398        :type _request_auth: dict, optional
1399        :param _content_type: force content-type for the request.
1400        :type _content_type: str, Optional
1401        :param _headers: set to override the headers for a single
1402                         request; this effectively ignores the headers
1403                         in the spec for a single request.
1404        :type _headers: dict, optional
1405        :param _host_index: set to override the host_index for a single
1406                            request; this effectively ignores the host_index
1407                            in the spec for a single request.
1408        :type _host_index: int, optional
1409        :return: Returns the result object.
1410        """ # noqa: E501
1411
1412        _param = self._delete_ai_platform_serialize(
1413            organization=organization,
1414            aiplatform_id=aiplatform_id,
1415            _request_auth=_request_auth,
1416            _content_type=_content_type,
1417            _headers=_headers,
1418            _host_index=_host_index
1419        )
1420
1421        _response_types_map: Dict[str, Optional[str]] = {
1422            '200': "DeleteAIPlatformConnectorResponse",
1423            '400': "GetPipelines400Response",
1424            '401': "GetPipelines400Response",
1425            '403': "GetPipelines400Response",
1426            '404': "GetPipelines400Response",
1427            '500': "GetPipelines400Response",
1428        }
1429        response_data = self.api_client.call_api(
1430            *_param,
1431            _request_timeout=_request_timeout
1432        )
1433        response_data.read()
1434        return self.api_client.response_deserialize(
1435            response_data=response_data,
1436            response_types_map=_response_types_map,
1437        )
1438
1439
1440    @validate_call
1441    def delete_ai_platform_without_preload_content(
1442        self,
1443        organization: StrictStr,
1444        aiplatform_id: StrictStr,
1445        _request_timeout: Union[
1446            None,
1447            Annotated[StrictFloat, Field(gt=0)],
1448            Tuple[
1449                Annotated[StrictFloat, Field(gt=0)],
1450                Annotated[StrictFloat, Field(gt=0)]
1451            ]
1452        ] = None,
1453        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1454        _content_type: Optional[StrictStr] = None,
1455        _headers: Optional[Dict[StrictStr, Any]] = None,
1456        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1457    ) -> RESTResponseType:
1458        """Delete an AI platform connector
1459
1460
1461        :param organization: (required)
1462        :type organization: str
1463        :param aiplatform_id: (required)
1464        :type aiplatform_id: str
1465        :param _request_timeout: timeout setting for this request. If one
1466                                 number provided, it will be total request
1467                                 timeout. It can also be a pair (tuple) of
1468                                 (connection, read) timeouts.
1469        :type _request_timeout: int, tuple(int, int), optional
1470        :param _request_auth: set to override the auth_settings for an a single
1471                              request; this effectively ignores the
1472                              authentication in the spec for a single request.
1473        :type _request_auth: dict, optional
1474        :param _content_type: force content-type for the request.
1475        :type _content_type: str, Optional
1476        :param _headers: set to override the headers for a single
1477                         request; this effectively ignores the headers
1478                         in the spec for a single request.
1479        :type _headers: dict, optional
1480        :param _host_index: set to override the host_index for a single
1481                            request; this effectively ignores the host_index
1482                            in the spec for a single request.
1483        :type _host_index: int, optional
1484        :return: Returns the result object.
1485        """ # noqa: E501
1486
1487        _param = self._delete_ai_platform_serialize(
1488            organization=organization,
1489            aiplatform_id=aiplatform_id,
1490            _request_auth=_request_auth,
1491            _content_type=_content_type,
1492            _headers=_headers,
1493            _host_index=_host_index
1494        )
1495
1496        _response_types_map: Dict[str, Optional[str]] = {
1497            '200': "DeleteAIPlatformConnectorResponse",
1498            '400': "GetPipelines400Response",
1499            '401': "GetPipelines400Response",
1500            '403': "GetPipelines400Response",
1501            '404': "GetPipelines400Response",
1502            '500': "GetPipelines400Response",
1503        }
1504        response_data = self.api_client.call_api(
1505            *_param,
1506            _request_timeout=_request_timeout
1507        )
1508        return response_data.response
1509
1510
1511    def _delete_ai_platform_serialize(
1512        self,
1513        organization,
1514        aiplatform_id,
1515        _request_auth,
1516        _content_type,
1517        _headers,
1518        _host_index,
1519    ) -> RequestSerialized:
1520
1521        _host = None
1522
1523        _collection_formats: Dict[str, str] = {
1524        }
1525
1526        _path_params: Dict[str, str] = {}
1527        _query_params: List[Tuple[str, str]] = []
1528        _header_params: Dict[str, Optional[str]] = _headers or {}
1529        _form_params: List[Tuple[str, str]] = []
1530        _files: Dict[
1531            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1532        ] = {}
1533        _body_params: Optional[bytes] = None
1534
1535        # process the path parameters
1536        if organization is not None:
1537            _path_params['organization'] = organization
1538        if aiplatform_id is not None:
1539            _path_params['aiplatformId'] = aiplatform_id
1540        # process the query parameters
1541        # process the header parameters
1542        # process the form parameters
1543        # process the body parameter
1544
1545
1546        # set the HTTP header `Accept`
1547        if 'Accept' not in _header_params:
1548            _header_params['Accept'] = self.api_client.select_header_accept(
1549                [
1550                    'application/json'
1551                ]
1552            )
1553
1554
1555        # authentication setting
1556        _auth_settings: List[str] = [
1557            'bearerAuth'
1558        ]
1559
1560        return self.api_client.param_serialize(
1561            method='DELETE',
1562            resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}',
1563            path_params=_path_params,
1564            query_params=_query_params,
1565            header_params=_header_params,
1566            body=_body_params,
1567            post_params=_form_params,
1568            files=_files,
1569            auth_settings=_auth_settings,
1570            collection_formats=_collection_formats,
1571            _host=_host,
1572            _request_auth=_request_auth
1573        )
1574
1575
1576
1577
1578    @validate_call
1579    def delete_destination_connector(
1580        self,
1581        organization: StrictStr,
1582        destination_connector_id: StrictStr,
1583        _request_timeout: Union[
1584            None,
1585            Annotated[StrictFloat, Field(gt=0)],
1586            Tuple[
1587                Annotated[StrictFloat, Field(gt=0)],
1588                Annotated[StrictFloat, Field(gt=0)]
1589            ]
1590        ] = None,
1591        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1592        _content_type: Optional[StrictStr] = None,
1593        _headers: Optional[Dict[StrictStr, Any]] = None,
1594        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1595    ) -> DeleteDestinationConnectorResponse:
1596        """Delete a destination connector
1597
1598
1599        :param organization: (required)
1600        :type organization: str
1601        :param destination_connector_id: (required)
1602        :type destination_connector_id: str
1603        :param _request_timeout: timeout setting for this request. If one
1604                                 number provided, it will be total request
1605                                 timeout. It can also be a pair (tuple) of
1606                                 (connection, read) timeouts.
1607        :type _request_timeout: int, tuple(int, int), optional
1608        :param _request_auth: set to override the auth_settings for an a single
1609                              request; this effectively ignores the
1610                              authentication in the spec for a single request.
1611        :type _request_auth: dict, optional
1612        :param _content_type: force content-type for the request.
1613        :type _content_type: str, Optional
1614        :param _headers: set to override the headers for a single
1615                         request; this effectively ignores the headers
1616                         in the spec for a single request.
1617        :type _headers: dict, optional
1618        :param _host_index: set to override the host_index for a single
1619                            request; this effectively ignores the host_index
1620                            in the spec for a single request.
1621        :type _host_index: int, optional
1622        :return: Returns the result object.
1623        """ # noqa: E501
1624
1625        _param = self._delete_destination_connector_serialize(
1626            organization=organization,
1627            destination_connector_id=destination_connector_id,
1628            _request_auth=_request_auth,
1629            _content_type=_content_type,
1630            _headers=_headers,
1631            _host_index=_host_index
1632        )
1633
1634        _response_types_map: Dict[str, Optional[str]] = {
1635            '200': "DeleteDestinationConnectorResponse",
1636            '400': "GetPipelines400Response",
1637            '401': "GetPipelines400Response",
1638            '403': "GetPipelines400Response",
1639            '404': "GetPipelines400Response",
1640            '500': "GetPipelines400Response",
1641        }
1642        response_data = self.api_client.call_api(
1643            *_param,
1644            _request_timeout=_request_timeout
1645        )
1646        response_data.read()
1647        return self.api_client.response_deserialize(
1648            response_data=response_data,
1649            response_types_map=_response_types_map,
1650        ).data
1651
1652
1653    @validate_call
1654    def delete_destination_connector_with_http_info(
1655        self,
1656        organization: StrictStr,
1657        destination_connector_id: StrictStr,
1658        _request_timeout: Union[
1659            None,
1660            Annotated[StrictFloat, Field(gt=0)],
1661            Tuple[
1662                Annotated[StrictFloat, Field(gt=0)],
1663                Annotated[StrictFloat, Field(gt=0)]
1664            ]
1665        ] = None,
1666        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1667        _content_type: Optional[StrictStr] = None,
1668        _headers: Optional[Dict[StrictStr, Any]] = None,
1669        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1670    ) -> ApiResponse[DeleteDestinationConnectorResponse]:
1671        """Delete a destination connector
1672
1673
1674        :param organization: (required)
1675        :type organization: str
1676        :param destination_connector_id: (required)
1677        :type destination_connector_id: str
1678        :param _request_timeout: timeout setting for this request. If one
1679                                 number provided, it will be total request
1680                                 timeout. It can also be a pair (tuple) of
1681                                 (connection, read) timeouts.
1682        :type _request_timeout: int, tuple(int, int), optional
1683        :param _request_auth: set to override the auth_settings for an a single
1684                              request; this effectively ignores the
1685                              authentication in the spec for a single request.
1686        :type _request_auth: dict, optional
1687        :param _content_type: force content-type for the request.
1688        :type _content_type: str, Optional
1689        :param _headers: set to override the headers for a single
1690                         request; this effectively ignores the headers
1691                         in the spec for a single request.
1692        :type _headers: dict, optional
1693        :param _host_index: set to override the host_index for a single
1694                            request; this effectively ignores the host_index
1695                            in the spec for a single request.
1696        :type _host_index: int, optional
1697        :return: Returns the result object.
1698        """ # noqa: E501
1699
1700        _param = self._delete_destination_connector_serialize(
1701            organization=organization,
1702            destination_connector_id=destination_connector_id,
1703            _request_auth=_request_auth,
1704            _content_type=_content_type,
1705            _headers=_headers,
1706            _host_index=_host_index
1707        )
1708
1709        _response_types_map: Dict[str, Optional[str]] = {
1710            '200': "DeleteDestinationConnectorResponse",
1711            '400': "GetPipelines400Response",
1712            '401': "GetPipelines400Response",
1713            '403': "GetPipelines400Response",
1714            '404': "GetPipelines400Response",
1715            '500': "GetPipelines400Response",
1716        }
1717        response_data = self.api_client.call_api(
1718            *_param,
1719            _request_timeout=_request_timeout
1720        )
1721        response_data.read()
1722        return self.api_client.response_deserialize(
1723            response_data=response_data,
1724            response_types_map=_response_types_map,
1725        )
1726
1727
1728    @validate_call
1729    def delete_destination_connector_without_preload_content(
1730        self,
1731        organization: StrictStr,
1732        destination_connector_id: StrictStr,
1733        _request_timeout: Union[
1734            None,
1735            Annotated[StrictFloat, Field(gt=0)],
1736            Tuple[
1737                Annotated[StrictFloat, Field(gt=0)],
1738                Annotated[StrictFloat, Field(gt=0)]
1739            ]
1740        ] = None,
1741        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1742        _content_type: Optional[StrictStr] = None,
1743        _headers: Optional[Dict[StrictStr, Any]] = None,
1744        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1745    ) -> RESTResponseType:
1746        """Delete a destination connector
1747
1748
1749        :param organization: (required)
1750        :type organization: str
1751        :param destination_connector_id: (required)
1752        :type destination_connector_id: str
1753        :param _request_timeout: timeout setting for this request. If one
1754                                 number provided, it will be total request
1755                                 timeout. It can also be a pair (tuple) of
1756                                 (connection, read) timeouts.
1757        :type _request_timeout: int, tuple(int, int), optional
1758        :param _request_auth: set to override the auth_settings for an a single
1759                              request; this effectively ignores the
1760                              authentication in the spec for a single request.
1761        :type _request_auth: dict, optional
1762        :param _content_type: force content-type for the request.
1763        :type _content_type: str, Optional
1764        :param _headers: set to override the headers for a single
1765                         request; this effectively ignores the headers
1766                         in the spec for a single request.
1767        :type _headers: dict, optional
1768        :param _host_index: set to override the host_index for a single
1769                            request; this effectively ignores the host_index
1770                            in the spec for a single request.
1771        :type _host_index: int, optional
1772        :return: Returns the result object.
1773        """ # noqa: E501
1774
1775        _param = self._delete_destination_connector_serialize(
1776            organization=organization,
1777            destination_connector_id=destination_connector_id,
1778            _request_auth=_request_auth,
1779            _content_type=_content_type,
1780            _headers=_headers,
1781            _host_index=_host_index
1782        )
1783
1784        _response_types_map: Dict[str, Optional[str]] = {
1785            '200': "DeleteDestinationConnectorResponse",
1786            '400': "GetPipelines400Response",
1787            '401': "GetPipelines400Response",
1788            '403': "GetPipelines400Response",
1789            '404': "GetPipelines400Response",
1790            '500': "GetPipelines400Response",
1791        }
1792        response_data = self.api_client.call_api(
1793            *_param,
1794            _request_timeout=_request_timeout
1795        )
1796        return response_data.response
1797
1798
1799    def _delete_destination_connector_serialize(
1800        self,
1801        organization,
1802        destination_connector_id,
1803        _request_auth,
1804        _content_type,
1805        _headers,
1806        _host_index,
1807    ) -> RequestSerialized:
1808
1809        _host = None
1810
1811        _collection_formats: Dict[str, str] = {
1812        }
1813
1814        _path_params: Dict[str, str] = {}
1815        _query_params: List[Tuple[str, str]] = []
1816        _header_params: Dict[str, Optional[str]] = _headers or {}
1817        _form_params: List[Tuple[str, str]] = []
1818        _files: Dict[
1819            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1820        ] = {}
1821        _body_params: Optional[bytes] = None
1822
1823        # process the path parameters
1824        if organization is not None:
1825            _path_params['organization'] = organization
1826        if destination_connector_id is not None:
1827            _path_params['destinationConnectorId'] = destination_connector_id
1828        # process the query parameters
1829        # process the header parameters
1830        # process the form parameters
1831        # process the body parameter
1832
1833
1834        # set the HTTP header `Accept`
1835        if 'Accept' not in _header_params:
1836            _header_params['Accept'] = self.api_client.select_header_accept(
1837                [
1838                    'application/json'
1839                ]
1840            )
1841
1842
1843        # authentication setting
1844        _auth_settings: List[str] = [
1845            'bearerAuth'
1846        ]
1847
1848        return self.api_client.param_serialize(
1849            method='DELETE',
1850            resource_path='/org/{organization}/connectors/destinations/{destinationConnectorId}',
1851            path_params=_path_params,
1852            query_params=_query_params,
1853            header_params=_header_params,
1854            body=_body_params,
1855            post_params=_form_params,
1856            files=_files,
1857            auth_settings=_auth_settings,
1858            collection_formats=_collection_formats,
1859            _host=_host,
1860            _request_auth=_request_auth
1861        )
1862
1863
1864
1865
1866    @validate_call
1867    def delete_source_connector(
1868        self,
1869        organization: StrictStr,
1870        source_connector_id: StrictStr,
1871        _request_timeout: Union[
1872            None,
1873            Annotated[StrictFloat, Field(gt=0)],
1874            Tuple[
1875                Annotated[StrictFloat, Field(gt=0)],
1876                Annotated[StrictFloat, Field(gt=0)]
1877            ]
1878        ] = None,
1879        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1880        _content_type: Optional[StrictStr] = None,
1881        _headers: Optional[Dict[StrictStr, Any]] = None,
1882        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1883    ) -> DeleteSourceConnectorResponse:
1884        """Delete a source connector
1885
1886
1887        :param organization: (required)
1888        :type organization: str
1889        :param source_connector_id: (required)
1890        :type source_connector_id: str
1891        :param _request_timeout: timeout setting for this request. If one
1892                                 number provided, it will be total request
1893                                 timeout. It can also be a pair (tuple) of
1894                                 (connection, read) timeouts.
1895        :type _request_timeout: int, tuple(int, int), optional
1896        :param _request_auth: set to override the auth_settings for an a single
1897                              request; this effectively ignores the
1898                              authentication in the spec for a single request.
1899        :type _request_auth: dict, optional
1900        :param _content_type: force content-type for the request.
1901        :type _content_type: str, Optional
1902        :param _headers: set to override the headers for a single
1903                         request; this effectively ignores the headers
1904                         in the spec for a single request.
1905        :type _headers: dict, optional
1906        :param _host_index: set to override the host_index for a single
1907                            request; this effectively ignores the host_index
1908                            in the spec for a single request.
1909        :type _host_index: int, optional
1910        :return: Returns the result object.
1911        """ # noqa: E501
1912
1913        _param = self._delete_source_connector_serialize(
1914            organization=organization,
1915            source_connector_id=source_connector_id,
1916            _request_auth=_request_auth,
1917            _content_type=_content_type,
1918            _headers=_headers,
1919            _host_index=_host_index
1920        )
1921
1922        _response_types_map: Dict[str, Optional[str]] = {
1923            '200': "DeleteSourceConnectorResponse",
1924            '400': "GetPipelines400Response",
1925            '401': "GetPipelines400Response",
1926            '403': "GetPipelines400Response",
1927            '404': "GetPipelines400Response",
1928            '500': "GetPipelines400Response",
1929        }
1930        response_data = self.api_client.call_api(
1931            *_param,
1932            _request_timeout=_request_timeout
1933        )
1934        response_data.read()
1935        return self.api_client.response_deserialize(
1936            response_data=response_data,
1937            response_types_map=_response_types_map,
1938        ).data
1939
1940
1941    @validate_call
1942    def delete_source_connector_with_http_info(
1943        self,
1944        organization: StrictStr,
1945        source_connector_id: StrictStr,
1946        _request_timeout: Union[
1947            None,
1948            Annotated[StrictFloat, Field(gt=0)],
1949            Tuple[
1950                Annotated[StrictFloat, Field(gt=0)],
1951                Annotated[StrictFloat, Field(gt=0)]
1952            ]
1953        ] = None,
1954        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1955        _content_type: Optional[StrictStr] = None,
1956        _headers: Optional[Dict[StrictStr, Any]] = None,
1957        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1958    ) -> ApiResponse[DeleteSourceConnectorResponse]:
1959        """Delete a source connector
1960
1961
1962        :param organization: (required)
1963        :type organization: str
1964        :param source_connector_id: (required)
1965        :type source_connector_id: str
1966        :param _request_timeout: timeout setting for this request. If one
1967                                 number provided, it will be total request
1968                                 timeout. It can also be a pair (tuple) of
1969                                 (connection, read) timeouts.
1970        :type _request_timeout: int, tuple(int, int), optional
1971        :param _request_auth: set to override the auth_settings for an a single
1972                              request; this effectively ignores the
1973                              authentication in the spec for a single request.
1974        :type _request_auth: dict, optional
1975        :param _content_type: force content-type for the request.
1976        :type _content_type: str, Optional
1977        :param _headers: set to override the headers for a single
1978                         request; this effectively ignores the headers
1979                         in the spec for a single request.
1980        :type _headers: dict, optional
1981        :param _host_index: set to override the host_index for a single
1982                            request; this effectively ignores the host_index
1983                            in the spec for a single request.
1984        :type _host_index: int, optional
1985        :return: Returns the result object.
1986        """ # noqa: E501
1987
1988        _param = self._delete_source_connector_serialize(
1989            organization=organization,
1990            source_connector_id=source_connector_id,
1991            _request_auth=_request_auth,
1992            _content_type=_content_type,
1993            _headers=_headers,
1994            _host_index=_host_index
1995        )
1996
1997        _response_types_map: Dict[str, Optional[str]] = {
1998            '200': "DeleteSourceConnectorResponse",
1999            '400': "GetPipelines400Response",
2000            '401': "GetPipelines400Response",
2001            '403': "GetPipelines400Response",
2002            '404': "GetPipelines400Response",
2003            '500': "GetPipelines400Response",
2004        }
2005        response_data = self.api_client.call_api(
2006            *_param,
2007            _request_timeout=_request_timeout
2008        )
2009        response_data.read()
2010        return self.api_client.response_deserialize(
2011            response_data=response_data,
2012            response_types_map=_response_types_map,
2013        )
2014
2015
2016    @validate_call
2017    def delete_source_connector_without_preload_content(
2018        self,
2019        organization: StrictStr,
2020        source_connector_id: StrictStr,
2021        _request_timeout: Union[
2022            None,
2023            Annotated[StrictFloat, Field(gt=0)],
2024            Tuple[
2025                Annotated[StrictFloat, Field(gt=0)],
2026                Annotated[StrictFloat, Field(gt=0)]
2027            ]
2028        ] = None,
2029        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2030        _content_type: Optional[StrictStr] = None,
2031        _headers: Optional[Dict[StrictStr, Any]] = None,
2032        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2033    ) -> RESTResponseType:
2034        """Delete a source connector
2035
2036
2037        :param organization: (required)
2038        :type organization: str
2039        :param source_connector_id: (required)
2040        :type source_connector_id: str
2041        :param _request_timeout: timeout setting for this request. If one
2042                                 number provided, it will be total request
2043                                 timeout. It can also be a pair (tuple) of
2044                                 (connection, read) timeouts.
2045        :type _request_timeout: int, tuple(int, int), optional
2046        :param _request_auth: set to override the auth_settings for an a single
2047                              request; this effectively ignores the
2048                              authentication in the spec for a single request.
2049        :type _request_auth: dict, optional
2050        :param _content_type: force content-type for the request.
2051        :type _content_type: str, Optional
2052        :param _headers: set to override the headers for a single
2053                         request; this effectively ignores the headers
2054                         in the spec for a single request.
2055        :type _headers: dict, optional
2056        :param _host_index: set to override the host_index for a single
2057                            request; this effectively ignores the host_index
2058                            in the spec for a single request.
2059        :type _host_index: int, optional
2060        :return: Returns the result object.
2061        """ # noqa: E501
2062
2063        _param = self._delete_source_connector_serialize(
2064            organization=organization,
2065            source_connector_id=source_connector_id,
2066            _request_auth=_request_auth,
2067            _content_type=_content_type,
2068            _headers=_headers,
2069            _host_index=_host_index
2070        )
2071
2072        _response_types_map: Dict[str, Optional[str]] = {
2073            '200': "DeleteSourceConnectorResponse",
2074            '400': "GetPipelines400Response",
2075            '401': "GetPipelines400Response",
2076            '403': "GetPipelines400Response",
2077            '404': "GetPipelines400Response",
2078            '500': "GetPipelines400Response",
2079        }
2080        response_data = self.api_client.call_api(
2081            *_param,
2082            _request_timeout=_request_timeout
2083        )
2084        return response_data.response
2085
2086
2087    def _delete_source_connector_serialize(
2088        self,
2089        organization,
2090        source_connector_id,
2091        _request_auth,
2092        _content_type,
2093        _headers,
2094        _host_index,
2095    ) -> RequestSerialized:
2096
2097        _host = None
2098
2099        _collection_formats: Dict[str, str] = {
2100        }
2101
2102        _path_params: Dict[str, str] = {}
2103        _query_params: List[Tuple[str, str]] = []
2104        _header_params: Dict[str, Optional[str]] = _headers or {}
2105        _form_params: List[Tuple[str, str]] = []
2106        _files: Dict[
2107            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2108        ] = {}
2109        _body_params: Optional[bytes] = None
2110
2111        # process the path parameters
2112        if organization is not None:
2113            _path_params['organization'] = organization
2114        if source_connector_id is not None:
2115            _path_params['sourceConnectorId'] = source_connector_id
2116        # process the query parameters
2117        # process the header parameters
2118        # process the form parameters
2119        # process the body parameter
2120
2121
2122        # set the HTTP header `Accept`
2123        if 'Accept' not in _header_params:
2124            _header_params['Accept'] = self.api_client.select_header_accept(
2125                [
2126                    'application/json'
2127                ]
2128            )
2129
2130
2131        # authentication setting
2132        _auth_settings: List[str] = [
2133            'bearerAuth'
2134        ]
2135
2136        return self.api_client.param_serialize(
2137            method='DELETE',
2138            resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}',
2139            path_params=_path_params,
2140            query_params=_query_params,
2141            header_params=_header_params,
2142            body=_body_params,
2143            post_params=_form_params,
2144            files=_files,
2145            auth_settings=_auth_settings,
2146            collection_formats=_collection_formats,
2147            _host=_host,
2148            _request_auth=_request_auth
2149        )
2150
2151
2152
2153
2154    @validate_call
2155    def delete_user_from_source_connector(
2156        self,
2157        organization: StrictStr,
2158        source_connector_id: StrictStr,
2159        remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest,
2160        _request_timeout: Union[
2161            None,
2162            Annotated[StrictFloat, Field(gt=0)],
2163            Tuple[
2164                Annotated[StrictFloat, Field(gt=0)],
2165                Annotated[StrictFloat, Field(gt=0)]
2166            ]
2167        ] = None,
2168        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2169        _content_type: Optional[StrictStr] = None,
2170        _headers: Optional[Dict[StrictStr, Any]] = None,
2171        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2172    ) -> RemoveUserFromSourceConnectorResponse:
2173        """Delete a source connector user
2174
2175
2176        :param organization: (required)
2177        :type organization: str
2178        :param source_connector_id: (required)
2179        :type source_connector_id: str
2180        :param remove_user_from_source_connector_request: (required)
2181        :type remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest
2182        :param _request_timeout: timeout setting for this request. If one
2183                                 number provided, it will be total request
2184                                 timeout. It can also be a pair (tuple) of
2185                                 (connection, read) timeouts.
2186        :type _request_timeout: int, tuple(int, int), optional
2187        :param _request_auth: set to override the auth_settings for an a single
2188                              request; this effectively ignores the
2189                              authentication in the spec for a single request.
2190        :type _request_auth: dict, optional
2191        :param _content_type: force content-type for the request.
2192        :type _content_type: str, Optional
2193        :param _headers: set to override the headers for a single
2194                         request; this effectively ignores the headers
2195                         in the spec for a single request.
2196        :type _headers: dict, optional
2197        :param _host_index: set to override the host_index for a single
2198                            request; this effectively ignores the host_index
2199                            in the spec for a single request.
2200        :type _host_index: int, optional
2201        :return: Returns the result object.
2202        """ # noqa: E501
2203
2204        _param = self._delete_user_from_source_connector_serialize(
2205            organization=organization,
2206            source_connector_id=source_connector_id,
2207            remove_user_from_source_connector_request=remove_user_from_source_connector_request,
2208            _request_auth=_request_auth,
2209            _content_type=_content_type,
2210            _headers=_headers,
2211            _host_index=_host_index
2212        )
2213
2214        _response_types_map: Dict[str, Optional[str]] = {
2215            '200': "RemoveUserFromSourceConnectorResponse",
2216            '400': "GetPipelines400Response",
2217            '401': "GetPipelines400Response",
2218            '403': "GetPipelines400Response",
2219            '404': "GetPipelines400Response",
2220            '500': "GetPipelines400Response",
2221        }
2222        response_data = self.api_client.call_api(
2223            *_param,
2224            _request_timeout=_request_timeout
2225        )
2226        response_data.read()
2227        return self.api_client.response_deserialize(
2228            response_data=response_data,
2229            response_types_map=_response_types_map,
2230        ).data
2231
2232
2233    @validate_call
2234    def delete_user_from_source_connector_with_http_info(
2235        self,
2236        organization: StrictStr,
2237        source_connector_id: StrictStr,
2238        remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest,
2239        _request_timeout: Union[
2240            None,
2241            Annotated[StrictFloat, Field(gt=0)],
2242            Tuple[
2243                Annotated[StrictFloat, Field(gt=0)],
2244                Annotated[StrictFloat, Field(gt=0)]
2245            ]
2246        ] = None,
2247        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2248        _content_type: Optional[StrictStr] = None,
2249        _headers: Optional[Dict[StrictStr, Any]] = None,
2250        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2251    ) -> ApiResponse[RemoveUserFromSourceConnectorResponse]:
2252        """Delete a source connector user
2253
2254
2255        :param organization: (required)
2256        :type organization: str
2257        :param source_connector_id: (required)
2258        :type source_connector_id: str
2259        :param remove_user_from_source_connector_request: (required)
2260        :type remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest
2261        :param _request_timeout: timeout setting for this request. If one
2262                                 number provided, it will be total request
2263                                 timeout. It can also be a pair (tuple) of
2264                                 (connection, read) timeouts.
2265        :type _request_timeout: int, tuple(int, int), optional
2266        :param _request_auth: set to override the auth_settings for an a single
2267                              request; this effectively ignores the
2268                              authentication in the spec for a single request.
2269        :type _request_auth: dict, optional
2270        :param _content_type: force content-type for the request.
2271        :type _content_type: str, Optional
2272        :param _headers: set to override the headers for a single
2273                         request; this effectively ignores the headers
2274                         in the spec for a single request.
2275        :type _headers: dict, optional
2276        :param _host_index: set to override the host_index for a single
2277                            request; this effectively ignores the host_index
2278                            in the spec for a single request.
2279        :type _host_index: int, optional
2280        :return: Returns the result object.
2281        """ # noqa: E501
2282
2283        _param = self._delete_user_from_source_connector_serialize(
2284            organization=organization,
2285            source_connector_id=source_connector_id,
2286            remove_user_from_source_connector_request=remove_user_from_source_connector_request,
2287            _request_auth=_request_auth,
2288            _content_type=_content_type,
2289            _headers=_headers,
2290            _host_index=_host_index
2291        )
2292
2293        _response_types_map: Dict[str, Optional[str]] = {
2294            '200': "RemoveUserFromSourceConnectorResponse",
2295            '400': "GetPipelines400Response",
2296            '401': "GetPipelines400Response",
2297            '403': "GetPipelines400Response",
2298            '404': "GetPipelines400Response",
2299            '500': "GetPipelines400Response",
2300        }
2301        response_data = self.api_client.call_api(
2302            *_param,
2303            _request_timeout=_request_timeout
2304        )
2305        response_data.read()
2306        return self.api_client.response_deserialize(
2307            response_data=response_data,
2308            response_types_map=_response_types_map,
2309        )
2310
2311
2312    @validate_call
2313    def delete_user_from_source_connector_without_preload_content(
2314        self,
2315        organization: StrictStr,
2316        source_connector_id: StrictStr,
2317        remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest,
2318        _request_timeout: Union[
2319            None,
2320            Annotated[StrictFloat, Field(gt=0)],
2321            Tuple[
2322                Annotated[StrictFloat, Field(gt=0)],
2323                Annotated[StrictFloat, Field(gt=0)]
2324            ]
2325        ] = None,
2326        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2327        _content_type: Optional[StrictStr] = None,
2328        _headers: Optional[Dict[StrictStr, Any]] = None,
2329        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2330    ) -> RESTResponseType:
2331        """Delete a source connector user
2332
2333
2334        :param organization: (required)
2335        :type organization: str
2336        :param source_connector_id: (required)
2337        :type source_connector_id: str
2338        :param remove_user_from_source_connector_request: (required)
2339        :type remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest
2340        :param _request_timeout: timeout setting for this request. If one
2341                                 number provided, it will be total request
2342                                 timeout. It can also be a pair (tuple) of
2343                                 (connection, read) timeouts.
2344        :type _request_timeout: int, tuple(int, int), optional
2345        :param _request_auth: set to override the auth_settings for an a single
2346                              request; this effectively ignores the
2347                              authentication in the spec for a single request.
2348        :type _request_auth: dict, optional
2349        :param _content_type: force content-type for the request.
2350        :type _content_type: str, Optional
2351        :param _headers: set to override the headers for a single
2352                         request; this effectively ignores the headers
2353                         in the spec for a single request.
2354        :type _headers: dict, optional
2355        :param _host_index: set to override the host_index for a single
2356                            request; this effectively ignores the host_index
2357                            in the spec for a single request.
2358        :type _host_index: int, optional
2359        :return: Returns the result object.
2360        """ # noqa: E501
2361
2362        _param = self._delete_user_from_source_connector_serialize(
2363            organization=organization,
2364            source_connector_id=source_connector_id,
2365            remove_user_from_source_connector_request=remove_user_from_source_connector_request,
2366            _request_auth=_request_auth,
2367            _content_type=_content_type,
2368            _headers=_headers,
2369            _host_index=_host_index
2370        )
2371
2372        _response_types_map: Dict[str, Optional[str]] = {
2373            '200': "RemoveUserFromSourceConnectorResponse",
2374            '400': "GetPipelines400Response",
2375            '401': "GetPipelines400Response",
2376            '403': "GetPipelines400Response",
2377            '404': "GetPipelines400Response",
2378            '500': "GetPipelines400Response",
2379        }
2380        response_data = self.api_client.call_api(
2381            *_param,
2382            _request_timeout=_request_timeout
2383        )
2384        return response_data.response
2385
2386
2387    def _delete_user_from_source_connector_serialize(
2388        self,
2389        organization,
2390        source_connector_id,
2391        remove_user_from_source_connector_request,
2392        _request_auth,
2393        _content_type,
2394        _headers,
2395        _host_index,
2396    ) -> RequestSerialized:
2397
2398        _host = None
2399
2400        _collection_formats: Dict[str, str] = {
2401        }
2402
2403        _path_params: Dict[str, str] = {}
2404        _query_params: List[Tuple[str, str]] = []
2405        _header_params: Dict[str, Optional[str]] = _headers or {}
2406        _form_params: List[Tuple[str, str]] = []
2407        _files: Dict[
2408            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2409        ] = {}
2410        _body_params: Optional[bytes] = None
2411
2412        # process the path parameters
2413        if organization is not None:
2414            _path_params['organization'] = organization
2415        if source_connector_id is not None:
2416            _path_params['sourceConnectorId'] = source_connector_id
2417        # process the query parameters
2418        # process the header parameters
2419        # process the form parameters
2420        # process the body parameter
2421        if remove_user_from_source_connector_request is not None:
2422            _body_params = remove_user_from_source_connector_request
2423
2424
2425        # set the HTTP header `Accept`
2426        if 'Accept' not in _header_params:
2427            _header_params['Accept'] = self.api_client.select_header_accept(
2428                [
2429                    'application/json'
2430                ]
2431            )
2432
2433        # set the HTTP header `Content-Type`
2434        if _content_type:
2435            _header_params['Content-Type'] = _content_type
2436        else:
2437            _default_content_type = (
2438                self.api_client.select_header_content_type(
2439                    [
2440                        'application/json'
2441                    ]
2442                )
2443            )
2444            if _default_content_type is not None:
2445                _header_params['Content-Type'] = _default_content_type
2446
2447        # authentication setting
2448        _auth_settings: List[str] = [
2449            'bearerAuth'
2450        ]
2451
2452        return self.api_client.param_serialize(
2453            method='DELETE',
2454            resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}/users',
2455            path_params=_path_params,
2456            query_params=_query_params,
2457            header_params=_header_params,
2458            body=_body_params,
2459            post_params=_form_params,
2460            files=_files,
2461            auth_settings=_auth_settings,
2462            collection_formats=_collection_formats,
2463            _host=_host,
2464            _request_auth=_request_auth
2465        )
2466
2467
2468
2469
2470    @validate_call
2471    def get_ai_platform_connector(
2472        self,
2473        organization: StrictStr,
2474        aiplatform_id: StrictStr,
2475        _request_timeout: Union[
2476            None,
2477            Annotated[StrictFloat, Field(gt=0)],
2478            Tuple[
2479                Annotated[StrictFloat, Field(gt=0)],
2480                Annotated[StrictFloat, Field(gt=0)]
2481            ]
2482        ] = None,
2483        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2484        _content_type: Optional[StrictStr] = None,
2485        _headers: Optional[Dict[StrictStr, Any]] = None,
2486        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2487    ) -> AIPlatform:
2488        """Get an AI platform connector
2489
2490
2491        :param organization: (required)
2492        :type organization: str
2493        :param aiplatform_id: (required)
2494        :type aiplatform_id: str
2495        :param _request_timeout: timeout setting for this request. If one
2496                                 number provided, it will be total request
2497                                 timeout. It can also be a pair (tuple) of
2498                                 (connection, read) timeouts.
2499        :type _request_timeout: int, tuple(int, int), optional
2500        :param _request_auth: set to override the auth_settings for an a single
2501                              request; this effectively ignores the
2502                              authentication in the spec for a single request.
2503        :type _request_auth: dict, optional
2504        :param _content_type: force content-type for the request.
2505        :type _content_type: str, Optional
2506        :param _headers: set to override the headers for a single
2507                         request; this effectively ignores the headers
2508                         in the spec for a single request.
2509        :type _headers: dict, optional
2510        :param _host_index: set to override the host_index for a single
2511                            request; this effectively ignores the host_index
2512                            in the spec for a single request.
2513        :type _host_index: int, optional
2514        :return: Returns the result object.
2515        """ # noqa: E501
2516
2517        _param = self._get_ai_platform_connector_serialize(
2518            organization=organization,
2519            aiplatform_id=aiplatform_id,
2520            _request_auth=_request_auth,
2521            _content_type=_content_type,
2522            _headers=_headers,
2523            _host_index=_host_index
2524        )
2525
2526        _response_types_map: Dict[str, Optional[str]] = {
2527            '200': "AIPlatform",
2528            '400': "GetPipelines400Response",
2529            '401': "GetPipelines400Response",
2530            '403': "GetPipelines400Response",
2531            '404': "GetPipelines400Response",
2532            '500': "GetPipelines400Response",
2533        }
2534        response_data = self.api_client.call_api(
2535            *_param,
2536            _request_timeout=_request_timeout
2537        )
2538        response_data.read()
2539        return self.api_client.response_deserialize(
2540            response_data=response_data,
2541            response_types_map=_response_types_map,
2542        ).data
2543
2544
2545    @validate_call
2546    def get_ai_platform_connector_with_http_info(
2547        self,
2548        organization: StrictStr,
2549        aiplatform_id: StrictStr,
2550        _request_timeout: Union[
2551            None,
2552            Annotated[StrictFloat, Field(gt=0)],
2553            Tuple[
2554                Annotated[StrictFloat, Field(gt=0)],
2555                Annotated[StrictFloat, Field(gt=0)]
2556            ]
2557        ] = None,
2558        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2559        _content_type: Optional[StrictStr] = None,
2560        _headers: Optional[Dict[StrictStr, Any]] = None,
2561        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2562    ) -> ApiResponse[AIPlatform]:
2563        """Get an AI platform connector
2564
2565
2566        :param organization: (required)
2567        :type organization: str
2568        :param aiplatform_id: (required)
2569        :type aiplatform_id: str
2570        :param _request_timeout: timeout setting for this request. If one
2571                                 number provided, it will be total request
2572                                 timeout. It can also be a pair (tuple) of
2573                                 (connection, read) timeouts.
2574        :type _request_timeout: int, tuple(int, int), optional
2575        :param _request_auth: set to override the auth_settings for an a single
2576                              request; this effectively ignores the
2577                              authentication in the spec for a single request.
2578        :type _request_auth: dict, optional
2579        :param _content_type: force content-type for the request.
2580        :type _content_type: str, Optional
2581        :param _headers: set to override the headers for a single
2582                         request; this effectively ignores the headers
2583                         in the spec for a single request.
2584        :type _headers: dict, optional
2585        :param _host_index: set to override the host_index for a single
2586                            request; this effectively ignores the host_index
2587                            in the spec for a single request.
2588        :type _host_index: int, optional
2589        :return: Returns the result object.
2590        """ # noqa: E501
2591
2592        _param = self._get_ai_platform_connector_serialize(
2593            organization=organization,
2594            aiplatform_id=aiplatform_id,
2595            _request_auth=_request_auth,
2596            _content_type=_content_type,
2597            _headers=_headers,
2598            _host_index=_host_index
2599        )
2600
2601        _response_types_map: Dict[str, Optional[str]] = {
2602            '200': "AIPlatform",
2603            '400': "GetPipelines400Response",
2604            '401': "GetPipelines400Response",
2605            '403': "GetPipelines400Response",
2606            '404': "GetPipelines400Response",
2607            '500': "GetPipelines400Response",
2608        }
2609        response_data = self.api_client.call_api(
2610            *_param,
2611            _request_timeout=_request_timeout
2612        )
2613        response_data.read()
2614        return self.api_client.response_deserialize(
2615            response_data=response_data,
2616            response_types_map=_response_types_map,
2617        )
2618
2619
2620    @validate_call
2621    def get_ai_platform_connector_without_preload_content(
2622        self,
2623        organization: StrictStr,
2624        aiplatform_id: StrictStr,
2625        _request_timeout: Union[
2626            None,
2627            Annotated[StrictFloat, Field(gt=0)],
2628            Tuple[
2629                Annotated[StrictFloat, Field(gt=0)],
2630                Annotated[StrictFloat, Field(gt=0)]
2631            ]
2632        ] = None,
2633        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2634        _content_type: Optional[StrictStr] = None,
2635        _headers: Optional[Dict[StrictStr, Any]] = None,
2636        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2637    ) -> RESTResponseType:
2638        """Get an AI platform connector
2639
2640
2641        :param organization: (required)
2642        :type organization: str
2643        :param aiplatform_id: (required)
2644        :type aiplatform_id: str
2645        :param _request_timeout: timeout setting for this request. If one
2646                                 number provided, it will be total request
2647                                 timeout. It can also be a pair (tuple) of
2648                                 (connection, read) timeouts.
2649        :type _request_timeout: int, tuple(int, int), optional
2650        :param _request_auth: set to override the auth_settings for an a single
2651                              request; this effectively ignores the
2652                              authentication in the spec for a single request.
2653        :type _request_auth: dict, optional
2654        :param _content_type: force content-type for the request.
2655        :type _content_type: str, Optional
2656        :param _headers: set to override the headers for a single
2657                         request; this effectively ignores the headers
2658                         in the spec for a single request.
2659        :type _headers: dict, optional
2660        :param _host_index: set to override the host_index for a single
2661                            request; this effectively ignores the host_index
2662                            in the spec for a single request.
2663        :type _host_index: int, optional
2664        :return: Returns the result object.
2665        """ # noqa: E501
2666
2667        _param = self._get_ai_platform_connector_serialize(
2668            organization=organization,
2669            aiplatform_id=aiplatform_id,
2670            _request_auth=_request_auth,
2671            _content_type=_content_type,
2672            _headers=_headers,
2673            _host_index=_host_index
2674        )
2675
2676        _response_types_map: Dict[str, Optional[str]] = {
2677            '200': "AIPlatform",
2678            '400': "GetPipelines400Response",
2679            '401': "GetPipelines400Response",
2680            '403': "GetPipelines400Response",
2681            '404': "GetPipelines400Response",
2682            '500': "GetPipelines400Response",
2683        }
2684        response_data = self.api_client.call_api(
2685            *_param,
2686            _request_timeout=_request_timeout
2687        )
2688        return response_data.response
2689
2690
2691    def _get_ai_platform_connector_serialize(
2692        self,
2693        organization,
2694        aiplatform_id,
2695        _request_auth,
2696        _content_type,
2697        _headers,
2698        _host_index,
2699    ) -> RequestSerialized:
2700
2701        _host = None
2702
2703        _collection_formats: Dict[str, str] = {
2704        }
2705
2706        _path_params: Dict[str, str] = {}
2707        _query_params: List[Tuple[str, str]] = []
2708        _header_params: Dict[str, Optional[str]] = _headers or {}
2709        _form_params: List[Tuple[str, str]] = []
2710        _files: Dict[
2711            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2712        ] = {}
2713        _body_params: Optional[bytes] = None
2714
2715        # process the path parameters
2716        if organization is not None:
2717            _path_params['organization'] = organization
2718        if aiplatform_id is not None:
2719            _path_params['aiplatformId'] = aiplatform_id
2720        # process the query parameters
2721        # process the header parameters
2722        # process the form parameters
2723        # process the body parameter
2724
2725
2726        # set the HTTP header `Accept`
2727        if 'Accept' not in _header_params:
2728            _header_params['Accept'] = self.api_client.select_header_accept(
2729                [
2730                    'application/json'
2731                ]
2732            )
2733
2734
2735        # authentication setting
2736        _auth_settings: List[str] = [
2737            'bearerAuth'
2738        ]
2739
2740        return self.api_client.param_serialize(
2741            method='GET',
2742            resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}',
2743            path_params=_path_params,
2744            query_params=_query_params,
2745            header_params=_header_params,
2746            body=_body_params,
2747            post_params=_form_params,
2748            files=_files,
2749            auth_settings=_auth_settings,
2750            collection_formats=_collection_formats,
2751            _host=_host,
2752            _request_auth=_request_auth
2753        )
2754
2755
2756
2757
2758    @validate_call
2759    def get_ai_platform_connectors(
2760        self,
2761        organization: StrictStr,
2762        _request_timeout: Union[
2763            None,
2764            Annotated[StrictFloat, Field(gt=0)],
2765            Tuple[
2766                Annotated[StrictFloat, Field(gt=0)],
2767                Annotated[StrictFloat, Field(gt=0)]
2768            ]
2769        ] = None,
2770        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2771        _content_type: Optional[StrictStr] = None,
2772        _headers: Optional[Dict[StrictStr, Any]] = None,
2773        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2774    ) -> GetAIPlatformConnectors200Response:
2775        """Get all existing AI Platform connectors
2776
2777
2778        :param organization: (required)
2779        :type organization: str
2780        :param _request_timeout: timeout setting for this request. If one
2781                                 number provided, it will be total request
2782                                 timeout. It can also be a pair (tuple) of
2783                                 (connection, read) timeouts.
2784        :type _request_timeout: int, tuple(int, int), optional
2785        :param _request_auth: set to override the auth_settings for an a single
2786                              request; this effectively ignores the
2787                              authentication in the spec for a single request.
2788        :type _request_auth: dict, optional
2789        :param _content_type: force content-type for the request.
2790        :type _content_type: str, Optional
2791        :param _headers: set to override the headers for a single
2792                         request; this effectively ignores the headers
2793                         in the spec for a single request.
2794        :type _headers: dict, optional
2795        :param _host_index: set to override the host_index for a single
2796                            request; this effectively ignores the host_index
2797                            in the spec for a single request.
2798        :type _host_index: int, optional
2799        :return: Returns the result object.
2800        """ # noqa: E501
2801
2802        _param = self._get_ai_platform_connectors_serialize(
2803            organization=organization,
2804            _request_auth=_request_auth,
2805            _content_type=_content_type,
2806            _headers=_headers,
2807            _host_index=_host_index
2808        )
2809
2810        _response_types_map: Dict[str, Optional[str]] = {
2811            '200': "GetAIPlatformConnectors200Response",
2812            '400': "GetPipelines400Response",
2813            '401': "GetPipelines400Response",
2814            '403': "GetPipelines400Response",
2815            '404': "GetPipelines400Response",
2816            '500': "GetPipelines400Response",
2817        }
2818        response_data = self.api_client.call_api(
2819            *_param,
2820            _request_timeout=_request_timeout
2821        )
2822        response_data.read()
2823        return self.api_client.response_deserialize(
2824            response_data=response_data,
2825            response_types_map=_response_types_map,
2826        ).data
2827
2828
2829    @validate_call
2830    def get_ai_platform_connectors_with_http_info(
2831        self,
2832        organization: StrictStr,
2833        _request_timeout: Union[
2834            None,
2835            Annotated[StrictFloat, Field(gt=0)],
2836            Tuple[
2837                Annotated[StrictFloat, Field(gt=0)],
2838                Annotated[StrictFloat, Field(gt=0)]
2839            ]
2840        ] = None,
2841        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2842        _content_type: Optional[StrictStr] = None,
2843        _headers: Optional[Dict[StrictStr, Any]] = None,
2844        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2845    ) -> ApiResponse[GetAIPlatformConnectors200Response]:
2846        """Get all existing AI Platform connectors
2847
2848
2849        :param organization: (required)
2850        :type organization: str
2851        :param _request_timeout: timeout setting for this request. If one
2852                                 number provided, it will be total request
2853                                 timeout. It can also be a pair (tuple) of
2854                                 (connection, read) timeouts.
2855        :type _request_timeout: int, tuple(int, int), optional
2856        :param _request_auth: set to override the auth_settings for an a single
2857                              request; this effectively ignores the
2858                              authentication in the spec for a single request.
2859        :type _request_auth: dict, optional
2860        :param _content_type: force content-type for the request.
2861        :type _content_type: str, Optional
2862        :param _headers: set to override the headers for a single
2863                         request; this effectively ignores the headers
2864                         in the spec for a single request.
2865        :type _headers: dict, optional
2866        :param _host_index: set to override the host_index for a single
2867                            request; this effectively ignores the host_index
2868                            in the spec for a single request.
2869        :type _host_index: int, optional
2870        :return: Returns the result object.
2871        """ # noqa: E501
2872
2873        _param = self._get_ai_platform_connectors_serialize(
2874            organization=organization,
2875            _request_auth=_request_auth,
2876            _content_type=_content_type,
2877            _headers=_headers,
2878            _host_index=_host_index
2879        )
2880
2881        _response_types_map: Dict[str, Optional[str]] = {
2882            '200': "GetAIPlatformConnectors200Response",
2883            '400': "GetPipelines400Response",
2884            '401': "GetPipelines400Response",
2885            '403': "GetPipelines400Response",
2886            '404': "GetPipelines400Response",
2887            '500': "GetPipelines400Response",
2888        }
2889        response_data = self.api_client.call_api(
2890            *_param,
2891            _request_timeout=_request_timeout
2892        )
2893        response_data.read()
2894        return self.api_client.response_deserialize(
2895            response_data=response_data,
2896            response_types_map=_response_types_map,
2897        )
2898
2899
2900    @validate_call
2901    def get_ai_platform_connectors_without_preload_content(
2902        self,
2903        organization: StrictStr,
2904        _request_timeout: Union[
2905            None,
2906            Annotated[StrictFloat, Field(gt=0)],
2907            Tuple[
2908                Annotated[StrictFloat, Field(gt=0)],
2909                Annotated[StrictFloat, Field(gt=0)]
2910            ]
2911        ] = None,
2912        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2913        _content_type: Optional[StrictStr] = None,
2914        _headers: Optional[Dict[StrictStr, Any]] = None,
2915        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2916    ) -> RESTResponseType:
2917        """Get all existing AI Platform connectors
2918
2919
2920        :param organization: (required)
2921        :type organization: str
2922        :param _request_timeout: timeout setting for this request. If one
2923                                 number provided, it will be total request
2924                                 timeout. It can also be a pair (tuple) of
2925                                 (connection, read) timeouts.
2926        :type _request_timeout: int, tuple(int, int), optional
2927        :param _request_auth: set to override the auth_settings for an a single
2928                              request; this effectively ignores the
2929                              authentication in the spec for a single request.
2930        :type _request_auth: dict, optional
2931        :param _content_type: force content-type for the request.
2932        :type _content_type: str, Optional
2933        :param _headers: set to override the headers for a single
2934                         request; this effectively ignores the headers
2935                         in the spec for a single request.
2936        :type _headers: dict, optional
2937        :param _host_index: set to override the host_index for a single
2938                            request; this effectively ignores the host_index
2939                            in the spec for a single request.
2940        :type _host_index: int, optional
2941        :return: Returns the result object.
2942        """ # noqa: E501
2943
2944        _param = self._get_ai_platform_connectors_serialize(
2945            organization=organization,
2946            _request_auth=_request_auth,
2947            _content_type=_content_type,
2948            _headers=_headers,
2949            _host_index=_host_index
2950        )
2951
2952        _response_types_map: Dict[str, Optional[str]] = {
2953            '200': "GetAIPlatformConnectors200Response",
2954            '400': "GetPipelines400Response",
2955            '401': "GetPipelines400Response",
2956            '403': "GetPipelines400Response",
2957            '404': "GetPipelines400Response",
2958            '500': "GetPipelines400Response",
2959        }
2960        response_data = self.api_client.call_api(
2961            *_param,
2962            _request_timeout=_request_timeout
2963        )
2964        return response_data.response
2965
2966
2967    def _get_ai_platform_connectors_serialize(
2968        self,
2969        organization,
2970        _request_auth,
2971        _content_type,
2972        _headers,
2973        _host_index,
2974    ) -> RequestSerialized:
2975
2976        _host = None
2977
2978        _collection_formats: Dict[str, str] = {
2979        }
2980
2981        _path_params: Dict[str, str] = {}
2982        _query_params: List[Tuple[str, str]] = []
2983        _header_params: Dict[str, Optional[str]] = _headers or {}
2984        _form_params: List[Tuple[str, str]] = []
2985        _files: Dict[
2986            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2987        ] = {}
2988        _body_params: Optional[bytes] = None
2989
2990        # process the path parameters
2991        if organization is not None:
2992            _path_params['organization'] = organization
2993        # process the query parameters
2994        # process the header parameters
2995        # process the form parameters
2996        # process the body parameter
2997
2998
2999        # set the HTTP header `Accept`
3000        if 'Accept' not in _header_params:
3001            _header_params['Accept'] = self.api_client.select_header_accept(
3002                [
3003                    'application/json'
3004                ]
3005            )
3006
3007
3008        # authentication setting
3009        _auth_settings: List[str] = [
3010            'bearerAuth'
3011        ]
3012
3013        return self.api_client.param_serialize(
3014            method='GET',
3015            resource_path='/org/{organization}/connectors/aiplatforms',
3016            path_params=_path_params,
3017            query_params=_query_params,
3018            header_params=_header_params,
3019            body=_body_params,
3020            post_params=_form_params,
3021            files=_files,
3022            auth_settings=_auth_settings,
3023            collection_formats=_collection_formats,
3024            _host=_host,
3025            _request_auth=_request_auth
3026        )
3027
3028
3029
3030
3031    @validate_call
3032    def get_destination_connector(
3033        self,
3034        organization: StrictStr,
3035        destination_connector_id: StrictStr,
3036        _request_timeout: Union[
3037            None,
3038            Annotated[StrictFloat, Field(gt=0)],
3039            Tuple[
3040                Annotated[StrictFloat, Field(gt=0)],
3041                Annotated[StrictFloat, Field(gt=0)]
3042            ]
3043        ] = None,
3044        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3045        _content_type: Optional[StrictStr] = None,
3046        _headers: Optional[Dict[StrictStr, Any]] = None,
3047        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3048    ) -> DestinationConnector:
3049        """Get a destination connector
3050
3051
3052        :param organization: (required)
3053        :type organization: str
3054        :param destination_connector_id: (required)
3055        :type destination_connector_id: str
3056        :param _request_timeout: timeout setting for this request. If one
3057                                 number provided, it will be total request
3058                                 timeout. It can also be a pair (tuple) of
3059                                 (connection, read) timeouts.
3060        :type _request_timeout: int, tuple(int, int), optional
3061        :param _request_auth: set to override the auth_settings for an a single
3062                              request; this effectively ignores the
3063                              authentication in the spec for a single request.
3064        :type _request_auth: dict, optional
3065        :param _content_type: force content-type for the request.
3066        :type _content_type: str, Optional
3067        :param _headers: set to override the headers for a single
3068                         request; this effectively ignores the headers
3069                         in the spec for a single request.
3070        :type _headers: dict, optional
3071        :param _host_index: set to override the host_index for a single
3072                            request; this effectively ignores the host_index
3073                            in the spec for a single request.
3074        :type _host_index: int, optional
3075        :return: Returns the result object.
3076        """ # noqa: E501
3077
3078        _param = self._get_destination_connector_serialize(
3079            organization=organization,
3080            destination_connector_id=destination_connector_id,
3081            _request_auth=_request_auth,
3082            _content_type=_content_type,
3083            _headers=_headers,
3084            _host_index=_host_index
3085        )
3086
3087        _response_types_map: Dict[str, Optional[str]] = {
3088            '200': "DestinationConnector",
3089            '400': "GetPipelines400Response",
3090            '401': "GetPipelines400Response",
3091            '403': "GetPipelines400Response",
3092            '404': "GetPipelines400Response",
3093            '500': "GetPipelines400Response",
3094        }
3095        response_data = self.api_client.call_api(
3096            *_param,
3097            _request_timeout=_request_timeout
3098        )
3099        response_data.read()
3100        return self.api_client.response_deserialize(
3101            response_data=response_data,
3102            response_types_map=_response_types_map,
3103        ).data
3104
3105
3106    @validate_call
3107    def get_destination_connector_with_http_info(
3108        self,
3109        organization: StrictStr,
3110        destination_connector_id: StrictStr,
3111        _request_timeout: Union[
3112            None,
3113            Annotated[StrictFloat, Field(gt=0)],
3114            Tuple[
3115                Annotated[StrictFloat, Field(gt=0)],
3116                Annotated[StrictFloat, Field(gt=0)]
3117            ]
3118        ] = None,
3119        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3120        _content_type: Optional[StrictStr] = None,
3121        _headers: Optional[Dict[StrictStr, Any]] = None,
3122        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3123    ) -> ApiResponse[DestinationConnector]:
3124        """Get a destination connector
3125
3126
3127        :param organization: (required)
3128        :type organization: str
3129        :param destination_connector_id: (required)
3130        :type destination_connector_id: str
3131        :param _request_timeout: timeout setting for this request. If one
3132                                 number provided, it will be total request
3133                                 timeout. It can also be a pair (tuple) of
3134                                 (connection, read) timeouts.
3135        :type _request_timeout: int, tuple(int, int), optional
3136        :param _request_auth: set to override the auth_settings for an a single
3137                              request; this effectively ignores the
3138                              authentication in the spec for a single request.
3139        :type _request_auth: dict, optional
3140        :param _content_type: force content-type for the request.
3141        :type _content_type: str, Optional
3142        :param _headers: set to override the headers for a single
3143                         request; this effectively ignores the headers
3144                         in the spec for a single request.
3145        :type _headers: dict, optional
3146        :param _host_index: set to override the host_index for a single
3147                            request; this effectively ignores the host_index
3148                            in the spec for a single request.
3149        :type _host_index: int, optional
3150        :return: Returns the result object.
3151        """ # noqa: E501
3152
3153        _param = self._get_destination_connector_serialize(
3154            organization=organization,
3155            destination_connector_id=destination_connector_id,
3156            _request_auth=_request_auth,
3157            _content_type=_content_type,
3158            _headers=_headers,
3159            _host_index=_host_index
3160        )
3161
3162        _response_types_map: Dict[str, Optional[str]] = {
3163            '200': "DestinationConnector",
3164            '400': "GetPipelines400Response",
3165            '401': "GetPipelines400Response",
3166            '403': "GetPipelines400Response",
3167            '404': "GetPipelines400Response",
3168            '500': "GetPipelines400Response",
3169        }
3170        response_data = self.api_client.call_api(
3171            *_param,
3172            _request_timeout=_request_timeout
3173        )
3174        response_data.read()
3175        return self.api_client.response_deserialize(
3176            response_data=response_data,
3177            response_types_map=_response_types_map,
3178        )
3179
3180
3181    @validate_call
3182    def get_destination_connector_without_preload_content(
3183        self,
3184        organization: StrictStr,
3185        destination_connector_id: StrictStr,
3186        _request_timeout: Union[
3187            None,
3188            Annotated[StrictFloat, Field(gt=0)],
3189            Tuple[
3190                Annotated[StrictFloat, Field(gt=0)],
3191                Annotated[StrictFloat, Field(gt=0)]
3192            ]
3193        ] = None,
3194        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3195        _content_type: Optional[StrictStr] = None,
3196        _headers: Optional[Dict[StrictStr, Any]] = None,
3197        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3198    ) -> RESTResponseType:
3199        """Get a destination connector
3200
3201
3202        :param organization: (required)
3203        :type organization: str
3204        :param destination_connector_id: (required)
3205        :type destination_connector_id: str
3206        :param _request_timeout: timeout setting for this request. If one
3207                                 number provided, it will be total request
3208                                 timeout. It can also be a pair (tuple) of
3209                                 (connection, read) timeouts.
3210        :type _request_timeout: int, tuple(int, int), optional
3211        :param _request_auth: set to override the auth_settings for an a single
3212                              request; this effectively ignores the
3213                              authentication in the spec for a single request.
3214        :type _request_auth: dict, optional
3215        :param _content_type: force content-type for the request.
3216        :type _content_type: str, Optional
3217        :param _headers: set to override the headers for a single
3218                         request; this effectively ignores the headers
3219                         in the spec for a single request.
3220        :type _headers: dict, optional
3221        :param _host_index: set to override the host_index for a single
3222                            request; this effectively ignores the host_index
3223                            in the spec for a single request.
3224        :type _host_index: int, optional
3225        :return: Returns the result object.
3226        """ # noqa: E501
3227
3228        _param = self._get_destination_connector_serialize(
3229            organization=organization,
3230            destination_connector_id=destination_connector_id,
3231            _request_auth=_request_auth,
3232            _content_type=_content_type,
3233            _headers=_headers,
3234            _host_index=_host_index
3235        )
3236
3237        _response_types_map: Dict[str, Optional[str]] = {
3238            '200': "DestinationConnector",
3239            '400': "GetPipelines400Response",
3240            '401': "GetPipelines400Response",
3241            '403': "GetPipelines400Response",
3242            '404': "GetPipelines400Response",
3243            '500': "GetPipelines400Response",
3244        }
3245        response_data = self.api_client.call_api(
3246            *_param,
3247            _request_timeout=_request_timeout
3248        )
3249        return response_data.response
3250
3251
3252    def _get_destination_connector_serialize(
3253        self,
3254        organization,
3255        destination_connector_id,
3256        _request_auth,
3257        _content_type,
3258        _headers,
3259        _host_index,
3260    ) -> RequestSerialized:
3261
3262        _host = None
3263
3264        _collection_formats: Dict[str, str] = {
3265        }
3266
3267        _path_params: Dict[str, str] = {}
3268        _query_params: List[Tuple[str, str]] = []
3269        _header_params: Dict[str, Optional[str]] = _headers or {}
3270        _form_params: List[Tuple[str, str]] = []
3271        _files: Dict[
3272            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3273        ] = {}
3274        _body_params: Optional[bytes] = None
3275
3276        # process the path parameters
3277        if organization is not None:
3278            _path_params['organization'] = organization
3279        if destination_connector_id is not None:
3280            _path_params['destinationConnectorId'] = destination_connector_id
3281        # process the query parameters
3282        # process the header parameters
3283        # process the form parameters
3284        # process the body parameter
3285
3286
3287        # set the HTTP header `Accept`
3288        if 'Accept' not in _header_params:
3289            _header_params['Accept'] = self.api_client.select_header_accept(
3290                [
3291                    'application/json'
3292                ]
3293            )
3294
3295
3296        # authentication setting
3297        _auth_settings: List[str] = [
3298            'bearerAuth'
3299        ]
3300
3301        return self.api_client.param_serialize(
3302            method='GET',
3303            resource_path='/org/{organization}/connectors/destinations/{destinationConnectorId}',
3304            path_params=_path_params,
3305            query_params=_query_params,
3306            header_params=_header_params,
3307            body=_body_params,
3308            post_params=_form_params,
3309            files=_files,
3310            auth_settings=_auth_settings,
3311            collection_formats=_collection_formats,
3312            _host=_host,
3313            _request_auth=_request_auth
3314        )
3315
3316
3317
3318
3319    @validate_call
3320    def get_destination_connectors(
3321        self,
3322        organization: StrictStr,
3323        _request_timeout: Union[
3324            None,
3325            Annotated[StrictFloat, Field(gt=0)],
3326            Tuple[
3327                Annotated[StrictFloat, Field(gt=0)],
3328                Annotated[StrictFloat, Field(gt=0)]
3329            ]
3330        ] = None,
3331        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3332        _content_type: Optional[StrictStr] = None,
3333        _headers: Optional[Dict[StrictStr, Any]] = None,
3334        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3335    ) -> GetDestinationConnectors200Response:
3336        """Get all existing destination connectors
3337
3338
3339        :param organization: (required)
3340        :type organization: str
3341        :param _request_timeout: timeout setting for this request. If one
3342                                 number provided, it will be total request
3343                                 timeout. It can also be a pair (tuple) of
3344                                 (connection, read) timeouts.
3345        :type _request_timeout: int, tuple(int, int), optional
3346        :param _request_auth: set to override the auth_settings for an a single
3347                              request; this effectively ignores the
3348                              authentication in the spec for a single request.
3349        :type _request_auth: dict, optional
3350        :param _content_type: force content-type for the request.
3351        :type _content_type: str, Optional
3352        :param _headers: set to override the headers for a single
3353                         request; this effectively ignores the headers
3354                         in the spec for a single request.
3355        :type _headers: dict, optional
3356        :param _host_index: set to override the host_index for a single
3357                            request; this effectively ignores the host_index
3358                            in the spec for a single request.
3359        :type _host_index: int, optional
3360        :return: Returns the result object.
3361        """ # noqa: E501
3362
3363        _param = self._get_destination_connectors_serialize(
3364            organization=organization,
3365            _request_auth=_request_auth,
3366            _content_type=_content_type,
3367            _headers=_headers,
3368            _host_index=_host_index
3369        )
3370
3371        _response_types_map: Dict[str, Optional[str]] = {
3372            '200': "GetDestinationConnectors200Response",
3373            '400': "GetPipelines400Response",
3374            '401': "GetPipelines400Response",
3375            '403': "GetPipelines400Response",
3376            '404': "GetPipelines400Response",
3377            '500': "GetPipelines400Response",
3378        }
3379        response_data = self.api_client.call_api(
3380            *_param,
3381            _request_timeout=_request_timeout
3382        )
3383        response_data.read()
3384        return self.api_client.response_deserialize(
3385            response_data=response_data,
3386            response_types_map=_response_types_map,
3387        ).data
3388
3389
3390    @validate_call
3391    def get_destination_connectors_with_http_info(
3392        self,
3393        organization: StrictStr,
3394        _request_timeout: Union[
3395            None,
3396            Annotated[StrictFloat, Field(gt=0)],
3397            Tuple[
3398                Annotated[StrictFloat, Field(gt=0)],
3399                Annotated[StrictFloat, Field(gt=0)]
3400            ]
3401        ] = None,
3402        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3403        _content_type: Optional[StrictStr] = None,
3404        _headers: Optional[Dict[StrictStr, Any]] = None,
3405        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3406    ) -> ApiResponse[GetDestinationConnectors200Response]:
3407        """Get all existing destination connectors
3408
3409
3410        :param organization: (required)
3411        :type organization: str
3412        :param _request_timeout: timeout setting for this request. If one
3413                                 number provided, it will be total request
3414                                 timeout. It can also be a pair (tuple) of
3415                                 (connection, read) timeouts.
3416        :type _request_timeout: int, tuple(int, int), optional
3417        :param _request_auth: set to override the auth_settings for an a single
3418                              request; this effectively ignores the
3419                              authentication in the spec for a single request.
3420        :type _request_auth: dict, optional
3421        :param _content_type: force content-type for the request.
3422        :type _content_type: str, Optional
3423        :param _headers: set to override the headers for a single
3424                         request; this effectively ignores the headers
3425                         in the spec for a single request.
3426        :type _headers: dict, optional
3427        :param _host_index: set to override the host_index for a single
3428                            request; this effectively ignores the host_index
3429                            in the spec for a single request.
3430        :type _host_index: int, optional
3431        :return: Returns the result object.
3432        """ # noqa: E501
3433
3434        _param = self._get_destination_connectors_serialize(
3435            organization=organization,
3436            _request_auth=_request_auth,
3437            _content_type=_content_type,
3438            _headers=_headers,
3439            _host_index=_host_index
3440        )
3441
3442        _response_types_map: Dict[str, Optional[str]] = {
3443            '200': "GetDestinationConnectors200Response",
3444            '400': "GetPipelines400Response",
3445            '401': "GetPipelines400Response",
3446            '403': "GetPipelines400Response",
3447            '404': "GetPipelines400Response",
3448            '500': "GetPipelines400Response",
3449        }
3450        response_data = self.api_client.call_api(
3451            *_param,
3452            _request_timeout=_request_timeout
3453        )
3454        response_data.read()
3455        return self.api_client.response_deserialize(
3456            response_data=response_data,
3457            response_types_map=_response_types_map,
3458        )
3459
3460
3461    @validate_call
3462    def get_destination_connectors_without_preload_content(
3463        self,
3464        organization: StrictStr,
3465        _request_timeout: Union[
3466            None,
3467            Annotated[StrictFloat, Field(gt=0)],
3468            Tuple[
3469                Annotated[StrictFloat, Field(gt=0)],
3470                Annotated[StrictFloat, Field(gt=0)]
3471            ]
3472        ] = None,
3473        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3474        _content_type: Optional[StrictStr] = None,
3475        _headers: Optional[Dict[StrictStr, Any]] = None,
3476        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3477    ) -> RESTResponseType:
3478        """Get all existing destination connectors
3479
3480
3481        :param organization: (required)
3482        :type organization: str
3483        :param _request_timeout: timeout setting for this request. If one
3484                                 number provided, it will be total request
3485                                 timeout. It can also be a pair (tuple) of
3486                                 (connection, read) timeouts.
3487        :type _request_timeout: int, tuple(int, int), optional
3488        :param _request_auth: set to override the auth_settings for an a single
3489                              request; this effectively ignores the
3490                              authentication in the spec for a single request.
3491        :type _request_auth: dict, optional
3492        :param _content_type: force content-type for the request.
3493        :type _content_type: str, Optional
3494        :param _headers: set to override the headers for a single
3495                         request; this effectively ignores the headers
3496                         in the spec for a single request.
3497        :type _headers: dict, optional
3498        :param _host_index: set to override the host_index for a single
3499                            request; this effectively ignores the host_index
3500                            in the spec for a single request.
3501        :type _host_index: int, optional
3502        :return: Returns the result object.
3503        """ # noqa: E501
3504
3505        _param = self._get_destination_connectors_serialize(
3506            organization=organization,
3507            _request_auth=_request_auth,
3508            _content_type=_content_type,
3509            _headers=_headers,
3510            _host_index=_host_index
3511        )
3512
3513        _response_types_map: Dict[str, Optional[str]] = {
3514            '200': "GetDestinationConnectors200Response",
3515            '400': "GetPipelines400Response",
3516            '401': "GetPipelines400Response",
3517            '403': "GetPipelines400Response",
3518            '404': "GetPipelines400Response",
3519            '500': "GetPipelines400Response",
3520        }
3521        response_data = self.api_client.call_api(
3522            *_param,
3523            _request_timeout=_request_timeout
3524        )
3525        return response_data.response
3526
3527
3528    def _get_destination_connectors_serialize(
3529        self,
3530        organization,
3531        _request_auth,
3532        _content_type,
3533        _headers,
3534        _host_index,
3535    ) -> RequestSerialized:
3536
3537        _host = None
3538
3539        _collection_formats: Dict[str, str] = {
3540        }
3541
3542        _path_params: Dict[str, str] = {}
3543        _query_params: List[Tuple[str, str]] = []
3544        _header_params: Dict[str, Optional[str]] = _headers or {}
3545        _form_params: List[Tuple[str, str]] = []
3546        _files: Dict[
3547            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3548        ] = {}
3549        _body_params: Optional[bytes] = None
3550
3551        # process the path parameters
3552        if organization is not None:
3553            _path_params['organization'] = organization
3554        # process the query parameters
3555        # process the header parameters
3556        # process the form parameters
3557        # process the body parameter
3558
3559
3560        # set the HTTP header `Accept`
3561        if 'Accept' not in _header_params:
3562            _header_params['Accept'] = self.api_client.select_header_accept(
3563                [
3564                    'application/json'
3565                ]
3566            )
3567
3568
3569        # authentication setting
3570        _auth_settings: List[str] = [
3571            'bearerAuth'
3572        ]
3573
3574        return self.api_client.param_serialize(
3575            method='GET',
3576            resource_path='/org/{organization}/connectors/destinations',
3577            path_params=_path_params,
3578            query_params=_query_params,
3579            header_params=_header_params,
3580            body=_body_params,
3581            post_params=_form_params,
3582            files=_files,
3583            auth_settings=_auth_settings,
3584            collection_formats=_collection_formats,
3585            _host=_host,
3586            _request_auth=_request_auth
3587        )
3588
3589
3590
3591
3592    @validate_call
3593    def get_source_connector(
3594        self,
3595        organization: StrictStr,
3596        source_connector_id: StrictStr,
3597        _request_timeout: Union[
3598            None,
3599            Annotated[StrictFloat, Field(gt=0)],
3600            Tuple[
3601                Annotated[StrictFloat, Field(gt=0)],
3602                Annotated[StrictFloat, Field(gt=0)]
3603            ]
3604        ] = None,
3605        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3606        _content_type: Optional[StrictStr] = None,
3607        _headers: Optional[Dict[StrictStr, Any]] = None,
3608        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3609    ) -> SourceConnector:
3610        """Get a source connector
3611
3612
3613        :param organization: (required)
3614        :type organization: str
3615        :param source_connector_id: (required)
3616        :type source_connector_id: str
3617        :param _request_timeout: timeout setting for this request. If one
3618                                 number provided, it will be total request
3619                                 timeout. It can also be a pair (tuple) of
3620                                 (connection, read) timeouts.
3621        :type _request_timeout: int, tuple(int, int), optional
3622        :param _request_auth: set to override the auth_settings for an a single
3623                              request; this effectively ignores the
3624                              authentication in the spec for a single request.
3625        :type _request_auth: dict, optional
3626        :param _content_type: force content-type for the request.
3627        :type _content_type: str, Optional
3628        :param _headers: set to override the headers for a single
3629                         request; this effectively ignores the headers
3630                         in the spec for a single request.
3631        :type _headers: dict, optional
3632        :param _host_index: set to override the host_index for a single
3633                            request; this effectively ignores the host_index
3634                            in the spec for a single request.
3635        :type _host_index: int, optional
3636        :return: Returns the result object.
3637        """ # noqa: E501
3638
3639        _param = self._get_source_connector_serialize(
3640            organization=organization,
3641            source_connector_id=source_connector_id,
3642            _request_auth=_request_auth,
3643            _content_type=_content_type,
3644            _headers=_headers,
3645            _host_index=_host_index
3646        )
3647
3648        _response_types_map: Dict[str, Optional[str]] = {
3649            '200': "SourceConnector",
3650            '400': "GetPipelines400Response",
3651            '401': "GetPipelines400Response",
3652            '403': "GetPipelines400Response",
3653            '404': "GetPipelines400Response",
3654            '500': "GetPipelines400Response",
3655        }
3656        response_data = self.api_client.call_api(
3657            *_param,
3658            _request_timeout=_request_timeout
3659        )
3660        response_data.read()
3661        return self.api_client.response_deserialize(
3662            response_data=response_data,
3663            response_types_map=_response_types_map,
3664        ).data
3665
3666
3667    @validate_call
3668    def get_source_connector_with_http_info(
3669        self,
3670        organization: StrictStr,
3671        source_connector_id: StrictStr,
3672        _request_timeout: Union[
3673            None,
3674            Annotated[StrictFloat, Field(gt=0)],
3675            Tuple[
3676                Annotated[StrictFloat, Field(gt=0)],
3677                Annotated[StrictFloat, Field(gt=0)]
3678            ]
3679        ] = None,
3680        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3681        _content_type: Optional[StrictStr] = None,
3682        _headers: Optional[Dict[StrictStr, Any]] = None,
3683        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3684    ) -> ApiResponse[SourceConnector]:
3685        """Get a source connector
3686
3687
3688        :param organization: (required)
3689        :type organization: str
3690        :param source_connector_id: (required)
3691        :type source_connector_id: str
3692        :param _request_timeout: timeout setting for this request. If one
3693                                 number provided, it will be total request
3694                                 timeout. It can also be a pair (tuple) of
3695                                 (connection, read) timeouts.
3696        :type _request_timeout: int, tuple(int, int), optional
3697        :param _request_auth: set to override the auth_settings for an a single
3698                              request; this effectively ignores the
3699                              authentication in the spec for a single request.
3700        :type _request_auth: dict, optional
3701        :param _content_type: force content-type for the request.
3702        :type _content_type: str, Optional
3703        :param _headers: set to override the headers for a single
3704                         request; this effectively ignores the headers
3705                         in the spec for a single request.
3706        :type _headers: dict, optional
3707        :param _host_index: set to override the host_index for a single
3708                            request; this effectively ignores the host_index
3709                            in the spec for a single request.
3710        :type _host_index: int, optional
3711        :return: Returns the result object.
3712        """ # noqa: E501
3713
3714        _param = self._get_source_connector_serialize(
3715            organization=organization,
3716            source_connector_id=source_connector_id,
3717            _request_auth=_request_auth,
3718            _content_type=_content_type,
3719            _headers=_headers,
3720            _host_index=_host_index
3721        )
3722
3723        _response_types_map: Dict[str, Optional[str]] = {
3724            '200': "SourceConnector",
3725            '400': "GetPipelines400Response",
3726            '401': "GetPipelines400Response",
3727            '403': "GetPipelines400Response",
3728            '404': "GetPipelines400Response",
3729            '500': "GetPipelines400Response",
3730        }
3731        response_data = self.api_client.call_api(
3732            *_param,
3733            _request_timeout=_request_timeout
3734        )
3735        response_data.read()
3736        return self.api_client.response_deserialize(
3737            response_data=response_data,
3738            response_types_map=_response_types_map,
3739        )
3740
3741
3742    @validate_call
3743    def get_source_connector_without_preload_content(
3744        self,
3745        organization: StrictStr,
3746        source_connector_id: StrictStr,
3747        _request_timeout: Union[
3748            None,
3749            Annotated[StrictFloat, Field(gt=0)],
3750            Tuple[
3751                Annotated[StrictFloat, Field(gt=0)],
3752                Annotated[StrictFloat, Field(gt=0)]
3753            ]
3754        ] = None,
3755        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3756        _content_type: Optional[StrictStr] = None,
3757        _headers: Optional[Dict[StrictStr, Any]] = None,
3758        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3759    ) -> RESTResponseType:
3760        """Get a source connector
3761
3762
3763        :param organization: (required)
3764        :type organization: str
3765        :param source_connector_id: (required)
3766        :type source_connector_id: str
3767        :param _request_timeout: timeout setting for this request. If one
3768                                 number provided, it will be total request
3769                                 timeout. It can also be a pair (tuple) of
3770                                 (connection, read) timeouts.
3771        :type _request_timeout: int, tuple(int, int), optional
3772        :param _request_auth: set to override the auth_settings for an a single
3773                              request; this effectively ignores the
3774                              authentication in the spec for a single request.
3775        :type _request_auth: dict, optional
3776        :param _content_type: force content-type for the request.
3777        :type _content_type: str, Optional
3778        :param _headers: set to override the headers for a single
3779                         request; this effectively ignores the headers
3780                         in the spec for a single request.
3781        :type _headers: dict, optional
3782        :param _host_index: set to override the host_index for a single
3783                            request; this effectively ignores the host_index
3784                            in the spec for a single request.
3785        :type _host_index: int, optional
3786        :return: Returns the result object.
3787        """ # noqa: E501
3788
3789        _param = self._get_source_connector_serialize(
3790            organization=organization,
3791            source_connector_id=source_connector_id,
3792            _request_auth=_request_auth,
3793            _content_type=_content_type,
3794            _headers=_headers,
3795            _host_index=_host_index
3796        )
3797
3798        _response_types_map: Dict[str, Optional[str]] = {
3799            '200': "SourceConnector",
3800            '400': "GetPipelines400Response",
3801            '401': "GetPipelines400Response",
3802            '403': "GetPipelines400Response",
3803            '404': "GetPipelines400Response",
3804            '500': "GetPipelines400Response",
3805        }
3806        response_data = self.api_client.call_api(
3807            *_param,
3808            _request_timeout=_request_timeout
3809        )
3810        return response_data.response
3811
3812
3813    def _get_source_connector_serialize(
3814        self,
3815        organization,
3816        source_connector_id,
3817        _request_auth,
3818        _content_type,
3819        _headers,
3820        _host_index,
3821    ) -> RequestSerialized:
3822
3823        _host = None
3824
3825        _collection_formats: Dict[str, str] = {
3826        }
3827
3828        _path_params: Dict[str, str] = {}
3829        _query_params: List[Tuple[str, str]] = []
3830        _header_params: Dict[str, Optional[str]] = _headers or {}
3831        _form_params: List[Tuple[str, str]] = []
3832        _files: Dict[
3833            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3834        ] = {}
3835        _body_params: Optional[bytes] = None
3836
3837        # process the path parameters
3838        if organization is not None:
3839            _path_params['organization'] = organization
3840        if source_connector_id is not None:
3841            _path_params['sourceConnectorId'] = source_connector_id
3842        # process the query parameters
3843        # process the header parameters
3844        # process the form parameters
3845        # process the body parameter
3846
3847
3848        # set the HTTP header `Accept`
3849        if 'Accept' not in _header_params:
3850            _header_params['Accept'] = self.api_client.select_header_accept(
3851                [
3852                    'application/json'
3853                ]
3854            )
3855
3856
3857        # authentication setting
3858        _auth_settings: List[str] = [
3859            'bearerAuth'
3860        ]
3861
3862        return self.api_client.param_serialize(
3863            method='GET',
3864            resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}',
3865            path_params=_path_params,
3866            query_params=_query_params,
3867            header_params=_header_params,
3868            body=_body_params,
3869            post_params=_form_params,
3870            files=_files,
3871            auth_settings=_auth_settings,
3872            collection_formats=_collection_formats,
3873            _host=_host,
3874            _request_auth=_request_auth
3875        )
3876
3877
3878
3879
3880    @validate_call
3881    def get_source_connectors(
3882        self,
3883        organization: StrictStr,
3884        _request_timeout: Union[
3885            None,
3886            Annotated[StrictFloat, Field(gt=0)],
3887            Tuple[
3888                Annotated[StrictFloat, Field(gt=0)],
3889                Annotated[StrictFloat, Field(gt=0)]
3890            ]
3891        ] = None,
3892        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3893        _content_type: Optional[StrictStr] = None,
3894        _headers: Optional[Dict[StrictStr, Any]] = None,
3895        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3896    ) -> GetSourceConnectors200Response:
3897        """Get all existing source connectors
3898
3899
3900        :param organization: (required)
3901        :type organization: str
3902        :param _request_timeout: timeout setting for this request. If one
3903                                 number provided, it will be total request
3904                                 timeout. It can also be a pair (tuple) of
3905                                 (connection, read) timeouts.
3906        :type _request_timeout: int, tuple(int, int), optional
3907        :param _request_auth: set to override the auth_settings for an a single
3908                              request; this effectively ignores the
3909                              authentication in the spec for a single request.
3910        :type _request_auth: dict, optional
3911        :param _content_type: force content-type for the request.
3912        :type _content_type: str, Optional
3913        :param _headers: set to override the headers for a single
3914                         request; this effectively ignores the headers
3915                         in the spec for a single request.
3916        :type _headers: dict, optional
3917        :param _host_index: set to override the host_index for a single
3918                            request; this effectively ignores the host_index
3919                            in the spec for a single request.
3920        :type _host_index: int, optional
3921        :return: Returns the result object.
3922        """ # noqa: E501
3923
3924        _param = self._get_source_connectors_serialize(
3925            organization=organization,
3926            _request_auth=_request_auth,
3927            _content_type=_content_type,
3928            _headers=_headers,
3929            _host_index=_host_index
3930        )
3931
3932        _response_types_map: Dict[str, Optional[str]] = {
3933            '200': "GetSourceConnectors200Response",
3934            '400': "GetPipelines400Response",
3935            '401': "GetPipelines400Response",
3936            '403': "GetPipelines400Response",
3937            '404': "GetPipelines400Response",
3938            '500': "GetPipelines400Response",
3939        }
3940        response_data = self.api_client.call_api(
3941            *_param,
3942            _request_timeout=_request_timeout
3943        )
3944        response_data.read()
3945        return self.api_client.response_deserialize(
3946            response_data=response_data,
3947            response_types_map=_response_types_map,
3948        ).data
3949
3950
3951    @validate_call
3952    def get_source_connectors_with_http_info(
3953        self,
3954        organization: StrictStr,
3955        _request_timeout: Union[
3956            None,
3957            Annotated[StrictFloat, Field(gt=0)],
3958            Tuple[
3959                Annotated[StrictFloat, Field(gt=0)],
3960                Annotated[StrictFloat, Field(gt=0)]
3961            ]
3962        ] = None,
3963        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3964        _content_type: Optional[StrictStr] = None,
3965        _headers: Optional[Dict[StrictStr, Any]] = None,
3966        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3967    ) -> ApiResponse[GetSourceConnectors200Response]:
3968        """Get all existing source connectors
3969
3970
3971        :param organization: (required)
3972        :type organization: str
3973        :param _request_timeout: timeout setting for this request. If one
3974                                 number provided, it will be total request
3975                                 timeout. It can also be a pair (tuple) of
3976                                 (connection, read) timeouts.
3977        :type _request_timeout: int, tuple(int, int), optional
3978        :param _request_auth: set to override the auth_settings for an a single
3979                              request; this effectively ignores the
3980                              authentication in the spec for a single request.
3981        :type _request_auth: dict, optional
3982        :param _content_type: force content-type for the request.
3983        :type _content_type: str, Optional
3984        :param _headers: set to override the headers for a single
3985                         request; this effectively ignores the headers
3986                         in the spec for a single request.
3987        :type _headers: dict, optional
3988        :param _host_index: set to override the host_index for a single
3989                            request; this effectively ignores the host_index
3990                            in the spec for a single request.
3991        :type _host_index: int, optional
3992        :return: Returns the result object.
3993        """ # noqa: E501
3994
3995        _param = self._get_source_connectors_serialize(
3996            organization=organization,
3997            _request_auth=_request_auth,
3998            _content_type=_content_type,
3999            _headers=_headers,
4000            _host_index=_host_index
4001        )
4002
4003        _response_types_map: Dict[str, Optional[str]] = {
4004            '200': "GetSourceConnectors200Response",
4005            '400': "GetPipelines400Response",
4006            '401': "GetPipelines400Response",
4007            '403': "GetPipelines400Response",
4008            '404': "GetPipelines400Response",
4009            '500': "GetPipelines400Response",
4010        }
4011        response_data = self.api_client.call_api(
4012            *_param,
4013            _request_timeout=_request_timeout
4014        )
4015        response_data.read()
4016        return self.api_client.response_deserialize(
4017            response_data=response_data,
4018            response_types_map=_response_types_map,
4019        )
4020
4021
4022    @validate_call
4023    def get_source_connectors_without_preload_content(
4024        self,
4025        organization: StrictStr,
4026        _request_timeout: Union[
4027            None,
4028            Annotated[StrictFloat, Field(gt=0)],
4029            Tuple[
4030                Annotated[StrictFloat, Field(gt=0)],
4031                Annotated[StrictFloat, Field(gt=0)]
4032            ]
4033        ] = None,
4034        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4035        _content_type: Optional[StrictStr] = None,
4036        _headers: Optional[Dict[StrictStr, Any]] = None,
4037        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4038    ) -> RESTResponseType:
4039        """Get all existing source connectors
4040
4041
4042        :param organization: (required)
4043        :type organization: str
4044        :param _request_timeout: timeout setting for this request. If one
4045                                 number provided, it will be total request
4046                                 timeout. It can also be a pair (tuple) of
4047                                 (connection, read) timeouts.
4048        :type _request_timeout: int, tuple(int, int), optional
4049        :param _request_auth: set to override the auth_settings for an a single
4050                              request; this effectively ignores the
4051                              authentication in the spec for a single request.
4052        :type _request_auth: dict, optional
4053        :param _content_type: force content-type for the request.
4054        :type _content_type: str, Optional
4055        :param _headers: set to override the headers for a single
4056                         request; this effectively ignores the headers
4057                         in the spec for a single request.
4058        :type _headers: dict, optional
4059        :param _host_index: set to override the host_index for a single
4060                            request; this effectively ignores the host_index
4061                            in the spec for a single request.
4062        :type _host_index: int, optional
4063        :return: Returns the result object.
4064        """ # noqa: E501
4065
4066        _param = self._get_source_connectors_serialize(
4067            organization=organization,
4068            _request_auth=_request_auth,
4069            _content_type=_content_type,
4070            _headers=_headers,
4071            _host_index=_host_index
4072        )
4073
4074        _response_types_map: Dict[str, Optional[str]] = {
4075            '200': "GetSourceConnectors200Response",
4076            '400': "GetPipelines400Response",
4077            '401': "GetPipelines400Response",
4078            '403': "GetPipelines400Response",
4079            '404': "GetPipelines400Response",
4080            '500': "GetPipelines400Response",
4081        }
4082        response_data = self.api_client.call_api(
4083            *_param,
4084            _request_timeout=_request_timeout
4085        )
4086        return response_data.response
4087
4088
4089    def _get_source_connectors_serialize(
4090        self,
4091        organization,
4092        _request_auth,
4093        _content_type,
4094        _headers,
4095        _host_index,
4096    ) -> RequestSerialized:
4097
4098        _host = None
4099
4100        _collection_formats: Dict[str, str] = {
4101        }
4102
4103        _path_params: Dict[str, str] = {}
4104        _query_params: List[Tuple[str, str]] = []
4105        _header_params: Dict[str, Optional[str]] = _headers or {}
4106        _form_params: List[Tuple[str, str]] = []
4107        _files: Dict[
4108            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4109        ] = {}
4110        _body_params: Optional[bytes] = None
4111
4112        # process the path parameters
4113        if organization is not None:
4114            _path_params['organization'] = organization
4115        # process the query parameters
4116        # process the header parameters
4117        # process the form parameters
4118        # process the body parameter
4119
4120
4121        # set the HTTP header `Accept`
4122        if 'Accept' not in _header_params:
4123            _header_params['Accept'] = self.api_client.select_header_accept(
4124                [
4125                    'application/json'
4126                ]
4127            )
4128
4129
4130        # authentication setting
4131        _auth_settings: List[str] = [
4132            'bearerAuth'
4133        ]
4134
4135        return self.api_client.param_serialize(
4136            method='GET',
4137            resource_path='/org/{organization}/connectors/sources',
4138            path_params=_path_params,
4139            query_params=_query_params,
4140            header_params=_header_params,
4141            body=_body_params,
4142            post_params=_form_params,
4143            files=_files,
4144            auth_settings=_auth_settings,
4145            collection_formats=_collection_formats,
4146            _host=_host,
4147            _request_auth=_request_auth
4148        )
4149
4150
4151
4152
4153    @validate_call
4154    def update_ai_platform_connector(
4155        self,
4156        organization: StrictStr,
4157        aiplatform_id: StrictStr,
4158        update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest,
4159        _request_timeout: Union[
4160            None,
4161            Annotated[StrictFloat, Field(gt=0)],
4162            Tuple[
4163                Annotated[StrictFloat, Field(gt=0)],
4164                Annotated[StrictFloat, Field(gt=0)]
4165            ]
4166        ] = None,
4167        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4168        _content_type: Optional[StrictStr] = None,
4169        _headers: Optional[Dict[StrictStr, Any]] = None,
4170        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4171    ) -> UpdateAIPlatformConnectorResponse:
4172        """Update an AI Platform connector
4173
4174
4175        :param organization: (required)
4176        :type organization: str
4177        :param aiplatform_id: (required)
4178        :type aiplatform_id: str
4179        :param update_ai_platform_connector_request: (required)
4180        :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest
4181        :param _request_timeout: timeout setting for this request. If one
4182                                 number provided, it will be total request
4183                                 timeout. It can also be a pair (tuple) of
4184                                 (connection, read) timeouts.
4185        :type _request_timeout: int, tuple(int, int), optional
4186        :param _request_auth: set to override the auth_settings for an a single
4187                              request; this effectively ignores the
4188                              authentication in the spec for a single request.
4189        :type _request_auth: dict, optional
4190        :param _content_type: force content-type for the request.
4191        :type _content_type: str, Optional
4192        :param _headers: set to override the headers for a single
4193                         request; this effectively ignores the headers
4194                         in the spec for a single request.
4195        :type _headers: dict, optional
4196        :param _host_index: set to override the host_index for a single
4197                            request; this effectively ignores the host_index
4198                            in the spec for a single request.
4199        :type _host_index: int, optional
4200        :return: Returns the result object.
4201        """ # noqa: E501
4202
4203        _param = self._update_ai_platform_connector_serialize(
4204            organization=organization,
4205            aiplatform_id=aiplatform_id,
4206            update_ai_platform_connector_request=update_ai_platform_connector_request,
4207            _request_auth=_request_auth,
4208            _content_type=_content_type,
4209            _headers=_headers,
4210            _host_index=_host_index
4211        )
4212
4213        _response_types_map: Dict[str, Optional[str]] = {
4214            '200': "UpdateAIPlatformConnectorResponse",
4215            '400': "GetPipelines400Response",
4216            '401': "GetPipelines400Response",
4217            '403': "GetPipelines400Response",
4218            '404': "GetPipelines400Response",
4219            '500': "GetPipelines400Response",
4220        }
4221        response_data = self.api_client.call_api(
4222            *_param,
4223            _request_timeout=_request_timeout
4224        )
4225        response_data.read()
4226        return self.api_client.response_deserialize(
4227            response_data=response_data,
4228            response_types_map=_response_types_map,
4229        ).data
4230
4231
4232    @validate_call
4233    def update_ai_platform_connector_with_http_info(
4234        self,
4235        organization: StrictStr,
4236        aiplatform_id: StrictStr,
4237        update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest,
4238        _request_timeout: Union[
4239            None,
4240            Annotated[StrictFloat, Field(gt=0)],
4241            Tuple[
4242                Annotated[StrictFloat, Field(gt=0)],
4243                Annotated[StrictFloat, Field(gt=0)]
4244            ]
4245        ] = None,
4246        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4247        _content_type: Optional[StrictStr] = None,
4248        _headers: Optional[Dict[StrictStr, Any]] = None,
4249        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4250    ) -> ApiResponse[UpdateAIPlatformConnectorResponse]:
4251        """Update an AI Platform connector
4252
4253
4254        :param organization: (required)
4255        :type organization: str
4256        :param aiplatform_id: (required)
4257        :type aiplatform_id: str
4258        :param update_ai_platform_connector_request: (required)
4259        :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest
4260        :param _request_timeout: timeout setting for this request. If one
4261                                 number provided, it will be total request
4262                                 timeout. It can also be a pair (tuple) of
4263                                 (connection, read) timeouts.
4264        :type _request_timeout: int, tuple(int, int), optional
4265        :param _request_auth: set to override the auth_settings for an a single
4266                              request; this effectively ignores the
4267                              authentication in the spec for a single request.
4268        :type _request_auth: dict, optional
4269        :param _content_type: force content-type for the request.
4270        :type _content_type: str, Optional
4271        :param _headers: set to override the headers for a single
4272                         request; this effectively ignores the headers
4273                         in the spec for a single request.
4274        :type _headers: dict, optional
4275        :param _host_index: set to override the host_index for a single
4276                            request; this effectively ignores the host_index
4277                            in the spec for a single request.
4278        :type _host_index: int, optional
4279        :return: Returns the result object.
4280        """ # noqa: E501
4281
4282        _param = self._update_ai_platform_connector_serialize(
4283            organization=organization,
4284            aiplatform_id=aiplatform_id,
4285            update_ai_platform_connector_request=update_ai_platform_connector_request,
4286            _request_auth=_request_auth,
4287            _content_type=_content_type,
4288            _headers=_headers,
4289            _host_index=_host_index
4290        )
4291
4292        _response_types_map: Dict[str, Optional[str]] = {
4293            '200': "UpdateAIPlatformConnectorResponse",
4294            '400': "GetPipelines400Response",
4295            '401': "GetPipelines400Response",
4296            '403': "GetPipelines400Response",
4297            '404': "GetPipelines400Response",
4298            '500': "GetPipelines400Response",
4299        }
4300        response_data = self.api_client.call_api(
4301            *_param,
4302            _request_timeout=_request_timeout
4303        )
4304        response_data.read()
4305        return self.api_client.response_deserialize(
4306            response_data=response_data,
4307            response_types_map=_response_types_map,
4308        )
4309
4310
4311    @validate_call
4312    def update_ai_platform_connector_without_preload_content(
4313        self,
4314        organization: StrictStr,
4315        aiplatform_id: StrictStr,
4316        update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest,
4317        _request_timeout: Union[
4318            None,
4319            Annotated[StrictFloat, Field(gt=0)],
4320            Tuple[
4321                Annotated[StrictFloat, Field(gt=0)],
4322                Annotated[StrictFloat, Field(gt=0)]
4323            ]
4324        ] = None,
4325        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4326        _content_type: Optional[StrictStr] = None,
4327        _headers: Optional[Dict[StrictStr, Any]] = None,
4328        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4329    ) -> RESTResponseType:
4330        """Update an AI Platform connector
4331
4332
4333        :param organization: (required)
4334        :type organization: str
4335        :param aiplatform_id: (required)
4336        :type aiplatform_id: str
4337        :param update_ai_platform_connector_request: (required)
4338        :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest
4339        :param _request_timeout: timeout setting for this request. If one
4340                                 number provided, it will be total request
4341                                 timeout. It can also be a pair (tuple) of
4342                                 (connection, read) timeouts.
4343        :type _request_timeout: int, tuple(int, int), optional
4344        :param _request_auth: set to override the auth_settings for an a single
4345                              request; this effectively ignores the
4346                              authentication in the spec for a single request.
4347        :type _request_auth: dict, optional
4348        :param _content_type: force content-type for the request.
4349        :type _content_type: str, Optional
4350        :param _headers: set to override the headers for a single
4351                         request; this effectively ignores the headers
4352                         in the spec for a single request.
4353        :type _headers: dict, optional
4354        :param _host_index: set to override the host_index for a single
4355                            request; this effectively ignores the host_index
4356                            in the spec for a single request.
4357        :type _host_index: int, optional
4358        :return: Returns the result object.
4359        """ # noqa: E501
4360
4361        _param = self._update_ai_platform_connector_serialize(
4362            organization=organization,
4363            aiplatform_id=aiplatform_id,
4364            update_ai_platform_connector_request=update_ai_platform_connector_request,
4365            _request_auth=_request_auth,
4366            _content_type=_content_type,
4367            _headers=_headers,
4368            _host_index=_host_index
4369        )
4370
4371        _response_types_map: Dict[str, Optional[str]] = {
4372            '200': "UpdateAIPlatformConnectorResponse",
4373            '400': "GetPipelines400Response",
4374            '401': "GetPipelines400Response",
4375            '403': "GetPipelines400Response",
4376            '404': "GetPipelines400Response",
4377            '500': "GetPipelines400Response",
4378        }
4379        response_data = self.api_client.call_api(
4380            *_param,
4381            _request_timeout=_request_timeout
4382        )
4383        return response_data.response
4384
4385
4386    def _update_ai_platform_connector_serialize(
4387        self,
4388        organization,
4389        aiplatform_id,
4390        update_ai_platform_connector_request,
4391        _request_auth,
4392        _content_type,
4393        _headers,
4394        _host_index,
4395    ) -> RequestSerialized:
4396
4397        _host = None
4398
4399        _collection_formats: Dict[str, str] = {
4400        }
4401
4402        _path_params: Dict[str, str] = {}
4403        _query_params: List[Tuple[str, str]] = []
4404        _header_params: Dict[str, Optional[str]] = _headers or {}
4405        _form_params: List[Tuple[str, str]] = []
4406        _files: Dict[
4407            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4408        ] = {}
4409        _body_params: Optional[bytes] = None
4410
4411        # process the path parameters
4412        if organization is not None:
4413            _path_params['organization'] = organization
4414        if aiplatform_id is not None:
4415            _path_params['aiplatformId'] = aiplatform_id
4416        # process the query parameters
4417        # process the header parameters
4418        # process the form parameters
4419        # process the body parameter
4420        if update_ai_platform_connector_request is not None:
4421            _body_params = update_ai_platform_connector_request
4422
4423
4424        # set the HTTP header `Accept`
4425        if 'Accept' not in _header_params:
4426            _header_params['Accept'] = self.api_client.select_header_accept(
4427                [
4428                    'application/json'
4429                ]
4430            )
4431
4432        # set the HTTP header `Content-Type`
4433        if _content_type:
4434            _header_params['Content-Type'] = _content_type
4435        else:
4436            _default_content_type = (
4437                self.api_client.select_header_content_type(
4438                    [
4439                        'application/json'
4440                    ]
4441                )
4442            )
4443            if _default_content_type is not None:
4444                _header_params['Content-Type'] = _default_content_type
4445
4446        # authentication setting
4447        _auth_settings: List[str] = [
4448            'bearerAuth'
4449        ]
4450
4451        return self.api_client.param_serialize(
4452            method='PATCH',
4453            resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}',
4454            path_params=_path_params,
4455            query_params=_query_params,
4456            header_params=_header_params,
4457            body=_body_params,
4458            post_params=_form_params,
4459            files=_files,
4460            auth_settings=_auth_settings,
4461            collection_formats=_collection_formats,
4462            _host=_host,
4463            _request_auth=_request_auth
4464        )
4465
4466
4467
4468
4469    @validate_call
4470    def update_destination_connector(
4471        self,
4472        organization: StrictStr,
4473        destination_connector_id: StrictStr,
4474        update_destination_connector_request: UpdateDestinationConnectorRequest,
4475        _request_timeout: Union[
4476            None,
4477            Annotated[StrictFloat, Field(gt=0)],
4478            Tuple[
4479                Annotated[StrictFloat, Field(gt=0)],
4480                Annotated[StrictFloat, Field(gt=0)]
4481            ]
4482        ] = None,
4483        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4484        _content_type: Optional[StrictStr] = None,
4485        _headers: Optional[Dict[StrictStr, Any]] = None,
4486        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4487    ) -> UpdateDestinationConnectorResponse:
4488        """Update a destination connector
4489
4490
4491        :param organization: (required)
4492        :type organization: str
4493        :param destination_connector_id: (required)
4494        :type destination_connector_id: str
4495        :param update_destination_connector_request: (required)
4496        :type update_destination_connector_request: UpdateDestinationConnectorRequest
4497        :param _request_timeout: timeout setting for this request. If one
4498                                 number provided, it will be total request
4499                                 timeout. It can also be a pair (tuple) of
4500                                 (connection, read) timeouts.
4501        :type _request_timeout: int, tuple(int, int), optional
4502        :param _request_auth: set to override the auth_settings for an a single
4503                              request; this effectively ignores the
4504                              authentication in the spec for a single request.
4505        :type _request_auth: dict, optional
4506        :param _content_type: force content-type for the request.
4507        :type _content_type: str, Optional
4508        :param _headers: set to override the headers for a single
4509                         request; this effectively ignores the headers
4510                         in the spec for a single request.
4511        :type _headers: dict, optional
4512        :param _host_index: set to override the host_index for a single
4513                            request; this effectively ignores the host_index
4514                            in the spec for a single request.
4515        :type _host_index: int, optional
4516        :return: Returns the result object.
4517        """ # noqa: E501
4518
4519        _param = self._update_destination_connector_serialize(
4520            organization=organization,
4521            destination_connector_id=destination_connector_id,
4522            update_destination_connector_request=update_destination_connector_request,
4523            _request_auth=_request_auth,
4524            _content_type=_content_type,
4525            _headers=_headers,
4526            _host_index=_host_index
4527        )
4528
4529        _response_types_map: Dict[str, Optional[str]] = {
4530            '200': "UpdateDestinationConnectorResponse",
4531            '400': "GetPipelines400Response",
4532            '401': "GetPipelines400Response",
4533            '403': "GetPipelines400Response",
4534            '404': "GetPipelines400Response",
4535            '500': "GetPipelines400Response",
4536        }
4537        response_data = self.api_client.call_api(
4538            *_param,
4539            _request_timeout=_request_timeout
4540        )
4541        response_data.read()
4542        return self.api_client.response_deserialize(
4543            response_data=response_data,
4544            response_types_map=_response_types_map,
4545        ).data
4546
4547
4548    @validate_call
4549    def update_destination_connector_with_http_info(
4550        self,
4551        organization: StrictStr,
4552        destination_connector_id: StrictStr,
4553        update_destination_connector_request: UpdateDestinationConnectorRequest,
4554        _request_timeout: Union[
4555            None,
4556            Annotated[StrictFloat, Field(gt=0)],
4557            Tuple[
4558                Annotated[StrictFloat, Field(gt=0)],
4559                Annotated[StrictFloat, Field(gt=0)]
4560            ]
4561        ] = None,
4562        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4563        _content_type: Optional[StrictStr] = None,
4564        _headers: Optional[Dict[StrictStr, Any]] = None,
4565        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4566    ) -> ApiResponse[UpdateDestinationConnectorResponse]:
4567        """Update a destination connector
4568
4569
4570        :param organization: (required)
4571        :type organization: str
4572        :param destination_connector_id: (required)
4573        :type destination_connector_id: str
4574        :param update_destination_connector_request: (required)
4575        :type update_destination_connector_request: UpdateDestinationConnectorRequest
4576        :param _request_timeout: timeout setting for this request. If one
4577                                 number provided, it will be total request
4578                                 timeout. It can also be a pair (tuple) of
4579                                 (connection, read) timeouts.
4580        :type _request_timeout: int, tuple(int, int), optional
4581        :param _request_auth: set to override the auth_settings for an a single
4582                              request; this effectively ignores the
4583                              authentication in the spec for a single request.
4584        :type _request_auth: dict, optional
4585        :param _content_type: force content-type for the request.
4586        :type _content_type: str, Optional
4587        :param _headers: set to override the headers for a single
4588                         request; this effectively ignores the headers
4589                         in the spec for a single request.
4590        :type _headers: dict, optional
4591        :param _host_index: set to override the host_index for a single
4592                            request; this effectively ignores the host_index
4593                            in the spec for a single request.
4594        :type _host_index: int, optional
4595        :return: Returns the result object.
4596        """ # noqa: E501
4597
4598        _param = self._update_destination_connector_serialize(
4599            organization=organization,
4600            destination_connector_id=destination_connector_id,
4601            update_destination_connector_request=update_destination_connector_request,
4602            _request_auth=_request_auth,
4603            _content_type=_content_type,
4604            _headers=_headers,
4605            _host_index=_host_index
4606        )
4607
4608        _response_types_map: Dict[str, Optional[str]] = {
4609            '200': "UpdateDestinationConnectorResponse",
4610            '400': "GetPipelines400Response",
4611            '401': "GetPipelines400Response",
4612            '403': "GetPipelines400Response",
4613            '404': "GetPipelines400Response",
4614            '500': "GetPipelines400Response",
4615        }
4616        response_data = self.api_client.call_api(
4617            *_param,
4618            _request_timeout=_request_timeout
4619        )
4620        response_data.read()
4621        return self.api_client.response_deserialize(
4622            response_data=response_data,
4623            response_types_map=_response_types_map,
4624        )
4625
4626
4627    @validate_call
4628    def update_destination_connector_without_preload_content(
4629        self,
4630        organization: StrictStr,
4631        destination_connector_id: StrictStr,
4632        update_destination_connector_request: UpdateDestinationConnectorRequest,
4633        _request_timeout: Union[
4634            None,
4635            Annotated[StrictFloat, Field(gt=0)],
4636            Tuple[
4637                Annotated[StrictFloat, Field(gt=0)],
4638                Annotated[StrictFloat, Field(gt=0)]
4639            ]
4640        ] = None,
4641        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4642        _content_type: Optional[StrictStr] = None,
4643        _headers: Optional[Dict[StrictStr, Any]] = None,
4644        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4645    ) -> RESTResponseType:
4646        """Update a destination connector
4647
4648
4649        :param organization: (required)
4650        :type organization: str
4651        :param destination_connector_id: (required)
4652        :type destination_connector_id: str
4653        :param update_destination_connector_request: (required)
4654        :type update_destination_connector_request: UpdateDestinationConnectorRequest
4655        :param _request_timeout: timeout setting for this request. If one
4656                                 number provided, it will be total request
4657                                 timeout. It can also be a pair (tuple) of
4658                                 (connection, read) timeouts.
4659        :type _request_timeout: int, tuple(int, int), optional
4660        :param _request_auth: set to override the auth_settings for an a single
4661                              request; this effectively ignores the
4662                              authentication in the spec for a single request.
4663        :type _request_auth: dict, optional
4664        :param _content_type: force content-type for the request.
4665        :type _content_type: str, Optional
4666        :param _headers: set to override the headers for a single
4667                         request; this effectively ignores the headers
4668                         in the spec for a single request.
4669        :type _headers: dict, optional
4670        :param _host_index: set to override the host_index for a single
4671                            request; this effectively ignores the host_index
4672                            in the spec for a single request.
4673        :type _host_index: int, optional
4674        :return: Returns the result object.
4675        """ # noqa: E501
4676
4677        _param = self._update_destination_connector_serialize(
4678            organization=organization,
4679            destination_connector_id=destination_connector_id,
4680            update_destination_connector_request=update_destination_connector_request,
4681            _request_auth=_request_auth,
4682            _content_type=_content_type,
4683            _headers=_headers,
4684            _host_index=_host_index
4685        )
4686
4687        _response_types_map: Dict[str, Optional[str]] = {
4688            '200': "UpdateDestinationConnectorResponse",
4689            '400': "GetPipelines400Response",
4690            '401': "GetPipelines400Response",
4691            '403': "GetPipelines400Response",
4692            '404': "GetPipelines400Response",
4693            '500': "GetPipelines400Response",
4694        }
4695        response_data = self.api_client.call_api(
4696            *_param,
4697            _request_timeout=_request_timeout
4698        )
4699        return response_data.response
4700
4701
4702    def _update_destination_connector_serialize(
4703        self,
4704        organization,
4705        destination_connector_id,
4706        update_destination_connector_request,
4707        _request_auth,
4708        _content_type,
4709        _headers,
4710        _host_index,
4711    ) -> RequestSerialized:
4712
4713        _host = None
4714
4715        _collection_formats: Dict[str, str] = {
4716        }
4717
4718        _path_params: Dict[str, str] = {}
4719        _query_params: List[Tuple[str, str]] = []
4720        _header_params: Dict[str, Optional[str]] = _headers or {}
4721        _form_params: List[Tuple[str, str]] = []
4722        _files: Dict[
4723            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4724        ] = {}
4725        _body_params: Optional[bytes] = None
4726
4727        # process the path parameters
4728        if organization is not None:
4729            _path_params['organization'] = organization
4730        if destination_connector_id is not None:
4731            _path_params['destinationConnectorId'] = destination_connector_id
4732        # process the query parameters
4733        # process the header parameters
4734        # process the form parameters
4735        # process the body parameter
4736        if update_destination_connector_request is not None:
4737            _body_params = update_destination_connector_request
4738
4739
4740        # set the HTTP header `Accept`
4741        if 'Accept' not in _header_params:
4742            _header_params['Accept'] = self.api_client.select_header_accept(
4743                [
4744                    'application/json'
4745                ]
4746            )
4747
4748        # set the HTTP header `Content-Type`
4749        if _content_type:
4750            _header_params['Content-Type'] = _content_type
4751        else:
4752            _default_content_type = (
4753                self.api_client.select_header_content_type(
4754                    [
4755                        'application/json'
4756                    ]
4757                )
4758            )
4759            if _default_content_type is not None:
4760                _header_params['Content-Type'] = _default_content_type
4761
4762        # authentication setting
4763        _auth_settings: List[str] = [
4764            'bearerAuth'
4765        ]
4766
4767        return self.api_client.param_serialize(
4768            method='PATCH',
4769            resource_path='/org/{organization}/connectors/destinations/{destinationConnectorId}',
4770            path_params=_path_params,
4771            query_params=_query_params,
4772            header_params=_header_params,
4773            body=_body_params,
4774            post_params=_form_params,
4775            files=_files,
4776            auth_settings=_auth_settings,
4777            collection_formats=_collection_formats,
4778            _host=_host,
4779            _request_auth=_request_auth
4780        )
4781
4782
4783
4784
4785    @validate_call
4786    def update_source_connector(
4787        self,
4788        organization: StrictStr,
4789        source_connector_id: StrictStr,
4790        update_source_connector_request: UpdateSourceConnectorRequest,
4791        _request_timeout: Union[
4792            None,
4793            Annotated[StrictFloat, Field(gt=0)],
4794            Tuple[
4795                Annotated[StrictFloat, Field(gt=0)],
4796                Annotated[StrictFloat, Field(gt=0)]
4797            ]
4798        ] = None,
4799        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4800        _content_type: Optional[StrictStr] = None,
4801        _headers: Optional[Dict[StrictStr, Any]] = None,
4802        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4803    ) -> UpdateSourceConnectorResponse:
4804        """Update a source connector
4805
4806
4807        :param organization: (required)
4808        :type organization: str
4809        :param source_connector_id: (required)
4810        :type source_connector_id: str
4811        :param update_source_connector_request: (required)
4812        :type update_source_connector_request: UpdateSourceConnectorRequest
4813        :param _request_timeout: timeout setting for this request. If one
4814                                 number provided, it will be total request
4815                                 timeout. It can also be a pair (tuple) of
4816                                 (connection, read) timeouts.
4817        :type _request_timeout: int, tuple(int, int), optional
4818        :param _request_auth: set to override the auth_settings for an a single
4819                              request; this effectively ignores the
4820                              authentication in the spec for a single request.
4821        :type _request_auth: dict, optional
4822        :param _content_type: force content-type for the request.
4823        :type _content_type: str, Optional
4824        :param _headers: set to override the headers for a single
4825                         request; this effectively ignores the headers
4826                         in the spec for a single request.
4827        :type _headers: dict, optional
4828        :param _host_index: set to override the host_index for a single
4829                            request; this effectively ignores the host_index
4830                            in the spec for a single request.
4831        :type _host_index: int, optional
4832        :return: Returns the result object.
4833        """ # noqa: E501
4834
4835        _param = self._update_source_connector_serialize(
4836            organization=organization,
4837            source_connector_id=source_connector_id,
4838            update_source_connector_request=update_source_connector_request,
4839            _request_auth=_request_auth,
4840            _content_type=_content_type,
4841            _headers=_headers,
4842            _host_index=_host_index
4843        )
4844
4845        _response_types_map: Dict[str, Optional[str]] = {
4846            '200': "UpdateSourceConnectorResponse",
4847            '400': "GetPipelines400Response",
4848            '401': "GetPipelines400Response",
4849            '403': "GetPipelines400Response",
4850            '404': "GetPipelines400Response",
4851            '500': "GetPipelines400Response",
4852        }
4853        response_data = self.api_client.call_api(
4854            *_param,
4855            _request_timeout=_request_timeout
4856        )
4857        response_data.read()
4858        return self.api_client.response_deserialize(
4859            response_data=response_data,
4860            response_types_map=_response_types_map,
4861        ).data
4862
4863
4864    @validate_call
4865    def update_source_connector_with_http_info(
4866        self,
4867        organization: StrictStr,
4868        source_connector_id: StrictStr,
4869        update_source_connector_request: UpdateSourceConnectorRequest,
4870        _request_timeout: Union[
4871            None,
4872            Annotated[StrictFloat, Field(gt=0)],
4873            Tuple[
4874                Annotated[StrictFloat, Field(gt=0)],
4875                Annotated[StrictFloat, Field(gt=0)]
4876            ]
4877        ] = None,
4878        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4879        _content_type: Optional[StrictStr] = None,
4880        _headers: Optional[Dict[StrictStr, Any]] = None,
4881        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4882    ) -> ApiResponse[UpdateSourceConnectorResponse]:
4883        """Update a source connector
4884
4885
4886        :param organization: (required)
4887        :type organization: str
4888        :param source_connector_id: (required)
4889        :type source_connector_id: str
4890        :param update_source_connector_request: (required)
4891        :type update_source_connector_request: UpdateSourceConnectorRequest
4892        :param _request_timeout: timeout setting for this request. If one
4893                                 number provided, it will be total request
4894                                 timeout. It can also be a pair (tuple) of
4895                                 (connection, read) timeouts.
4896        :type _request_timeout: int, tuple(int, int), optional
4897        :param _request_auth: set to override the auth_settings for an a single
4898                              request; this effectively ignores the
4899                              authentication in the spec for a single request.
4900        :type _request_auth: dict, optional
4901        :param _content_type: force content-type for the request.
4902        :type _content_type: str, Optional
4903        :param _headers: set to override the headers for a single
4904                         request; this effectively ignores the headers
4905                         in the spec for a single request.
4906        :type _headers: dict, optional
4907        :param _host_index: set to override the host_index for a single
4908                            request; this effectively ignores the host_index
4909                            in the spec for a single request.
4910        :type _host_index: int, optional
4911        :return: Returns the result object.
4912        """ # noqa: E501
4913
4914        _param = self._update_source_connector_serialize(
4915            organization=organization,
4916            source_connector_id=source_connector_id,
4917            update_source_connector_request=update_source_connector_request,
4918            _request_auth=_request_auth,
4919            _content_type=_content_type,
4920            _headers=_headers,
4921            _host_index=_host_index
4922        )
4923
4924        _response_types_map: Dict[str, Optional[str]] = {
4925            '200': "UpdateSourceConnectorResponse",
4926            '400': "GetPipelines400Response",
4927            '401': "GetPipelines400Response",
4928            '403': "GetPipelines400Response",
4929            '404': "GetPipelines400Response",
4930            '500': "GetPipelines400Response",
4931        }
4932        response_data = self.api_client.call_api(
4933            *_param,
4934            _request_timeout=_request_timeout
4935        )
4936        response_data.read()
4937        return self.api_client.response_deserialize(
4938            response_data=response_data,
4939            response_types_map=_response_types_map,
4940        )
4941
4942
4943    @validate_call
4944    def update_source_connector_without_preload_content(
4945        self,
4946        organization: StrictStr,
4947        source_connector_id: StrictStr,
4948        update_source_connector_request: UpdateSourceConnectorRequest,
4949        _request_timeout: Union[
4950            None,
4951            Annotated[StrictFloat, Field(gt=0)],
4952            Tuple[
4953                Annotated[StrictFloat, Field(gt=0)],
4954                Annotated[StrictFloat, Field(gt=0)]
4955            ]
4956        ] = None,
4957        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4958        _content_type: Optional[StrictStr] = None,
4959        _headers: Optional[Dict[StrictStr, Any]] = None,
4960        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4961    ) -> RESTResponseType:
4962        """Update a source connector
4963
4964
4965        :param organization: (required)
4966        :type organization: str
4967        :param source_connector_id: (required)
4968        :type source_connector_id: str
4969        :param update_source_connector_request: (required)
4970        :type update_source_connector_request: UpdateSourceConnectorRequest
4971        :param _request_timeout: timeout setting for this request. If one
4972                                 number provided, it will be total request
4973                                 timeout. It can also be a pair (tuple) of
4974                                 (connection, read) timeouts.
4975        :type _request_timeout: int, tuple(int, int), optional
4976        :param _request_auth: set to override the auth_settings for an a single
4977                              request; this effectively ignores the
4978                              authentication in the spec for a single request.
4979        :type _request_auth: dict, optional
4980        :param _content_type: force content-type for the request.
4981        :type _content_type: str, Optional
4982        :param _headers: set to override the headers for a single
4983                         request; this effectively ignores the headers
4984                         in the spec for a single request.
4985        :type _headers: dict, optional
4986        :param _host_index: set to override the host_index for a single
4987                            request; this effectively ignores the host_index
4988                            in the spec for a single request.
4989        :type _host_index: int, optional
4990        :return: Returns the result object.
4991        """ # noqa: E501
4992
4993        _param = self._update_source_connector_serialize(
4994            organization=organization,
4995            source_connector_id=source_connector_id,
4996            update_source_connector_request=update_source_connector_request,
4997            _request_auth=_request_auth,
4998            _content_type=_content_type,
4999            _headers=_headers,
5000            _host_index=_host_index
5001        )
5002
5003        _response_types_map: Dict[str, Optional[str]] = {
5004            '200': "UpdateSourceConnectorResponse",
5005            '400': "GetPipelines400Response",
5006            '401': "GetPipelines400Response",
5007            '403': "GetPipelines400Response",
5008            '404': "GetPipelines400Response",
5009            '500': "GetPipelines400Response",
5010        }
5011        response_data = self.api_client.call_api(
5012            *_param,
5013            _request_timeout=_request_timeout
5014        )
5015        return response_data.response
5016
5017
5018    def _update_source_connector_serialize(
5019        self,
5020        organization,
5021        source_connector_id,
5022        update_source_connector_request,
5023        _request_auth,
5024        _content_type,
5025        _headers,
5026        _host_index,
5027    ) -> RequestSerialized:
5028
5029        _host = None
5030
5031        _collection_formats: Dict[str, str] = {
5032        }
5033
5034        _path_params: Dict[str, str] = {}
5035        _query_params: List[Tuple[str, str]] = []
5036        _header_params: Dict[str, Optional[str]] = _headers or {}
5037        _form_params: List[Tuple[str, str]] = []
5038        _files: Dict[
5039            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
5040        ] = {}
5041        _body_params: Optional[bytes] = None
5042
5043        # process the path parameters
5044        if organization is not None:
5045            _path_params['organization'] = organization
5046        if source_connector_id is not None:
5047            _path_params['sourceConnectorId'] = source_connector_id
5048        # process the query parameters
5049        # process the header parameters
5050        # process the form parameters
5051        # process the body parameter
5052        if update_source_connector_request is not None:
5053            _body_params = update_source_connector_request
5054
5055
5056        # set the HTTP header `Accept`
5057        if 'Accept' not in _header_params:
5058            _header_params['Accept'] = self.api_client.select_header_accept(
5059                [
5060                    'application/json'
5061                ]
5062            )
5063
5064        # set the HTTP header `Content-Type`
5065        if _content_type:
5066            _header_params['Content-Type'] = _content_type
5067        else:
5068            _default_content_type = (
5069                self.api_client.select_header_content_type(
5070                    [
5071                        'application/json'
5072                    ]
5073                )
5074            )
5075            if _default_content_type is not None:
5076                _header_params['Content-Type'] = _default_content_type
5077
5078        # authentication setting
5079        _auth_settings: List[str] = [
5080            'bearerAuth'
5081        ]
5082
5083        return self.api_client.param_serialize(
5084            method='PATCH',
5085            resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}',
5086            path_params=_path_params,
5087            query_params=_query_params,
5088            header_params=_header_params,
5089            body=_body_params,
5090            post_params=_form_params,
5091            files=_files,
5092            auth_settings=_auth_settings,
5093            collection_formats=_collection_formats,
5094            _host=_host,
5095            _request_auth=_request_auth
5096        )
5097
5098
5099
5100
5101    @validate_call
5102    def update_user_in_source_connector(
5103        self,
5104        organization: StrictStr,
5105        source_connector_id: StrictStr,
5106        update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest,
5107        _request_timeout: Union[
5108            None,
5109            Annotated[StrictFloat, Field(gt=0)],
5110            Tuple[
5111                Annotated[StrictFloat, Field(gt=0)],
5112                Annotated[StrictFloat, Field(gt=0)]
5113            ]
5114        ] = None,
5115        _request_auth: Optional[Dict[StrictStr, Any]] = None,
5116        _content_type: Optional[StrictStr] = None,
5117        _headers: Optional[Dict[StrictStr, Any]] = None,
5118        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5119    ) -> UpdateUserInSourceConnectorResponse:
5120        """Update a source connector user
5121
5122
5123        :param organization: (required)
5124        :type organization: str
5125        :param source_connector_id: (required)
5126        :type source_connector_id: str
5127        :param update_user_in_source_connector_request: (required)
5128        :type update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest
5129        :param _request_timeout: timeout setting for this request. If one
5130                                 number provided, it will be total request
5131                                 timeout. It can also be a pair (tuple) of
5132                                 (connection, read) timeouts.
5133        :type _request_timeout: int, tuple(int, int), optional
5134        :param _request_auth: set to override the auth_settings for an a single
5135                              request; this effectively ignores the
5136                              authentication in the spec for a single request.
5137        :type _request_auth: dict, optional
5138        :param _content_type: force content-type for the request.
5139        :type _content_type: str, Optional
5140        :param _headers: set to override the headers for a single
5141                         request; this effectively ignores the headers
5142                         in the spec for a single request.
5143        :type _headers: dict, optional
5144        :param _host_index: set to override the host_index for a single
5145                            request; this effectively ignores the host_index
5146                            in the spec for a single request.
5147        :type _host_index: int, optional
5148        :return: Returns the result object.
5149        """ # noqa: E501
5150
5151        _param = self._update_user_in_source_connector_serialize(
5152            organization=organization,
5153            source_connector_id=source_connector_id,
5154            update_user_in_source_connector_request=update_user_in_source_connector_request,
5155            _request_auth=_request_auth,
5156            _content_type=_content_type,
5157            _headers=_headers,
5158            _host_index=_host_index
5159        )
5160
5161        _response_types_map: Dict[str, Optional[str]] = {
5162            '200': "UpdateUserInSourceConnectorResponse",
5163            '400': "GetPipelines400Response",
5164            '401': "GetPipelines400Response",
5165            '403': "GetPipelines400Response",
5166            '404': "GetPipelines400Response",
5167            '500': "GetPipelines400Response",
5168        }
5169        response_data = self.api_client.call_api(
5170            *_param,
5171            _request_timeout=_request_timeout
5172        )
5173        response_data.read()
5174        return self.api_client.response_deserialize(
5175            response_data=response_data,
5176            response_types_map=_response_types_map,
5177        ).data
5178
5179
5180    @validate_call
5181    def update_user_in_source_connector_with_http_info(
5182        self,
5183        organization: StrictStr,
5184        source_connector_id: StrictStr,
5185        update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest,
5186        _request_timeout: Union[
5187            None,
5188            Annotated[StrictFloat, Field(gt=0)],
5189            Tuple[
5190                Annotated[StrictFloat, Field(gt=0)],
5191                Annotated[StrictFloat, Field(gt=0)]
5192            ]
5193        ] = None,
5194        _request_auth: Optional[Dict[StrictStr, Any]] = None,
5195        _content_type: Optional[StrictStr] = None,
5196        _headers: Optional[Dict[StrictStr, Any]] = None,
5197        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5198    ) -> ApiResponse[UpdateUserInSourceConnectorResponse]:
5199        """Update a source connector user
5200
5201
5202        :param organization: (required)
5203        :type organization: str
5204        :param source_connector_id: (required)
5205        :type source_connector_id: str
5206        :param update_user_in_source_connector_request: (required)
5207        :type update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest
5208        :param _request_timeout: timeout setting for this request. If one
5209                                 number provided, it will be total request
5210                                 timeout. It can also be a pair (tuple) of
5211                                 (connection, read) timeouts.
5212        :type _request_timeout: int, tuple(int, int), optional
5213        :param _request_auth: set to override the auth_settings for an a single
5214                              request; this effectively ignores the
5215                              authentication in the spec for a single request.
5216        :type _request_auth: dict, optional
5217        :param _content_type: force content-type for the request.
5218        :type _content_type: str, Optional
5219        :param _headers: set to override the headers for a single
5220                         request; this effectively ignores the headers
5221                         in the spec for a single request.
5222        :type _headers: dict, optional
5223        :param _host_index: set to override the host_index for a single
5224                            request; this effectively ignores the host_index
5225                            in the spec for a single request.
5226        :type _host_index: int, optional
5227        :return: Returns the result object.
5228        """ # noqa: E501
5229
5230        _param = self._update_user_in_source_connector_serialize(
5231            organization=organization,
5232            source_connector_id=source_connector_id,
5233            update_user_in_source_connector_request=update_user_in_source_connector_request,
5234            _request_auth=_request_auth,
5235            _content_type=_content_type,
5236            _headers=_headers,
5237            _host_index=_host_index
5238        )
5239
5240        _response_types_map: Dict[str, Optional[str]] = {
5241            '200': "UpdateUserInSourceConnectorResponse",
5242            '400': "GetPipelines400Response",
5243            '401': "GetPipelines400Response",
5244            '403': "GetPipelines400Response",
5245            '404': "GetPipelines400Response",
5246            '500': "GetPipelines400Response",
5247        }
5248        response_data = self.api_client.call_api(
5249            *_param,
5250            _request_timeout=_request_timeout
5251        )
5252        response_data.read()
5253        return self.api_client.response_deserialize(
5254            response_data=response_data,
5255            response_types_map=_response_types_map,
5256        )
5257
5258
5259    @validate_call
5260    def update_user_in_source_connector_without_preload_content(
5261        self,
5262        organization: StrictStr,
5263        source_connector_id: StrictStr,
5264        update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest,
5265        _request_timeout: Union[
5266            None,
5267            Annotated[StrictFloat, Field(gt=0)],
5268            Tuple[
5269                Annotated[StrictFloat, Field(gt=0)],
5270                Annotated[StrictFloat, Field(gt=0)]
5271            ]
5272        ] = None,
5273        _request_auth: Optional[Dict[StrictStr, Any]] = None,
5274        _content_type: Optional[StrictStr] = None,
5275        _headers: Optional[Dict[StrictStr, Any]] = None,
5276        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5277    ) -> RESTResponseType:
5278        """Update a source connector user
5279
5280
5281        :param organization: (required)
5282        :type organization: str
5283        :param source_connector_id: (required)
5284        :type source_connector_id: str
5285        :param update_user_in_source_connector_request: (required)
5286        :type update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest
5287        :param _request_timeout: timeout setting for this request. If one
5288                                 number provided, it will be total request
5289                                 timeout. It can also be a pair (tuple) of
5290                                 (connection, read) timeouts.
5291        :type _request_timeout: int, tuple(int, int), optional
5292        :param _request_auth: set to override the auth_settings for an a single
5293                              request; this effectively ignores the
5294                              authentication in the spec for a single request.
5295        :type _request_auth: dict, optional
5296        :param _content_type: force content-type for the request.
5297        :type _content_type: str, Optional
5298        :param _headers: set to override the headers for a single
5299                         request; this effectively ignores the headers
5300                         in the spec for a single request.
5301        :type _headers: dict, optional
5302        :param _host_index: set to override the host_index for a single
5303                            request; this effectively ignores the host_index
5304                            in the spec for a single request.
5305        :type _host_index: int, optional
5306        :return: Returns the result object.
5307        """ # noqa: E501
5308
5309        _param = self._update_user_in_source_connector_serialize(
5310            organization=organization,
5311            source_connector_id=source_connector_id,
5312            update_user_in_source_connector_request=update_user_in_source_connector_request,
5313            _request_auth=_request_auth,
5314            _content_type=_content_type,
5315            _headers=_headers,
5316            _host_index=_host_index
5317        )
5318
5319        _response_types_map: Dict[str, Optional[str]] = {
5320            '200': "UpdateUserInSourceConnectorResponse",
5321            '400': "GetPipelines400Response",
5322            '401': "GetPipelines400Response",
5323            '403': "GetPipelines400Response",
5324            '404': "GetPipelines400Response",
5325            '500': "GetPipelines400Response",
5326        }
5327        response_data = self.api_client.call_api(
5328            *_param,
5329            _request_timeout=_request_timeout
5330        )
5331        return response_data.response
5332
5333
5334    def _update_user_in_source_connector_serialize(
5335        self,
5336        organization,
5337        source_connector_id,
5338        update_user_in_source_connector_request,
5339        _request_auth,
5340        _content_type,
5341        _headers,
5342        _host_index,
5343    ) -> RequestSerialized:
5344
5345        _host = None
5346
5347        _collection_formats: Dict[str, str] = {
5348        }
5349
5350        _path_params: Dict[str, str] = {}
5351        _query_params: List[Tuple[str, str]] = []
5352        _header_params: Dict[str, Optional[str]] = _headers or {}
5353        _form_params: List[Tuple[str, str]] = []
5354        _files: Dict[
5355            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
5356        ] = {}
5357        _body_params: Optional[bytes] = None
5358
5359        # process the path parameters
5360        if organization is not None:
5361            _path_params['organization'] = organization
5362        if source_connector_id is not None:
5363            _path_params['sourceConnectorId'] = source_connector_id
5364        # process the query parameters
5365        # process the header parameters
5366        # process the form parameters
5367        # process the body parameter
5368        if update_user_in_source_connector_request is not None:
5369            _body_params = update_user_in_source_connector_request
5370
5371
5372        # set the HTTP header `Accept`
5373        if 'Accept' not in _header_params:
5374            _header_params['Accept'] = self.api_client.select_header_accept(
5375                [
5376                    'application/json'
5377                ]
5378            )
5379
5380        # set the HTTP header `Content-Type`
5381        if _content_type:
5382            _header_params['Content-Type'] = _content_type
5383        else:
5384            _default_content_type = (
5385                self.api_client.select_header_content_type(
5386                    [
5387                        'application/json'
5388                    ]
5389                )
5390            )
5391            if _default_content_type is not None:
5392                _header_params['Content-Type'] = _default_content_type
5393
5394        # authentication setting
5395        _auth_settings: List[str] = [
5396            'bearerAuth'
5397        ]
5398
5399        return self.api_client.param_serialize(
5400            method='PATCH',
5401            resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}/users',
5402            path_params=_path_params,
5403            query_params=_query_params,
5404            header_params=_header_params,
5405            body=_body_params,
5406            post_params=_form_params,
5407            files=_files,
5408            auth_settings=_auth_settings,
5409            collection_formats=_collection_formats,
5410            _host=_host,
5411            _request_auth=_request_auth
5412        )
class ConnectorsApi:
  56class ConnectorsApi:
  57    """NOTE: This class is auto generated by OpenAPI Generator
  58    Ref: https://openapi-generator.tech
  59
  60    Do not edit the class manually.
  61    """
  62
  63    def __init__(self, api_client=None) -> None:
  64        if api_client is None:
  65            api_client = ApiClient.get_default()
  66        self.api_client = api_client
  67
  68
  69    @validate_call
  70    def add_user_to_source_connector(
  71        self,
  72        organization: StrictStr,
  73        source_connector_id: StrictStr,
  74        add_user_to_source_connector_request: AddUserToSourceConnectorRequest,
  75        _request_timeout: Union[
  76            None,
  77            Annotated[StrictFloat, Field(gt=0)],
  78            Tuple[
  79                Annotated[StrictFloat, Field(gt=0)],
  80                Annotated[StrictFloat, Field(gt=0)]
  81            ]
  82        ] = None,
  83        _request_auth: Optional[Dict[StrictStr, Any]] = None,
  84        _content_type: Optional[StrictStr] = None,
  85        _headers: Optional[Dict[StrictStr, Any]] = None,
  86        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
  87    ) -> AddUserFromSourceConnectorResponse:
  88        """Add a user to a source connector
  89
  90
  91        :param organization: (required)
  92        :type organization: str
  93        :param source_connector_id: (required)
  94        :type source_connector_id: str
  95        :param add_user_to_source_connector_request: (required)
  96        :type add_user_to_source_connector_request: AddUserToSourceConnectorRequest
  97        :param _request_timeout: timeout setting for this request. If one
  98                                 number provided, it will be total request
  99                                 timeout. It can also be a pair (tuple) of
 100                                 (connection, read) timeouts.
 101        :type _request_timeout: int, tuple(int, int), optional
 102        :param _request_auth: set to override the auth_settings for an a single
 103                              request; this effectively ignores the
 104                              authentication in the spec for a single request.
 105        :type _request_auth: dict, optional
 106        :param _content_type: force content-type for the request.
 107        :type _content_type: str, Optional
 108        :param _headers: set to override the headers for a single
 109                         request; this effectively ignores the headers
 110                         in the spec for a single request.
 111        :type _headers: dict, optional
 112        :param _host_index: set to override the host_index for a single
 113                            request; this effectively ignores the host_index
 114                            in the spec for a single request.
 115        :type _host_index: int, optional
 116        :return: Returns the result object.
 117        """ # noqa: E501
 118
 119        _param = self._add_user_to_source_connector_serialize(
 120            organization=organization,
 121            source_connector_id=source_connector_id,
 122            add_user_to_source_connector_request=add_user_to_source_connector_request,
 123            _request_auth=_request_auth,
 124            _content_type=_content_type,
 125            _headers=_headers,
 126            _host_index=_host_index
 127        )
 128
 129        _response_types_map: Dict[str, Optional[str]] = {
 130            '200': "AddUserFromSourceConnectorResponse",
 131            '400': "GetPipelines400Response",
 132            '401': "GetPipelines400Response",
 133            '403': "GetPipelines400Response",
 134            '404': "GetPipelines400Response",
 135            '500': "GetPipelines400Response",
 136        }
 137        response_data = self.api_client.call_api(
 138            *_param,
 139            _request_timeout=_request_timeout
 140        )
 141        response_data.read()
 142        return self.api_client.response_deserialize(
 143            response_data=response_data,
 144            response_types_map=_response_types_map,
 145        ).data
 146
 147
 148    @validate_call
 149    def add_user_to_source_connector_with_http_info(
 150        self,
 151        organization: StrictStr,
 152        source_connector_id: StrictStr,
 153        add_user_to_source_connector_request: AddUserToSourceConnectorRequest,
 154        _request_timeout: Union[
 155            None,
 156            Annotated[StrictFloat, Field(gt=0)],
 157            Tuple[
 158                Annotated[StrictFloat, Field(gt=0)],
 159                Annotated[StrictFloat, Field(gt=0)]
 160            ]
 161        ] = None,
 162        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 163        _content_type: Optional[StrictStr] = None,
 164        _headers: Optional[Dict[StrictStr, Any]] = None,
 165        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 166    ) -> ApiResponse[AddUserFromSourceConnectorResponse]:
 167        """Add a user to a source connector
 168
 169
 170        :param organization: (required)
 171        :type organization: str
 172        :param source_connector_id: (required)
 173        :type source_connector_id: str
 174        :param add_user_to_source_connector_request: (required)
 175        :type add_user_to_source_connector_request: AddUserToSourceConnectorRequest
 176        :param _request_timeout: timeout setting for this request. If one
 177                                 number provided, it will be total request
 178                                 timeout. It can also be a pair (tuple) of
 179                                 (connection, read) timeouts.
 180        :type _request_timeout: int, tuple(int, int), optional
 181        :param _request_auth: set to override the auth_settings for an a single
 182                              request; this effectively ignores the
 183                              authentication in the spec for a single request.
 184        :type _request_auth: dict, optional
 185        :param _content_type: force content-type for the request.
 186        :type _content_type: str, Optional
 187        :param _headers: set to override the headers for a single
 188                         request; this effectively ignores the headers
 189                         in the spec for a single request.
 190        :type _headers: dict, optional
 191        :param _host_index: set to override the host_index for a single
 192                            request; this effectively ignores the host_index
 193                            in the spec for a single request.
 194        :type _host_index: int, optional
 195        :return: Returns the result object.
 196        """ # noqa: E501
 197
 198        _param = self._add_user_to_source_connector_serialize(
 199            organization=organization,
 200            source_connector_id=source_connector_id,
 201            add_user_to_source_connector_request=add_user_to_source_connector_request,
 202            _request_auth=_request_auth,
 203            _content_type=_content_type,
 204            _headers=_headers,
 205            _host_index=_host_index
 206        )
 207
 208        _response_types_map: Dict[str, Optional[str]] = {
 209            '200': "AddUserFromSourceConnectorResponse",
 210            '400': "GetPipelines400Response",
 211            '401': "GetPipelines400Response",
 212            '403': "GetPipelines400Response",
 213            '404': "GetPipelines400Response",
 214            '500': "GetPipelines400Response",
 215        }
 216        response_data = self.api_client.call_api(
 217            *_param,
 218            _request_timeout=_request_timeout
 219        )
 220        response_data.read()
 221        return self.api_client.response_deserialize(
 222            response_data=response_data,
 223            response_types_map=_response_types_map,
 224        )
 225
 226
 227    @validate_call
 228    def add_user_to_source_connector_without_preload_content(
 229        self,
 230        organization: StrictStr,
 231        source_connector_id: StrictStr,
 232        add_user_to_source_connector_request: AddUserToSourceConnectorRequest,
 233        _request_timeout: Union[
 234            None,
 235            Annotated[StrictFloat, Field(gt=0)],
 236            Tuple[
 237                Annotated[StrictFloat, Field(gt=0)],
 238                Annotated[StrictFloat, Field(gt=0)]
 239            ]
 240        ] = None,
 241        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 242        _content_type: Optional[StrictStr] = None,
 243        _headers: Optional[Dict[StrictStr, Any]] = None,
 244        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 245    ) -> RESTResponseType:
 246        """Add a user to a source connector
 247
 248
 249        :param organization: (required)
 250        :type organization: str
 251        :param source_connector_id: (required)
 252        :type source_connector_id: str
 253        :param add_user_to_source_connector_request: (required)
 254        :type add_user_to_source_connector_request: AddUserToSourceConnectorRequest
 255        :param _request_timeout: timeout setting for this request. If one
 256                                 number provided, it will be total request
 257                                 timeout. It can also be a pair (tuple) of
 258                                 (connection, read) timeouts.
 259        :type _request_timeout: int, tuple(int, int), optional
 260        :param _request_auth: set to override the auth_settings for an a single
 261                              request; this effectively ignores the
 262                              authentication in the spec for a single request.
 263        :type _request_auth: dict, optional
 264        :param _content_type: force content-type for the request.
 265        :type _content_type: str, Optional
 266        :param _headers: set to override the headers for a single
 267                         request; this effectively ignores the headers
 268                         in the spec for a single request.
 269        :type _headers: dict, optional
 270        :param _host_index: set to override the host_index for a single
 271                            request; this effectively ignores the host_index
 272                            in the spec for a single request.
 273        :type _host_index: int, optional
 274        :return: Returns the result object.
 275        """ # noqa: E501
 276
 277        _param = self._add_user_to_source_connector_serialize(
 278            organization=organization,
 279            source_connector_id=source_connector_id,
 280            add_user_to_source_connector_request=add_user_to_source_connector_request,
 281            _request_auth=_request_auth,
 282            _content_type=_content_type,
 283            _headers=_headers,
 284            _host_index=_host_index
 285        )
 286
 287        _response_types_map: Dict[str, Optional[str]] = {
 288            '200': "AddUserFromSourceConnectorResponse",
 289            '400': "GetPipelines400Response",
 290            '401': "GetPipelines400Response",
 291            '403': "GetPipelines400Response",
 292            '404': "GetPipelines400Response",
 293            '500': "GetPipelines400Response",
 294        }
 295        response_data = self.api_client.call_api(
 296            *_param,
 297            _request_timeout=_request_timeout
 298        )
 299        return response_data.response
 300
 301
 302    def _add_user_to_source_connector_serialize(
 303        self,
 304        organization,
 305        source_connector_id,
 306        add_user_to_source_connector_request,
 307        _request_auth,
 308        _content_type,
 309        _headers,
 310        _host_index,
 311    ) -> RequestSerialized:
 312
 313        _host = None
 314
 315        _collection_formats: Dict[str, str] = {
 316        }
 317
 318        _path_params: Dict[str, str] = {}
 319        _query_params: List[Tuple[str, str]] = []
 320        _header_params: Dict[str, Optional[str]] = _headers or {}
 321        _form_params: List[Tuple[str, str]] = []
 322        _files: Dict[
 323            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
 324        ] = {}
 325        _body_params: Optional[bytes] = None
 326
 327        # process the path parameters
 328        if organization is not None:
 329            _path_params['organization'] = organization
 330        if source_connector_id is not None:
 331            _path_params['sourceConnectorId'] = source_connector_id
 332        # process the query parameters
 333        # process the header parameters
 334        # process the form parameters
 335        # process the body parameter
 336        if add_user_to_source_connector_request is not None:
 337            _body_params = add_user_to_source_connector_request
 338
 339
 340        # set the HTTP header `Accept`
 341        if 'Accept' not in _header_params:
 342            _header_params['Accept'] = self.api_client.select_header_accept(
 343                [
 344                    'application/json'
 345                ]
 346            )
 347
 348        # set the HTTP header `Content-Type`
 349        if _content_type:
 350            _header_params['Content-Type'] = _content_type
 351        else:
 352            _default_content_type = (
 353                self.api_client.select_header_content_type(
 354                    [
 355                        'application/json'
 356                    ]
 357                )
 358            )
 359            if _default_content_type is not None:
 360                _header_params['Content-Type'] = _default_content_type
 361
 362        # authentication setting
 363        _auth_settings: List[str] = [
 364            'bearerAuth'
 365        ]
 366
 367        return self.api_client.param_serialize(
 368            method='POST',
 369            resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}/users',
 370            path_params=_path_params,
 371            query_params=_query_params,
 372            header_params=_header_params,
 373            body=_body_params,
 374            post_params=_form_params,
 375            files=_files,
 376            auth_settings=_auth_settings,
 377            collection_formats=_collection_formats,
 378            _host=_host,
 379            _request_auth=_request_auth
 380        )
 381
 382
 383
 384
 385    @validate_call
 386    def create_ai_platform_connector(
 387        self,
 388        organization: StrictStr,
 389        create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)],
 390        _request_timeout: Union[
 391            None,
 392            Annotated[StrictFloat, Field(gt=0)],
 393            Tuple[
 394                Annotated[StrictFloat, Field(gt=0)],
 395                Annotated[StrictFloat, Field(gt=0)]
 396            ]
 397        ] = None,
 398        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 399        _content_type: Optional[StrictStr] = None,
 400        _headers: Optional[Dict[StrictStr, Any]] = None,
 401        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 402    ) -> CreateAIPlatformConnectorResponse:
 403        """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK):  Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX):  Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI):  Name (name): text, API Key (key): text) | Voyage AI (VOYAGE):  Name (name): text, API Key (key): text) | Built-in (VECTORIZE):  )
 404
 405
 406        :param organization: (required)
 407        :type organization: str
 408        :param create_ai_platform_connector: (required)
 409        :type create_ai_platform_connector: List[CreateAIPlatformConnector]
 410        :param _request_timeout: timeout setting for this request. If one
 411                                 number provided, it will be total request
 412                                 timeout. It can also be a pair (tuple) of
 413                                 (connection, read) timeouts.
 414        :type _request_timeout: int, tuple(int, int), optional
 415        :param _request_auth: set to override the auth_settings for an a single
 416                              request; this effectively ignores the
 417                              authentication in the spec for a single request.
 418        :type _request_auth: dict, optional
 419        :param _content_type: force content-type for the request.
 420        :type _content_type: str, Optional
 421        :param _headers: set to override the headers for a single
 422                         request; this effectively ignores the headers
 423                         in the spec for a single request.
 424        :type _headers: dict, optional
 425        :param _host_index: set to override the host_index for a single
 426                            request; this effectively ignores the host_index
 427                            in the spec for a single request.
 428        :type _host_index: int, optional
 429        :return: Returns the result object.
 430        """ # noqa: E501
 431
 432        _param = self._create_ai_platform_connector_serialize(
 433            organization=organization,
 434            create_ai_platform_connector=create_ai_platform_connector,
 435            _request_auth=_request_auth,
 436            _content_type=_content_type,
 437            _headers=_headers,
 438            _host_index=_host_index
 439        )
 440
 441        _response_types_map: Dict[str, Optional[str]] = {
 442            '200': "CreateAIPlatformConnectorResponse",
 443            '400': "GetPipelines400Response",
 444            '401': "GetPipelines400Response",
 445            '403': "GetPipelines400Response",
 446            '404': "GetPipelines400Response",
 447            '500': "GetPipelines400Response",
 448        }
 449        response_data = self.api_client.call_api(
 450            *_param,
 451            _request_timeout=_request_timeout
 452        )
 453        response_data.read()
 454        return self.api_client.response_deserialize(
 455            response_data=response_data,
 456            response_types_map=_response_types_map,
 457        ).data
 458
 459
 460    @validate_call
 461    def create_ai_platform_connector_with_http_info(
 462        self,
 463        organization: StrictStr,
 464        create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)],
 465        _request_timeout: Union[
 466            None,
 467            Annotated[StrictFloat, Field(gt=0)],
 468            Tuple[
 469                Annotated[StrictFloat, Field(gt=0)],
 470                Annotated[StrictFloat, Field(gt=0)]
 471            ]
 472        ] = None,
 473        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 474        _content_type: Optional[StrictStr] = None,
 475        _headers: Optional[Dict[StrictStr, Any]] = None,
 476        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 477    ) -> ApiResponse[CreateAIPlatformConnectorResponse]:
 478        """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK):  Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX):  Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI):  Name (name): text, API Key (key): text) | Voyage AI (VOYAGE):  Name (name): text, API Key (key): text) | Built-in (VECTORIZE):  )
 479
 480
 481        :param organization: (required)
 482        :type organization: str
 483        :param create_ai_platform_connector: (required)
 484        :type create_ai_platform_connector: List[CreateAIPlatformConnector]
 485        :param _request_timeout: timeout setting for this request. If one
 486                                 number provided, it will be total request
 487                                 timeout. It can also be a pair (tuple) of
 488                                 (connection, read) timeouts.
 489        :type _request_timeout: int, tuple(int, int), optional
 490        :param _request_auth: set to override the auth_settings for an a single
 491                              request; this effectively ignores the
 492                              authentication in the spec for a single request.
 493        :type _request_auth: dict, optional
 494        :param _content_type: force content-type for the request.
 495        :type _content_type: str, Optional
 496        :param _headers: set to override the headers for a single
 497                         request; this effectively ignores the headers
 498                         in the spec for a single request.
 499        :type _headers: dict, optional
 500        :param _host_index: set to override the host_index for a single
 501                            request; this effectively ignores the host_index
 502                            in the spec for a single request.
 503        :type _host_index: int, optional
 504        :return: Returns the result object.
 505        """ # noqa: E501
 506
 507        _param = self._create_ai_platform_connector_serialize(
 508            organization=organization,
 509            create_ai_platform_connector=create_ai_platform_connector,
 510            _request_auth=_request_auth,
 511            _content_type=_content_type,
 512            _headers=_headers,
 513            _host_index=_host_index
 514        )
 515
 516        _response_types_map: Dict[str, Optional[str]] = {
 517            '200': "CreateAIPlatformConnectorResponse",
 518            '400': "GetPipelines400Response",
 519            '401': "GetPipelines400Response",
 520            '403': "GetPipelines400Response",
 521            '404': "GetPipelines400Response",
 522            '500': "GetPipelines400Response",
 523        }
 524        response_data = self.api_client.call_api(
 525            *_param,
 526            _request_timeout=_request_timeout
 527        )
 528        response_data.read()
 529        return self.api_client.response_deserialize(
 530            response_data=response_data,
 531            response_types_map=_response_types_map,
 532        )
 533
 534
 535    @validate_call
 536    def create_ai_platform_connector_without_preload_content(
 537        self,
 538        organization: StrictStr,
 539        create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)],
 540        _request_timeout: Union[
 541            None,
 542            Annotated[StrictFloat, Field(gt=0)],
 543            Tuple[
 544                Annotated[StrictFloat, Field(gt=0)],
 545                Annotated[StrictFloat, Field(gt=0)]
 546            ]
 547        ] = None,
 548        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 549        _content_type: Optional[StrictStr] = None,
 550        _headers: Optional[Dict[StrictStr, Any]] = None,
 551        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 552    ) -> RESTResponseType:
 553        """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK):  Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX):  Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI):  Name (name): text, API Key (key): text) | Voyage AI (VOYAGE):  Name (name): text, API Key (key): text) | Built-in (VECTORIZE):  )
 554
 555
 556        :param organization: (required)
 557        :type organization: str
 558        :param create_ai_platform_connector: (required)
 559        :type create_ai_platform_connector: List[CreateAIPlatformConnector]
 560        :param _request_timeout: timeout setting for this request. If one
 561                                 number provided, it will be total request
 562                                 timeout. It can also be a pair (tuple) of
 563                                 (connection, read) timeouts.
 564        :type _request_timeout: int, tuple(int, int), optional
 565        :param _request_auth: set to override the auth_settings for an a single
 566                              request; this effectively ignores the
 567                              authentication in the spec for a single request.
 568        :type _request_auth: dict, optional
 569        :param _content_type: force content-type for the request.
 570        :type _content_type: str, Optional
 571        :param _headers: set to override the headers for a single
 572                         request; this effectively ignores the headers
 573                         in the spec for a single request.
 574        :type _headers: dict, optional
 575        :param _host_index: set to override the host_index for a single
 576                            request; this effectively ignores the host_index
 577                            in the spec for a single request.
 578        :type _host_index: int, optional
 579        :return: Returns the result object.
 580        """ # noqa: E501
 581
 582        _param = self._create_ai_platform_connector_serialize(
 583            organization=organization,
 584            create_ai_platform_connector=create_ai_platform_connector,
 585            _request_auth=_request_auth,
 586            _content_type=_content_type,
 587            _headers=_headers,
 588            _host_index=_host_index
 589        )
 590
 591        _response_types_map: Dict[str, Optional[str]] = {
 592            '200': "CreateAIPlatformConnectorResponse",
 593            '400': "GetPipelines400Response",
 594            '401': "GetPipelines400Response",
 595            '403': "GetPipelines400Response",
 596            '404': "GetPipelines400Response",
 597            '500': "GetPipelines400Response",
 598        }
 599        response_data = self.api_client.call_api(
 600            *_param,
 601            _request_timeout=_request_timeout
 602        )
 603        return response_data.response
 604
 605
 606    def _create_ai_platform_connector_serialize(
 607        self,
 608        organization,
 609        create_ai_platform_connector,
 610        _request_auth,
 611        _content_type,
 612        _headers,
 613        _host_index,
 614    ) -> RequestSerialized:
 615
 616        _host = None
 617
 618        _collection_formats: Dict[str, str] = {
 619            'CreateAIPlatformConnector': '',
 620        }
 621
 622        _path_params: Dict[str, str] = {}
 623        _query_params: List[Tuple[str, str]] = []
 624        _header_params: Dict[str, Optional[str]] = _headers or {}
 625        _form_params: List[Tuple[str, str]] = []
 626        _files: Dict[
 627            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
 628        ] = {}
 629        _body_params: Optional[bytes] = None
 630
 631        # process the path parameters
 632        if organization is not None:
 633            _path_params['organization'] = organization
 634        # process the query parameters
 635        # process the header parameters
 636        # process the form parameters
 637        # process the body parameter
 638        if create_ai_platform_connector is not None:
 639            _body_params = create_ai_platform_connector
 640
 641
 642        # set the HTTP header `Accept`
 643        if 'Accept' not in _header_params:
 644            _header_params['Accept'] = self.api_client.select_header_accept(
 645                [
 646                    'application/json'
 647                ]
 648            )
 649
 650        # set the HTTP header `Content-Type`
 651        if _content_type:
 652            _header_params['Content-Type'] = _content_type
 653        else:
 654            _default_content_type = (
 655                self.api_client.select_header_content_type(
 656                    [
 657                        'application/json'
 658                    ]
 659                )
 660            )
 661            if _default_content_type is not None:
 662                _header_params['Content-Type'] = _default_content_type
 663
 664        # authentication setting
 665        _auth_settings: List[str] = [
 666            'bearerAuth'
 667        ]
 668
 669        return self.api_client.param_serialize(
 670            method='POST',
 671            resource_path='/org/{organization}/connectors/aiplatforms',
 672            path_params=_path_params,
 673            query_params=_query_params,
 674            header_params=_header_params,
 675            body=_body_params,
 676            post_params=_form_params,
 677            files=_files,
 678            auth_settings=_auth_settings,
 679            collection_formats=_collection_formats,
 680            _host=_host,
 681            _request_auth=_request_auth
 682        )
 683
 684
 685
 686
 687    @validate_call
 688    def create_destination_connector(
 689        self,
 690        organization: StrictStr,
 691        create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)],
 692        _request_timeout: Union[
 693            None,
 694            Annotated[StrictFloat, Field(gt=0)],
 695            Tuple[
 696                Annotated[StrictFloat, Field(gt=0)],
 697                Annotated[StrictFloat, Field(gt=0)]
 698            ]
 699        ] = None,
 700        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 701        _content_type: Optional[StrictStr] = None,
 702        _headers: Optional[Dict[StrictStr, Any]] = None,
 703        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 704    ) -> CreateDestinationConnectorResponse:
 705        """Create a new destination connector. Config values: Couchbase Capella (CAPELLA):  Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX):  Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC):  Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE):  Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS):  Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT):  Name (name): text, Host (host): text, API Key (api-key): text) | Supabase (SUPABASE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Weaviate (WEAVIATE):  Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH):  Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE):  ) | Chroma (CHROMA):  Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB):  Name (name): text, API Key (apiKey): text)
 706
 707
 708        :param organization: (required)
 709        :type organization: str
 710        :param create_destination_connector: (required)
 711        :type create_destination_connector: List[CreateDestinationConnector]
 712        :param _request_timeout: timeout setting for this request. If one
 713                                 number provided, it will be total request
 714                                 timeout. It can also be a pair (tuple) of
 715                                 (connection, read) timeouts.
 716        :type _request_timeout: int, tuple(int, int), optional
 717        :param _request_auth: set to override the auth_settings for an a single
 718                              request; this effectively ignores the
 719                              authentication in the spec for a single request.
 720        :type _request_auth: dict, optional
 721        :param _content_type: force content-type for the request.
 722        :type _content_type: str, Optional
 723        :param _headers: set to override the headers for a single
 724                         request; this effectively ignores the headers
 725                         in the spec for a single request.
 726        :type _headers: dict, optional
 727        :param _host_index: set to override the host_index for a single
 728                            request; this effectively ignores the host_index
 729                            in the spec for a single request.
 730        :type _host_index: int, optional
 731        :return: Returns the result object.
 732        """ # noqa: E501
 733
 734        _param = self._create_destination_connector_serialize(
 735            organization=organization,
 736            create_destination_connector=create_destination_connector,
 737            _request_auth=_request_auth,
 738            _content_type=_content_type,
 739            _headers=_headers,
 740            _host_index=_host_index
 741        )
 742
 743        _response_types_map: Dict[str, Optional[str]] = {
 744            '200': "CreateDestinationConnectorResponse",
 745            '400': "GetPipelines400Response",
 746            '401': "GetPipelines400Response",
 747            '403': "GetPipelines400Response",
 748            '404': "GetPipelines400Response",
 749            '500': "GetPipelines400Response",
 750        }
 751        response_data = self.api_client.call_api(
 752            *_param,
 753            _request_timeout=_request_timeout
 754        )
 755        response_data.read()
 756        return self.api_client.response_deserialize(
 757            response_data=response_data,
 758            response_types_map=_response_types_map,
 759        ).data
 760
 761
 762    @validate_call
 763    def create_destination_connector_with_http_info(
 764        self,
 765        organization: StrictStr,
 766        create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)],
 767        _request_timeout: Union[
 768            None,
 769            Annotated[StrictFloat, Field(gt=0)],
 770            Tuple[
 771                Annotated[StrictFloat, Field(gt=0)],
 772                Annotated[StrictFloat, Field(gt=0)]
 773            ]
 774        ] = None,
 775        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 776        _content_type: Optional[StrictStr] = None,
 777        _headers: Optional[Dict[StrictStr, Any]] = None,
 778        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 779    ) -> ApiResponse[CreateDestinationConnectorResponse]:
 780        """Create a new destination connector. Config values: Couchbase Capella (CAPELLA):  Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX):  Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC):  Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE):  Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS):  Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT):  Name (name): text, Host (host): text, API Key (api-key): text) | Supabase (SUPABASE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Weaviate (WEAVIATE):  Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH):  Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE):  ) | Chroma (CHROMA):  Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB):  Name (name): text, API Key (apiKey): text)
 781
 782
 783        :param organization: (required)
 784        :type organization: str
 785        :param create_destination_connector: (required)
 786        :type create_destination_connector: List[CreateDestinationConnector]
 787        :param _request_timeout: timeout setting for this request. If one
 788                                 number provided, it will be total request
 789                                 timeout. It can also be a pair (tuple) of
 790                                 (connection, read) timeouts.
 791        :type _request_timeout: int, tuple(int, int), optional
 792        :param _request_auth: set to override the auth_settings for an a single
 793                              request; this effectively ignores the
 794                              authentication in the spec for a single request.
 795        :type _request_auth: dict, optional
 796        :param _content_type: force content-type for the request.
 797        :type _content_type: str, Optional
 798        :param _headers: set to override the headers for a single
 799                         request; this effectively ignores the headers
 800                         in the spec for a single request.
 801        :type _headers: dict, optional
 802        :param _host_index: set to override the host_index for a single
 803                            request; this effectively ignores the host_index
 804                            in the spec for a single request.
 805        :type _host_index: int, optional
 806        :return: Returns the result object.
 807        """ # noqa: E501
 808
 809        _param = self._create_destination_connector_serialize(
 810            organization=organization,
 811            create_destination_connector=create_destination_connector,
 812            _request_auth=_request_auth,
 813            _content_type=_content_type,
 814            _headers=_headers,
 815            _host_index=_host_index
 816        )
 817
 818        _response_types_map: Dict[str, Optional[str]] = {
 819            '200': "CreateDestinationConnectorResponse",
 820            '400': "GetPipelines400Response",
 821            '401': "GetPipelines400Response",
 822            '403': "GetPipelines400Response",
 823            '404': "GetPipelines400Response",
 824            '500': "GetPipelines400Response",
 825        }
 826        response_data = self.api_client.call_api(
 827            *_param,
 828            _request_timeout=_request_timeout
 829        )
 830        response_data.read()
 831        return self.api_client.response_deserialize(
 832            response_data=response_data,
 833            response_types_map=_response_types_map,
 834        )
 835
 836
 837    @validate_call
 838    def create_destination_connector_without_preload_content(
 839        self,
 840        organization: StrictStr,
 841        create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)],
 842        _request_timeout: Union[
 843            None,
 844            Annotated[StrictFloat, Field(gt=0)],
 845            Tuple[
 846                Annotated[StrictFloat, Field(gt=0)],
 847                Annotated[StrictFloat, Field(gt=0)]
 848            ]
 849        ] = None,
 850        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 851        _content_type: Optional[StrictStr] = None,
 852        _headers: Optional[Dict[StrictStr, Any]] = None,
 853        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 854    ) -> RESTResponseType:
 855        """Create a new destination connector. Config values: Couchbase Capella (CAPELLA):  Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX):  Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC):  Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE):  Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS):  Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT):  Name (name): text, Host (host): text, API Key (api-key): text) | Supabase (SUPABASE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Weaviate (WEAVIATE):  Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH):  Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE):  ) | Chroma (CHROMA):  Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB):  Name (name): text, API Key (apiKey): text)
 856
 857
 858        :param organization: (required)
 859        :type organization: str
 860        :param create_destination_connector: (required)
 861        :type create_destination_connector: List[CreateDestinationConnector]
 862        :param _request_timeout: timeout setting for this request. If one
 863                                 number provided, it will be total request
 864                                 timeout. It can also be a pair (tuple) of
 865                                 (connection, read) timeouts.
 866        :type _request_timeout: int, tuple(int, int), optional
 867        :param _request_auth: set to override the auth_settings for an a single
 868                              request; this effectively ignores the
 869                              authentication in the spec for a single request.
 870        :type _request_auth: dict, optional
 871        :param _content_type: force content-type for the request.
 872        :type _content_type: str, Optional
 873        :param _headers: set to override the headers for a single
 874                         request; this effectively ignores the headers
 875                         in the spec for a single request.
 876        :type _headers: dict, optional
 877        :param _host_index: set to override the host_index for a single
 878                            request; this effectively ignores the host_index
 879                            in the spec for a single request.
 880        :type _host_index: int, optional
 881        :return: Returns the result object.
 882        """ # noqa: E501
 883
 884        _param = self._create_destination_connector_serialize(
 885            organization=organization,
 886            create_destination_connector=create_destination_connector,
 887            _request_auth=_request_auth,
 888            _content_type=_content_type,
 889            _headers=_headers,
 890            _host_index=_host_index
 891        )
 892
 893        _response_types_map: Dict[str, Optional[str]] = {
 894            '200': "CreateDestinationConnectorResponse",
 895            '400': "GetPipelines400Response",
 896            '401': "GetPipelines400Response",
 897            '403': "GetPipelines400Response",
 898            '404': "GetPipelines400Response",
 899            '500': "GetPipelines400Response",
 900        }
 901        response_data = self.api_client.call_api(
 902            *_param,
 903            _request_timeout=_request_timeout
 904        )
 905        return response_data.response
 906
 907
 908    def _create_destination_connector_serialize(
 909        self,
 910        organization,
 911        create_destination_connector,
 912        _request_auth,
 913        _content_type,
 914        _headers,
 915        _host_index,
 916    ) -> RequestSerialized:
 917
 918        _host = None
 919
 920        _collection_formats: Dict[str, str] = {
 921            'CreateDestinationConnector': '',
 922        }
 923
 924        _path_params: Dict[str, str] = {}
 925        _query_params: List[Tuple[str, str]] = []
 926        _header_params: Dict[str, Optional[str]] = _headers or {}
 927        _form_params: List[Tuple[str, str]] = []
 928        _files: Dict[
 929            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
 930        ] = {}
 931        _body_params: Optional[bytes] = None
 932
 933        # process the path parameters
 934        if organization is not None:
 935            _path_params['organization'] = organization
 936        # process the query parameters
 937        # process the header parameters
 938        # process the form parameters
 939        # process the body parameter
 940        if create_destination_connector is not None:
 941            _body_params = create_destination_connector
 942
 943
 944        # set the HTTP header `Accept`
 945        if 'Accept' not in _header_params:
 946            _header_params['Accept'] = self.api_client.select_header_accept(
 947                [
 948                    'application/json'
 949                ]
 950            )
 951
 952        # set the HTTP header `Content-Type`
 953        if _content_type:
 954            _header_params['Content-Type'] = _content_type
 955        else:
 956            _default_content_type = (
 957                self.api_client.select_header_content_type(
 958                    [
 959                        'application/json'
 960                    ]
 961                )
 962            )
 963            if _default_content_type is not None:
 964                _header_params['Content-Type'] = _default_content_type
 965
 966        # authentication setting
 967        _auth_settings: List[str] = [
 968            'bearerAuth'
 969        ]
 970
 971        return self.api_client.param_serialize(
 972            method='POST',
 973            resource_path='/org/{organization}/connectors/destinations',
 974            path_params=_path_params,
 975            query_params=_query_params,
 976            header_params=_header_params,
 977            body=_body_params,
 978            post_params=_form_params,
 979            files=_files,
 980            auth_settings=_auth_settings,
 981            collection_formats=_collection_formats,
 982            _host=_host,
 983            _request_auth=_request_auth
 984        )
 985
 986
 987
 988
 989    @validate_call
 990    def create_source_connector(
 991        self,
 992        organization: StrictStr,
 993        create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)],
 994        _request_timeout: Union[
 995            None,
 996            Annotated[StrictFloat, Field(gt=0)],
 997            Tuple[
 998                Annotated[StrictFloat, Field(gt=0)],
 999                Annotated[StrictFloat, Field(gt=0)]
1000            ]
1001        ] = None,
1002        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1003        _content_type: Optional[StrictStr] = None,
1004        _headers: Optional[Dict[StrictStr, Any]] = None,
1005        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1006    ) -> CreateSourceConnectorResponse:
1007        """Create a new source connector. Config values: Amazon S3 (AWS_S3):  Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB):  Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE):  Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD):  Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX):  Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH):  Name (name): text) | Google Drive (Service Account) (GOOGLE_DRIVE):  Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI):  Name (name): text) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM):  Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL):  Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS):  Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Intercom (INTERCOM):  Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER):  Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD):  Name (name): text)
1008
1009
1010        :param organization: (required)
1011        :type organization: str
1012        :param create_source_connector: (required)
1013        :type create_source_connector: List[CreateSourceConnector]
1014        :param _request_timeout: timeout setting for this request. If one
1015                                 number provided, it will be total request
1016                                 timeout. It can also be a pair (tuple) of
1017                                 (connection, read) timeouts.
1018        :type _request_timeout: int, tuple(int, int), optional
1019        :param _request_auth: set to override the auth_settings for an a single
1020                              request; this effectively ignores the
1021                              authentication in the spec for a single request.
1022        :type _request_auth: dict, optional
1023        :param _content_type: force content-type for the request.
1024        :type _content_type: str, Optional
1025        :param _headers: set to override the headers for a single
1026                         request; this effectively ignores the headers
1027                         in the spec for a single request.
1028        :type _headers: dict, optional
1029        :param _host_index: set to override the host_index for a single
1030                            request; this effectively ignores the host_index
1031                            in the spec for a single request.
1032        :type _host_index: int, optional
1033        :return: Returns the result object.
1034        """ # noqa: E501
1035
1036        _param = self._create_source_connector_serialize(
1037            organization=organization,
1038            create_source_connector=create_source_connector,
1039            _request_auth=_request_auth,
1040            _content_type=_content_type,
1041            _headers=_headers,
1042            _host_index=_host_index
1043        )
1044
1045        _response_types_map: Dict[str, Optional[str]] = {
1046            '200': "CreateSourceConnectorResponse",
1047            '400': "GetPipelines400Response",
1048            '401': "GetPipelines400Response",
1049            '403': "GetPipelines400Response",
1050            '404': "GetPipelines400Response",
1051            '500': "GetPipelines400Response",
1052        }
1053        response_data = self.api_client.call_api(
1054            *_param,
1055            _request_timeout=_request_timeout
1056        )
1057        response_data.read()
1058        return self.api_client.response_deserialize(
1059            response_data=response_data,
1060            response_types_map=_response_types_map,
1061        ).data
1062
1063
1064    @validate_call
1065    def create_source_connector_with_http_info(
1066        self,
1067        organization: StrictStr,
1068        create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)],
1069        _request_timeout: Union[
1070            None,
1071            Annotated[StrictFloat, Field(gt=0)],
1072            Tuple[
1073                Annotated[StrictFloat, Field(gt=0)],
1074                Annotated[StrictFloat, Field(gt=0)]
1075            ]
1076        ] = None,
1077        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1078        _content_type: Optional[StrictStr] = None,
1079        _headers: Optional[Dict[StrictStr, Any]] = None,
1080        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1081    ) -> ApiResponse[CreateSourceConnectorResponse]:
1082        """Create a new source connector. Config values: Amazon S3 (AWS_S3):  Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB):  Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE):  Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD):  Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX):  Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH):  Name (name): text) | Google Drive (Service Account) (GOOGLE_DRIVE):  Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI):  Name (name): text) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM):  Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL):  Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS):  Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Intercom (INTERCOM):  Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER):  Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD):  Name (name): text)
1083
1084
1085        :param organization: (required)
1086        :type organization: str
1087        :param create_source_connector: (required)
1088        :type create_source_connector: List[CreateSourceConnector]
1089        :param _request_timeout: timeout setting for this request. If one
1090                                 number provided, it will be total request
1091                                 timeout. It can also be a pair (tuple) of
1092                                 (connection, read) timeouts.
1093        :type _request_timeout: int, tuple(int, int), optional
1094        :param _request_auth: set to override the auth_settings for an a single
1095                              request; this effectively ignores the
1096                              authentication in the spec for a single request.
1097        :type _request_auth: dict, optional
1098        :param _content_type: force content-type for the request.
1099        :type _content_type: str, Optional
1100        :param _headers: set to override the headers for a single
1101                         request; this effectively ignores the headers
1102                         in the spec for a single request.
1103        :type _headers: dict, optional
1104        :param _host_index: set to override the host_index for a single
1105                            request; this effectively ignores the host_index
1106                            in the spec for a single request.
1107        :type _host_index: int, optional
1108        :return: Returns the result object.
1109        """ # noqa: E501
1110
1111        _param = self._create_source_connector_serialize(
1112            organization=organization,
1113            create_source_connector=create_source_connector,
1114            _request_auth=_request_auth,
1115            _content_type=_content_type,
1116            _headers=_headers,
1117            _host_index=_host_index
1118        )
1119
1120        _response_types_map: Dict[str, Optional[str]] = {
1121            '200': "CreateSourceConnectorResponse",
1122            '400': "GetPipelines400Response",
1123            '401': "GetPipelines400Response",
1124            '403': "GetPipelines400Response",
1125            '404': "GetPipelines400Response",
1126            '500': "GetPipelines400Response",
1127        }
1128        response_data = self.api_client.call_api(
1129            *_param,
1130            _request_timeout=_request_timeout
1131        )
1132        response_data.read()
1133        return self.api_client.response_deserialize(
1134            response_data=response_data,
1135            response_types_map=_response_types_map,
1136        )
1137
1138
1139    @validate_call
1140    def create_source_connector_without_preload_content(
1141        self,
1142        organization: StrictStr,
1143        create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)],
1144        _request_timeout: Union[
1145            None,
1146            Annotated[StrictFloat, Field(gt=0)],
1147            Tuple[
1148                Annotated[StrictFloat, Field(gt=0)],
1149                Annotated[StrictFloat, Field(gt=0)]
1150            ]
1151        ] = None,
1152        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1153        _content_type: Optional[StrictStr] = None,
1154        _headers: Optional[Dict[StrictStr, Any]] = None,
1155        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1156    ) -> RESTResponseType:
1157        """Create a new source connector. Config values: Amazon S3 (AWS_S3):  Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB):  Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE):  Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD):  Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX):  Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH):  Name (name): text) | Google Drive (Service Account) (GOOGLE_DRIVE):  Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI):  Name (name): text) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM):  Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL):  Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS):  Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Intercom (INTERCOM):  Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER):  Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD):  Name (name): text)
1158
1159
1160        :param organization: (required)
1161        :type organization: str
1162        :param create_source_connector: (required)
1163        :type create_source_connector: List[CreateSourceConnector]
1164        :param _request_timeout: timeout setting for this request. If one
1165                                 number provided, it will be total request
1166                                 timeout. It can also be a pair (tuple) of
1167                                 (connection, read) timeouts.
1168        :type _request_timeout: int, tuple(int, int), optional
1169        :param _request_auth: set to override the auth_settings for an a single
1170                              request; this effectively ignores the
1171                              authentication in the spec for a single request.
1172        :type _request_auth: dict, optional
1173        :param _content_type: force content-type for the request.
1174        :type _content_type: str, Optional
1175        :param _headers: set to override the headers for a single
1176                         request; this effectively ignores the headers
1177                         in the spec for a single request.
1178        :type _headers: dict, optional
1179        :param _host_index: set to override the host_index for a single
1180                            request; this effectively ignores the host_index
1181                            in the spec for a single request.
1182        :type _host_index: int, optional
1183        :return: Returns the result object.
1184        """ # noqa: E501
1185
1186        _param = self._create_source_connector_serialize(
1187            organization=organization,
1188            create_source_connector=create_source_connector,
1189            _request_auth=_request_auth,
1190            _content_type=_content_type,
1191            _headers=_headers,
1192            _host_index=_host_index
1193        )
1194
1195        _response_types_map: Dict[str, Optional[str]] = {
1196            '200': "CreateSourceConnectorResponse",
1197            '400': "GetPipelines400Response",
1198            '401': "GetPipelines400Response",
1199            '403': "GetPipelines400Response",
1200            '404': "GetPipelines400Response",
1201            '500': "GetPipelines400Response",
1202        }
1203        response_data = self.api_client.call_api(
1204            *_param,
1205            _request_timeout=_request_timeout
1206        )
1207        return response_data.response
1208
1209
1210    def _create_source_connector_serialize(
1211        self,
1212        organization,
1213        create_source_connector,
1214        _request_auth,
1215        _content_type,
1216        _headers,
1217        _host_index,
1218    ) -> RequestSerialized:
1219
1220        _host = None
1221
1222        _collection_formats: Dict[str, str] = {
1223            'CreateSourceConnector': '',
1224        }
1225
1226        _path_params: Dict[str, str] = {}
1227        _query_params: List[Tuple[str, str]] = []
1228        _header_params: Dict[str, Optional[str]] = _headers or {}
1229        _form_params: List[Tuple[str, str]] = []
1230        _files: Dict[
1231            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1232        ] = {}
1233        _body_params: Optional[bytes] = None
1234
1235        # process the path parameters
1236        if organization is not None:
1237            _path_params['organization'] = organization
1238        # process the query parameters
1239        # process the header parameters
1240        # process the form parameters
1241        # process the body parameter
1242        if create_source_connector is not None:
1243            _body_params = create_source_connector
1244
1245
1246        # set the HTTP header `Accept`
1247        if 'Accept' not in _header_params:
1248            _header_params['Accept'] = self.api_client.select_header_accept(
1249                [
1250                    'application/json'
1251                ]
1252            )
1253
1254        # set the HTTP header `Content-Type`
1255        if _content_type:
1256            _header_params['Content-Type'] = _content_type
1257        else:
1258            _default_content_type = (
1259                self.api_client.select_header_content_type(
1260                    [
1261                        'application/json'
1262                    ]
1263                )
1264            )
1265            if _default_content_type is not None:
1266                _header_params['Content-Type'] = _default_content_type
1267
1268        # authentication setting
1269        _auth_settings: List[str] = [
1270            'bearerAuth'
1271        ]
1272
1273        return self.api_client.param_serialize(
1274            method='POST',
1275            resource_path='/org/{organization}/connectors/sources',
1276            path_params=_path_params,
1277            query_params=_query_params,
1278            header_params=_header_params,
1279            body=_body_params,
1280            post_params=_form_params,
1281            files=_files,
1282            auth_settings=_auth_settings,
1283            collection_formats=_collection_formats,
1284            _host=_host,
1285            _request_auth=_request_auth
1286        )
1287
1288
1289
1290
1291    @validate_call
1292    def delete_ai_platform(
1293        self,
1294        organization: StrictStr,
1295        aiplatform_id: StrictStr,
1296        _request_timeout: Union[
1297            None,
1298            Annotated[StrictFloat, Field(gt=0)],
1299            Tuple[
1300                Annotated[StrictFloat, Field(gt=0)],
1301                Annotated[StrictFloat, Field(gt=0)]
1302            ]
1303        ] = None,
1304        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1305        _content_type: Optional[StrictStr] = None,
1306        _headers: Optional[Dict[StrictStr, Any]] = None,
1307        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1308    ) -> DeleteAIPlatformConnectorResponse:
1309        """Delete an AI platform connector
1310
1311
1312        :param organization: (required)
1313        :type organization: str
1314        :param aiplatform_id: (required)
1315        :type aiplatform_id: str
1316        :param _request_timeout: timeout setting for this request. If one
1317                                 number provided, it will be total request
1318                                 timeout. It can also be a pair (tuple) of
1319                                 (connection, read) timeouts.
1320        :type _request_timeout: int, tuple(int, int), optional
1321        :param _request_auth: set to override the auth_settings for an a single
1322                              request; this effectively ignores the
1323                              authentication in the spec for a single request.
1324        :type _request_auth: dict, optional
1325        :param _content_type: force content-type for the request.
1326        :type _content_type: str, Optional
1327        :param _headers: set to override the headers for a single
1328                         request; this effectively ignores the headers
1329                         in the spec for a single request.
1330        :type _headers: dict, optional
1331        :param _host_index: set to override the host_index for a single
1332                            request; this effectively ignores the host_index
1333                            in the spec for a single request.
1334        :type _host_index: int, optional
1335        :return: Returns the result object.
1336        """ # noqa: E501
1337
1338        _param = self._delete_ai_platform_serialize(
1339            organization=organization,
1340            aiplatform_id=aiplatform_id,
1341            _request_auth=_request_auth,
1342            _content_type=_content_type,
1343            _headers=_headers,
1344            _host_index=_host_index
1345        )
1346
1347        _response_types_map: Dict[str, Optional[str]] = {
1348            '200': "DeleteAIPlatformConnectorResponse",
1349            '400': "GetPipelines400Response",
1350            '401': "GetPipelines400Response",
1351            '403': "GetPipelines400Response",
1352            '404': "GetPipelines400Response",
1353            '500': "GetPipelines400Response",
1354        }
1355        response_data = self.api_client.call_api(
1356            *_param,
1357            _request_timeout=_request_timeout
1358        )
1359        response_data.read()
1360        return self.api_client.response_deserialize(
1361            response_data=response_data,
1362            response_types_map=_response_types_map,
1363        ).data
1364
1365
1366    @validate_call
1367    def delete_ai_platform_with_http_info(
1368        self,
1369        organization: StrictStr,
1370        aiplatform_id: StrictStr,
1371        _request_timeout: Union[
1372            None,
1373            Annotated[StrictFloat, Field(gt=0)],
1374            Tuple[
1375                Annotated[StrictFloat, Field(gt=0)],
1376                Annotated[StrictFloat, Field(gt=0)]
1377            ]
1378        ] = None,
1379        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1380        _content_type: Optional[StrictStr] = None,
1381        _headers: Optional[Dict[StrictStr, Any]] = None,
1382        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1383    ) -> ApiResponse[DeleteAIPlatformConnectorResponse]:
1384        """Delete an AI platform connector
1385
1386
1387        :param organization: (required)
1388        :type organization: str
1389        :param aiplatform_id: (required)
1390        :type aiplatform_id: str
1391        :param _request_timeout: timeout setting for this request. If one
1392                                 number provided, it will be total request
1393                                 timeout. It can also be a pair (tuple) of
1394                                 (connection, read) timeouts.
1395        :type _request_timeout: int, tuple(int, int), optional
1396        :param _request_auth: set to override the auth_settings for an a single
1397                              request; this effectively ignores the
1398                              authentication in the spec for a single request.
1399        :type _request_auth: dict, optional
1400        :param _content_type: force content-type for the request.
1401        :type _content_type: str, Optional
1402        :param _headers: set to override the headers for a single
1403                         request; this effectively ignores the headers
1404                         in the spec for a single request.
1405        :type _headers: dict, optional
1406        :param _host_index: set to override the host_index for a single
1407                            request; this effectively ignores the host_index
1408                            in the spec for a single request.
1409        :type _host_index: int, optional
1410        :return: Returns the result object.
1411        """ # noqa: E501
1412
1413        _param = self._delete_ai_platform_serialize(
1414            organization=organization,
1415            aiplatform_id=aiplatform_id,
1416            _request_auth=_request_auth,
1417            _content_type=_content_type,
1418            _headers=_headers,
1419            _host_index=_host_index
1420        )
1421
1422        _response_types_map: Dict[str, Optional[str]] = {
1423            '200': "DeleteAIPlatformConnectorResponse",
1424            '400': "GetPipelines400Response",
1425            '401': "GetPipelines400Response",
1426            '403': "GetPipelines400Response",
1427            '404': "GetPipelines400Response",
1428            '500': "GetPipelines400Response",
1429        }
1430        response_data = self.api_client.call_api(
1431            *_param,
1432            _request_timeout=_request_timeout
1433        )
1434        response_data.read()
1435        return self.api_client.response_deserialize(
1436            response_data=response_data,
1437            response_types_map=_response_types_map,
1438        )
1439
1440
1441    @validate_call
1442    def delete_ai_platform_without_preload_content(
1443        self,
1444        organization: StrictStr,
1445        aiplatform_id: StrictStr,
1446        _request_timeout: Union[
1447            None,
1448            Annotated[StrictFloat, Field(gt=0)],
1449            Tuple[
1450                Annotated[StrictFloat, Field(gt=0)],
1451                Annotated[StrictFloat, Field(gt=0)]
1452            ]
1453        ] = None,
1454        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1455        _content_type: Optional[StrictStr] = None,
1456        _headers: Optional[Dict[StrictStr, Any]] = None,
1457        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1458    ) -> RESTResponseType:
1459        """Delete an AI platform connector
1460
1461
1462        :param organization: (required)
1463        :type organization: str
1464        :param aiplatform_id: (required)
1465        :type aiplatform_id: str
1466        :param _request_timeout: timeout setting for this request. If one
1467                                 number provided, it will be total request
1468                                 timeout. It can also be a pair (tuple) of
1469                                 (connection, read) timeouts.
1470        :type _request_timeout: int, tuple(int, int), optional
1471        :param _request_auth: set to override the auth_settings for an a single
1472                              request; this effectively ignores the
1473                              authentication in the spec for a single request.
1474        :type _request_auth: dict, optional
1475        :param _content_type: force content-type for the request.
1476        :type _content_type: str, Optional
1477        :param _headers: set to override the headers for a single
1478                         request; this effectively ignores the headers
1479                         in the spec for a single request.
1480        :type _headers: dict, optional
1481        :param _host_index: set to override the host_index for a single
1482                            request; this effectively ignores the host_index
1483                            in the spec for a single request.
1484        :type _host_index: int, optional
1485        :return: Returns the result object.
1486        """ # noqa: E501
1487
1488        _param = self._delete_ai_platform_serialize(
1489            organization=organization,
1490            aiplatform_id=aiplatform_id,
1491            _request_auth=_request_auth,
1492            _content_type=_content_type,
1493            _headers=_headers,
1494            _host_index=_host_index
1495        )
1496
1497        _response_types_map: Dict[str, Optional[str]] = {
1498            '200': "DeleteAIPlatformConnectorResponse",
1499            '400': "GetPipelines400Response",
1500            '401': "GetPipelines400Response",
1501            '403': "GetPipelines400Response",
1502            '404': "GetPipelines400Response",
1503            '500': "GetPipelines400Response",
1504        }
1505        response_data = self.api_client.call_api(
1506            *_param,
1507            _request_timeout=_request_timeout
1508        )
1509        return response_data.response
1510
1511
1512    def _delete_ai_platform_serialize(
1513        self,
1514        organization,
1515        aiplatform_id,
1516        _request_auth,
1517        _content_type,
1518        _headers,
1519        _host_index,
1520    ) -> RequestSerialized:
1521
1522        _host = None
1523
1524        _collection_formats: Dict[str, str] = {
1525        }
1526
1527        _path_params: Dict[str, str] = {}
1528        _query_params: List[Tuple[str, str]] = []
1529        _header_params: Dict[str, Optional[str]] = _headers or {}
1530        _form_params: List[Tuple[str, str]] = []
1531        _files: Dict[
1532            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1533        ] = {}
1534        _body_params: Optional[bytes] = None
1535
1536        # process the path parameters
1537        if organization is not None:
1538            _path_params['organization'] = organization
1539        if aiplatform_id is not None:
1540            _path_params['aiplatformId'] = aiplatform_id
1541        # process the query parameters
1542        # process the header parameters
1543        # process the form parameters
1544        # process the body parameter
1545
1546
1547        # set the HTTP header `Accept`
1548        if 'Accept' not in _header_params:
1549            _header_params['Accept'] = self.api_client.select_header_accept(
1550                [
1551                    'application/json'
1552                ]
1553            )
1554
1555
1556        # authentication setting
1557        _auth_settings: List[str] = [
1558            'bearerAuth'
1559        ]
1560
1561        return self.api_client.param_serialize(
1562            method='DELETE',
1563            resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}',
1564            path_params=_path_params,
1565            query_params=_query_params,
1566            header_params=_header_params,
1567            body=_body_params,
1568            post_params=_form_params,
1569            files=_files,
1570            auth_settings=_auth_settings,
1571            collection_formats=_collection_formats,
1572            _host=_host,
1573            _request_auth=_request_auth
1574        )
1575
1576
1577
1578
1579    @validate_call
1580    def delete_destination_connector(
1581        self,
1582        organization: StrictStr,
1583        destination_connector_id: StrictStr,
1584        _request_timeout: Union[
1585            None,
1586            Annotated[StrictFloat, Field(gt=0)],
1587            Tuple[
1588                Annotated[StrictFloat, Field(gt=0)],
1589                Annotated[StrictFloat, Field(gt=0)]
1590            ]
1591        ] = None,
1592        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1593        _content_type: Optional[StrictStr] = None,
1594        _headers: Optional[Dict[StrictStr, Any]] = None,
1595        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1596    ) -> DeleteDestinationConnectorResponse:
1597        """Delete a destination connector
1598
1599
1600        :param organization: (required)
1601        :type organization: str
1602        :param destination_connector_id: (required)
1603        :type destination_connector_id: str
1604        :param _request_timeout: timeout setting for this request. If one
1605                                 number provided, it will be total request
1606                                 timeout. It can also be a pair (tuple) of
1607                                 (connection, read) timeouts.
1608        :type _request_timeout: int, tuple(int, int), optional
1609        :param _request_auth: set to override the auth_settings for an a single
1610                              request; this effectively ignores the
1611                              authentication in the spec for a single request.
1612        :type _request_auth: dict, optional
1613        :param _content_type: force content-type for the request.
1614        :type _content_type: str, Optional
1615        :param _headers: set to override the headers for a single
1616                         request; this effectively ignores the headers
1617                         in the spec for a single request.
1618        :type _headers: dict, optional
1619        :param _host_index: set to override the host_index for a single
1620                            request; this effectively ignores the host_index
1621                            in the spec for a single request.
1622        :type _host_index: int, optional
1623        :return: Returns the result object.
1624        """ # noqa: E501
1625
1626        _param = self._delete_destination_connector_serialize(
1627            organization=organization,
1628            destination_connector_id=destination_connector_id,
1629            _request_auth=_request_auth,
1630            _content_type=_content_type,
1631            _headers=_headers,
1632            _host_index=_host_index
1633        )
1634
1635        _response_types_map: Dict[str, Optional[str]] = {
1636            '200': "DeleteDestinationConnectorResponse",
1637            '400': "GetPipelines400Response",
1638            '401': "GetPipelines400Response",
1639            '403': "GetPipelines400Response",
1640            '404': "GetPipelines400Response",
1641            '500': "GetPipelines400Response",
1642        }
1643        response_data = self.api_client.call_api(
1644            *_param,
1645            _request_timeout=_request_timeout
1646        )
1647        response_data.read()
1648        return self.api_client.response_deserialize(
1649            response_data=response_data,
1650            response_types_map=_response_types_map,
1651        ).data
1652
1653
1654    @validate_call
1655    def delete_destination_connector_with_http_info(
1656        self,
1657        organization: StrictStr,
1658        destination_connector_id: StrictStr,
1659        _request_timeout: Union[
1660            None,
1661            Annotated[StrictFloat, Field(gt=0)],
1662            Tuple[
1663                Annotated[StrictFloat, Field(gt=0)],
1664                Annotated[StrictFloat, Field(gt=0)]
1665            ]
1666        ] = None,
1667        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1668        _content_type: Optional[StrictStr] = None,
1669        _headers: Optional[Dict[StrictStr, Any]] = None,
1670        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1671    ) -> ApiResponse[DeleteDestinationConnectorResponse]:
1672        """Delete a destination connector
1673
1674
1675        :param organization: (required)
1676        :type organization: str
1677        :param destination_connector_id: (required)
1678        :type destination_connector_id: str
1679        :param _request_timeout: timeout setting for this request. If one
1680                                 number provided, it will be total request
1681                                 timeout. It can also be a pair (tuple) of
1682                                 (connection, read) timeouts.
1683        :type _request_timeout: int, tuple(int, int), optional
1684        :param _request_auth: set to override the auth_settings for an a single
1685                              request; this effectively ignores the
1686                              authentication in the spec for a single request.
1687        :type _request_auth: dict, optional
1688        :param _content_type: force content-type for the request.
1689        :type _content_type: str, Optional
1690        :param _headers: set to override the headers for a single
1691                         request; this effectively ignores the headers
1692                         in the spec for a single request.
1693        :type _headers: dict, optional
1694        :param _host_index: set to override the host_index for a single
1695                            request; this effectively ignores the host_index
1696                            in the spec for a single request.
1697        :type _host_index: int, optional
1698        :return: Returns the result object.
1699        """ # noqa: E501
1700
1701        _param = self._delete_destination_connector_serialize(
1702            organization=organization,
1703            destination_connector_id=destination_connector_id,
1704            _request_auth=_request_auth,
1705            _content_type=_content_type,
1706            _headers=_headers,
1707            _host_index=_host_index
1708        )
1709
1710        _response_types_map: Dict[str, Optional[str]] = {
1711            '200': "DeleteDestinationConnectorResponse",
1712            '400': "GetPipelines400Response",
1713            '401': "GetPipelines400Response",
1714            '403': "GetPipelines400Response",
1715            '404': "GetPipelines400Response",
1716            '500': "GetPipelines400Response",
1717        }
1718        response_data = self.api_client.call_api(
1719            *_param,
1720            _request_timeout=_request_timeout
1721        )
1722        response_data.read()
1723        return self.api_client.response_deserialize(
1724            response_data=response_data,
1725            response_types_map=_response_types_map,
1726        )
1727
1728
1729    @validate_call
1730    def delete_destination_connector_without_preload_content(
1731        self,
1732        organization: StrictStr,
1733        destination_connector_id: StrictStr,
1734        _request_timeout: Union[
1735            None,
1736            Annotated[StrictFloat, Field(gt=0)],
1737            Tuple[
1738                Annotated[StrictFloat, Field(gt=0)],
1739                Annotated[StrictFloat, Field(gt=0)]
1740            ]
1741        ] = None,
1742        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1743        _content_type: Optional[StrictStr] = None,
1744        _headers: Optional[Dict[StrictStr, Any]] = None,
1745        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1746    ) -> RESTResponseType:
1747        """Delete a destination connector
1748
1749
1750        :param organization: (required)
1751        :type organization: str
1752        :param destination_connector_id: (required)
1753        :type destination_connector_id: str
1754        :param _request_timeout: timeout setting for this request. If one
1755                                 number provided, it will be total request
1756                                 timeout. It can also be a pair (tuple) of
1757                                 (connection, read) timeouts.
1758        :type _request_timeout: int, tuple(int, int), optional
1759        :param _request_auth: set to override the auth_settings for an a single
1760                              request; this effectively ignores the
1761                              authentication in the spec for a single request.
1762        :type _request_auth: dict, optional
1763        :param _content_type: force content-type for the request.
1764        :type _content_type: str, Optional
1765        :param _headers: set to override the headers for a single
1766                         request; this effectively ignores the headers
1767                         in the spec for a single request.
1768        :type _headers: dict, optional
1769        :param _host_index: set to override the host_index for a single
1770                            request; this effectively ignores the host_index
1771                            in the spec for a single request.
1772        :type _host_index: int, optional
1773        :return: Returns the result object.
1774        """ # noqa: E501
1775
1776        _param = self._delete_destination_connector_serialize(
1777            organization=organization,
1778            destination_connector_id=destination_connector_id,
1779            _request_auth=_request_auth,
1780            _content_type=_content_type,
1781            _headers=_headers,
1782            _host_index=_host_index
1783        )
1784
1785        _response_types_map: Dict[str, Optional[str]] = {
1786            '200': "DeleteDestinationConnectorResponse",
1787            '400': "GetPipelines400Response",
1788            '401': "GetPipelines400Response",
1789            '403': "GetPipelines400Response",
1790            '404': "GetPipelines400Response",
1791            '500': "GetPipelines400Response",
1792        }
1793        response_data = self.api_client.call_api(
1794            *_param,
1795            _request_timeout=_request_timeout
1796        )
1797        return response_data.response
1798
1799
1800    def _delete_destination_connector_serialize(
1801        self,
1802        organization,
1803        destination_connector_id,
1804        _request_auth,
1805        _content_type,
1806        _headers,
1807        _host_index,
1808    ) -> RequestSerialized:
1809
1810        _host = None
1811
1812        _collection_formats: Dict[str, str] = {
1813        }
1814
1815        _path_params: Dict[str, str] = {}
1816        _query_params: List[Tuple[str, str]] = []
1817        _header_params: Dict[str, Optional[str]] = _headers or {}
1818        _form_params: List[Tuple[str, str]] = []
1819        _files: Dict[
1820            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1821        ] = {}
1822        _body_params: Optional[bytes] = None
1823
1824        # process the path parameters
1825        if organization is not None:
1826            _path_params['organization'] = organization
1827        if destination_connector_id is not None:
1828            _path_params['destinationConnectorId'] = destination_connector_id
1829        # process the query parameters
1830        # process the header parameters
1831        # process the form parameters
1832        # process the body parameter
1833
1834
1835        # set the HTTP header `Accept`
1836        if 'Accept' not in _header_params:
1837            _header_params['Accept'] = self.api_client.select_header_accept(
1838                [
1839                    'application/json'
1840                ]
1841            )
1842
1843
1844        # authentication setting
1845        _auth_settings: List[str] = [
1846            'bearerAuth'
1847        ]
1848
1849        return self.api_client.param_serialize(
1850            method='DELETE',
1851            resource_path='/org/{organization}/connectors/destinations/{destinationConnectorId}',
1852            path_params=_path_params,
1853            query_params=_query_params,
1854            header_params=_header_params,
1855            body=_body_params,
1856            post_params=_form_params,
1857            files=_files,
1858            auth_settings=_auth_settings,
1859            collection_formats=_collection_formats,
1860            _host=_host,
1861            _request_auth=_request_auth
1862        )
1863
1864
1865
1866
1867    @validate_call
1868    def delete_source_connector(
1869        self,
1870        organization: StrictStr,
1871        source_connector_id: StrictStr,
1872        _request_timeout: Union[
1873            None,
1874            Annotated[StrictFloat, Field(gt=0)],
1875            Tuple[
1876                Annotated[StrictFloat, Field(gt=0)],
1877                Annotated[StrictFloat, Field(gt=0)]
1878            ]
1879        ] = None,
1880        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1881        _content_type: Optional[StrictStr] = None,
1882        _headers: Optional[Dict[StrictStr, Any]] = None,
1883        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1884    ) -> DeleteSourceConnectorResponse:
1885        """Delete a source connector
1886
1887
1888        :param organization: (required)
1889        :type organization: str
1890        :param source_connector_id: (required)
1891        :type source_connector_id: str
1892        :param _request_timeout: timeout setting for this request. If one
1893                                 number provided, it will be total request
1894                                 timeout. It can also be a pair (tuple) of
1895                                 (connection, read) timeouts.
1896        :type _request_timeout: int, tuple(int, int), optional
1897        :param _request_auth: set to override the auth_settings for an a single
1898                              request; this effectively ignores the
1899                              authentication in the spec for a single request.
1900        :type _request_auth: dict, optional
1901        :param _content_type: force content-type for the request.
1902        :type _content_type: str, Optional
1903        :param _headers: set to override the headers for a single
1904                         request; this effectively ignores the headers
1905                         in the spec for a single request.
1906        :type _headers: dict, optional
1907        :param _host_index: set to override the host_index for a single
1908                            request; this effectively ignores the host_index
1909                            in the spec for a single request.
1910        :type _host_index: int, optional
1911        :return: Returns the result object.
1912        """ # noqa: E501
1913
1914        _param = self._delete_source_connector_serialize(
1915            organization=organization,
1916            source_connector_id=source_connector_id,
1917            _request_auth=_request_auth,
1918            _content_type=_content_type,
1919            _headers=_headers,
1920            _host_index=_host_index
1921        )
1922
1923        _response_types_map: Dict[str, Optional[str]] = {
1924            '200': "DeleteSourceConnectorResponse",
1925            '400': "GetPipelines400Response",
1926            '401': "GetPipelines400Response",
1927            '403': "GetPipelines400Response",
1928            '404': "GetPipelines400Response",
1929            '500': "GetPipelines400Response",
1930        }
1931        response_data = self.api_client.call_api(
1932            *_param,
1933            _request_timeout=_request_timeout
1934        )
1935        response_data.read()
1936        return self.api_client.response_deserialize(
1937            response_data=response_data,
1938            response_types_map=_response_types_map,
1939        ).data
1940
1941
1942    @validate_call
1943    def delete_source_connector_with_http_info(
1944        self,
1945        organization: StrictStr,
1946        source_connector_id: StrictStr,
1947        _request_timeout: Union[
1948            None,
1949            Annotated[StrictFloat, Field(gt=0)],
1950            Tuple[
1951                Annotated[StrictFloat, Field(gt=0)],
1952                Annotated[StrictFloat, Field(gt=0)]
1953            ]
1954        ] = None,
1955        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1956        _content_type: Optional[StrictStr] = None,
1957        _headers: Optional[Dict[StrictStr, Any]] = None,
1958        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1959    ) -> ApiResponse[DeleteSourceConnectorResponse]:
1960        """Delete a source connector
1961
1962
1963        :param organization: (required)
1964        :type organization: str
1965        :param source_connector_id: (required)
1966        :type source_connector_id: str
1967        :param _request_timeout: timeout setting for this request. If one
1968                                 number provided, it will be total request
1969                                 timeout. It can also be a pair (tuple) of
1970                                 (connection, read) timeouts.
1971        :type _request_timeout: int, tuple(int, int), optional
1972        :param _request_auth: set to override the auth_settings for an a single
1973                              request; this effectively ignores the
1974                              authentication in the spec for a single request.
1975        :type _request_auth: dict, optional
1976        :param _content_type: force content-type for the request.
1977        :type _content_type: str, Optional
1978        :param _headers: set to override the headers for a single
1979                         request; this effectively ignores the headers
1980                         in the spec for a single request.
1981        :type _headers: dict, optional
1982        :param _host_index: set to override the host_index for a single
1983                            request; this effectively ignores the host_index
1984                            in the spec for a single request.
1985        :type _host_index: int, optional
1986        :return: Returns the result object.
1987        """ # noqa: E501
1988
1989        _param = self._delete_source_connector_serialize(
1990            organization=organization,
1991            source_connector_id=source_connector_id,
1992            _request_auth=_request_auth,
1993            _content_type=_content_type,
1994            _headers=_headers,
1995            _host_index=_host_index
1996        )
1997
1998        _response_types_map: Dict[str, Optional[str]] = {
1999            '200': "DeleteSourceConnectorResponse",
2000            '400': "GetPipelines400Response",
2001            '401': "GetPipelines400Response",
2002            '403': "GetPipelines400Response",
2003            '404': "GetPipelines400Response",
2004            '500': "GetPipelines400Response",
2005        }
2006        response_data = self.api_client.call_api(
2007            *_param,
2008            _request_timeout=_request_timeout
2009        )
2010        response_data.read()
2011        return self.api_client.response_deserialize(
2012            response_data=response_data,
2013            response_types_map=_response_types_map,
2014        )
2015
2016
2017    @validate_call
2018    def delete_source_connector_without_preload_content(
2019        self,
2020        organization: StrictStr,
2021        source_connector_id: StrictStr,
2022        _request_timeout: Union[
2023            None,
2024            Annotated[StrictFloat, Field(gt=0)],
2025            Tuple[
2026                Annotated[StrictFloat, Field(gt=0)],
2027                Annotated[StrictFloat, Field(gt=0)]
2028            ]
2029        ] = None,
2030        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2031        _content_type: Optional[StrictStr] = None,
2032        _headers: Optional[Dict[StrictStr, Any]] = None,
2033        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2034    ) -> RESTResponseType:
2035        """Delete a source connector
2036
2037
2038        :param organization: (required)
2039        :type organization: str
2040        :param source_connector_id: (required)
2041        :type source_connector_id: str
2042        :param _request_timeout: timeout setting for this request. If one
2043                                 number provided, it will be total request
2044                                 timeout. It can also be a pair (tuple) of
2045                                 (connection, read) timeouts.
2046        :type _request_timeout: int, tuple(int, int), optional
2047        :param _request_auth: set to override the auth_settings for an a single
2048                              request; this effectively ignores the
2049                              authentication in the spec for a single request.
2050        :type _request_auth: dict, optional
2051        :param _content_type: force content-type for the request.
2052        :type _content_type: str, Optional
2053        :param _headers: set to override the headers for a single
2054                         request; this effectively ignores the headers
2055                         in the spec for a single request.
2056        :type _headers: dict, optional
2057        :param _host_index: set to override the host_index for a single
2058                            request; this effectively ignores the host_index
2059                            in the spec for a single request.
2060        :type _host_index: int, optional
2061        :return: Returns the result object.
2062        """ # noqa: E501
2063
2064        _param = self._delete_source_connector_serialize(
2065            organization=organization,
2066            source_connector_id=source_connector_id,
2067            _request_auth=_request_auth,
2068            _content_type=_content_type,
2069            _headers=_headers,
2070            _host_index=_host_index
2071        )
2072
2073        _response_types_map: Dict[str, Optional[str]] = {
2074            '200': "DeleteSourceConnectorResponse",
2075            '400': "GetPipelines400Response",
2076            '401': "GetPipelines400Response",
2077            '403': "GetPipelines400Response",
2078            '404': "GetPipelines400Response",
2079            '500': "GetPipelines400Response",
2080        }
2081        response_data = self.api_client.call_api(
2082            *_param,
2083            _request_timeout=_request_timeout
2084        )
2085        return response_data.response
2086
2087
2088    def _delete_source_connector_serialize(
2089        self,
2090        organization,
2091        source_connector_id,
2092        _request_auth,
2093        _content_type,
2094        _headers,
2095        _host_index,
2096    ) -> RequestSerialized:
2097
2098        _host = None
2099
2100        _collection_formats: Dict[str, str] = {
2101        }
2102
2103        _path_params: Dict[str, str] = {}
2104        _query_params: List[Tuple[str, str]] = []
2105        _header_params: Dict[str, Optional[str]] = _headers or {}
2106        _form_params: List[Tuple[str, str]] = []
2107        _files: Dict[
2108            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2109        ] = {}
2110        _body_params: Optional[bytes] = None
2111
2112        # process the path parameters
2113        if organization is not None:
2114            _path_params['organization'] = organization
2115        if source_connector_id is not None:
2116            _path_params['sourceConnectorId'] = source_connector_id
2117        # process the query parameters
2118        # process the header parameters
2119        # process the form parameters
2120        # process the body parameter
2121
2122
2123        # set the HTTP header `Accept`
2124        if 'Accept' not in _header_params:
2125            _header_params['Accept'] = self.api_client.select_header_accept(
2126                [
2127                    'application/json'
2128                ]
2129            )
2130
2131
2132        # authentication setting
2133        _auth_settings: List[str] = [
2134            'bearerAuth'
2135        ]
2136
2137        return self.api_client.param_serialize(
2138            method='DELETE',
2139            resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}',
2140            path_params=_path_params,
2141            query_params=_query_params,
2142            header_params=_header_params,
2143            body=_body_params,
2144            post_params=_form_params,
2145            files=_files,
2146            auth_settings=_auth_settings,
2147            collection_formats=_collection_formats,
2148            _host=_host,
2149            _request_auth=_request_auth
2150        )
2151
2152
2153
2154
2155    @validate_call
2156    def delete_user_from_source_connector(
2157        self,
2158        organization: StrictStr,
2159        source_connector_id: StrictStr,
2160        remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest,
2161        _request_timeout: Union[
2162            None,
2163            Annotated[StrictFloat, Field(gt=0)],
2164            Tuple[
2165                Annotated[StrictFloat, Field(gt=0)],
2166                Annotated[StrictFloat, Field(gt=0)]
2167            ]
2168        ] = None,
2169        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2170        _content_type: Optional[StrictStr] = None,
2171        _headers: Optional[Dict[StrictStr, Any]] = None,
2172        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2173    ) -> RemoveUserFromSourceConnectorResponse:
2174        """Delete a source connector user
2175
2176
2177        :param organization: (required)
2178        :type organization: str
2179        :param source_connector_id: (required)
2180        :type source_connector_id: str
2181        :param remove_user_from_source_connector_request: (required)
2182        :type remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest
2183        :param _request_timeout: timeout setting for this request. If one
2184                                 number provided, it will be total request
2185                                 timeout. It can also be a pair (tuple) of
2186                                 (connection, read) timeouts.
2187        :type _request_timeout: int, tuple(int, int), optional
2188        :param _request_auth: set to override the auth_settings for an a single
2189                              request; this effectively ignores the
2190                              authentication in the spec for a single request.
2191        :type _request_auth: dict, optional
2192        :param _content_type: force content-type for the request.
2193        :type _content_type: str, Optional
2194        :param _headers: set to override the headers for a single
2195                         request; this effectively ignores the headers
2196                         in the spec for a single request.
2197        :type _headers: dict, optional
2198        :param _host_index: set to override the host_index for a single
2199                            request; this effectively ignores the host_index
2200                            in the spec for a single request.
2201        :type _host_index: int, optional
2202        :return: Returns the result object.
2203        """ # noqa: E501
2204
2205        _param = self._delete_user_from_source_connector_serialize(
2206            organization=organization,
2207            source_connector_id=source_connector_id,
2208            remove_user_from_source_connector_request=remove_user_from_source_connector_request,
2209            _request_auth=_request_auth,
2210            _content_type=_content_type,
2211            _headers=_headers,
2212            _host_index=_host_index
2213        )
2214
2215        _response_types_map: Dict[str, Optional[str]] = {
2216            '200': "RemoveUserFromSourceConnectorResponse",
2217            '400': "GetPipelines400Response",
2218            '401': "GetPipelines400Response",
2219            '403': "GetPipelines400Response",
2220            '404': "GetPipelines400Response",
2221            '500': "GetPipelines400Response",
2222        }
2223        response_data = self.api_client.call_api(
2224            *_param,
2225            _request_timeout=_request_timeout
2226        )
2227        response_data.read()
2228        return self.api_client.response_deserialize(
2229            response_data=response_data,
2230            response_types_map=_response_types_map,
2231        ).data
2232
2233
2234    @validate_call
2235    def delete_user_from_source_connector_with_http_info(
2236        self,
2237        organization: StrictStr,
2238        source_connector_id: StrictStr,
2239        remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest,
2240        _request_timeout: Union[
2241            None,
2242            Annotated[StrictFloat, Field(gt=0)],
2243            Tuple[
2244                Annotated[StrictFloat, Field(gt=0)],
2245                Annotated[StrictFloat, Field(gt=0)]
2246            ]
2247        ] = None,
2248        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2249        _content_type: Optional[StrictStr] = None,
2250        _headers: Optional[Dict[StrictStr, Any]] = None,
2251        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2252    ) -> ApiResponse[RemoveUserFromSourceConnectorResponse]:
2253        """Delete a source connector user
2254
2255
2256        :param organization: (required)
2257        :type organization: str
2258        :param source_connector_id: (required)
2259        :type source_connector_id: str
2260        :param remove_user_from_source_connector_request: (required)
2261        :type remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest
2262        :param _request_timeout: timeout setting for this request. If one
2263                                 number provided, it will be total request
2264                                 timeout. It can also be a pair (tuple) of
2265                                 (connection, read) timeouts.
2266        :type _request_timeout: int, tuple(int, int), optional
2267        :param _request_auth: set to override the auth_settings for an a single
2268                              request; this effectively ignores the
2269                              authentication in the spec for a single request.
2270        :type _request_auth: dict, optional
2271        :param _content_type: force content-type for the request.
2272        :type _content_type: str, Optional
2273        :param _headers: set to override the headers for a single
2274                         request; this effectively ignores the headers
2275                         in the spec for a single request.
2276        :type _headers: dict, optional
2277        :param _host_index: set to override the host_index for a single
2278                            request; this effectively ignores the host_index
2279                            in the spec for a single request.
2280        :type _host_index: int, optional
2281        :return: Returns the result object.
2282        """ # noqa: E501
2283
2284        _param = self._delete_user_from_source_connector_serialize(
2285            organization=organization,
2286            source_connector_id=source_connector_id,
2287            remove_user_from_source_connector_request=remove_user_from_source_connector_request,
2288            _request_auth=_request_auth,
2289            _content_type=_content_type,
2290            _headers=_headers,
2291            _host_index=_host_index
2292        )
2293
2294        _response_types_map: Dict[str, Optional[str]] = {
2295            '200': "RemoveUserFromSourceConnectorResponse",
2296            '400': "GetPipelines400Response",
2297            '401': "GetPipelines400Response",
2298            '403': "GetPipelines400Response",
2299            '404': "GetPipelines400Response",
2300            '500': "GetPipelines400Response",
2301        }
2302        response_data = self.api_client.call_api(
2303            *_param,
2304            _request_timeout=_request_timeout
2305        )
2306        response_data.read()
2307        return self.api_client.response_deserialize(
2308            response_data=response_data,
2309            response_types_map=_response_types_map,
2310        )
2311
2312
2313    @validate_call
2314    def delete_user_from_source_connector_without_preload_content(
2315        self,
2316        organization: StrictStr,
2317        source_connector_id: StrictStr,
2318        remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest,
2319        _request_timeout: Union[
2320            None,
2321            Annotated[StrictFloat, Field(gt=0)],
2322            Tuple[
2323                Annotated[StrictFloat, Field(gt=0)],
2324                Annotated[StrictFloat, Field(gt=0)]
2325            ]
2326        ] = None,
2327        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2328        _content_type: Optional[StrictStr] = None,
2329        _headers: Optional[Dict[StrictStr, Any]] = None,
2330        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2331    ) -> RESTResponseType:
2332        """Delete a source connector user
2333
2334
2335        :param organization: (required)
2336        :type organization: str
2337        :param source_connector_id: (required)
2338        :type source_connector_id: str
2339        :param remove_user_from_source_connector_request: (required)
2340        :type remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest
2341        :param _request_timeout: timeout setting for this request. If one
2342                                 number provided, it will be total request
2343                                 timeout. It can also be a pair (tuple) of
2344                                 (connection, read) timeouts.
2345        :type _request_timeout: int, tuple(int, int), optional
2346        :param _request_auth: set to override the auth_settings for an a single
2347                              request; this effectively ignores the
2348                              authentication in the spec for a single request.
2349        :type _request_auth: dict, optional
2350        :param _content_type: force content-type for the request.
2351        :type _content_type: str, Optional
2352        :param _headers: set to override the headers for a single
2353                         request; this effectively ignores the headers
2354                         in the spec for a single request.
2355        :type _headers: dict, optional
2356        :param _host_index: set to override the host_index for a single
2357                            request; this effectively ignores the host_index
2358                            in the spec for a single request.
2359        :type _host_index: int, optional
2360        :return: Returns the result object.
2361        """ # noqa: E501
2362
2363        _param = self._delete_user_from_source_connector_serialize(
2364            organization=organization,
2365            source_connector_id=source_connector_id,
2366            remove_user_from_source_connector_request=remove_user_from_source_connector_request,
2367            _request_auth=_request_auth,
2368            _content_type=_content_type,
2369            _headers=_headers,
2370            _host_index=_host_index
2371        )
2372
2373        _response_types_map: Dict[str, Optional[str]] = {
2374            '200': "RemoveUserFromSourceConnectorResponse",
2375            '400': "GetPipelines400Response",
2376            '401': "GetPipelines400Response",
2377            '403': "GetPipelines400Response",
2378            '404': "GetPipelines400Response",
2379            '500': "GetPipelines400Response",
2380        }
2381        response_data = self.api_client.call_api(
2382            *_param,
2383            _request_timeout=_request_timeout
2384        )
2385        return response_data.response
2386
2387
2388    def _delete_user_from_source_connector_serialize(
2389        self,
2390        organization,
2391        source_connector_id,
2392        remove_user_from_source_connector_request,
2393        _request_auth,
2394        _content_type,
2395        _headers,
2396        _host_index,
2397    ) -> RequestSerialized:
2398
2399        _host = None
2400
2401        _collection_formats: Dict[str, str] = {
2402        }
2403
2404        _path_params: Dict[str, str] = {}
2405        _query_params: List[Tuple[str, str]] = []
2406        _header_params: Dict[str, Optional[str]] = _headers or {}
2407        _form_params: List[Tuple[str, str]] = []
2408        _files: Dict[
2409            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2410        ] = {}
2411        _body_params: Optional[bytes] = None
2412
2413        # process the path parameters
2414        if organization is not None:
2415            _path_params['organization'] = organization
2416        if source_connector_id is not None:
2417            _path_params['sourceConnectorId'] = source_connector_id
2418        # process the query parameters
2419        # process the header parameters
2420        # process the form parameters
2421        # process the body parameter
2422        if remove_user_from_source_connector_request is not None:
2423            _body_params = remove_user_from_source_connector_request
2424
2425
2426        # set the HTTP header `Accept`
2427        if 'Accept' not in _header_params:
2428            _header_params['Accept'] = self.api_client.select_header_accept(
2429                [
2430                    'application/json'
2431                ]
2432            )
2433
2434        # set the HTTP header `Content-Type`
2435        if _content_type:
2436            _header_params['Content-Type'] = _content_type
2437        else:
2438            _default_content_type = (
2439                self.api_client.select_header_content_type(
2440                    [
2441                        'application/json'
2442                    ]
2443                )
2444            )
2445            if _default_content_type is not None:
2446                _header_params['Content-Type'] = _default_content_type
2447
2448        # authentication setting
2449        _auth_settings: List[str] = [
2450            'bearerAuth'
2451        ]
2452
2453        return self.api_client.param_serialize(
2454            method='DELETE',
2455            resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}/users',
2456            path_params=_path_params,
2457            query_params=_query_params,
2458            header_params=_header_params,
2459            body=_body_params,
2460            post_params=_form_params,
2461            files=_files,
2462            auth_settings=_auth_settings,
2463            collection_formats=_collection_formats,
2464            _host=_host,
2465            _request_auth=_request_auth
2466        )
2467
2468
2469
2470
2471    @validate_call
2472    def get_ai_platform_connector(
2473        self,
2474        organization: StrictStr,
2475        aiplatform_id: StrictStr,
2476        _request_timeout: Union[
2477            None,
2478            Annotated[StrictFloat, Field(gt=0)],
2479            Tuple[
2480                Annotated[StrictFloat, Field(gt=0)],
2481                Annotated[StrictFloat, Field(gt=0)]
2482            ]
2483        ] = None,
2484        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2485        _content_type: Optional[StrictStr] = None,
2486        _headers: Optional[Dict[StrictStr, Any]] = None,
2487        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2488    ) -> AIPlatform:
2489        """Get an AI platform connector
2490
2491
2492        :param organization: (required)
2493        :type organization: str
2494        :param aiplatform_id: (required)
2495        :type aiplatform_id: str
2496        :param _request_timeout: timeout setting for this request. If one
2497                                 number provided, it will be total request
2498                                 timeout. It can also be a pair (tuple) of
2499                                 (connection, read) timeouts.
2500        :type _request_timeout: int, tuple(int, int), optional
2501        :param _request_auth: set to override the auth_settings for an a single
2502                              request; this effectively ignores the
2503                              authentication in the spec for a single request.
2504        :type _request_auth: dict, optional
2505        :param _content_type: force content-type for the request.
2506        :type _content_type: str, Optional
2507        :param _headers: set to override the headers for a single
2508                         request; this effectively ignores the headers
2509                         in the spec for a single request.
2510        :type _headers: dict, optional
2511        :param _host_index: set to override the host_index for a single
2512                            request; this effectively ignores the host_index
2513                            in the spec for a single request.
2514        :type _host_index: int, optional
2515        :return: Returns the result object.
2516        """ # noqa: E501
2517
2518        _param = self._get_ai_platform_connector_serialize(
2519            organization=organization,
2520            aiplatform_id=aiplatform_id,
2521            _request_auth=_request_auth,
2522            _content_type=_content_type,
2523            _headers=_headers,
2524            _host_index=_host_index
2525        )
2526
2527        _response_types_map: Dict[str, Optional[str]] = {
2528            '200': "AIPlatform",
2529            '400': "GetPipelines400Response",
2530            '401': "GetPipelines400Response",
2531            '403': "GetPipelines400Response",
2532            '404': "GetPipelines400Response",
2533            '500': "GetPipelines400Response",
2534        }
2535        response_data = self.api_client.call_api(
2536            *_param,
2537            _request_timeout=_request_timeout
2538        )
2539        response_data.read()
2540        return self.api_client.response_deserialize(
2541            response_data=response_data,
2542            response_types_map=_response_types_map,
2543        ).data
2544
2545
2546    @validate_call
2547    def get_ai_platform_connector_with_http_info(
2548        self,
2549        organization: StrictStr,
2550        aiplatform_id: StrictStr,
2551        _request_timeout: Union[
2552            None,
2553            Annotated[StrictFloat, Field(gt=0)],
2554            Tuple[
2555                Annotated[StrictFloat, Field(gt=0)],
2556                Annotated[StrictFloat, Field(gt=0)]
2557            ]
2558        ] = None,
2559        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2560        _content_type: Optional[StrictStr] = None,
2561        _headers: Optional[Dict[StrictStr, Any]] = None,
2562        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2563    ) -> ApiResponse[AIPlatform]:
2564        """Get an AI platform connector
2565
2566
2567        :param organization: (required)
2568        :type organization: str
2569        :param aiplatform_id: (required)
2570        :type aiplatform_id: str
2571        :param _request_timeout: timeout setting for this request. If one
2572                                 number provided, it will be total request
2573                                 timeout. It can also be a pair (tuple) of
2574                                 (connection, read) timeouts.
2575        :type _request_timeout: int, tuple(int, int), optional
2576        :param _request_auth: set to override the auth_settings for an a single
2577                              request; this effectively ignores the
2578                              authentication in the spec for a single request.
2579        :type _request_auth: dict, optional
2580        :param _content_type: force content-type for the request.
2581        :type _content_type: str, Optional
2582        :param _headers: set to override the headers for a single
2583                         request; this effectively ignores the headers
2584                         in the spec for a single request.
2585        :type _headers: dict, optional
2586        :param _host_index: set to override the host_index for a single
2587                            request; this effectively ignores the host_index
2588                            in the spec for a single request.
2589        :type _host_index: int, optional
2590        :return: Returns the result object.
2591        """ # noqa: E501
2592
2593        _param = self._get_ai_platform_connector_serialize(
2594            organization=organization,
2595            aiplatform_id=aiplatform_id,
2596            _request_auth=_request_auth,
2597            _content_type=_content_type,
2598            _headers=_headers,
2599            _host_index=_host_index
2600        )
2601
2602        _response_types_map: Dict[str, Optional[str]] = {
2603            '200': "AIPlatform",
2604            '400': "GetPipelines400Response",
2605            '401': "GetPipelines400Response",
2606            '403': "GetPipelines400Response",
2607            '404': "GetPipelines400Response",
2608            '500': "GetPipelines400Response",
2609        }
2610        response_data = self.api_client.call_api(
2611            *_param,
2612            _request_timeout=_request_timeout
2613        )
2614        response_data.read()
2615        return self.api_client.response_deserialize(
2616            response_data=response_data,
2617            response_types_map=_response_types_map,
2618        )
2619
2620
2621    @validate_call
2622    def get_ai_platform_connector_without_preload_content(
2623        self,
2624        organization: StrictStr,
2625        aiplatform_id: StrictStr,
2626        _request_timeout: Union[
2627            None,
2628            Annotated[StrictFloat, Field(gt=0)],
2629            Tuple[
2630                Annotated[StrictFloat, Field(gt=0)],
2631                Annotated[StrictFloat, Field(gt=0)]
2632            ]
2633        ] = None,
2634        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2635        _content_type: Optional[StrictStr] = None,
2636        _headers: Optional[Dict[StrictStr, Any]] = None,
2637        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2638    ) -> RESTResponseType:
2639        """Get an AI platform connector
2640
2641
2642        :param organization: (required)
2643        :type organization: str
2644        :param aiplatform_id: (required)
2645        :type aiplatform_id: str
2646        :param _request_timeout: timeout setting for this request. If one
2647                                 number provided, it will be total request
2648                                 timeout. It can also be a pair (tuple) of
2649                                 (connection, read) timeouts.
2650        :type _request_timeout: int, tuple(int, int), optional
2651        :param _request_auth: set to override the auth_settings for an a single
2652                              request; this effectively ignores the
2653                              authentication in the spec for a single request.
2654        :type _request_auth: dict, optional
2655        :param _content_type: force content-type for the request.
2656        :type _content_type: str, Optional
2657        :param _headers: set to override the headers for a single
2658                         request; this effectively ignores the headers
2659                         in the spec for a single request.
2660        :type _headers: dict, optional
2661        :param _host_index: set to override the host_index for a single
2662                            request; this effectively ignores the host_index
2663                            in the spec for a single request.
2664        :type _host_index: int, optional
2665        :return: Returns the result object.
2666        """ # noqa: E501
2667
2668        _param = self._get_ai_platform_connector_serialize(
2669            organization=organization,
2670            aiplatform_id=aiplatform_id,
2671            _request_auth=_request_auth,
2672            _content_type=_content_type,
2673            _headers=_headers,
2674            _host_index=_host_index
2675        )
2676
2677        _response_types_map: Dict[str, Optional[str]] = {
2678            '200': "AIPlatform",
2679            '400': "GetPipelines400Response",
2680            '401': "GetPipelines400Response",
2681            '403': "GetPipelines400Response",
2682            '404': "GetPipelines400Response",
2683            '500': "GetPipelines400Response",
2684        }
2685        response_data = self.api_client.call_api(
2686            *_param,
2687            _request_timeout=_request_timeout
2688        )
2689        return response_data.response
2690
2691
2692    def _get_ai_platform_connector_serialize(
2693        self,
2694        organization,
2695        aiplatform_id,
2696        _request_auth,
2697        _content_type,
2698        _headers,
2699        _host_index,
2700    ) -> RequestSerialized:
2701
2702        _host = None
2703
2704        _collection_formats: Dict[str, str] = {
2705        }
2706
2707        _path_params: Dict[str, str] = {}
2708        _query_params: List[Tuple[str, str]] = []
2709        _header_params: Dict[str, Optional[str]] = _headers or {}
2710        _form_params: List[Tuple[str, str]] = []
2711        _files: Dict[
2712            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2713        ] = {}
2714        _body_params: Optional[bytes] = None
2715
2716        # process the path parameters
2717        if organization is not None:
2718            _path_params['organization'] = organization
2719        if aiplatform_id is not None:
2720            _path_params['aiplatformId'] = aiplatform_id
2721        # process the query parameters
2722        # process the header parameters
2723        # process the form parameters
2724        # process the body parameter
2725
2726
2727        # set the HTTP header `Accept`
2728        if 'Accept' not in _header_params:
2729            _header_params['Accept'] = self.api_client.select_header_accept(
2730                [
2731                    'application/json'
2732                ]
2733            )
2734
2735
2736        # authentication setting
2737        _auth_settings: List[str] = [
2738            'bearerAuth'
2739        ]
2740
2741        return self.api_client.param_serialize(
2742            method='GET',
2743            resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}',
2744            path_params=_path_params,
2745            query_params=_query_params,
2746            header_params=_header_params,
2747            body=_body_params,
2748            post_params=_form_params,
2749            files=_files,
2750            auth_settings=_auth_settings,
2751            collection_formats=_collection_formats,
2752            _host=_host,
2753            _request_auth=_request_auth
2754        )
2755
2756
2757
2758
2759    @validate_call
2760    def get_ai_platform_connectors(
2761        self,
2762        organization: StrictStr,
2763        _request_timeout: Union[
2764            None,
2765            Annotated[StrictFloat, Field(gt=0)],
2766            Tuple[
2767                Annotated[StrictFloat, Field(gt=0)],
2768                Annotated[StrictFloat, Field(gt=0)]
2769            ]
2770        ] = None,
2771        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2772        _content_type: Optional[StrictStr] = None,
2773        _headers: Optional[Dict[StrictStr, Any]] = None,
2774        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2775    ) -> GetAIPlatformConnectors200Response:
2776        """Get all existing AI Platform connectors
2777
2778
2779        :param organization: (required)
2780        :type organization: str
2781        :param _request_timeout: timeout setting for this request. If one
2782                                 number provided, it will be total request
2783                                 timeout. It can also be a pair (tuple) of
2784                                 (connection, read) timeouts.
2785        :type _request_timeout: int, tuple(int, int), optional
2786        :param _request_auth: set to override the auth_settings for an a single
2787                              request; this effectively ignores the
2788                              authentication in the spec for a single request.
2789        :type _request_auth: dict, optional
2790        :param _content_type: force content-type for the request.
2791        :type _content_type: str, Optional
2792        :param _headers: set to override the headers for a single
2793                         request; this effectively ignores the headers
2794                         in the spec for a single request.
2795        :type _headers: dict, optional
2796        :param _host_index: set to override the host_index for a single
2797                            request; this effectively ignores the host_index
2798                            in the spec for a single request.
2799        :type _host_index: int, optional
2800        :return: Returns the result object.
2801        """ # noqa: E501
2802
2803        _param = self._get_ai_platform_connectors_serialize(
2804            organization=organization,
2805            _request_auth=_request_auth,
2806            _content_type=_content_type,
2807            _headers=_headers,
2808            _host_index=_host_index
2809        )
2810
2811        _response_types_map: Dict[str, Optional[str]] = {
2812            '200': "GetAIPlatformConnectors200Response",
2813            '400': "GetPipelines400Response",
2814            '401': "GetPipelines400Response",
2815            '403': "GetPipelines400Response",
2816            '404': "GetPipelines400Response",
2817            '500': "GetPipelines400Response",
2818        }
2819        response_data = self.api_client.call_api(
2820            *_param,
2821            _request_timeout=_request_timeout
2822        )
2823        response_data.read()
2824        return self.api_client.response_deserialize(
2825            response_data=response_data,
2826            response_types_map=_response_types_map,
2827        ).data
2828
2829
2830    @validate_call
2831    def get_ai_platform_connectors_with_http_info(
2832        self,
2833        organization: StrictStr,
2834        _request_timeout: Union[
2835            None,
2836            Annotated[StrictFloat, Field(gt=0)],
2837            Tuple[
2838                Annotated[StrictFloat, Field(gt=0)],
2839                Annotated[StrictFloat, Field(gt=0)]
2840            ]
2841        ] = None,
2842        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2843        _content_type: Optional[StrictStr] = None,
2844        _headers: Optional[Dict[StrictStr, Any]] = None,
2845        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2846    ) -> ApiResponse[GetAIPlatformConnectors200Response]:
2847        """Get all existing AI Platform connectors
2848
2849
2850        :param organization: (required)
2851        :type organization: str
2852        :param _request_timeout: timeout setting for this request. If one
2853                                 number provided, it will be total request
2854                                 timeout. It can also be a pair (tuple) of
2855                                 (connection, read) timeouts.
2856        :type _request_timeout: int, tuple(int, int), optional
2857        :param _request_auth: set to override the auth_settings for an a single
2858                              request; this effectively ignores the
2859                              authentication in the spec for a single request.
2860        :type _request_auth: dict, optional
2861        :param _content_type: force content-type for the request.
2862        :type _content_type: str, Optional
2863        :param _headers: set to override the headers for a single
2864                         request; this effectively ignores the headers
2865                         in the spec for a single request.
2866        :type _headers: dict, optional
2867        :param _host_index: set to override the host_index for a single
2868                            request; this effectively ignores the host_index
2869                            in the spec for a single request.
2870        :type _host_index: int, optional
2871        :return: Returns the result object.
2872        """ # noqa: E501
2873
2874        _param = self._get_ai_platform_connectors_serialize(
2875            organization=organization,
2876            _request_auth=_request_auth,
2877            _content_type=_content_type,
2878            _headers=_headers,
2879            _host_index=_host_index
2880        )
2881
2882        _response_types_map: Dict[str, Optional[str]] = {
2883            '200': "GetAIPlatformConnectors200Response",
2884            '400': "GetPipelines400Response",
2885            '401': "GetPipelines400Response",
2886            '403': "GetPipelines400Response",
2887            '404': "GetPipelines400Response",
2888            '500': "GetPipelines400Response",
2889        }
2890        response_data = self.api_client.call_api(
2891            *_param,
2892            _request_timeout=_request_timeout
2893        )
2894        response_data.read()
2895        return self.api_client.response_deserialize(
2896            response_data=response_data,
2897            response_types_map=_response_types_map,
2898        )
2899
2900
2901    @validate_call
2902    def get_ai_platform_connectors_without_preload_content(
2903        self,
2904        organization: StrictStr,
2905        _request_timeout: Union[
2906            None,
2907            Annotated[StrictFloat, Field(gt=0)],
2908            Tuple[
2909                Annotated[StrictFloat, Field(gt=0)],
2910                Annotated[StrictFloat, Field(gt=0)]
2911            ]
2912        ] = None,
2913        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2914        _content_type: Optional[StrictStr] = None,
2915        _headers: Optional[Dict[StrictStr, Any]] = None,
2916        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2917    ) -> RESTResponseType:
2918        """Get all existing AI Platform connectors
2919
2920
2921        :param organization: (required)
2922        :type organization: str
2923        :param _request_timeout: timeout setting for this request. If one
2924                                 number provided, it will be total request
2925                                 timeout. It can also be a pair (tuple) of
2926                                 (connection, read) timeouts.
2927        :type _request_timeout: int, tuple(int, int), optional
2928        :param _request_auth: set to override the auth_settings for an a single
2929                              request; this effectively ignores the
2930                              authentication in the spec for a single request.
2931        :type _request_auth: dict, optional
2932        :param _content_type: force content-type for the request.
2933        :type _content_type: str, Optional
2934        :param _headers: set to override the headers for a single
2935                         request; this effectively ignores the headers
2936                         in the spec for a single request.
2937        :type _headers: dict, optional
2938        :param _host_index: set to override the host_index for a single
2939                            request; this effectively ignores the host_index
2940                            in the spec for a single request.
2941        :type _host_index: int, optional
2942        :return: Returns the result object.
2943        """ # noqa: E501
2944
2945        _param = self._get_ai_platform_connectors_serialize(
2946            organization=organization,
2947            _request_auth=_request_auth,
2948            _content_type=_content_type,
2949            _headers=_headers,
2950            _host_index=_host_index
2951        )
2952
2953        _response_types_map: Dict[str, Optional[str]] = {
2954            '200': "GetAIPlatformConnectors200Response",
2955            '400': "GetPipelines400Response",
2956            '401': "GetPipelines400Response",
2957            '403': "GetPipelines400Response",
2958            '404': "GetPipelines400Response",
2959            '500': "GetPipelines400Response",
2960        }
2961        response_data = self.api_client.call_api(
2962            *_param,
2963            _request_timeout=_request_timeout
2964        )
2965        return response_data.response
2966
2967
2968    def _get_ai_platform_connectors_serialize(
2969        self,
2970        organization,
2971        _request_auth,
2972        _content_type,
2973        _headers,
2974        _host_index,
2975    ) -> RequestSerialized:
2976
2977        _host = None
2978
2979        _collection_formats: Dict[str, str] = {
2980        }
2981
2982        _path_params: Dict[str, str] = {}
2983        _query_params: List[Tuple[str, str]] = []
2984        _header_params: Dict[str, Optional[str]] = _headers or {}
2985        _form_params: List[Tuple[str, str]] = []
2986        _files: Dict[
2987            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2988        ] = {}
2989        _body_params: Optional[bytes] = None
2990
2991        # process the path parameters
2992        if organization is not None:
2993            _path_params['organization'] = organization
2994        # process the query parameters
2995        # process the header parameters
2996        # process the form parameters
2997        # process the body parameter
2998
2999
3000        # set the HTTP header `Accept`
3001        if 'Accept' not in _header_params:
3002            _header_params['Accept'] = self.api_client.select_header_accept(
3003                [
3004                    'application/json'
3005                ]
3006            )
3007
3008
3009        # authentication setting
3010        _auth_settings: List[str] = [
3011            'bearerAuth'
3012        ]
3013
3014        return self.api_client.param_serialize(
3015            method='GET',
3016            resource_path='/org/{organization}/connectors/aiplatforms',
3017            path_params=_path_params,
3018            query_params=_query_params,
3019            header_params=_header_params,
3020            body=_body_params,
3021            post_params=_form_params,
3022            files=_files,
3023            auth_settings=_auth_settings,
3024            collection_formats=_collection_formats,
3025            _host=_host,
3026            _request_auth=_request_auth
3027        )
3028
3029
3030
3031
3032    @validate_call
3033    def get_destination_connector(
3034        self,
3035        organization: StrictStr,
3036        destination_connector_id: StrictStr,
3037        _request_timeout: Union[
3038            None,
3039            Annotated[StrictFloat, Field(gt=0)],
3040            Tuple[
3041                Annotated[StrictFloat, Field(gt=0)],
3042                Annotated[StrictFloat, Field(gt=0)]
3043            ]
3044        ] = None,
3045        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3046        _content_type: Optional[StrictStr] = None,
3047        _headers: Optional[Dict[StrictStr, Any]] = None,
3048        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3049    ) -> DestinationConnector:
3050        """Get a destination connector
3051
3052
3053        :param organization: (required)
3054        :type organization: str
3055        :param destination_connector_id: (required)
3056        :type destination_connector_id: str
3057        :param _request_timeout: timeout setting for this request. If one
3058                                 number provided, it will be total request
3059                                 timeout. It can also be a pair (tuple) of
3060                                 (connection, read) timeouts.
3061        :type _request_timeout: int, tuple(int, int), optional
3062        :param _request_auth: set to override the auth_settings for an a single
3063                              request; this effectively ignores the
3064                              authentication in the spec for a single request.
3065        :type _request_auth: dict, optional
3066        :param _content_type: force content-type for the request.
3067        :type _content_type: str, Optional
3068        :param _headers: set to override the headers for a single
3069                         request; this effectively ignores the headers
3070                         in the spec for a single request.
3071        :type _headers: dict, optional
3072        :param _host_index: set to override the host_index for a single
3073                            request; this effectively ignores the host_index
3074                            in the spec for a single request.
3075        :type _host_index: int, optional
3076        :return: Returns the result object.
3077        """ # noqa: E501
3078
3079        _param = self._get_destination_connector_serialize(
3080            organization=organization,
3081            destination_connector_id=destination_connector_id,
3082            _request_auth=_request_auth,
3083            _content_type=_content_type,
3084            _headers=_headers,
3085            _host_index=_host_index
3086        )
3087
3088        _response_types_map: Dict[str, Optional[str]] = {
3089            '200': "DestinationConnector",
3090            '400': "GetPipelines400Response",
3091            '401': "GetPipelines400Response",
3092            '403': "GetPipelines400Response",
3093            '404': "GetPipelines400Response",
3094            '500': "GetPipelines400Response",
3095        }
3096        response_data = self.api_client.call_api(
3097            *_param,
3098            _request_timeout=_request_timeout
3099        )
3100        response_data.read()
3101        return self.api_client.response_deserialize(
3102            response_data=response_data,
3103            response_types_map=_response_types_map,
3104        ).data
3105
3106
3107    @validate_call
3108    def get_destination_connector_with_http_info(
3109        self,
3110        organization: StrictStr,
3111        destination_connector_id: StrictStr,
3112        _request_timeout: Union[
3113            None,
3114            Annotated[StrictFloat, Field(gt=0)],
3115            Tuple[
3116                Annotated[StrictFloat, Field(gt=0)],
3117                Annotated[StrictFloat, Field(gt=0)]
3118            ]
3119        ] = None,
3120        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3121        _content_type: Optional[StrictStr] = None,
3122        _headers: Optional[Dict[StrictStr, Any]] = None,
3123        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3124    ) -> ApiResponse[DestinationConnector]:
3125        """Get a destination connector
3126
3127
3128        :param organization: (required)
3129        :type organization: str
3130        :param destination_connector_id: (required)
3131        :type destination_connector_id: str
3132        :param _request_timeout: timeout setting for this request. If one
3133                                 number provided, it will be total request
3134                                 timeout. It can also be a pair (tuple) of
3135                                 (connection, read) timeouts.
3136        :type _request_timeout: int, tuple(int, int), optional
3137        :param _request_auth: set to override the auth_settings for an a single
3138                              request; this effectively ignores the
3139                              authentication in the spec for a single request.
3140        :type _request_auth: dict, optional
3141        :param _content_type: force content-type for the request.
3142        :type _content_type: str, Optional
3143        :param _headers: set to override the headers for a single
3144                         request; this effectively ignores the headers
3145                         in the spec for a single request.
3146        :type _headers: dict, optional
3147        :param _host_index: set to override the host_index for a single
3148                            request; this effectively ignores the host_index
3149                            in the spec for a single request.
3150        :type _host_index: int, optional
3151        :return: Returns the result object.
3152        """ # noqa: E501
3153
3154        _param = self._get_destination_connector_serialize(
3155            organization=organization,
3156            destination_connector_id=destination_connector_id,
3157            _request_auth=_request_auth,
3158            _content_type=_content_type,
3159            _headers=_headers,
3160            _host_index=_host_index
3161        )
3162
3163        _response_types_map: Dict[str, Optional[str]] = {
3164            '200': "DestinationConnector",
3165            '400': "GetPipelines400Response",
3166            '401': "GetPipelines400Response",
3167            '403': "GetPipelines400Response",
3168            '404': "GetPipelines400Response",
3169            '500': "GetPipelines400Response",
3170        }
3171        response_data = self.api_client.call_api(
3172            *_param,
3173            _request_timeout=_request_timeout
3174        )
3175        response_data.read()
3176        return self.api_client.response_deserialize(
3177            response_data=response_data,
3178            response_types_map=_response_types_map,
3179        )
3180
3181
3182    @validate_call
3183    def get_destination_connector_without_preload_content(
3184        self,
3185        organization: StrictStr,
3186        destination_connector_id: StrictStr,
3187        _request_timeout: Union[
3188            None,
3189            Annotated[StrictFloat, Field(gt=0)],
3190            Tuple[
3191                Annotated[StrictFloat, Field(gt=0)],
3192                Annotated[StrictFloat, Field(gt=0)]
3193            ]
3194        ] = None,
3195        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3196        _content_type: Optional[StrictStr] = None,
3197        _headers: Optional[Dict[StrictStr, Any]] = None,
3198        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3199    ) -> RESTResponseType:
3200        """Get a destination connector
3201
3202
3203        :param organization: (required)
3204        :type organization: str
3205        :param destination_connector_id: (required)
3206        :type destination_connector_id: str
3207        :param _request_timeout: timeout setting for this request. If one
3208                                 number provided, it will be total request
3209                                 timeout. It can also be a pair (tuple) of
3210                                 (connection, read) timeouts.
3211        :type _request_timeout: int, tuple(int, int), optional
3212        :param _request_auth: set to override the auth_settings for an a single
3213                              request; this effectively ignores the
3214                              authentication in the spec for a single request.
3215        :type _request_auth: dict, optional
3216        :param _content_type: force content-type for the request.
3217        :type _content_type: str, Optional
3218        :param _headers: set to override the headers for a single
3219                         request; this effectively ignores the headers
3220                         in the spec for a single request.
3221        :type _headers: dict, optional
3222        :param _host_index: set to override the host_index for a single
3223                            request; this effectively ignores the host_index
3224                            in the spec for a single request.
3225        :type _host_index: int, optional
3226        :return: Returns the result object.
3227        """ # noqa: E501
3228
3229        _param = self._get_destination_connector_serialize(
3230            organization=organization,
3231            destination_connector_id=destination_connector_id,
3232            _request_auth=_request_auth,
3233            _content_type=_content_type,
3234            _headers=_headers,
3235            _host_index=_host_index
3236        )
3237
3238        _response_types_map: Dict[str, Optional[str]] = {
3239            '200': "DestinationConnector",
3240            '400': "GetPipelines400Response",
3241            '401': "GetPipelines400Response",
3242            '403': "GetPipelines400Response",
3243            '404': "GetPipelines400Response",
3244            '500': "GetPipelines400Response",
3245        }
3246        response_data = self.api_client.call_api(
3247            *_param,
3248            _request_timeout=_request_timeout
3249        )
3250        return response_data.response
3251
3252
3253    def _get_destination_connector_serialize(
3254        self,
3255        organization,
3256        destination_connector_id,
3257        _request_auth,
3258        _content_type,
3259        _headers,
3260        _host_index,
3261    ) -> RequestSerialized:
3262
3263        _host = None
3264
3265        _collection_formats: Dict[str, str] = {
3266        }
3267
3268        _path_params: Dict[str, str] = {}
3269        _query_params: List[Tuple[str, str]] = []
3270        _header_params: Dict[str, Optional[str]] = _headers or {}
3271        _form_params: List[Tuple[str, str]] = []
3272        _files: Dict[
3273            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3274        ] = {}
3275        _body_params: Optional[bytes] = None
3276
3277        # process the path parameters
3278        if organization is not None:
3279            _path_params['organization'] = organization
3280        if destination_connector_id is not None:
3281            _path_params['destinationConnectorId'] = destination_connector_id
3282        # process the query parameters
3283        # process the header parameters
3284        # process the form parameters
3285        # process the body parameter
3286
3287
3288        # set the HTTP header `Accept`
3289        if 'Accept' not in _header_params:
3290            _header_params['Accept'] = self.api_client.select_header_accept(
3291                [
3292                    'application/json'
3293                ]
3294            )
3295
3296
3297        # authentication setting
3298        _auth_settings: List[str] = [
3299            'bearerAuth'
3300        ]
3301
3302        return self.api_client.param_serialize(
3303            method='GET',
3304            resource_path='/org/{organization}/connectors/destinations/{destinationConnectorId}',
3305            path_params=_path_params,
3306            query_params=_query_params,
3307            header_params=_header_params,
3308            body=_body_params,
3309            post_params=_form_params,
3310            files=_files,
3311            auth_settings=_auth_settings,
3312            collection_formats=_collection_formats,
3313            _host=_host,
3314            _request_auth=_request_auth
3315        )
3316
3317
3318
3319
3320    @validate_call
3321    def get_destination_connectors(
3322        self,
3323        organization: StrictStr,
3324        _request_timeout: Union[
3325            None,
3326            Annotated[StrictFloat, Field(gt=0)],
3327            Tuple[
3328                Annotated[StrictFloat, Field(gt=0)],
3329                Annotated[StrictFloat, Field(gt=0)]
3330            ]
3331        ] = None,
3332        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3333        _content_type: Optional[StrictStr] = None,
3334        _headers: Optional[Dict[StrictStr, Any]] = None,
3335        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3336    ) -> GetDestinationConnectors200Response:
3337        """Get all existing destination connectors
3338
3339
3340        :param organization: (required)
3341        :type organization: str
3342        :param _request_timeout: timeout setting for this request. If one
3343                                 number provided, it will be total request
3344                                 timeout. It can also be a pair (tuple) of
3345                                 (connection, read) timeouts.
3346        :type _request_timeout: int, tuple(int, int), optional
3347        :param _request_auth: set to override the auth_settings for an a single
3348                              request; this effectively ignores the
3349                              authentication in the spec for a single request.
3350        :type _request_auth: dict, optional
3351        :param _content_type: force content-type for the request.
3352        :type _content_type: str, Optional
3353        :param _headers: set to override the headers for a single
3354                         request; this effectively ignores the headers
3355                         in the spec for a single request.
3356        :type _headers: dict, optional
3357        :param _host_index: set to override the host_index for a single
3358                            request; this effectively ignores the host_index
3359                            in the spec for a single request.
3360        :type _host_index: int, optional
3361        :return: Returns the result object.
3362        """ # noqa: E501
3363
3364        _param = self._get_destination_connectors_serialize(
3365            organization=organization,
3366            _request_auth=_request_auth,
3367            _content_type=_content_type,
3368            _headers=_headers,
3369            _host_index=_host_index
3370        )
3371
3372        _response_types_map: Dict[str, Optional[str]] = {
3373            '200': "GetDestinationConnectors200Response",
3374            '400': "GetPipelines400Response",
3375            '401': "GetPipelines400Response",
3376            '403': "GetPipelines400Response",
3377            '404': "GetPipelines400Response",
3378            '500': "GetPipelines400Response",
3379        }
3380        response_data = self.api_client.call_api(
3381            *_param,
3382            _request_timeout=_request_timeout
3383        )
3384        response_data.read()
3385        return self.api_client.response_deserialize(
3386            response_data=response_data,
3387            response_types_map=_response_types_map,
3388        ).data
3389
3390
3391    @validate_call
3392    def get_destination_connectors_with_http_info(
3393        self,
3394        organization: StrictStr,
3395        _request_timeout: Union[
3396            None,
3397            Annotated[StrictFloat, Field(gt=0)],
3398            Tuple[
3399                Annotated[StrictFloat, Field(gt=0)],
3400                Annotated[StrictFloat, Field(gt=0)]
3401            ]
3402        ] = None,
3403        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3404        _content_type: Optional[StrictStr] = None,
3405        _headers: Optional[Dict[StrictStr, Any]] = None,
3406        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3407    ) -> ApiResponse[GetDestinationConnectors200Response]:
3408        """Get all existing destination connectors
3409
3410
3411        :param organization: (required)
3412        :type organization: str
3413        :param _request_timeout: timeout setting for this request. If one
3414                                 number provided, it will be total request
3415                                 timeout. It can also be a pair (tuple) of
3416                                 (connection, read) timeouts.
3417        :type _request_timeout: int, tuple(int, int), optional
3418        :param _request_auth: set to override the auth_settings for an a single
3419                              request; this effectively ignores the
3420                              authentication in the spec for a single request.
3421        :type _request_auth: dict, optional
3422        :param _content_type: force content-type for the request.
3423        :type _content_type: str, Optional
3424        :param _headers: set to override the headers for a single
3425                         request; this effectively ignores the headers
3426                         in the spec for a single request.
3427        :type _headers: dict, optional
3428        :param _host_index: set to override the host_index for a single
3429                            request; this effectively ignores the host_index
3430                            in the spec for a single request.
3431        :type _host_index: int, optional
3432        :return: Returns the result object.
3433        """ # noqa: E501
3434
3435        _param = self._get_destination_connectors_serialize(
3436            organization=organization,
3437            _request_auth=_request_auth,
3438            _content_type=_content_type,
3439            _headers=_headers,
3440            _host_index=_host_index
3441        )
3442
3443        _response_types_map: Dict[str, Optional[str]] = {
3444            '200': "GetDestinationConnectors200Response",
3445            '400': "GetPipelines400Response",
3446            '401': "GetPipelines400Response",
3447            '403': "GetPipelines400Response",
3448            '404': "GetPipelines400Response",
3449            '500': "GetPipelines400Response",
3450        }
3451        response_data = self.api_client.call_api(
3452            *_param,
3453            _request_timeout=_request_timeout
3454        )
3455        response_data.read()
3456        return self.api_client.response_deserialize(
3457            response_data=response_data,
3458            response_types_map=_response_types_map,
3459        )
3460
3461
3462    @validate_call
3463    def get_destination_connectors_without_preload_content(
3464        self,
3465        organization: StrictStr,
3466        _request_timeout: Union[
3467            None,
3468            Annotated[StrictFloat, Field(gt=0)],
3469            Tuple[
3470                Annotated[StrictFloat, Field(gt=0)],
3471                Annotated[StrictFloat, Field(gt=0)]
3472            ]
3473        ] = None,
3474        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3475        _content_type: Optional[StrictStr] = None,
3476        _headers: Optional[Dict[StrictStr, Any]] = None,
3477        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3478    ) -> RESTResponseType:
3479        """Get all existing destination connectors
3480
3481
3482        :param organization: (required)
3483        :type organization: str
3484        :param _request_timeout: timeout setting for this request. If one
3485                                 number provided, it will be total request
3486                                 timeout. It can also be a pair (tuple) of
3487                                 (connection, read) timeouts.
3488        :type _request_timeout: int, tuple(int, int), optional
3489        :param _request_auth: set to override the auth_settings for an a single
3490                              request; this effectively ignores the
3491                              authentication in the spec for a single request.
3492        :type _request_auth: dict, optional
3493        :param _content_type: force content-type for the request.
3494        :type _content_type: str, Optional
3495        :param _headers: set to override the headers for a single
3496                         request; this effectively ignores the headers
3497                         in the spec for a single request.
3498        :type _headers: dict, optional
3499        :param _host_index: set to override the host_index for a single
3500                            request; this effectively ignores the host_index
3501                            in the spec for a single request.
3502        :type _host_index: int, optional
3503        :return: Returns the result object.
3504        """ # noqa: E501
3505
3506        _param = self._get_destination_connectors_serialize(
3507            organization=organization,
3508            _request_auth=_request_auth,
3509            _content_type=_content_type,
3510            _headers=_headers,
3511            _host_index=_host_index
3512        )
3513
3514        _response_types_map: Dict[str, Optional[str]] = {
3515            '200': "GetDestinationConnectors200Response",
3516            '400': "GetPipelines400Response",
3517            '401': "GetPipelines400Response",
3518            '403': "GetPipelines400Response",
3519            '404': "GetPipelines400Response",
3520            '500': "GetPipelines400Response",
3521        }
3522        response_data = self.api_client.call_api(
3523            *_param,
3524            _request_timeout=_request_timeout
3525        )
3526        return response_data.response
3527
3528
3529    def _get_destination_connectors_serialize(
3530        self,
3531        organization,
3532        _request_auth,
3533        _content_type,
3534        _headers,
3535        _host_index,
3536    ) -> RequestSerialized:
3537
3538        _host = None
3539
3540        _collection_formats: Dict[str, str] = {
3541        }
3542
3543        _path_params: Dict[str, str] = {}
3544        _query_params: List[Tuple[str, str]] = []
3545        _header_params: Dict[str, Optional[str]] = _headers or {}
3546        _form_params: List[Tuple[str, str]] = []
3547        _files: Dict[
3548            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3549        ] = {}
3550        _body_params: Optional[bytes] = None
3551
3552        # process the path parameters
3553        if organization is not None:
3554            _path_params['organization'] = organization
3555        # process the query parameters
3556        # process the header parameters
3557        # process the form parameters
3558        # process the body parameter
3559
3560
3561        # set the HTTP header `Accept`
3562        if 'Accept' not in _header_params:
3563            _header_params['Accept'] = self.api_client.select_header_accept(
3564                [
3565                    'application/json'
3566                ]
3567            )
3568
3569
3570        # authentication setting
3571        _auth_settings: List[str] = [
3572            'bearerAuth'
3573        ]
3574
3575        return self.api_client.param_serialize(
3576            method='GET',
3577            resource_path='/org/{organization}/connectors/destinations',
3578            path_params=_path_params,
3579            query_params=_query_params,
3580            header_params=_header_params,
3581            body=_body_params,
3582            post_params=_form_params,
3583            files=_files,
3584            auth_settings=_auth_settings,
3585            collection_formats=_collection_formats,
3586            _host=_host,
3587            _request_auth=_request_auth
3588        )
3589
3590
3591
3592
3593    @validate_call
3594    def get_source_connector(
3595        self,
3596        organization: StrictStr,
3597        source_connector_id: StrictStr,
3598        _request_timeout: Union[
3599            None,
3600            Annotated[StrictFloat, Field(gt=0)],
3601            Tuple[
3602                Annotated[StrictFloat, Field(gt=0)],
3603                Annotated[StrictFloat, Field(gt=0)]
3604            ]
3605        ] = None,
3606        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3607        _content_type: Optional[StrictStr] = None,
3608        _headers: Optional[Dict[StrictStr, Any]] = None,
3609        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3610    ) -> SourceConnector:
3611        """Get a source connector
3612
3613
3614        :param organization: (required)
3615        :type organization: str
3616        :param source_connector_id: (required)
3617        :type source_connector_id: str
3618        :param _request_timeout: timeout setting for this request. If one
3619                                 number provided, it will be total request
3620                                 timeout. It can also be a pair (tuple) of
3621                                 (connection, read) timeouts.
3622        :type _request_timeout: int, tuple(int, int), optional
3623        :param _request_auth: set to override the auth_settings for an a single
3624                              request; this effectively ignores the
3625                              authentication in the spec for a single request.
3626        :type _request_auth: dict, optional
3627        :param _content_type: force content-type for the request.
3628        :type _content_type: str, Optional
3629        :param _headers: set to override the headers for a single
3630                         request; this effectively ignores the headers
3631                         in the spec for a single request.
3632        :type _headers: dict, optional
3633        :param _host_index: set to override the host_index for a single
3634                            request; this effectively ignores the host_index
3635                            in the spec for a single request.
3636        :type _host_index: int, optional
3637        :return: Returns the result object.
3638        """ # noqa: E501
3639
3640        _param = self._get_source_connector_serialize(
3641            organization=organization,
3642            source_connector_id=source_connector_id,
3643            _request_auth=_request_auth,
3644            _content_type=_content_type,
3645            _headers=_headers,
3646            _host_index=_host_index
3647        )
3648
3649        _response_types_map: Dict[str, Optional[str]] = {
3650            '200': "SourceConnector",
3651            '400': "GetPipelines400Response",
3652            '401': "GetPipelines400Response",
3653            '403': "GetPipelines400Response",
3654            '404': "GetPipelines400Response",
3655            '500': "GetPipelines400Response",
3656        }
3657        response_data = self.api_client.call_api(
3658            *_param,
3659            _request_timeout=_request_timeout
3660        )
3661        response_data.read()
3662        return self.api_client.response_deserialize(
3663            response_data=response_data,
3664            response_types_map=_response_types_map,
3665        ).data
3666
3667
3668    @validate_call
3669    def get_source_connector_with_http_info(
3670        self,
3671        organization: StrictStr,
3672        source_connector_id: StrictStr,
3673        _request_timeout: Union[
3674            None,
3675            Annotated[StrictFloat, Field(gt=0)],
3676            Tuple[
3677                Annotated[StrictFloat, Field(gt=0)],
3678                Annotated[StrictFloat, Field(gt=0)]
3679            ]
3680        ] = None,
3681        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3682        _content_type: Optional[StrictStr] = None,
3683        _headers: Optional[Dict[StrictStr, Any]] = None,
3684        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3685    ) -> ApiResponse[SourceConnector]:
3686        """Get a source connector
3687
3688
3689        :param organization: (required)
3690        :type organization: str
3691        :param source_connector_id: (required)
3692        :type source_connector_id: str
3693        :param _request_timeout: timeout setting for this request. If one
3694                                 number provided, it will be total request
3695                                 timeout. It can also be a pair (tuple) of
3696                                 (connection, read) timeouts.
3697        :type _request_timeout: int, tuple(int, int), optional
3698        :param _request_auth: set to override the auth_settings for an a single
3699                              request; this effectively ignores the
3700                              authentication in the spec for a single request.
3701        :type _request_auth: dict, optional
3702        :param _content_type: force content-type for the request.
3703        :type _content_type: str, Optional
3704        :param _headers: set to override the headers for a single
3705                         request; this effectively ignores the headers
3706                         in the spec for a single request.
3707        :type _headers: dict, optional
3708        :param _host_index: set to override the host_index for a single
3709                            request; this effectively ignores the host_index
3710                            in the spec for a single request.
3711        :type _host_index: int, optional
3712        :return: Returns the result object.
3713        """ # noqa: E501
3714
3715        _param = self._get_source_connector_serialize(
3716            organization=organization,
3717            source_connector_id=source_connector_id,
3718            _request_auth=_request_auth,
3719            _content_type=_content_type,
3720            _headers=_headers,
3721            _host_index=_host_index
3722        )
3723
3724        _response_types_map: Dict[str, Optional[str]] = {
3725            '200': "SourceConnector",
3726            '400': "GetPipelines400Response",
3727            '401': "GetPipelines400Response",
3728            '403': "GetPipelines400Response",
3729            '404': "GetPipelines400Response",
3730            '500': "GetPipelines400Response",
3731        }
3732        response_data = self.api_client.call_api(
3733            *_param,
3734            _request_timeout=_request_timeout
3735        )
3736        response_data.read()
3737        return self.api_client.response_deserialize(
3738            response_data=response_data,
3739            response_types_map=_response_types_map,
3740        )
3741
3742
3743    @validate_call
3744    def get_source_connector_without_preload_content(
3745        self,
3746        organization: StrictStr,
3747        source_connector_id: StrictStr,
3748        _request_timeout: Union[
3749            None,
3750            Annotated[StrictFloat, Field(gt=0)],
3751            Tuple[
3752                Annotated[StrictFloat, Field(gt=0)],
3753                Annotated[StrictFloat, Field(gt=0)]
3754            ]
3755        ] = None,
3756        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3757        _content_type: Optional[StrictStr] = None,
3758        _headers: Optional[Dict[StrictStr, Any]] = None,
3759        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3760    ) -> RESTResponseType:
3761        """Get a source connector
3762
3763
3764        :param organization: (required)
3765        :type organization: str
3766        :param source_connector_id: (required)
3767        :type source_connector_id: str
3768        :param _request_timeout: timeout setting for this request. If one
3769                                 number provided, it will be total request
3770                                 timeout. It can also be a pair (tuple) of
3771                                 (connection, read) timeouts.
3772        :type _request_timeout: int, tuple(int, int), optional
3773        :param _request_auth: set to override the auth_settings for an a single
3774                              request; this effectively ignores the
3775                              authentication in the spec for a single request.
3776        :type _request_auth: dict, optional
3777        :param _content_type: force content-type for the request.
3778        :type _content_type: str, Optional
3779        :param _headers: set to override the headers for a single
3780                         request; this effectively ignores the headers
3781                         in the spec for a single request.
3782        :type _headers: dict, optional
3783        :param _host_index: set to override the host_index for a single
3784                            request; this effectively ignores the host_index
3785                            in the spec for a single request.
3786        :type _host_index: int, optional
3787        :return: Returns the result object.
3788        """ # noqa: E501
3789
3790        _param = self._get_source_connector_serialize(
3791            organization=organization,
3792            source_connector_id=source_connector_id,
3793            _request_auth=_request_auth,
3794            _content_type=_content_type,
3795            _headers=_headers,
3796            _host_index=_host_index
3797        )
3798
3799        _response_types_map: Dict[str, Optional[str]] = {
3800            '200': "SourceConnector",
3801            '400': "GetPipelines400Response",
3802            '401': "GetPipelines400Response",
3803            '403': "GetPipelines400Response",
3804            '404': "GetPipelines400Response",
3805            '500': "GetPipelines400Response",
3806        }
3807        response_data = self.api_client.call_api(
3808            *_param,
3809            _request_timeout=_request_timeout
3810        )
3811        return response_data.response
3812
3813
3814    def _get_source_connector_serialize(
3815        self,
3816        organization,
3817        source_connector_id,
3818        _request_auth,
3819        _content_type,
3820        _headers,
3821        _host_index,
3822    ) -> RequestSerialized:
3823
3824        _host = None
3825
3826        _collection_formats: Dict[str, str] = {
3827        }
3828
3829        _path_params: Dict[str, str] = {}
3830        _query_params: List[Tuple[str, str]] = []
3831        _header_params: Dict[str, Optional[str]] = _headers or {}
3832        _form_params: List[Tuple[str, str]] = []
3833        _files: Dict[
3834            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3835        ] = {}
3836        _body_params: Optional[bytes] = None
3837
3838        # process the path parameters
3839        if organization is not None:
3840            _path_params['organization'] = organization
3841        if source_connector_id is not None:
3842            _path_params['sourceConnectorId'] = source_connector_id
3843        # process the query parameters
3844        # process the header parameters
3845        # process the form parameters
3846        # process the body parameter
3847
3848
3849        # set the HTTP header `Accept`
3850        if 'Accept' not in _header_params:
3851            _header_params['Accept'] = self.api_client.select_header_accept(
3852                [
3853                    'application/json'
3854                ]
3855            )
3856
3857
3858        # authentication setting
3859        _auth_settings: List[str] = [
3860            'bearerAuth'
3861        ]
3862
3863        return self.api_client.param_serialize(
3864            method='GET',
3865            resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}',
3866            path_params=_path_params,
3867            query_params=_query_params,
3868            header_params=_header_params,
3869            body=_body_params,
3870            post_params=_form_params,
3871            files=_files,
3872            auth_settings=_auth_settings,
3873            collection_formats=_collection_formats,
3874            _host=_host,
3875            _request_auth=_request_auth
3876        )
3877
3878
3879
3880
3881    @validate_call
3882    def get_source_connectors(
3883        self,
3884        organization: StrictStr,
3885        _request_timeout: Union[
3886            None,
3887            Annotated[StrictFloat, Field(gt=0)],
3888            Tuple[
3889                Annotated[StrictFloat, Field(gt=0)],
3890                Annotated[StrictFloat, Field(gt=0)]
3891            ]
3892        ] = None,
3893        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3894        _content_type: Optional[StrictStr] = None,
3895        _headers: Optional[Dict[StrictStr, Any]] = None,
3896        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3897    ) -> GetSourceConnectors200Response:
3898        """Get all existing source connectors
3899
3900
3901        :param organization: (required)
3902        :type organization: str
3903        :param _request_timeout: timeout setting for this request. If one
3904                                 number provided, it will be total request
3905                                 timeout. It can also be a pair (tuple) of
3906                                 (connection, read) timeouts.
3907        :type _request_timeout: int, tuple(int, int), optional
3908        :param _request_auth: set to override the auth_settings for an a single
3909                              request; this effectively ignores the
3910                              authentication in the spec for a single request.
3911        :type _request_auth: dict, optional
3912        :param _content_type: force content-type for the request.
3913        :type _content_type: str, Optional
3914        :param _headers: set to override the headers for a single
3915                         request; this effectively ignores the headers
3916                         in the spec for a single request.
3917        :type _headers: dict, optional
3918        :param _host_index: set to override the host_index for a single
3919                            request; this effectively ignores the host_index
3920                            in the spec for a single request.
3921        :type _host_index: int, optional
3922        :return: Returns the result object.
3923        """ # noqa: E501
3924
3925        _param = self._get_source_connectors_serialize(
3926            organization=organization,
3927            _request_auth=_request_auth,
3928            _content_type=_content_type,
3929            _headers=_headers,
3930            _host_index=_host_index
3931        )
3932
3933        _response_types_map: Dict[str, Optional[str]] = {
3934            '200': "GetSourceConnectors200Response",
3935            '400': "GetPipelines400Response",
3936            '401': "GetPipelines400Response",
3937            '403': "GetPipelines400Response",
3938            '404': "GetPipelines400Response",
3939            '500': "GetPipelines400Response",
3940        }
3941        response_data = self.api_client.call_api(
3942            *_param,
3943            _request_timeout=_request_timeout
3944        )
3945        response_data.read()
3946        return self.api_client.response_deserialize(
3947            response_data=response_data,
3948            response_types_map=_response_types_map,
3949        ).data
3950
3951
3952    @validate_call
3953    def get_source_connectors_with_http_info(
3954        self,
3955        organization: StrictStr,
3956        _request_timeout: Union[
3957            None,
3958            Annotated[StrictFloat, Field(gt=0)],
3959            Tuple[
3960                Annotated[StrictFloat, Field(gt=0)],
3961                Annotated[StrictFloat, Field(gt=0)]
3962            ]
3963        ] = None,
3964        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3965        _content_type: Optional[StrictStr] = None,
3966        _headers: Optional[Dict[StrictStr, Any]] = None,
3967        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3968    ) -> ApiResponse[GetSourceConnectors200Response]:
3969        """Get all existing source connectors
3970
3971
3972        :param organization: (required)
3973        :type organization: str
3974        :param _request_timeout: timeout setting for this request. If one
3975                                 number provided, it will be total request
3976                                 timeout. It can also be a pair (tuple) of
3977                                 (connection, read) timeouts.
3978        :type _request_timeout: int, tuple(int, int), optional
3979        :param _request_auth: set to override the auth_settings for an a single
3980                              request; this effectively ignores the
3981                              authentication in the spec for a single request.
3982        :type _request_auth: dict, optional
3983        :param _content_type: force content-type for the request.
3984        :type _content_type: str, Optional
3985        :param _headers: set to override the headers for a single
3986                         request; this effectively ignores the headers
3987                         in the spec for a single request.
3988        :type _headers: dict, optional
3989        :param _host_index: set to override the host_index for a single
3990                            request; this effectively ignores the host_index
3991                            in the spec for a single request.
3992        :type _host_index: int, optional
3993        :return: Returns the result object.
3994        """ # noqa: E501
3995
3996        _param = self._get_source_connectors_serialize(
3997            organization=organization,
3998            _request_auth=_request_auth,
3999            _content_type=_content_type,
4000            _headers=_headers,
4001            _host_index=_host_index
4002        )
4003
4004        _response_types_map: Dict[str, Optional[str]] = {
4005            '200': "GetSourceConnectors200Response",
4006            '400': "GetPipelines400Response",
4007            '401': "GetPipelines400Response",
4008            '403': "GetPipelines400Response",
4009            '404': "GetPipelines400Response",
4010            '500': "GetPipelines400Response",
4011        }
4012        response_data = self.api_client.call_api(
4013            *_param,
4014            _request_timeout=_request_timeout
4015        )
4016        response_data.read()
4017        return self.api_client.response_deserialize(
4018            response_data=response_data,
4019            response_types_map=_response_types_map,
4020        )
4021
4022
4023    @validate_call
4024    def get_source_connectors_without_preload_content(
4025        self,
4026        organization: StrictStr,
4027        _request_timeout: Union[
4028            None,
4029            Annotated[StrictFloat, Field(gt=0)],
4030            Tuple[
4031                Annotated[StrictFloat, Field(gt=0)],
4032                Annotated[StrictFloat, Field(gt=0)]
4033            ]
4034        ] = None,
4035        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4036        _content_type: Optional[StrictStr] = None,
4037        _headers: Optional[Dict[StrictStr, Any]] = None,
4038        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4039    ) -> RESTResponseType:
4040        """Get all existing source connectors
4041
4042
4043        :param organization: (required)
4044        :type organization: str
4045        :param _request_timeout: timeout setting for this request. If one
4046                                 number provided, it will be total request
4047                                 timeout. It can also be a pair (tuple) of
4048                                 (connection, read) timeouts.
4049        :type _request_timeout: int, tuple(int, int), optional
4050        :param _request_auth: set to override the auth_settings for an a single
4051                              request; this effectively ignores the
4052                              authentication in the spec for a single request.
4053        :type _request_auth: dict, optional
4054        :param _content_type: force content-type for the request.
4055        :type _content_type: str, Optional
4056        :param _headers: set to override the headers for a single
4057                         request; this effectively ignores the headers
4058                         in the spec for a single request.
4059        :type _headers: dict, optional
4060        :param _host_index: set to override the host_index for a single
4061                            request; this effectively ignores the host_index
4062                            in the spec for a single request.
4063        :type _host_index: int, optional
4064        :return: Returns the result object.
4065        """ # noqa: E501
4066
4067        _param = self._get_source_connectors_serialize(
4068            organization=organization,
4069            _request_auth=_request_auth,
4070            _content_type=_content_type,
4071            _headers=_headers,
4072            _host_index=_host_index
4073        )
4074
4075        _response_types_map: Dict[str, Optional[str]] = {
4076            '200': "GetSourceConnectors200Response",
4077            '400': "GetPipelines400Response",
4078            '401': "GetPipelines400Response",
4079            '403': "GetPipelines400Response",
4080            '404': "GetPipelines400Response",
4081            '500': "GetPipelines400Response",
4082        }
4083        response_data = self.api_client.call_api(
4084            *_param,
4085            _request_timeout=_request_timeout
4086        )
4087        return response_data.response
4088
4089
4090    def _get_source_connectors_serialize(
4091        self,
4092        organization,
4093        _request_auth,
4094        _content_type,
4095        _headers,
4096        _host_index,
4097    ) -> RequestSerialized:
4098
4099        _host = None
4100
4101        _collection_formats: Dict[str, str] = {
4102        }
4103
4104        _path_params: Dict[str, str] = {}
4105        _query_params: List[Tuple[str, str]] = []
4106        _header_params: Dict[str, Optional[str]] = _headers or {}
4107        _form_params: List[Tuple[str, str]] = []
4108        _files: Dict[
4109            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4110        ] = {}
4111        _body_params: Optional[bytes] = None
4112
4113        # process the path parameters
4114        if organization is not None:
4115            _path_params['organization'] = organization
4116        # process the query parameters
4117        # process the header parameters
4118        # process the form parameters
4119        # process the body parameter
4120
4121
4122        # set the HTTP header `Accept`
4123        if 'Accept' not in _header_params:
4124            _header_params['Accept'] = self.api_client.select_header_accept(
4125                [
4126                    'application/json'
4127                ]
4128            )
4129
4130
4131        # authentication setting
4132        _auth_settings: List[str] = [
4133            'bearerAuth'
4134        ]
4135
4136        return self.api_client.param_serialize(
4137            method='GET',
4138            resource_path='/org/{organization}/connectors/sources',
4139            path_params=_path_params,
4140            query_params=_query_params,
4141            header_params=_header_params,
4142            body=_body_params,
4143            post_params=_form_params,
4144            files=_files,
4145            auth_settings=_auth_settings,
4146            collection_formats=_collection_formats,
4147            _host=_host,
4148            _request_auth=_request_auth
4149        )
4150
4151
4152
4153
4154    @validate_call
4155    def update_ai_platform_connector(
4156        self,
4157        organization: StrictStr,
4158        aiplatform_id: StrictStr,
4159        update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest,
4160        _request_timeout: Union[
4161            None,
4162            Annotated[StrictFloat, Field(gt=0)],
4163            Tuple[
4164                Annotated[StrictFloat, Field(gt=0)],
4165                Annotated[StrictFloat, Field(gt=0)]
4166            ]
4167        ] = None,
4168        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4169        _content_type: Optional[StrictStr] = None,
4170        _headers: Optional[Dict[StrictStr, Any]] = None,
4171        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4172    ) -> UpdateAIPlatformConnectorResponse:
4173        """Update an AI Platform connector
4174
4175
4176        :param organization: (required)
4177        :type organization: str
4178        :param aiplatform_id: (required)
4179        :type aiplatform_id: str
4180        :param update_ai_platform_connector_request: (required)
4181        :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest
4182        :param _request_timeout: timeout setting for this request. If one
4183                                 number provided, it will be total request
4184                                 timeout. It can also be a pair (tuple) of
4185                                 (connection, read) timeouts.
4186        :type _request_timeout: int, tuple(int, int), optional
4187        :param _request_auth: set to override the auth_settings for an a single
4188                              request; this effectively ignores the
4189                              authentication in the spec for a single request.
4190        :type _request_auth: dict, optional
4191        :param _content_type: force content-type for the request.
4192        :type _content_type: str, Optional
4193        :param _headers: set to override the headers for a single
4194                         request; this effectively ignores the headers
4195                         in the spec for a single request.
4196        :type _headers: dict, optional
4197        :param _host_index: set to override the host_index for a single
4198                            request; this effectively ignores the host_index
4199                            in the spec for a single request.
4200        :type _host_index: int, optional
4201        :return: Returns the result object.
4202        """ # noqa: E501
4203
4204        _param = self._update_ai_platform_connector_serialize(
4205            organization=organization,
4206            aiplatform_id=aiplatform_id,
4207            update_ai_platform_connector_request=update_ai_platform_connector_request,
4208            _request_auth=_request_auth,
4209            _content_type=_content_type,
4210            _headers=_headers,
4211            _host_index=_host_index
4212        )
4213
4214        _response_types_map: Dict[str, Optional[str]] = {
4215            '200': "UpdateAIPlatformConnectorResponse",
4216            '400': "GetPipelines400Response",
4217            '401': "GetPipelines400Response",
4218            '403': "GetPipelines400Response",
4219            '404': "GetPipelines400Response",
4220            '500': "GetPipelines400Response",
4221        }
4222        response_data = self.api_client.call_api(
4223            *_param,
4224            _request_timeout=_request_timeout
4225        )
4226        response_data.read()
4227        return self.api_client.response_deserialize(
4228            response_data=response_data,
4229            response_types_map=_response_types_map,
4230        ).data
4231
4232
4233    @validate_call
4234    def update_ai_platform_connector_with_http_info(
4235        self,
4236        organization: StrictStr,
4237        aiplatform_id: StrictStr,
4238        update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest,
4239        _request_timeout: Union[
4240            None,
4241            Annotated[StrictFloat, Field(gt=0)],
4242            Tuple[
4243                Annotated[StrictFloat, Field(gt=0)],
4244                Annotated[StrictFloat, Field(gt=0)]
4245            ]
4246        ] = None,
4247        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4248        _content_type: Optional[StrictStr] = None,
4249        _headers: Optional[Dict[StrictStr, Any]] = None,
4250        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4251    ) -> ApiResponse[UpdateAIPlatformConnectorResponse]:
4252        """Update an AI Platform connector
4253
4254
4255        :param organization: (required)
4256        :type organization: str
4257        :param aiplatform_id: (required)
4258        :type aiplatform_id: str
4259        :param update_ai_platform_connector_request: (required)
4260        :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest
4261        :param _request_timeout: timeout setting for this request. If one
4262                                 number provided, it will be total request
4263                                 timeout. It can also be a pair (tuple) of
4264                                 (connection, read) timeouts.
4265        :type _request_timeout: int, tuple(int, int), optional
4266        :param _request_auth: set to override the auth_settings for an a single
4267                              request; this effectively ignores the
4268                              authentication in the spec for a single request.
4269        :type _request_auth: dict, optional
4270        :param _content_type: force content-type for the request.
4271        :type _content_type: str, Optional
4272        :param _headers: set to override the headers for a single
4273                         request; this effectively ignores the headers
4274                         in the spec for a single request.
4275        :type _headers: dict, optional
4276        :param _host_index: set to override the host_index for a single
4277                            request; this effectively ignores the host_index
4278                            in the spec for a single request.
4279        :type _host_index: int, optional
4280        :return: Returns the result object.
4281        """ # noqa: E501
4282
4283        _param = self._update_ai_platform_connector_serialize(
4284            organization=organization,
4285            aiplatform_id=aiplatform_id,
4286            update_ai_platform_connector_request=update_ai_platform_connector_request,
4287            _request_auth=_request_auth,
4288            _content_type=_content_type,
4289            _headers=_headers,
4290            _host_index=_host_index
4291        )
4292
4293        _response_types_map: Dict[str, Optional[str]] = {
4294            '200': "UpdateAIPlatformConnectorResponse",
4295            '400': "GetPipelines400Response",
4296            '401': "GetPipelines400Response",
4297            '403': "GetPipelines400Response",
4298            '404': "GetPipelines400Response",
4299            '500': "GetPipelines400Response",
4300        }
4301        response_data = self.api_client.call_api(
4302            *_param,
4303            _request_timeout=_request_timeout
4304        )
4305        response_data.read()
4306        return self.api_client.response_deserialize(
4307            response_data=response_data,
4308            response_types_map=_response_types_map,
4309        )
4310
4311
4312    @validate_call
4313    def update_ai_platform_connector_without_preload_content(
4314        self,
4315        organization: StrictStr,
4316        aiplatform_id: StrictStr,
4317        update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest,
4318        _request_timeout: Union[
4319            None,
4320            Annotated[StrictFloat, Field(gt=0)],
4321            Tuple[
4322                Annotated[StrictFloat, Field(gt=0)],
4323                Annotated[StrictFloat, Field(gt=0)]
4324            ]
4325        ] = None,
4326        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4327        _content_type: Optional[StrictStr] = None,
4328        _headers: Optional[Dict[StrictStr, Any]] = None,
4329        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4330    ) -> RESTResponseType:
4331        """Update an AI Platform connector
4332
4333
4334        :param organization: (required)
4335        :type organization: str
4336        :param aiplatform_id: (required)
4337        :type aiplatform_id: str
4338        :param update_ai_platform_connector_request: (required)
4339        :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest
4340        :param _request_timeout: timeout setting for this request. If one
4341                                 number provided, it will be total request
4342                                 timeout. It can also be a pair (tuple) of
4343                                 (connection, read) timeouts.
4344        :type _request_timeout: int, tuple(int, int), optional
4345        :param _request_auth: set to override the auth_settings for an a single
4346                              request; this effectively ignores the
4347                              authentication in the spec for a single request.
4348        :type _request_auth: dict, optional
4349        :param _content_type: force content-type for the request.
4350        :type _content_type: str, Optional
4351        :param _headers: set to override the headers for a single
4352                         request; this effectively ignores the headers
4353                         in the spec for a single request.
4354        :type _headers: dict, optional
4355        :param _host_index: set to override the host_index for a single
4356                            request; this effectively ignores the host_index
4357                            in the spec for a single request.
4358        :type _host_index: int, optional
4359        :return: Returns the result object.
4360        """ # noqa: E501
4361
4362        _param = self._update_ai_platform_connector_serialize(
4363            organization=organization,
4364            aiplatform_id=aiplatform_id,
4365            update_ai_platform_connector_request=update_ai_platform_connector_request,
4366            _request_auth=_request_auth,
4367            _content_type=_content_type,
4368            _headers=_headers,
4369            _host_index=_host_index
4370        )
4371
4372        _response_types_map: Dict[str, Optional[str]] = {
4373            '200': "UpdateAIPlatformConnectorResponse",
4374            '400': "GetPipelines400Response",
4375            '401': "GetPipelines400Response",
4376            '403': "GetPipelines400Response",
4377            '404': "GetPipelines400Response",
4378            '500': "GetPipelines400Response",
4379        }
4380        response_data = self.api_client.call_api(
4381            *_param,
4382            _request_timeout=_request_timeout
4383        )
4384        return response_data.response
4385
4386
4387    def _update_ai_platform_connector_serialize(
4388        self,
4389        organization,
4390        aiplatform_id,
4391        update_ai_platform_connector_request,
4392        _request_auth,
4393        _content_type,
4394        _headers,
4395        _host_index,
4396    ) -> RequestSerialized:
4397
4398        _host = None
4399
4400        _collection_formats: Dict[str, str] = {
4401        }
4402
4403        _path_params: Dict[str, str] = {}
4404        _query_params: List[Tuple[str, str]] = []
4405        _header_params: Dict[str, Optional[str]] = _headers or {}
4406        _form_params: List[Tuple[str, str]] = []
4407        _files: Dict[
4408            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4409        ] = {}
4410        _body_params: Optional[bytes] = None
4411
4412        # process the path parameters
4413        if organization is not None:
4414            _path_params['organization'] = organization
4415        if aiplatform_id is not None:
4416            _path_params['aiplatformId'] = aiplatform_id
4417        # process the query parameters
4418        # process the header parameters
4419        # process the form parameters
4420        # process the body parameter
4421        if update_ai_platform_connector_request is not None:
4422            _body_params = update_ai_platform_connector_request
4423
4424
4425        # set the HTTP header `Accept`
4426        if 'Accept' not in _header_params:
4427            _header_params['Accept'] = self.api_client.select_header_accept(
4428                [
4429                    'application/json'
4430                ]
4431            )
4432
4433        # set the HTTP header `Content-Type`
4434        if _content_type:
4435            _header_params['Content-Type'] = _content_type
4436        else:
4437            _default_content_type = (
4438                self.api_client.select_header_content_type(
4439                    [
4440                        'application/json'
4441                    ]
4442                )
4443            )
4444            if _default_content_type is not None:
4445                _header_params['Content-Type'] = _default_content_type
4446
4447        # authentication setting
4448        _auth_settings: List[str] = [
4449            'bearerAuth'
4450        ]
4451
4452        return self.api_client.param_serialize(
4453            method='PATCH',
4454            resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}',
4455            path_params=_path_params,
4456            query_params=_query_params,
4457            header_params=_header_params,
4458            body=_body_params,
4459            post_params=_form_params,
4460            files=_files,
4461            auth_settings=_auth_settings,
4462            collection_formats=_collection_formats,
4463            _host=_host,
4464            _request_auth=_request_auth
4465        )
4466
4467
4468
4469
4470    @validate_call
4471    def update_destination_connector(
4472        self,
4473        organization: StrictStr,
4474        destination_connector_id: StrictStr,
4475        update_destination_connector_request: UpdateDestinationConnectorRequest,
4476        _request_timeout: Union[
4477            None,
4478            Annotated[StrictFloat, Field(gt=0)],
4479            Tuple[
4480                Annotated[StrictFloat, Field(gt=0)],
4481                Annotated[StrictFloat, Field(gt=0)]
4482            ]
4483        ] = None,
4484        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4485        _content_type: Optional[StrictStr] = None,
4486        _headers: Optional[Dict[StrictStr, Any]] = None,
4487        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4488    ) -> UpdateDestinationConnectorResponse:
4489        """Update a destination connector
4490
4491
4492        :param organization: (required)
4493        :type organization: str
4494        :param destination_connector_id: (required)
4495        :type destination_connector_id: str
4496        :param update_destination_connector_request: (required)
4497        :type update_destination_connector_request: UpdateDestinationConnectorRequest
4498        :param _request_timeout: timeout setting for this request. If one
4499                                 number provided, it will be total request
4500                                 timeout. It can also be a pair (tuple) of
4501                                 (connection, read) timeouts.
4502        :type _request_timeout: int, tuple(int, int), optional
4503        :param _request_auth: set to override the auth_settings for an a single
4504                              request; this effectively ignores the
4505                              authentication in the spec for a single request.
4506        :type _request_auth: dict, optional
4507        :param _content_type: force content-type for the request.
4508        :type _content_type: str, Optional
4509        :param _headers: set to override the headers for a single
4510                         request; this effectively ignores the headers
4511                         in the spec for a single request.
4512        :type _headers: dict, optional
4513        :param _host_index: set to override the host_index for a single
4514                            request; this effectively ignores the host_index
4515                            in the spec for a single request.
4516        :type _host_index: int, optional
4517        :return: Returns the result object.
4518        """ # noqa: E501
4519
4520        _param = self._update_destination_connector_serialize(
4521            organization=organization,
4522            destination_connector_id=destination_connector_id,
4523            update_destination_connector_request=update_destination_connector_request,
4524            _request_auth=_request_auth,
4525            _content_type=_content_type,
4526            _headers=_headers,
4527            _host_index=_host_index
4528        )
4529
4530        _response_types_map: Dict[str, Optional[str]] = {
4531            '200': "UpdateDestinationConnectorResponse",
4532            '400': "GetPipelines400Response",
4533            '401': "GetPipelines400Response",
4534            '403': "GetPipelines400Response",
4535            '404': "GetPipelines400Response",
4536            '500': "GetPipelines400Response",
4537        }
4538        response_data = self.api_client.call_api(
4539            *_param,
4540            _request_timeout=_request_timeout
4541        )
4542        response_data.read()
4543        return self.api_client.response_deserialize(
4544            response_data=response_data,
4545            response_types_map=_response_types_map,
4546        ).data
4547
4548
4549    @validate_call
4550    def update_destination_connector_with_http_info(
4551        self,
4552        organization: StrictStr,
4553        destination_connector_id: StrictStr,
4554        update_destination_connector_request: UpdateDestinationConnectorRequest,
4555        _request_timeout: Union[
4556            None,
4557            Annotated[StrictFloat, Field(gt=0)],
4558            Tuple[
4559                Annotated[StrictFloat, Field(gt=0)],
4560                Annotated[StrictFloat, Field(gt=0)]
4561            ]
4562        ] = None,
4563        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4564        _content_type: Optional[StrictStr] = None,
4565        _headers: Optional[Dict[StrictStr, Any]] = None,
4566        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4567    ) -> ApiResponse[UpdateDestinationConnectorResponse]:
4568        """Update a destination connector
4569
4570
4571        :param organization: (required)
4572        :type organization: str
4573        :param destination_connector_id: (required)
4574        :type destination_connector_id: str
4575        :param update_destination_connector_request: (required)
4576        :type update_destination_connector_request: UpdateDestinationConnectorRequest
4577        :param _request_timeout: timeout setting for this request. If one
4578                                 number provided, it will be total request
4579                                 timeout. It can also be a pair (tuple) of
4580                                 (connection, read) timeouts.
4581        :type _request_timeout: int, tuple(int, int), optional
4582        :param _request_auth: set to override the auth_settings for an a single
4583                              request; this effectively ignores the
4584                              authentication in the spec for a single request.
4585        :type _request_auth: dict, optional
4586        :param _content_type: force content-type for the request.
4587        :type _content_type: str, Optional
4588        :param _headers: set to override the headers for a single
4589                         request; this effectively ignores the headers
4590                         in the spec for a single request.
4591        :type _headers: dict, optional
4592        :param _host_index: set to override the host_index for a single
4593                            request; this effectively ignores the host_index
4594                            in the spec for a single request.
4595        :type _host_index: int, optional
4596        :return: Returns the result object.
4597        """ # noqa: E501
4598
4599        _param = self._update_destination_connector_serialize(
4600            organization=organization,
4601            destination_connector_id=destination_connector_id,
4602            update_destination_connector_request=update_destination_connector_request,
4603            _request_auth=_request_auth,
4604            _content_type=_content_type,
4605            _headers=_headers,
4606            _host_index=_host_index
4607        )
4608
4609        _response_types_map: Dict[str, Optional[str]] = {
4610            '200': "UpdateDestinationConnectorResponse",
4611            '400': "GetPipelines400Response",
4612            '401': "GetPipelines400Response",
4613            '403': "GetPipelines400Response",
4614            '404': "GetPipelines400Response",
4615            '500': "GetPipelines400Response",
4616        }
4617        response_data = self.api_client.call_api(
4618            *_param,
4619            _request_timeout=_request_timeout
4620        )
4621        response_data.read()
4622        return self.api_client.response_deserialize(
4623            response_data=response_data,
4624            response_types_map=_response_types_map,
4625        )
4626
4627
4628    @validate_call
4629    def update_destination_connector_without_preload_content(
4630        self,
4631        organization: StrictStr,
4632        destination_connector_id: StrictStr,
4633        update_destination_connector_request: UpdateDestinationConnectorRequest,
4634        _request_timeout: Union[
4635            None,
4636            Annotated[StrictFloat, Field(gt=0)],
4637            Tuple[
4638                Annotated[StrictFloat, Field(gt=0)],
4639                Annotated[StrictFloat, Field(gt=0)]
4640            ]
4641        ] = None,
4642        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4643        _content_type: Optional[StrictStr] = None,
4644        _headers: Optional[Dict[StrictStr, Any]] = None,
4645        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4646    ) -> RESTResponseType:
4647        """Update a destination connector
4648
4649
4650        :param organization: (required)
4651        :type organization: str
4652        :param destination_connector_id: (required)
4653        :type destination_connector_id: str
4654        :param update_destination_connector_request: (required)
4655        :type update_destination_connector_request: UpdateDestinationConnectorRequest
4656        :param _request_timeout: timeout setting for this request. If one
4657                                 number provided, it will be total request
4658                                 timeout. It can also be a pair (tuple) of
4659                                 (connection, read) timeouts.
4660        :type _request_timeout: int, tuple(int, int), optional
4661        :param _request_auth: set to override the auth_settings for an a single
4662                              request; this effectively ignores the
4663                              authentication in the spec for a single request.
4664        :type _request_auth: dict, optional
4665        :param _content_type: force content-type for the request.
4666        :type _content_type: str, Optional
4667        :param _headers: set to override the headers for a single
4668                         request; this effectively ignores the headers
4669                         in the spec for a single request.
4670        :type _headers: dict, optional
4671        :param _host_index: set to override the host_index for a single
4672                            request; this effectively ignores the host_index
4673                            in the spec for a single request.
4674        :type _host_index: int, optional
4675        :return: Returns the result object.
4676        """ # noqa: E501
4677
4678        _param = self._update_destination_connector_serialize(
4679            organization=organization,
4680            destination_connector_id=destination_connector_id,
4681            update_destination_connector_request=update_destination_connector_request,
4682            _request_auth=_request_auth,
4683            _content_type=_content_type,
4684            _headers=_headers,
4685            _host_index=_host_index
4686        )
4687
4688        _response_types_map: Dict[str, Optional[str]] = {
4689            '200': "UpdateDestinationConnectorResponse",
4690            '400': "GetPipelines400Response",
4691            '401': "GetPipelines400Response",
4692            '403': "GetPipelines400Response",
4693            '404': "GetPipelines400Response",
4694            '500': "GetPipelines400Response",
4695        }
4696        response_data = self.api_client.call_api(
4697            *_param,
4698            _request_timeout=_request_timeout
4699        )
4700        return response_data.response
4701
4702
4703    def _update_destination_connector_serialize(
4704        self,
4705        organization,
4706        destination_connector_id,
4707        update_destination_connector_request,
4708        _request_auth,
4709        _content_type,
4710        _headers,
4711        _host_index,
4712    ) -> RequestSerialized:
4713
4714        _host = None
4715
4716        _collection_formats: Dict[str, str] = {
4717        }
4718
4719        _path_params: Dict[str, str] = {}
4720        _query_params: List[Tuple[str, str]] = []
4721        _header_params: Dict[str, Optional[str]] = _headers or {}
4722        _form_params: List[Tuple[str, str]] = []
4723        _files: Dict[
4724            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4725        ] = {}
4726        _body_params: Optional[bytes] = None
4727
4728        # process the path parameters
4729        if organization is not None:
4730            _path_params['organization'] = organization
4731        if destination_connector_id is not None:
4732            _path_params['destinationConnectorId'] = destination_connector_id
4733        # process the query parameters
4734        # process the header parameters
4735        # process the form parameters
4736        # process the body parameter
4737        if update_destination_connector_request is not None:
4738            _body_params = update_destination_connector_request
4739
4740
4741        # set the HTTP header `Accept`
4742        if 'Accept' not in _header_params:
4743            _header_params['Accept'] = self.api_client.select_header_accept(
4744                [
4745                    'application/json'
4746                ]
4747            )
4748
4749        # set the HTTP header `Content-Type`
4750        if _content_type:
4751            _header_params['Content-Type'] = _content_type
4752        else:
4753            _default_content_type = (
4754                self.api_client.select_header_content_type(
4755                    [
4756                        'application/json'
4757                    ]
4758                )
4759            )
4760            if _default_content_type is not None:
4761                _header_params['Content-Type'] = _default_content_type
4762
4763        # authentication setting
4764        _auth_settings: List[str] = [
4765            'bearerAuth'
4766        ]
4767
4768        return self.api_client.param_serialize(
4769            method='PATCH',
4770            resource_path='/org/{organization}/connectors/destinations/{destinationConnectorId}',
4771            path_params=_path_params,
4772            query_params=_query_params,
4773            header_params=_header_params,
4774            body=_body_params,
4775            post_params=_form_params,
4776            files=_files,
4777            auth_settings=_auth_settings,
4778            collection_formats=_collection_formats,
4779            _host=_host,
4780            _request_auth=_request_auth
4781        )
4782
4783
4784
4785
4786    @validate_call
4787    def update_source_connector(
4788        self,
4789        organization: StrictStr,
4790        source_connector_id: StrictStr,
4791        update_source_connector_request: UpdateSourceConnectorRequest,
4792        _request_timeout: Union[
4793            None,
4794            Annotated[StrictFloat, Field(gt=0)],
4795            Tuple[
4796                Annotated[StrictFloat, Field(gt=0)],
4797                Annotated[StrictFloat, Field(gt=0)]
4798            ]
4799        ] = None,
4800        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4801        _content_type: Optional[StrictStr] = None,
4802        _headers: Optional[Dict[StrictStr, Any]] = None,
4803        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4804    ) -> UpdateSourceConnectorResponse:
4805        """Update a source connector
4806
4807
4808        :param organization: (required)
4809        :type organization: str
4810        :param source_connector_id: (required)
4811        :type source_connector_id: str
4812        :param update_source_connector_request: (required)
4813        :type update_source_connector_request: UpdateSourceConnectorRequest
4814        :param _request_timeout: timeout setting for this request. If one
4815                                 number provided, it will be total request
4816                                 timeout. It can also be a pair (tuple) of
4817                                 (connection, read) timeouts.
4818        :type _request_timeout: int, tuple(int, int), optional
4819        :param _request_auth: set to override the auth_settings for an a single
4820                              request; this effectively ignores the
4821                              authentication in the spec for a single request.
4822        :type _request_auth: dict, optional
4823        :param _content_type: force content-type for the request.
4824        :type _content_type: str, Optional
4825        :param _headers: set to override the headers for a single
4826                         request; this effectively ignores the headers
4827                         in the spec for a single request.
4828        :type _headers: dict, optional
4829        :param _host_index: set to override the host_index for a single
4830                            request; this effectively ignores the host_index
4831                            in the spec for a single request.
4832        :type _host_index: int, optional
4833        :return: Returns the result object.
4834        """ # noqa: E501
4835
4836        _param = self._update_source_connector_serialize(
4837            organization=organization,
4838            source_connector_id=source_connector_id,
4839            update_source_connector_request=update_source_connector_request,
4840            _request_auth=_request_auth,
4841            _content_type=_content_type,
4842            _headers=_headers,
4843            _host_index=_host_index
4844        )
4845
4846        _response_types_map: Dict[str, Optional[str]] = {
4847            '200': "UpdateSourceConnectorResponse",
4848            '400': "GetPipelines400Response",
4849            '401': "GetPipelines400Response",
4850            '403': "GetPipelines400Response",
4851            '404': "GetPipelines400Response",
4852            '500': "GetPipelines400Response",
4853        }
4854        response_data = self.api_client.call_api(
4855            *_param,
4856            _request_timeout=_request_timeout
4857        )
4858        response_data.read()
4859        return self.api_client.response_deserialize(
4860            response_data=response_data,
4861            response_types_map=_response_types_map,
4862        ).data
4863
4864
4865    @validate_call
4866    def update_source_connector_with_http_info(
4867        self,
4868        organization: StrictStr,
4869        source_connector_id: StrictStr,
4870        update_source_connector_request: UpdateSourceConnectorRequest,
4871        _request_timeout: Union[
4872            None,
4873            Annotated[StrictFloat, Field(gt=0)],
4874            Tuple[
4875                Annotated[StrictFloat, Field(gt=0)],
4876                Annotated[StrictFloat, Field(gt=0)]
4877            ]
4878        ] = None,
4879        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4880        _content_type: Optional[StrictStr] = None,
4881        _headers: Optional[Dict[StrictStr, Any]] = None,
4882        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4883    ) -> ApiResponse[UpdateSourceConnectorResponse]:
4884        """Update a source connector
4885
4886
4887        :param organization: (required)
4888        :type organization: str
4889        :param source_connector_id: (required)
4890        :type source_connector_id: str
4891        :param update_source_connector_request: (required)
4892        :type update_source_connector_request: UpdateSourceConnectorRequest
4893        :param _request_timeout: timeout setting for this request. If one
4894                                 number provided, it will be total request
4895                                 timeout. It can also be a pair (tuple) of
4896                                 (connection, read) timeouts.
4897        :type _request_timeout: int, tuple(int, int), optional
4898        :param _request_auth: set to override the auth_settings for an a single
4899                              request; this effectively ignores the
4900                              authentication in the spec for a single request.
4901        :type _request_auth: dict, optional
4902        :param _content_type: force content-type for the request.
4903        :type _content_type: str, Optional
4904        :param _headers: set to override the headers for a single
4905                         request; this effectively ignores the headers
4906                         in the spec for a single request.
4907        :type _headers: dict, optional
4908        :param _host_index: set to override the host_index for a single
4909                            request; this effectively ignores the host_index
4910                            in the spec for a single request.
4911        :type _host_index: int, optional
4912        :return: Returns the result object.
4913        """ # noqa: E501
4914
4915        _param = self._update_source_connector_serialize(
4916            organization=organization,
4917            source_connector_id=source_connector_id,
4918            update_source_connector_request=update_source_connector_request,
4919            _request_auth=_request_auth,
4920            _content_type=_content_type,
4921            _headers=_headers,
4922            _host_index=_host_index
4923        )
4924
4925        _response_types_map: Dict[str, Optional[str]] = {
4926            '200': "UpdateSourceConnectorResponse",
4927            '400': "GetPipelines400Response",
4928            '401': "GetPipelines400Response",
4929            '403': "GetPipelines400Response",
4930            '404': "GetPipelines400Response",
4931            '500': "GetPipelines400Response",
4932        }
4933        response_data = self.api_client.call_api(
4934            *_param,
4935            _request_timeout=_request_timeout
4936        )
4937        response_data.read()
4938        return self.api_client.response_deserialize(
4939            response_data=response_data,
4940            response_types_map=_response_types_map,
4941        )
4942
4943
4944    @validate_call
4945    def update_source_connector_without_preload_content(
4946        self,
4947        organization: StrictStr,
4948        source_connector_id: StrictStr,
4949        update_source_connector_request: UpdateSourceConnectorRequest,
4950        _request_timeout: Union[
4951            None,
4952            Annotated[StrictFloat, Field(gt=0)],
4953            Tuple[
4954                Annotated[StrictFloat, Field(gt=0)],
4955                Annotated[StrictFloat, Field(gt=0)]
4956            ]
4957        ] = None,
4958        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4959        _content_type: Optional[StrictStr] = None,
4960        _headers: Optional[Dict[StrictStr, Any]] = None,
4961        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4962    ) -> RESTResponseType:
4963        """Update a source connector
4964
4965
4966        :param organization: (required)
4967        :type organization: str
4968        :param source_connector_id: (required)
4969        :type source_connector_id: str
4970        :param update_source_connector_request: (required)
4971        :type update_source_connector_request: UpdateSourceConnectorRequest
4972        :param _request_timeout: timeout setting for this request. If one
4973                                 number provided, it will be total request
4974                                 timeout. It can also be a pair (tuple) of
4975                                 (connection, read) timeouts.
4976        :type _request_timeout: int, tuple(int, int), optional
4977        :param _request_auth: set to override the auth_settings for an a single
4978                              request; this effectively ignores the
4979                              authentication in the spec for a single request.
4980        :type _request_auth: dict, optional
4981        :param _content_type: force content-type for the request.
4982        :type _content_type: str, Optional
4983        :param _headers: set to override the headers for a single
4984                         request; this effectively ignores the headers
4985                         in the spec for a single request.
4986        :type _headers: dict, optional
4987        :param _host_index: set to override the host_index for a single
4988                            request; this effectively ignores the host_index
4989                            in the spec for a single request.
4990        :type _host_index: int, optional
4991        :return: Returns the result object.
4992        """ # noqa: E501
4993
4994        _param = self._update_source_connector_serialize(
4995            organization=organization,
4996            source_connector_id=source_connector_id,
4997            update_source_connector_request=update_source_connector_request,
4998            _request_auth=_request_auth,
4999            _content_type=_content_type,
5000            _headers=_headers,
5001            _host_index=_host_index
5002        )
5003
5004        _response_types_map: Dict[str, Optional[str]] = {
5005            '200': "UpdateSourceConnectorResponse",
5006            '400': "GetPipelines400Response",
5007            '401': "GetPipelines400Response",
5008            '403': "GetPipelines400Response",
5009            '404': "GetPipelines400Response",
5010            '500': "GetPipelines400Response",
5011        }
5012        response_data = self.api_client.call_api(
5013            *_param,
5014            _request_timeout=_request_timeout
5015        )
5016        return response_data.response
5017
5018
5019    def _update_source_connector_serialize(
5020        self,
5021        organization,
5022        source_connector_id,
5023        update_source_connector_request,
5024        _request_auth,
5025        _content_type,
5026        _headers,
5027        _host_index,
5028    ) -> RequestSerialized:
5029
5030        _host = None
5031
5032        _collection_formats: Dict[str, str] = {
5033        }
5034
5035        _path_params: Dict[str, str] = {}
5036        _query_params: List[Tuple[str, str]] = []
5037        _header_params: Dict[str, Optional[str]] = _headers or {}
5038        _form_params: List[Tuple[str, str]] = []
5039        _files: Dict[
5040            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
5041        ] = {}
5042        _body_params: Optional[bytes] = None
5043
5044        # process the path parameters
5045        if organization is not None:
5046            _path_params['organization'] = organization
5047        if source_connector_id is not None:
5048            _path_params['sourceConnectorId'] = source_connector_id
5049        # process the query parameters
5050        # process the header parameters
5051        # process the form parameters
5052        # process the body parameter
5053        if update_source_connector_request is not None:
5054            _body_params = update_source_connector_request
5055
5056
5057        # set the HTTP header `Accept`
5058        if 'Accept' not in _header_params:
5059            _header_params['Accept'] = self.api_client.select_header_accept(
5060                [
5061                    'application/json'
5062                ]
5063            )
5064
5065        # set the HTTP header `Content-Type`
5066        if _content_type:
5067            _header_params['Content-Type'] = _content_type
5068        else:
5069            _default_content_type = (
5070                self.api_client.select_header_content_type(
5071                    [
5072                        'application/json'
5073                    ]
5074                )
5075            )
5076            if _default_content_type is not None:
5077                _header_params['Content-Type'] = _default_content_type
5078
5079        # authentication setting
5080        _auth_settings: List[str] = [
5081            'bearerAuth'
5082        ]
5083
5084        return self.api_client.param_serialize(
5085            method='PATCH',
5086            resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}',
5087            path_params=_path_params,
5088            query_params=_query_params,
5089            header_params=_header_params,
5090            body=_body_params,
5091            post_params=_form_params,
5092            files=_files,
5093            auth_settings=_auth_settings,
5094            collection_formats=_collection_formats,
5095            _host=_host,
5096            _request_auth=_request_auth
5097        )
5098
5099
5100
5101
5102    @validate_call
5103    def update_user_in_source_connector(
5104        self,
5105        organization: StrictStr,
5106        source_connector_id: StrictStr,
5107        update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest,
5108        _request_timeout: Union[
5109            None,
5110            Annotated[StrictFloat, Field(gt=0)],
5111            Tuple[
5112                Annotated[StrictFloat, Field(gt=0)],
5113                Annotated[StrictFloat, Field(gt=0)]
5114            ]
5115        ] = None,
5116        _request_auth: Optional[Dict[StrictStr, Any]] = None,
5117        _content_type: Optional[StrictStr] = None,
5118        _headers: Optional[Dict[StrictStr, Any]] = None,
5119        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5120    ) -> UpdateUserInSourceConnectorResponse:
5121        """Update a source connector user
5122
5123
5124        :param organization: (required)
5125        :type organization: str
5126        :param source_connector_id: (required)
5127        :type source_connector_id: str
5128        :param update_user_in_source_connector_request: (required)
5129        :type update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest
5130        :param _request_timeout: timeout setting for this request. If one
5131                                 number provided, it will be total request
5132                                 timeout. It can also be a pair (tuple) of
5133                                 (connection, read) timeouts.
5134        :type _request_timeout: int, tuple(int, int), optional
5135        :param _request_auth: set to override the auth_settings for an a single
5136                              request; this effectively ignores the
5137                              authentication in the spec for a single request.
5138        :type _request_auth: dict, optional
5139        :param _content_type: force content-type for the request.
5140        :type _content_type: str, Optional
5141        :param _headers: set to override the headers for a single
5142                         request; this effectively ignores the headers
5143                         in the spec for a single request.
5144        :type _headers: dict, optional
5145        :param _host_index: set to override the host_index for a single
5146                            request; this effectively ignores the host_index
5147                            in the spec for a single request.
5148        :type _host_index: int, optional
5149        :return: Returns the result object.
5150        """ # noqa: E501
5151
5152        _param = self._update_user_in_source_connector_serialize(
5153            organization=organization,
5154            source_connector_id=source_connector_id,
5155            update_user_in_source_connector_request=update_user_in_source_connector_request,
5156            _request_auth=_request_auth,
5157            _content_type=_content_type,
5158            _headers=_headers,
5159            _host_index=_host_index
5160        )
5161
5162        _response_types_map: Dict[str, Optional[str]] = {
5163            '200': "UpdateUserInSourceConnectorResponse",
5164            '400': "GetPipelines400Response",
5165            '401': "GetPipelines400Response",
5166            '403': "GetPipelines400Response",
5167            '404': "GetPipelines400Response",
5168            '500': "GetPipelines400Response",
5169        }
5170        response_data = self.api_client.call_api(
5171            *_param,
5172            _request_timeout=_request_timeout
5173        )
5174        response_data.read()
5175        return self.api_client.response_deserialize(
5176            response_data=response_data,
5177            response_types_map=_response_types_map,
5178        ).data
5179
5180
5181    @validate_call
5182    def update_user_in_source_connector_with_http_info(
5183        self,
5184        organization: StrictStr,
5185        source_connector_id: StrictStr,
5186        update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest,
5187        _request_timeout: Union[
5188            None,
5189            Annotated[StrictFloat, Field(gt=0)],
5190            Tuple[
5191                Annotated[StrictFloat, Field(gt=0)],
5192                Annotated[StrictFloat, Field(gt=0)]
5193            ]
5194        ] = None,
5195        _request_auth: Optional[Dict[StrictStr, Any]] = None,
5196        _content_type: Optional[StrictStr] = None,
5197        _headers: Optional[Dict[StrictStr, Any]] = None,
5198        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5199    ) -> ApiResponse[UpdateUserInSourceConnectorResponse]:
5200        """Update a source connector user
5201
5202
5203        :param organization: (required)
5204        :type organization: str
5205        :param source_connector_id: (required)
5206        :type source_connector_id: str
5207        :param update_user_in_source_connector_request: (required)
5208        :type update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest
5209        :param _request_timeout: timeout setting for this request. If one
5210                                 number provided, it will be total request
5211                                 timeout. It can also be a pair (tuple) of
5212                                 (connection, read) timeouts.
5213        :type _request_timeout: int, tuple(int, int), optional
5214        :param _request_auth: set to override the auth_settings for an a single
5215                              request; this effectively ignores the
5216                              authentication in the spec for a single request.
5217        :type _request_auth: dict, optional
5218        :param _content_type: force content-type for the request.
5219        :type _content_type: str, Optional
5220        :param _headers: set to override the headers for a single
5221                         request; this effectively ignores the headers
5222                         in the spec for a single request.
5223        :type _headers: dict, optional
5224        :param _host_index: set to override the host_index for a single
5225                            request; this effectively ignores the host_index
5226                            in the spec for a single request.
5227        :type _host_index: int, optional
5228        :return: Returns the result object.
5229        """ # noqa: E501
5230
5231        _param = self._update_user_in_source_connector_serialize(
5232            organization=organization,
5233            source_connector_id=source_connector_id,
5234            update_user_in_source_connector_request=update_user_in_source_connector_request,
5235            _request_auth=_request_auth,
5236            _content_type=_content_type,
5237            _headers=_headers,
5238            _host_index=_host_index
5239        )
5240
5241        _response_types_map: Dict[str, Optional[str]] = {
5242            '200': "UpdateUserInSourceConnectorResponse",
5243            '400': "GetPipelines400Response",
5244            '401': "GetPipelines400Response",
5245            '403': "GetPipelines400Response",
5246            '404': "GetPipelines400Response",
5247            '500': "GetPipelines400Response",
5248        }
5249        response_data = self.api_client.call_api(
5250            *_param,
5251            _request_timeout=_request_timeout
5252        )
5253        response_data.read()
5254        return self.api_client.response_deserialize(
5255            response_data=response_data,
5256            response_types_map=_response_types_map,
5257        )
5258
5259
5260    @validate_call
5261    def update_user_in_source_connector_without_preload_content(
5262        self,
5263        organization: StrictStr,
5264        source_connector_id: StrictStr,
5265        update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest,
5266        _request_timeout: Union[
5267            None,
5268            Annotated[StrictFloat, Field(gt=0)],
5269            Tuple[
5270                Annotated[StrictFloat, Field(gt=0)],
5271                Annotated[StrictFloat, Field(gt=0)]
5272            ]
5273        ] = None,
5274        _request_auth: Optional[Dict[StrictStr, Any]] = None,
5275        _content_type: Optional[StrictStr] = None,
5276        _headers: Optional[Dict[StrictStr, Any]] = None,
5277        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5278    ) -> RESTResponseType:
5279        """Update a source connector user
5280
5281
5282        :param organization: (required)
5283        :type organization: str
5284        :param source_connector_id: (required)
5285        :type source_connector_id: str
5286        :param update_user_in_source_connector_request: (required)
5287        :type update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest
5288        :param _request_timeout: timeout setting for this request. If one
5289                                 number provided, it will be total request
5290                                 timeout. It can also be a pair (tuple) of
5291                                 (connection, read) timeouts.
5292        :type _request_timeout: int, tuple(int, int), optional
5293        :param _request_auth: set to override the auth_settings for an a single
5294                              request; this effectively ignores the
5295                              authentication in the spec for a single request.
5296        :type _request_auth: dict, optional
5297        :param _content_type: force content-type for the request.
5298        :type _content_type: str, Optional
5299        :param _headers: set to override the headers for a single
5300                         request; this effectively ignores the headers
5301                         in the spec for a single request.
5302        :type _headers: dict, optional
5303        :param _host_index: set to override the host_index for a single
5304                            request; this effectively ignores the host_index
5305                            in the spec for a single request.
5306        :type _host_index: int, optional
5307        :return: Returns the result object.
5308        """ # noqa: E501
5309
5310        _param = self._update_user_in_source_connector_serialize(
5311            organization=organization,
5312            source_connector_id=source_connector_id,
5313            update_user_in_source_connector_request=update_user_in_source_connector_request,
5314            _request_auth=_request_auth,
5315            _content_type=_content_type,
5316            _headers=_headers,
5317            _host_index=_host_index
5318        )
5319
5320        _response_types_map: Dict[str, Optional[str]] = {
5321            '200': "UpdateUserInSourceConnectorResponse",
5322            '400': "GetPipelines400Response",
5323            '401': "GetPipelines400Response",
5324            '403': "GetPipelines400Response",
5325            '404': "GetPipelines400Response",
5326            '500': "GetPipelines400Response",
5327        }
5328        response_data = self.api_client.call_api(
5329            *_param,
5330            _request_timeout=_request_timeout
5331        )
5332        return response_data.response
5333
5334
5335    def _update_user_in_source_connector_serialize(
5336        self,
5337        organization,
5338        source_connector_id,
5339        update_user_in_source_connector_request,
5340        _request_auth,
5341        _content_type,
5342        _headers,
5343        _host_index,
5344    ) -> RequestSerialized:
5345
5346        _host = None
5347
5348        _collection_formats: Dict[str, str] = {
5349        }
5350
5351        _path_params: Dict[str, str] = {}
5352        _query_params: List[Tuple[str, str]] = []
5353        _header_params: Dict[str, Optional[str]] = _headers or {}
5354        _form_params: List[Tuple[str, str]] = []
5355        _files: Dict[
5356            str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
5357        ] = {}
5358        _body_params: Optional[bytes] = None
5359
5360        # process the path parameters
5361        if organization is not None:
5362            _path_params['organization'] = organization
5363        if source_connector_id is not None:
5364            _path_params['sourceConnectorId'] = source_connector_id
5365        # process the query parameters
5366        # process the header parameters
5367        # process the form parameters
5368        # process the body parameter
5369        if update_user_in_source_connector_request is not None:
5370            _body_params = update_user_in_source_connector_request
5371
5372
5373        # set the HTTP header `Accept`
5374        if 'Accept' not in _header_params:
5375            _header_params['Accept'] = self.api_client.select_header_accept(
5376                [
5377                    'application/json'
5378                ]
5379            )
5380
5381        # set the HTTP header `Content-Type`
5382        if _content_type:
5383            _header_params['Content-Type'] = _content_type
5384        else:
5385            _default_content_type = (
5386                self.api_client.select_header_content_type(
5387                    [
5388                        'application/json'
5389                    ]
5390                )
5391            )
5392            if _default_content_type is not None:
5393                _header_params['Content-Type'] = _default_content_type
5394
5395        # authentication setting
5396        _auth_settings: List[str] = [
5397            'bearerAuth'
5398        ]
5399
5400        return self.api_client.param_serialize(
5401            method='PATCH',
5402            resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}/users',
5403            path_params=_path_params,
5404            query_params=_query_params,
5405            header_params=_header_params,
5406            body=_body_params,
5407            post_params=_form_params,
5408            files=_files,
5409            auth_settings=_auth_settings,
5410            collection_formats=_collection_formats,
5411            _host=_host,
5412            _request_auth=_request_auth
5413        )

NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech

Do not edit the class manually.

ConnectorsApi(api_client=None)
63    def __init__(self, api_client=None) -> None:
64        if api_client is None:
65            api_client = ApiClient.get_default()
66        self.api_client = api_client
api_client
@validate_call
def add_user_to_source_connector( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], add_user_to_source_connector_request: vectorize_client.models.add_user_to_source_connector_request.AddUserToSourceConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.add_user_from_source_connector_response.AddUserFromSourceConnectorResponse:
 69    @validate_call
 70    def add_user_to_source_connector(
 71        self,
 72        organization: StrictStr,
 73        source_connector_id: StrictStr,
 74        add_user_to_source_connector_request: AddUserToSourceConnectorRequest,
 75        _request_timeout: Union[
 76            None,
 77            Annotated[StrictFloat, Field(gt=0)],
 78            Tuple[
 79                Annotated[StrictFloat, Field(gt=0)],
 80                Annotated[StrictFloat, Field(gt=0)]
 81            ]
 82        ] = None,
 83        _request_auth: Optional[Dict[StrictStr, Any]] = None,
 84        _content_type: Optional[StrictStr] = None,
 85        _headers: Optional[Dict[StrictStr, Any]] = None,
 86        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
 87    ) -> AddUserFromSourceConnectorResponse:
 88        """Add a user to a source connector
 89
 90
 91        :param organization: (required)
 92        :type organization: str
 93        :param source_connector_id: (required)
 94        :type source_connector_id: str
 95        :param add_user_to_source_connector_request: (required)
 96        :type add_user_to_source_connector_request: AddUserToSourceConnectorRequest
 97        :param _request_timeout: timeout setting for this request. If one
 98                                 number provided, it will be total request
 99                                 timeout. It can also be a pair (tuple) of
100                                 (connection, read) timeouts.
101        :type _request_timeout: int, tuple(int, int), optional
102        :param _request_auth: set to override the auth_settings for an a single
103                              request; this effectively ignores the
104                              authentication in the spec for a single request.
105        :type _request_auth: dict, optional
106        :param _content_type: force content-type for the request.
107        :type _content_type: str, Optional
108        :param _headers: set to override the headers for a single
109                         request; this effectively ignores the headers
110                         in the spec for a single request.
111        :type _headers: dict, optional
112        :param _host_index: set to override the host_index for a single
113                            request; this effectively ignores the host_index
114                            in the spec for a single request.
115        :type _host_index: int, optional
116        :return: Returns the result object.
117        """ # noqa: E501
118
119        _param = self._add_user_to_source_connector_serialize(
120            organization=organization,
121            source_connector_id=source_connector_id,
122            add_user_to_source_connector_request=add_user_to_source_connector_request,
123            _request_auth=_request_auth,
124            _content_type=_content_type,
125            _headers=_headers,
126            _host_index=_host_index
127        )
128
129        _response_types_map: Dict[str, Optional[str]] = {
130            '200': "AddUserFromSourceConnectorResponse",
131            '400': "GetPipelines400Response",
132            '401': "GetPipelines400Response",
133            '403': "GetPipelines400Response",
134            '404': "GetPipelines400Response",
135            '500': "GetPipelines400Response",
136        }
137        response_data = self.api_client.call_api(
138            *_param,
139            _request_timeout=_request_timeout
140        )
141        response_data.read()
142        return self.api_client.response_deserialize(
143            response_data=response_data,
144            response_types_map=_response_types_map,
145        ).data

Add a user to a source connector

Parameters
  • organization: (required)
  • source_connector_id: (required)
  • add_user_to_source_connector_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.

@validate_call
def add_user_to_source_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], add_user_to_source_connector_request: vectorize_client.models.add_user_to_source_connector_request.AddUserToSourceConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[AddUserFromSourceConnectorResponse]:
148    @validate_call
149    def add_user_to_source_connector_with_http_info(
150        self,
151        organization: StrictStr,
152        source_connector_id: StrictStr,
153        add_user_to_source_connector_request: AddUserToSourceConnectorRequest,
154        _request_timeout: Union[
155            None,
156            Annotated[StrictFloat, Field(gt=0)],
157            Tuple[
158                Annotated[StrictFloat, Field(gt=0)],
159                Annotated[StrictFloat, Field(gt=0)]
160            ]
161        ] = None,
162        _request_auth: Optional[Dict[StrictStr, Any]] = None,
163        _content_type: Optional[StrictStr] = None,
164        _headers: Optional[Dict[StrictStr, Any]] = None,
165        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
166    ) -> ApiResponse[AddUserFromSourceConnectorResponse]:
167        """Add a user to a source connector
168
169
170        :param organization: (required)
171        :type organization: str
172        :param source_connector_id: (required)
173        :type source_connector_id: str
174        :param add_user_to_source_connector_request: (required)
175        :type add_user_to_source_connector_request: AddUserToSourceConnectorRequest
176        :param _request_timeout: timeout setting for this request. If one
177                                 number provided, it will be total request
178                                 timeout. It can also be a pair (tuple) of
179                                 (connection, read) timeouts.
180        :type _request_timeout: int, tuple(int, int), optional
181        :param _request_auth: set to override the auth_settings for an a single
182                              request; this effectively ignores the
183                              authentication in the spec for a single request.
184        :type _request_auth: dict, optional
185        :param _content_type: force content-type for the request.
186        :type _content_type: str, Optional
187        :param _headers: set to override the headers for a single
188                         request; this effectively ignores the headers
189                         in the spec for a single request.
190        :type _headers: dict, optional
191        :param _host_index: set to override the host_index for a single
192                            request; this effectively ignores the host_index
193                            in the spec for a single request.
194        :type _host_index: int, optional
195        :return: Returns the result object.
196        """ # noqa: E501
197
198        _param = self._add_user_to_source_connector_serialize(
199            organization=organization,
200            source_connector_id=source_connector_id,
201            add_user_to_source_connector_request=add_user_to_source_connector_request,
202            _request_auth=_request_auth,
203            _content_type=_content_type,
204            _headers=_headers,
205            _host_index=_host_index
206        )
207
208        _response_types_map: Dict[str, Optional[str]] = {
209            '200': "AddUserFromSourceConnectorResponse",
210            '400': "GetPipelines400Response",
211            '401': "GetPipelines400Response",
212            '403': "GetPipelines400Response",
213            '404': "GetPipelines400Response",
214            '500': "GetPipelines400Response",
215        }
216        response_data = self.api_client.call_api(
217            *_param,
218            _request_timeout=_request_timeout
219        )
220        response_data.read()
221        return self.api_client.response_deserialize(
222            response_data=response_data,
223            response_types_map=_response_types_map,
224        )

Add a user to a source connector

Parameters
  • organization: (required)
  • source_connector_id: (required)
  • add_user_to_source_connector_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.

@validate_call
def add_user_to_source_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], add_user_to_source_connector_request: vectorize_client.models.add_user_to_source_connector_request.AddUserToSourceConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
227    @validate_call
228    def add_user_to_source_connector_without_preload_content(
229        self,
230        organization: StrictStr,
231        source_connector_id: StrictStr,
232        add_user_to_source_connector_request: AddUserToSourceConnectorRequest,
233        _request_timeout: Union[
234            None,
235            Annotated[StrictFloat, Field(gt=0)],
236            Tuple[
237                Annotated[StrictFloat, Field(gt=0)],
238                Annotated[StrictFloat, Field(gt=0)]
239            ]
240        ] = None,
241        _request_auth: Optional[Dict[StrictStr, Any]] = None,
242        _content_type: Optional[StrictStr] = None,
243        _headers: Optional[Dict[StrictStr, Any]] = None,
244        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
245    ) -> RESTResponseType:
246        """Add a user to a source connector
247
248
249        :param organization: (required)
250        :type organization: str
251        :param source_connector_id: (required)
252        :type source_connector_id: str
253        :param add_user_to_source_connector_request: (required)
254        :type add_user_to_source_connector_request: AddUserToSourceConnectorRequest
255        :param _request_timeout: timeout setting for this request. If one
256                                 number provided, it will be total request
257                                 timeout. It can also be a pair (tuple) of
258                                 (connection, read) timeouts.
259        :type _request_timeout: int, tuple(int, int), optional
260        :param _request_auth: set to override the auth_settings for an a single
261                              request; this effectively ignores the
262                              authentication in the spec for a single request.
263        :type _request_auth: dict, optional
264        :param _content_type: force content-type for the request.
265        :type _content_type: str, Optional
266        :param _headers: set to override the headers for a single
267                         request; this effectively ignores the headers
268                         in the spec for a single request.
269        :type _headers: dict, optional
270        :param _host_index: set to override the host_index for a single
271                            request; this effectively ignores the host_index
272                            in the spec for a single request.
273        :type _host_index: int, optional
274        :return: Returns the result object.
275        """ # noqa: E501
276
277        _param = self._add_user_to_source_connector_serialize(
278            organization=organization,
279            source_connector_id=source_connector_id,
280            add_user_to_source_connector_request=add_user_to_source_connector_request,
281            _request_auth=_request_auth,
282            _content_type=_content_type,
283            _headers=_headers,
284            _host_index=_host_index
285        )
286
287        _response_types_map: Dict[str, Optional[str]] = {
288            '200': "AddUserFromSourceConnectorResponse",
289            '400': "GetPipelines400Response",
290            '401': "GetPipelines400Response",
291            '403': "GetPipelines400Response",
292            '404': "GetPipelines400Response",
293            '500': "GetPipelines400Response",
294        }
295        response_data = self.api_client.call_api(
296            *_param,
297            _request_timeout=_request_timeout
298        )
299        return response_data.response

Add a user to a source connector

Parameters
  • organization: (required)
  • source_connector_id: (required)
  • add_user_to_source_connector_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.

@validate_call
def create_ai_platform_connector( self, organization: typing.Annotated[str, Strict(strict=True)], create_ai_platform_connector: Annotated[List[vectorize_client.models.create_ai_platform_connector.CreateAIPlatformConnector], FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=1)])], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.create_ai_platform_connector_response.CreateAIPlatformConnectorResponse:
385    @validate_call
386    def create_ai_platform_connector(
387        self,
388        organization: StrictStr,
389        create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)],
390        _request_timeout: Union[
391            None,
392            Annotated[StrictFloat, Field(gt=0)],
393            Tuple[
394                Annotated[StrictFloat, Field(gt=0)],
395                Annotated[StrictFloat, Field(gt=0)]
396            ]
397        ] = None,
398        _request_auth: Optional[Dict[StrictStr, Any]] = None,
399        _content_type: Optional[StrictStr] = None,
400        _headers: Optional[Dict[StrictStr, Any]] = None,
401        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
402    ) -> CreateAIPlatformConnectorResponse:
403        """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK):  Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX):  Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI):  Name (name): text, API Key (key): text) | Voyage AI (VOYAGE):  Name (name): text, API Key (key): text) | Built-in (VECTORIZE):  )
404
405
406        :param organization: (required)
407        :type organization: str
408        :param create_ai_platform_connector: (required)
409        :type create_ai_platform_connector: List[CreateAIPlatformConnector]
410        :param _request_timeout: timeout setting for this request. If one
411                                 number provided, it will be total request
412                                 timeout. It can also be a pair (tuple) of
413                                 (connection, read) timeouts.
414        :type _request_timeout: int, tuple(int, int), optional
415        :param _request_auth: set to override the auth_settings for an a single
416                              request; this effectively ignores the
417                              authentication in the spec for a single request.
418        :type _request_auth: dict, optional
419        :param _content_type: force content-type for the request.
420        :type _content_type: str, Optional
421        :param _headers: set to override the headers for a single
422                         request; this effectively ignores the headers
423                         in the spec for a single request.
424        :type _headers: dict, optional
425        :param _host_index: set to override the host_index for a single
426                            request; this effectively ignores the host_index
427                            in the spec for a single request.
428        :type _host_index: int, optional
429        :return: Returns the result object.
430        """ # noqa: E501
431
432        _param = self._create_ai_platform_connector_serialize(
433            organization=organization,
434            create_ai_platform_connector=create_ai_platform_connector,
435            _request_auth=_request_auth,
436            _content_type=_content_type,
437            _headers=_headers,
438            _host_index=_host_index
439        )
440
441        _response_types_map: Dict[str, Optional[str]] = {
442            '200': "CreateAIPlatformConnectorResponse",
443            '400': "GetPipelines400Response",
444            '401': "GetPipelines400Response",
445            '403': "GetPipelines400Response",
446            '404': "GetPipelines400Response",
447            '500': "GetPipelines400Response",
448        }
449        response_data = self.api_client.call_api(
450            *_param,
451            _request_timeout=_request_timeout
452        )
453        response_data.read()
454        return self.api_client.response_deserialize(
455            response_data=response_data,
456            response_types_map=_response_types_map,
457        ).data

Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): )

Parameters
  • organization: (required)
  • create_ai_platform_connector: (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.

@validate_call
def create_ai_platform_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], create_ai_platform_connector: Annotated[List[vectorize_client.models.create_ai_platform_connector.CreateAIPlatformConnector], FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=1)])], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[CreateAIPlatformConnectorResponse]:
460    @validate_call
461    def create_ai_platform_connector_with_http_info(
462        self,
463        organization: StrictStr,
464        create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)],
465        _request_timeout: Union[
466            None,
467            Annotated[StrictFloat, Field(gt=0)],
468            Tuple[
469                Annotated[StrictFloat, Field(gt=0)],
470                Annotated[StrictFloat, Field(gt=0)]
471            ]
472        ] = None,
473        _request_auth: Optional[Dict[StrictStr, Any]] = None,
474        _content_type: Optional[StrictStr] = None,
475        _headers: Optional[Dict[StrictStr, Any]] = None,
476        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
477    ) -> ApiResponse[CreateAIPlatformConnectorResponse]:
478        """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK):  Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX):  Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI):  Name (name): text, API Key (key): text) | Voyage AI (VOYAGE):  Name (name): text, API Key (key): text) | Built-in (VECTORIZE):  )
479
480
481        :param organization: (required)
482        :type organization: str
483        :param create_ai_platform_connector: (required)
484        :type create_ai_platform_connector: List[CreateAIPlatformConnector]
485        :param _request_timeout: timeout setting for this request. If one
486                                 number provided, it will be total request
487                                 timeout. It can also be a pair (tuple) of
488                                 (connection, read) timeouts.
489        :type _request_timeout: int, tuple(int, int), optional
490        :param _request_auth: set to override the auth_settings for an a single
491                              request; this effectively ignores the
492                              authentication in the spec for a single request.
493        :type _request_auth: dict, optional
494        :param _content_type: force content-type for the request.
495        :type _content_type: str, Optional
496        :param _headers: set to override the headers for a single
497                         request; this effectively ignores the headers
498                         in the spec for a single request.
499        :type _headers: dict, optional
500        :param _host_index: set to override the host_index for a single
501                            request; this effectively ignores the host_index
502                            in the spec for a single request.
503        :type _host_index: int, optional
504        :return: Returns the result object.
505        """ # noqa: E501
506
507        _param = self._create_ai_platform_connector_serialize(
508            organization=organization,
509            create_ai_platform_connector=create_ai_platform_connector,
510            _request_auth=_request_auth,
511            _content_type=_content_type,
512            _headers=_headers,
513            _host_index=_host_index
514        )
515
516        _response_types_map: Dict[str, Optional[str]] = {
517            '200': "CreateAIPlatformConnectorResponse",
518            '400': "GetPipelines400Response",
519            '401': "GetPipelines400Response",
520            '403': "GetPipelines400Response",
521            '404': "GetPipelines400Response",
522            '500': "GetPipelines400Response",
523        }
524        response_data = self.api_client.call_api(
525            *_param,
526            _request_timeout=_request_timeout
527        )
528        response_data.read()
529        return self.api_client.response_deserialize(
530            response_data=response_data,
531            response_types_map=_response_types_map,
532        )

Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): )

Parameters
  • organization: (required)
  • create_ai_platform_connector: (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.

@validate_call
def create_ai_platform_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], create_ai_platform_connector: Annotated[List[vectorize_client.models.create_ai_platform_connector.CreateAIPlatformConnector], FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=1)])], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
535    @validate_call
536    def create_ai_platform_connector_without_preload_content(
537        self,
538        organization: StrictStr,
539        create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)],
540        _request_timeout: Union[
541            None,
542            Annotated[StrictFloat, Field(gt=0)],
543            Tuple[
544                Annotated[StrictFloat, Field(gt=0)],
545                Annotated[StrictFloat, Field(gt=0)]
546            ]
547        ] = None,
548        _request_auth: Optional[Dict[StrictStr, Any]] = None,
549        _content_type: Optional[StrictStr] = None,
550        _headers: Optional[Dict[StrictStr, Any]] = None,
551        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
552    ) -> RESTResponseType:
553        """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK):  Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX):  Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI):  Name (name): text, API Key (key): text) | Voyage AI (VOYAGE):  Name (name): text, API Key (key): text) | Built-in (VECTORIZE):  )
554
555
556        :param organization: (required)
557        :type organization: str
558        :param create_ai_platform_connector: (required)
559        :type create_ai_platform_connector: List[CreateAIPlatformConnector]
560        :param _request_timeout: timeout setting for this request. If one
561                                 number provided, it will be total request
562                                 timeout. It can also be a pair (tuple) of
563                                 (connection, read) timeouts.
564        :type _request_timeout: int, tuple(int, int), optional
565        :param _request_auth: set to override the auth_settings for an a single
566                              request; this effectively ignores the
567                              authentication in the spec for a single request.
568        :type _request_auth: dict, optional
569        :param _content_type: force content-type for the request.
570        :type _content_type: str, Optional
571        :param _headers: set to override the headers for a single
572                         request; this effectively ignores the headers
573                         in the spec for a single request.
574        :type _headers: dict, optional
575        :param _host_index: set to override the host_index for a single
576                            request; this effectively ignores the host_index
577                            in the spec for a single request.
578        :type _host_index: int, optional
579        :return: Returns the result object.
580        """ # noqa: E501
581
582        _param = self._create_ai_platform_connector_serialize(
583            organization=organization,
584            create_ai_platform_connector=create_ai_platform_connector,
585            _request_auth=_request_auth,
586            _content_type=_content_type,
587            _headers=_headers,
588            _host_index=_host_index
589        )
590
591        _response_types_map: Dict[str, Optional[str]] = {
592            '200': "CreateAIPlatformConnectorResponse",
593            '400': "GetPipelines400Response",
594            '401': "GetPipelines400Response",
595            '403': "GetPipelines400Response",
596            '404': "GetPipelines400Response",
597            '500': "GetPipelines400Response",
598        }
599        response_data = self.api_client.call_api(
600            *_param,
601            _request_timeout=_request_timeout
602        )
603        return response_data.response

Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): )

Parameters
  • organization: (required)
  • create_ai_platform_connector: (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.

@validate_call
def create_destination_connector( self, organization: typing.Annotated[str, Strict(strict=True)], create_destination_connector: Annotated[List[vectorize_client.models.create_destination_connector.CreateDestinationConnector], FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=1)])], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.create_destination_connector_response.CreateDestinationConnectorResponse:
687    @validate_call
688    def create_destination_connector(
689        self,
690        organization: StrictStr,
691        create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)],
692        _request_timeout: Union[
693            None,
694            Annotated[StrictFloat, Field(gt=0)],
695            Tuple[
696                Annotated[StrictFloat, Field(gt=0)],
697                Annotated[StrictFloat, Field(gt=0)]
698            ]
699        ] = None,
700        _request_auth: Optional[Dict[StrictStr, Any]] = None,
701        _content_type: Optional[StrictStr] = None,
702        _headers: Optional[Dict[StrictStr, Any]] = None,
703        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
704    ) -> CreateDestinationConnectorResponse:
705        """Create a new destination connector. Config values: Couchbase Capella (CAPELLA):  Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX):  Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC):  Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE):  Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS):  Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT):  Name (name): text, Host (host): text, API Key (api-key): text) | Supabase (SUPABASE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Weaviate (WEAVIATE):  Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH):  Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE):  ) | Chroma (CHROMA):  Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB):  Name (name): text, API Key (apiKey): text)
706
707
708        :param organization: (required)
709        :type organization: str
710        :param create_destination_connector: (required)
711        :type create_destination_connector: List[CreateDestinationConnector]
712        :param _request_timeout: timeout setting for this request. If one
713                                 number provided, it will be total request
714                                 timeout. It can also be a pair (tuple) of
715                                 (connection, read) timeouts.
716        :type _request_timeout: int, tuple(int, int), optional
717        :param _request_auth: set to override the auth_settings for an a single
718                              request; this effectively ignores the
719                              authentication in the spec for a single request.
720        :type _request_auth: dict, optional
721        :param _content_type: force content-type for the request.
722        :type _content_type: str, Optional
723        :param _headers: set to override the headers for a single
724                         request; this effectively ignores the headers
725                         in the spec for a single request.
726        :type _headers: dict, optional
727        :param _host_index: set to override the host_index for a single
728                            request; this effectively ignores the host_index
729                            in the spec for a single request.
730        :type _host_index: int, optional
731        :return: Returns the result object.
732        """ # noqa: E501
733
734        _param = self._create_destination_connector_serialize(
735            organization=organization,
736            create_destination_connector=create_destination_connector,
737            _request_auth=_request_auth,
738            _content_type=_content_type,
739            _headers=_headers,
740            _host_index=_host_index
741        )
742
743        _response_types_map: Dict[str, Optional[str]] = {
744            '200': "CreateDestinationConnectorResponse",
745            '400': "GetPipelines400Response",
746            '401': "GetPipelines400Response",
747            '403': "GetPipelines400Response",
748            '404': "GetPipelines400Response",
749            '500': "GetPipelines400Response",
750        }
751        response_data = self.api_client.call_api(
752            *_param,
753            _request_timeout=_request_timeout
754        )
755        response_data.read()
756        return self.api_client.response_deserialize(
757            response_data=response_data,
758            response_types_map=_response_types_map,
759        ).data

Create a new destination connector. Config values: Couchbase Capella (CAPELLA): Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX): Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC): Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE): Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS): Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT): Name (name): text, Host (host): text, API Key (api-key): text) | Supabase (SUPABASE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Weaviate (WEAVIATE): Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH): Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB): Name (name): text, API Key (apiKey): text)

Parameters
  • organization: (required)
  • create_destination_connector: (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.

@validate_call
def create_destination_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], create_destination_connector: Annotated[List[vectorize_client.models.create_destination_connector.CreateDestinationConnector], FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=1)])], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[CreateDestinationConnectorResponse]:
762    @validate_call
763    def create_destination_connector_with_http_info(
764        self,
765        organization: StrictStr,
766        create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)],
767        _request_timeout: Union[
768            None,
769            Annotated[StrictFloat, Field(gt=0)],
770            Tuple[
771                Annotated[StrictFloat, Field(gt=0)],
772                Annotated[StrictFloat, Field(gt=0)]
773            ]
774        ] = None,
775        _request_auth: Optional[Dict[StrictStr, Any]] = None,
776        _content_type: Optional[StrictStr] = None,
777        _headers: Optional[Dict[StrictStr, Any]] = None,
778        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
779    ) -> ApiResponse[CreateDestinationConnectorResponse]:
780        """Create a new destination connector. Config values: Couchbase Capella (CAPELLA):  Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX):  Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC):  Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE):  Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS):  Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT):  Name (name): text, Host (host): text, API Key (api-key): text) | Supabase (SUPABASE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Weaviate (WEAVIATE):  Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH):  Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE):  ) | Chroma (CHROMA):  Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB):  Name (name): text, API Key (apiKey): text)
781
782
783        :param organization: (required)
784        :type organization: str
785        :param create_destination_connector: (required)
786        :type create_destination_connector: List[CreateDestinationConnector]
787        :param _request_timeout: timeout setting for this request. If one
788                                 number provided, it will be total request
789                                 timeout. It can also be a pair (tuple) of
790                                 (connection, read) timeouts.
791        :type _request_timeout: int, tuple(int, int), optional
792        :param _request_auth: set to override the auth_settings for an a single
793                              request; this effectively ignores the
794                              authentication in the spec for a single request.
795        :type _request_auth: dict, optional
796        :param _content_type: force content-type for the request.
797        :type _content_type: str, Optional
798        :param _headers: set to override the headers for a single
799                         request; this effectively ignores the headers
800                         in the spec for a single request.
801        :type _headers: dict, optional
802        :param _host_index: set to override the host_index for a single
803                            request; this effectively ignores the host_index
804                            in the spec for a single request.
805        :type _host_index: int, optional
806        :return: Returns the result object.
807        """ # noqa: E501
808
809        _param = self._create_destination_connector_serialize(
810            organization=organization,
811            create_destination_connector=create_destination_connector,
812            _request_auth=_request_auth,
813            _content_type=_content_type,
814            _headers=_headers,
815            _host_index=_host_index
816        )
817
818        _response_types_map: Dict[str, Optional[str]] = {
819            '200': "CreateDestinationConnectorResponse",
820            '400': "GetPipelines400Response",
821            '401': "GetPipelines400Response",
822            '403': "GetPipelines400Response",
823            '404': "GetPipelines400Response",
824            '500': "GetPipelines400Response",
825        }
826        response_data = self.api_client.call_api(
827            *_param,
828            _request_timeout=_request_timeout
829        )
830        response_data.read()
831        return self.api_client.response_deserialize(
832            response_data=response_data,
833            response_types_map=_response_types_map,
834        )

Create a new destination connector. Config values: Couchbase Capella (CAPELLA): Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX): Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC): Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE): Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS): Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT): Name (name): text, Host (host): text, API Key (api-key): text) | Supabase (SUPABASE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Weaviate (WEAVIATE): Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH): Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB): Name (name): text, API Key (apiKey): text)

Parameters
  • organization: (required)
  • create_destination_connector: (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.

@validate_call
def create_destination_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], create_destination_connector: Annotated[List[vectorize_client.models.create_destination_connector.CreateDestinationConnector], FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=1)])], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
837    @validate_call
838    def create_destination_connector_without_preload_content(
839        self,
840        organization: StrictStr,
841        create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)],
842        _request_timeout: Union[
843            None,
844            Annotated[StrictFloat, Field(gt=0)],
845            Tuple[
846                Annotated[StrictFloat, Field(gt=0)],
847                Annotated[StrictFloat, Field(gt=0)]
848            ]
849        ] = None,
850        _request_auth: Optional[Dict[StrictStr, Any]] = None,
851        _content_type: Optional[StrictStr] = None,
852        _headers: Optional[Dict[StrictStr, Any]] = None,
853        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
854    ) -> RESTResponseType:
855        """Create a new destination connector. Config values: Couchbase Capella (CAPELLA):  Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX):  Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC):  Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE):  Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS):  Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT):  Name (name): text, Host (host): text, API Key (api-key): text) | Supabase (SUPABASE):  Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Weaviate (WEAVIATE):  Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH):  Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE):  ) | Chroma (CHROMA):  Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB):  Name (name): text, API Key (apiKey): text)
856
857
858        :param organization: (required)
859        :type organization: str
860        :param create_destination_connector: (required)
861        :type create_destination_connector: List[CreateDestinationConnector]
862        :param _request_timeout: timeout setting for this request. If one
863                                 number provided, it will be total request
864                                 timeout. It can also be a pair (tuple) of
865                                 (connection, read) timeouts.
866        :type _request_timeout: int, tuple(int, int), optional
867        :param _request_auth: set to override the auth_settings for an a single
868                              request; this effectively ignores the
869                              authentication in the spec for a single request.
870        :type _request_auth: dict, optional
871        :param _content_type: force content-type for the request.
872        :type _content_type: str, Optional
873        :param _headers: set to override the headers for a single
874                         request; this effectively ignores the headers
875                         in the spec for a single request.
876        :type _headers: dict, optional
877        :param _host_index: set to override the host_index for a single
878                            request; this effectively ignores the host_index
879                            in the spec for a single request.
880        :type _host_index: int, optional
881        :return: Returns the result object.
882        """ # noqa: E501
883
884        _param = self._create_destination_connector_serialize(
885            organization=organization,
886            create_destination_connector=create_destination_connector,
887            _request_auth=_request_auth,
888            _content_type=_content_type,
889            _headers=_headers,
890            _host_index=_host_index
891        )
892
893        _response_types_map: Dict[str, Optional[str]] = {
894            '200': "CreateDestinationConnectorResponse",
895            '400': "GetPipelines400Response",
896            '401': "GetPipelines400Response",
897            '403': "GetPipelines400Response",
898            '404': "GetPipelines400Response",
899            '500': "GetPipelines400Response",
900        }
901        response_data = self.api_client.call_api(
902            *_param,
903            _request_timeout=_request_timeout
904        )
905        return response_data.response

Create a new destination connector. Config values: Couchbase Capella (CAPELLA): Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX): Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC): Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE): Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS): Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT): Name (name): text, Host (host): text, API Key (api-key): text) | Supabase (SUPABASE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Weaviate (WEAVIATE): Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH): Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB): Name (name): text, API Key (apiKey): text)

Parameters
  • organization: (required)
  • create_destination_connector: (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.

@validate_call
def create_source_connector( self, organization: typing.Annotated[str, Strict(strict=True)], create_source_connector: Annotated[List[vectorize_client.models.create_source_connector.CreateSourceConnector], FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=1)])], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.create_source_connector_response.CreateSourceConnectorResponse:
 989    @validate_call
 990    def create_source_connector(
 991        self,
 992        organization: StrictStr,
 993        create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)],
 994        _request_timeout: Union[
 995            None,
 996            Annotated[StrictFloat, Field(gt=0)],
 997            Tuple[
 998                Annotated[StrictFloat, Field(gt=0)],
 999                Annotated[StrictFloat, Field(gt=0)]
1000            ]
1001        ] = None,
1002        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1003        _content_type: Optional[StrictStr] = None,
1004        _headers: Optional[Dict[StrictStr, Any]] = None,
1005        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1006    ) -> CreateSourceConnectorResponse:
1007        """Create a new source connector. Config values: Amazon S3 (AWS_S3):  Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB):  Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE):  Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD):  Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX):  Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH):  Name (name): text) | Google Drive (Service Account) (GOOGLE_DRIVE):  Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI):  Name (name): text) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM):  Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL):  Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS):  Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Intercom (INTERCOM):  Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER):  Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD):  Name (name): text)
1008
1009
1010        :param organization: (required)
1011        :type organization: str
1012        :param create_source_connector: (required)
1013        :type create_source_connector: List[CreateSourceConnector]
1014        :param _request_timeout: timeout setting for this request. If one
1015                                 number provided, it will be total request
1016                                 timeout. It can also be a pair (tuple) of
1017                                 (connection, read) timeouts.
1018        :type _request_timeout: int, tuple(int, int), optional
1019        :param _request_auth: set to override the auth_settings for an a single
1020                              request; this effectively ignores the
1021                              authentication in the spec for a single request.
1022        :type _request_auth: dict, optional
1023        :param _content_type: force content-type for the request.
1024        :type _content_type: str, Optional
1025        :param _headers: set to override the headers for a single
1026                         request; this effectively ignores the headers
1027                         in the spec for a single request.
1028        :type _headers: dict, optional
1029        :param _host_index: set to override the host_index for a single
1030                            request; this effectively ignores the host_index
1031                            in the spec for a single request.
1032        :type _host_index: int, optional
1033        :return: Returns the result object.
1034        """ # noqa: E501
1035
1036        _param = self._create_source_connector_serialize(
1037            organization=organization,
1038            create_source_connector=create_source_connector,
1039            _request_auth=_request_auth,
1040            _content_type=_content_type,
1041            _headers=_headers,
1042            _host_index=_host_index
1043        )
1044
1045        _response_types_map: Dict[str, Optional[str]] = {
1046            '200': "CreateSourceConnectorResponse",
1047            '400': "GetPipelines400Response",
1048            '401': "GetPipelines400Response",
1049            '403': "GetPipelines400Response",
1050            '404': "GetPipelines400Response",
1051            '500': "GetPipelines400Response",
1052        }
1053        response_data = self.api_client.call_api(
1054            *_param,
1055            _request_timeout=_request_timeout
1056        )
1057        response_data.read()
1058        return self.api_client.response_deserialize(
1059            response_data=response_data,
1060            response_types_map=_response_types_map,
1061        ).data

Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive (Service Account) (GOOGLE_DRIVE): Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text)

Parameters
  • organization: (required)
  • create_source_connector: (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.

@validate_call
def create_source_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], create_source_connector: Annotated[List[vectorize_client.models.create_source_connector.CreateSourceConnector], FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=1)])], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[CreateSourceConnectorResponse]:
1064    @validate_call
1065    def create_source_connector_with_http_info(
1066        self,
1067        organization: StrictStr,
1068        create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)],
1069        _request_timeout: Union[
1070            None,
1071            Annotated[StrictFloat, Field(gt=0)],
1072            Tuple[
1073                Annotated[StrictFloat, Field(gt=0)],
1074                Annotated[StrictFloat, Field(gt=0)]
1075            ]
1076        ] = None,
1077        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1078        _content_type: Optional[StrictStr] = None,
1079        _headers: Optional[Dict[StrictStr, Any]] = None,
1080        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1081    ) -> ApiResponse[CreateSourceConnectorResponse]:
1082        """Create a new source connector. Config values: Amazon S3 (AWS_S3):  Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB):  Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE):  Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD):  Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX):  Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH):  Name (name): text) | Google Drive (Service Account) (GOOGLE_DRIVE):  Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI):  Name (name): text) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM):  Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL):  Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS):  Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Intercom (INTERCOM):  Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER):  Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD):  Name (name): text)
1083
1084
1085        :param organization: (required)
1086        :type organization: str
1087        :param create_source_connector: (required)
1088        :type create_source_connector: List[CreateSourceConnector]
1089        :param _request_timeout: timeout setting for this request. If one
1090                                 number provided, it will be total request
1091                                 timeout. It can also be a pair (tuple) of
1092                                 (connection, read) timeouts.
1093        :type _request_timeout: int, tuple(int, int), optional
1094        :param _request_auth: set to override the auth_settings for an a single
1095                              request; this effectively ignores the
1096                              authentication in the spec for a single request.
1097        :type _request_auth: dict, optional
1098        :param _content_type: force content-type for the request.
1099        :type _content_type: str, Optional
1100        :param _headers: set to override the headers for a single
1101                         request; this effectively ignores the headers
1102                         in the spec for a single request.
1103        :type _headers: dict, optional
1104        :param _host_index: set to override the host_index for a single
1105                            request; this effectively ignores the host_index
1106                            in the spec for a single request.
1107        :type _host_index: int, optional
1108        :return: Returns the result object.
1109        """ # noqa: E501
1110
1111        _param = self._create_source_connector_serialize(
1112            organization=organization,
1113            create_source_connector=create_source_connector,
1114            _request_auth=_request_auth,
1115            _content_type=_content_type,
1116            _headers=_headers,
1117            _host_index=_host_index
1118        )
1119
1120        _response_types_map: Dict[str, Optional[str]] = {
1121            '200': "CreateSourceConnectorResponse",
1122            '400': "GetPipelines400Response",
1123            '401': "GetPipelines400Response",
1124            '403': "GetPipelines400Response",
1125            '404': "GetPipelines400Response",
1126            '500': "GetPipelines400Response",
1127        }
1128        response_data = self.api_client.call_api(
1129            *_param,
1130            _request_timeout=_request_timeout
1131        )
1132        response_data.read()
1133        return self.api_client.response_deserialize(
1134            response_data=response_data,
1135            response_types_map=_response_types_map,
1136        )

Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive (Service Account) (GOOGLE_DRIVE): Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text)

Parameters
  • organization: (required)
  • create_source_connector: (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.

@validate_call
def create_source_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], create_source_connector: Annotated[List[vectorize_client.models.create_source_connector.CreateSourceConnector], FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=1)])], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
1139    @validate_call
1140    def create_source_connector_without_preload_content(
1141        self,
1142        organization: StrictStr,
1143        create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)],
1144        _request_timeout: Union[
1145            None,
1146            Annotated[StrictFloat, Field(gt=0)],
1147            Tuple[
1148                Annotated[StrictFloat, Field(gt=0)],
1149                Annotated[StrictFloat, Field(gt=0)]
1150            ]
1151        ] = None,
1152        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1153        _content_type: Optional[StrictStr] = None,
1154        _headers: Optional[Dict[StrictStr, Any]] = None,
1155        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1156    ) -> RESTResponseType:
1157        """Create a new source connector. Config values: Amazon S3 (AWS_S3):  Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB):  Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE):  Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD):  Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX):  Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH):  Name (name): text) | Google Drive (Service Account) (GOOGLE_DRIVE):  Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI):  Name (name): text) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM):  Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL):  Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS):  Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Intercom (INTERCOM):  Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT):  Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER):  Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD):  Name (name): text)
1158
1159
1160        :param organization: (required)
1161        :type organization: str
1162        :param create_source_connector: (required)
1163        :type create_source_connector: List[CreateSourceConnector]
1164        :param _request_timeout: timeout setting for this request. If one
1165                                 number provided, it will be total request
1166                                 timeout. It can also be a pair (tuple) of
1167                                 (connection, read) timeouts.
1168        :type _request_timeout: int, tuple(int, int), optional
1169        :param _request_auth: set to override the auth_settings for an a single
1170                              request; this effectively ignores the
1171                              authentication in the spec for a single request.
1172        :type _request_auth: dict, optional
1173        :param _content_type: force content-type for the request.
1174        :type _content_type: str, Optional
1175        :param _headers: set to override the headers for a single
1176                         request; this effectively ignores the headers
1177                         in the spec for a single request.
1178        :type _headers: dict, optional
1179        :param _host_index: set to override the host_index for a single
1180                            request; this effectively ignores the host_index
1181                            in the spec for a single request.
1182        :type _host_index: int, optional
1183        :return: Returns the result object.
1184        """ # noqa: E501
1185
1186        _param = self._create_source_connector_serialize(
1187            organization=organization,
1188            create_source_connector=create_source_connector,
1189            _request_auth=_request_auth,
1190            _content_type=_content_type,
1191            _headers=_headers,
1192            _host_index=_host_index
1193        )
1194
1195        _response_types_map: Dict[str, Optional[str]] = {
1196            '200': "CreateSourceConnectorResponse",
1197            '400': "GetPipelines400Response",
1198            '401': "GetPipelines400Response",
1199            '403': "GetPipelines400Response",
1200            '404': "GetPipelines400Response",
1201            '500': "GetPipelines400Response",
1202        }
1203        response_data = self.api_client.call_api(
1204            *_param,
1205            _request_timeout=_request_timeout
1206        )
1207        return response_data.response

Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive (Service Account) (GOOGLE_DRIVE): Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive Multi-User (White Label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text)

Parameters
  • organization: (required)
  • create_source_connector: (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.

@validate_call
def delete_ai_platform( self, organization: typing.Annotated[str, Strict(strict=True)], aiplatform_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.delete_ai_platform_connector_response.DeleteAIPlatformConnectorResponse:
1291    @validate_call
1292    def delete_ai_platform(
1293        self,
1294        organization: StrictStr,
1295        aiplatform_id: StrictStr,
1296        _request_timeout: Union[
1297            None,
1298            Annotated[StrictFloat, Field(gt=0)],
1299            Tuple[
1300                Annotated[StrictFloat, Field(gt=0)],
1301                Annotated[StrictFloat, Field(gt=0)]
1302            ]
1303        ] = None,
1304        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1305        _content_type: Optional[StrictStr] = None,
1306        _headers: Optional[Dict[StrictStr, Any]] = None,
1307        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1308    ) -> DeleteAIPlatformConnectorResponse:
1309        """Delete an AI platform connector
1310
1311
1312        :param organization: (required)
1313        :type organization: str
1314        :param aiplatform_id: (required)
1315        :type aiplatform_id: str
1316        :param _request_timeout: timeout setting for this request. If one
1317                                 number provided, it will be total request
1318                                 timeout. It can also be a pair (tuple) of
1319                                 (connection, read) timeouts.
1320        :type _request_timeout: int, tuple(int, int), optional
1321        :param _request_auth: set to override the auth_settings for an a single
1322                              request; this effectively ignores the
1323                              authentication in the spec for a single request.
1324        :type _request_auth: dict, optional
1325        :param _content_type: force content-type for the request.
1326        :type _content_type: str, Optional
1327        :param _headers: set to override the headers for a single
1328                         request; this effectively ignores the headers
1329                         in the spec for a single request.
1330        :type _headers: dict, optional
1331        :param _host_index: set to override the host_index for a single
1332                            request; this effectively ignores the host_index
1333                            in the spec for a single request.
1334        :type _host_index: int, optional
1335        :return: Returns the result object.
1336        """ # noqa: E501
1337
1338        _param = self._delete_ai_platform_serialize(
1339            organization=organization,
1340            aiplatform_id=aiplatform_id,
1341            _request_auth=_request_auth,
1342            _content_type=_content_type,
1343            _headers=_headers,
1344            _host_index=_host_index
1345        )
1346
1347        _response_types_map: Dict[str, Optional[str]] = {
1348            '200': "DeleteAIPlatformConnectorResponse",
1349            '400': "GetPipelines400Response",
1350            '401': "GetPipelines400Response",
1351            '403': "GetPipelines400Response",
1352            '404': "GetPipelines400Response",
1353            '500': "GetPipelines400Response",
1354        }
1355        response_data = self.api_client.call_api(
1356            *_param,
1357            _request_timeout=_request_timeout
1358        )
1359        response_data.read()
1360        return self.api_client.response_deserialize(
1361            response_data=response_data,
1362            response_types_map=_response_types_map,
1363        ).data

Delete an AI platform connector

Parameters
  • organization: (required)
  • aiplatform_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.

@validate_call
def delete_ai_platform_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], aiplatform_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[DeleteAIPlatformConnectorResponse]:
1366    @validate_call
1367    def delete_ai_platform_with_http_info(
1368        self,
1369        organization: StrictStr,
1370        aiplatform_id: StrictStr,
1371        _request_timeout: Union[
1372            None,
1373            Annotated[StrictFloat, Field(gt=0)],
1374            Tuple[
1375                Annotated[StrictFloat, Field(gt=0)],
1376                Annotated[StrictFloat, Field(gt=0)]
1377            ]
1378        ] = None,
1379        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1380        _content_type: Optional[StrictStr] = None,
1381        _headers: Optional[Dict[StrictStr, Any]] = None,
1382        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1383    ) -> ApiResponse[DeleteAIPlatformConnectorResponse]:
1384        """Delete an AI platform connector
1385
1386
1387        :param organization: (required)
1388        :type organization: str
1389        :param aiplatform_id: (required)
1390        :type aiplatform_id: str
1391        :param _request_timeout: timeout setting for this request. If one
1392                                 number provided, it will be total request
1393                                 timeout. It can also be a pair (tuple) of
1394                                 (connection, read) timeouts.
1395        :type _request_timeout: int, tuple(int, int), optional
1396        :param _request_auth: set to override the auth_settings for an a single
1397                              request; this effectively ignores the
1398                              authentication in the spec for a single request.
1399        :type _request_auth: dict, optional
1400        :param _content_type: force content-type for the request.
1401        :type _content_type: str, Optional
1402        :param _headers: set to override the headers for a single
1403                         request; this effectively ignores the headers
1404                         in the spec for a single request.
1405        :type _headers: dict, optional
1406        :param _host_index: set to override the host_index for a single
1407                            request; this effectively ignores the host_index
1408                            in the spec for a single request.
1409        :type _host_index: int, optional
1410        :return: Returns the result object.
1411        """ # noqa: E501
1412
1413        _param = self._delete_ai_platform_serialize(
1414            organization=organization,
1415            aiplatform_id=aiplatform_id,
1416            _request_auth=_request_auth,
1417            _content_type=_content_type,
1418            _headers=_headers,
1419            _host_index=_host_index
1420        )
1421
1422        _response_types_map: Dict[str, Optional[str]] = {
1423            '200': "DeleteAIPlatformConnectorResponse",
1424            '400': "GetPipelines400Response",
1425            '401': "GetPipelines400Response",
1426            '403': "GetPipelines400Response",
1427            '404': "GetPipelines400Response",
1428            '500': "GetPipelines400Response",
1429        }
1430        response_data = self.api_client.call_api(
1431            *_param,
1432            _request_timeout=_request_timeout
1433        )
1434        response_data.read()
1435        return self.api_client.response_deserialize(
1436            response_data=response_data,
1437            response_types_map=_response_types_map,
1438        )

Delete an AI platform connector

Parameters
  • organization: (required)
  • aiplatform_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.

@validate_call
def delete_ai_platform_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], aiplatform_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
1441    @validate_call
1442    def delete_ai_platform_without_preload_content(
1443        self,
1444        organization: StrictStr,
1445        aiplatform_id: StrictStr,
1446        _request_timeout: Union[
1447            None,
1448            Annotated[StrictFloat, Field(gt=0)],
1449            Tuple[
1450                Annotated[StrictFloat, Field(gt=0)],
1451                Annotated[StrictFloat, Field(gt=0)]
1452            ]
1453        ] = None,
1454        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1455        _content_type: Optional[StrictStr] = None,
1456        _headers: Optional[Dict[StrictStr, Any]] = None,
1457        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1458    ) -> RESTResponseType:
1459        """Delete an AI platform connector
1460
1461
1462        :param organization: (required)
1463        :type organization: str
1464        :param aiplatform_id: (required)
1465        :type aiplatform_id: str
1466        :param _request_timeout: timeout setting for this request. If one
1467                                 number provided, it will be total request
1468                                 timeout. It can also be a pair (tuple) of
1469                                 (connection, read) timeouts.
1470        :type _request_timeout: int, tuple(int, int), optional
1471        :param _request_auth: set to override the auth_settings for an a single
1472                              request; this effectively ignores the
1473                              authentication in the spec for a single request.
1474        :type _request_auth: dict, optional
1475        :param _content_type: force content-type for the request.
1476        :type _content_type: str, Optional
1477        :param _headers: set to override the headers for a single
1478                         request; this effectively ignores the headers
1479                         in the spec for a single request.
1480        :type _headers: dict, optional
1481        :param _host_index: set to override the host_index for a single
1482                            request; this effectively ignores the host_index
1483                            in the spec for a single request.
1484        :type _host_index: int, optional
1485        :return: Returns the result object.
1486        """ # noqa: E501
1487
1488        _param = self._delete_ai_platform_serialize(
1489            organization=organization,
1490            aiplatform_id=aiplatform_id,
1491            _request_auth=_request_auth,
1492            _content_type=_content_type,
1493            _headers=_headers,
1494            _host_index=_host_index
1495        )
1496
1497        _response_types_map: Dict[str, Optional[str]] = {
1498            '200': "DeleteAIPlatformConnectorResponse",
1499            '400': "GetPipelines400Response",
1500            '401': "GetPipelines400Response",
1501            '403': "GetPipelines400Response",
1502            '404': "GetPipelines400Response",
1503            '500': "GetPipelines400Response",
1504        }
1505        response_data = self.api_client.call_api(
1506            *_param,
1507            _request_timeout=_request_timeout
1508        )
1509        return response_data.response

Delete an AI platform connector

Parameters
  • organization: (required)
  • aiplatform_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.

@validate_call
def delete_destination_connector( self, organization: typing.Annotated[str, Strict(strict=True)], destination_connector_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.delete_destination_connector_response.DeleteDestinationConnectorResponse:
1579    @validate_call
1580    def delete_destination_connector(
1581        self,
1582        organization: StrictStr,
1583        destination_connector_id: StrictStr,
1584        _request_timeout: Union[
1585            None,
1586            Annotated[StrictFloat, Field(gt=0)],
1587            Tuple[
1588                Annotated[StrictFloat, Field(gt=0)],
1589                Annotated[StrictFloat, Field(gt=0)]
1590            ]
1591        ] = None,
1592        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1593        _content_type: Optional[StrictStr] = None,
1594        _headers: Optional[Dict[StrictStr, Any]] = None,
1595        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1596    ) -> DeleteDestinationConnectorResponse:
1597        """Delete a destination connector
1598
1599
1600        :param organization: (required)
1601        :type organization: str
1602        :param destination_connector_id: (required)
1603        :type destination_connector_id: str
1604        :param _request_timeout: timeout setting for this request. If one
1605                                 number provided, it will be total request
1606                                 timeout. It can also be a pair (tuple) of
1607                                 (connection, read) timeouts.
1608        :type _request_timeout: int, tuple(int, int), optional
1609        :param _request_auth: set to override the auth_settings for an a single
1610                              request; this effectively ignores the
1611                              authentication in the spec for a single request.
1612        :type _request_auth: dict, optional
1613        :param _content_type: force content-type for the request.
1614        :type _content_type: str, Optional
1615        :param _headers: set to override the headers for a single
1616                         request; this effectively ignores the headers
1617                         in the spec for a single request.
1618        :type _headers: dict, optional
1619        :param _host_index: set to override the host_index for a single
1620                            request; this effectively ignores the host_index
1621                            in the spec for a single request.
1622        :type _host_index: int, optional
1623        :return: Returns the result object.
1624        """ # noqa: E501
1625
1626        _param = self._delete_destination_connector_serialize(
1627            organization=organization,
1628            destination_connector_id=destination_connector_id,
1629            _request_auth=_request_auth,
1630            _content_type=_content_type,
1631            _headers=_headers,
1632            _host_index=_host_index
1633        )
1634
1635        _response_types_map: Dict[str, Optional[str]] = {
1636            '200': "DeleteDestinationConnectorResponse",
1637            '400': "GetPipelines400Response",
1638            '401': "GetPipelines400Response",
1639            '403': "GetPipelines400Response",
1640            '404': "GetPipelines400Response",
1641            '500': "GetPipelines400Response",
1642        }
1643        response_data = self.api_client.call_api(
1644            *_param,
1645            _request_timeout=_request_timeout
1646        )
1647        response_data.read()
1648        return self.api_client.response_deserialize(
1649            response_data=response_data,
1650            response_types_map=_response_types_map,
1651        ).data

Delete a destination connector

Parameters
  • organization: (required)
  • destination_connector_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.

@validate_call
def delete_destination_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], destination_connector_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[DeleteDestinationConnectorResponse]:
1654    @validate_call
1655    def delete_destination_connector_with_http_info(
1656        self,
1657        organization: StrictStr,
1658        destination_connector_id: StrictStr,
1659        _request_timeout: Union[
1660            None,
1661            Annotated[StrictFloat, Field(gt=0)],
1662            Tuple[
1663                Annotated[StrictFloat, Field(gt=0)],
1664                Annotated[StrictFloat, Field(gt=0)]
1665            ]
1666        ] = None,
1667        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1668        _content_type: Optional[StrictStr] = None,
1669        _headers: Optional[Dict[StrictStr, Any]] = None,
1670        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1671    ) -> ApiResponse[DeleteDestinationConnectorResponse]:
1672        """Delete a destination connector
1673
1674
1675        :param organization: (required)
1676        :type organization: str
1677        :param destination_connector_id: (required)
1678        :type destination_connector_id: str
1679        :param _request_timeout: timeout setting for this request. If one
1680                                 number provided, it will be total request
1681                                 timeout. It can also be a pair (tuple) of
1682                                 (connection, read) timeouts.
1683        :type _request_timeout: int, tuple(int, int), optional
1684        :param _request_auth: set to override the auth_settings for an a single
1685                              request; this effectively ignores the
1686                              authentication in the spec for a single request.
1687        :type _request_auth: dict, optional
1688        :param _content_type: force content-type for the request.
1689        :type _content_type: str, Optional
1690        :param _headers: set to override the headers for a single
1691                         request; this effectively ignores the headers
1692                         in the spec for a single request.
1693        :type _headers: dict, optional
1694        :param _host_index: set to override the host_index for a single
1695                            request; this effectively ignores the host_index
1696                            in the spec for a single request.
1697        :type _host_index: int, optional
1698        :return: Returns the result object.
1699        """ # noqa: E501
1700
1701        _param = self._delete_destination_connector_serialize(
1702            organization=organization,
1703            destination_connector_id=destination_connector_id,
1704            _request_auth=_request_auth,
1705            _content_type=_content_type,
1706            _headers=_headers,
1707            _host_index=_host_index
1708        )
1709
1710        _response_types_map: Dict[str, Optional[str]] = {
1711            '200': "DeleteDestinationConnectorResponse",
1712            '400': "GetPipelines400Response",
1713            '401': "GetPipelines400Response",
1714            '403': "GetPipelines400Response",
1715            '404': "GetPipelines400Response",
1716            '500': "GetPipelines400Response",
1717        }
1718        response_data = self.api_client.call_api(
1719            *_param,
1720            _request_timeout=_request_timeout
1721        )
1722        response_data.read()
1723        return self.api_client.response_deserialize(
1724            response_data=response_data,
1725            response_types_map=_response_types_map,
1726        )

Delete a destination connector

Parameters
  • organization: (required)
  • destination_connector_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.

@validate_call
def delete_destination_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], destination_connector_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
1729    @validate_call
1730    def delete_destination_connector_without_preload_content(
1731        self,
1732        organization: StrictStr,
1733        destination_connector_id: StrictStr,
1734        _request_timeout: Union[
1735            None,
1736            Annotated[StrictFloat, Field(gt=0)],
1737            Tuple[
1738                Annotated[StrictFloat, Field(gt=0)],
1739                Annotated[StrictFloat, Field(gt=0)]
1740            ]
1741        ] = None,
1742        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1743        _content_type: Optional[StrictStr] = None,
1744        _headers: Optional[Dict[StrictStr, Any]] = None,
1745        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1746    ) -> RESTResponseType:
1747        """Delete a destination connector
1748
1749
1750        :param organization: (required)
1751        :type organization: str
1752        :param destination_connector_id: (required)
1753        :type destination_connector_id: str
1754        :param _request_timeout: timeout setting for this request. If one
1755                                 number provided, it will be total request
1756                                 timeout. It can also be a pair (tuple) of
1757                                 (connection, read) timeouts.
1758        :type _request_timeout: int, tuple(int, int), optional
1759        :param _request_auth: set to override the auth_settings for an a single
1760                              request; this effectively ignores the
1761                              authentication in the spec for a single request.
1762        :type _request_auth: dict, optional
1763        :param _content_type: force content-type for the request.
1764        :type _content_type: str, Optional
1765        :param _headers: set to override the headers for a single
1766                         request; this effectively ignores the headers
1767                         in the spec for a single request.
1768        :type _headers: dict, optional
1769        :param _host_index: set to override the host_index for a single
1770                            request; this effectively ignores the host_index
1771                            in the spec for a single request.
1772        :type _host_index: int, optional
1773        :return: Returns the result object.
1774        """ # noqa: E501
1775
1776        _param = self._delete_destination_connector_serialize(
1777            organization=organization,
1778            destination_connector_id=destination_connector_id,
1779            _request_auth=_request_auth,
1780            _content_type=_content_type,
1781            _headers=_headers,
1782            _host_index=_host_index
1783        )
1784
1785        _response_types_map: Dict[str, Optional[str]] = {
1786            '200': "DeleteDestinationConnectorResponse",
1787            '400': "GetPipelines400Response",
1788            '401': "GetPipelines400Response",
1789            '403': "GetPipelines400Response",
1790            '404': "GetPipelines400Response",
1791            '500': "GetPipelines400Response",
1792        }
1793        response_data = self.api_client.call_api(
1794            *_param,
1795            _request_timeout=_request_timeout
1796        )
1797        return response_data.response

Delete a destination connector

Parameters
  • organization: (required)
  • destination_connector_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.

@validate_call
def delete_source_connector( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.delete_source_connector_response.DeleteSourceConnectorResponse:
1867    @validate_call
1868    def delete_source_connector(
1869        self,
1870        organization: StrictStr,
1871        source_connector_id: StrictStr,
1872        _request_timeout: Union[
1873            None,
1874            Annotated[StrictFloat, Field(gt=0)],
1875            Tuple[
1876                Annotated[StrictFloat, Field(gt=0)],
1877                Annotated[StrictFloat, Field(gt=0)]
1878            ]
1879        ] = None,
1880        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1881        _content_type: Optional[StrictStr] = None,
1882        _headers: Optional[Dict[StrictStr, Any]] = None,
1883        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1884    ) -> DeleteSourceConnectorResponse:
1885        """Delete a source connector
1886
1887
1888        :param organization: (required)
1889        :type organization: str
1890        :param source_connector_id: (required)
1891        :type source_connector_id: str
1892        :param _request_timeout: timeout setting for this request. If one
1893                                 number provided, it will be total request
1894                                 timeout. It can also be a pair (tuple) of
1895                                 (connection, read) timeouts.
1896        :type _request_timeout: int, tuple(int, int), optional
1897        :param _request_auth: set to override the auth_settings for an a single
1898                              request; this effectively ignores the
1899                              authentication in the spec for a single request.
1900        :type _request_auth: dict, optional
1901        :param _content_type: force content-type for the request.
1902        :type _content_type: str, Optional
1903        :param _headers: set to override the headers for a single
1904                         request; this effectively ignores the headers
1905                         in the spec for a single request.
1906        :type _headers: dict, optional
1907        :param _host_index: set to override the host_index for a single
1908                            request; this effectively ignores the host_index
1909                            in the spec for a single request.
1910        :type _host_index: int, optional
1911        :return: Returns the result object.
1912        """ # noqa: E501
1913
1914        _param = self._delete_source_connector_serialize(
1915            organization=organization,
1916            source_connector_id=source_connector_id,
1917            _request_auth=_request_auth,
1918            _content_type=_content_type,
1919            _headers=_headers,
1920            _host_index=_host_index
1921        )
1922
1923        _response_types_map: Dict[str, Optional[str]] = {
1924            '200': "DeleteSourceConnectorResponse",
1925            '400': "GetPipelines400Response",
1926            '401': "GetPipelines400Response",
1927            '403': "GetPipelines400Response",
1928            '404': "GetPipelines400Response",
1929            '500': "GetPipelines400Response",
1930        }
1931        response_data = self.api_client.call_api(
1932            *_param,
1933            _request_timeout=_request_timeout
1934        )
1935        response_data.read()
1936        return self.api_client.response_deserialize(
1937            response_data=response_data,
1938            response_types_map=_response_types_map,
1939        ).data

Delete a source connector

Parameters
  • organization: (required)
  • source_connector_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.

@validate_call
def delete_source_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[DeleteSourceConnectorResponse]:
1942    @validate_call
1943    def delete_source_connector_with_http_info(
1944        self,
1945        organization: StrictStr,
1946        source_connector_id: StrictStr,
1947        _request_timeout: Union[
1948            None,
1949            Annotated[StrictFloat, Field(gt=0)],
1950            Tuple[
1951                Annotated[StrictFloat, Field(gt=0)],
1952                Annotated[StrictFloat, Field(gt=0)]
1953            ]
1954        ] = None,
1955        _request_auth: Optional[Dict[StrictStr, Any]] = None,
1956        _content_type: Optional[StrictStr] = None,
1957        _headers: Optional[Dict[StrictStr, Any]] = None,
1958        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1959    ) -> ApiResponse[DeleteSourceConnectorResponse]:
1960        """Delete a source connector
1961
1962
1963        :param organization: (required)
1964        :type organization: str
1965        :param source_connector_id: (required)
1966        :type source_connector_id: str
1967        :param _request_timeout: timeout setting for this request. If one
1968                                 number provided, it will be total request
1969                                 timeout. It can also be a pair (tuple) of
1970                                 (connection, read) timeouts.
1971        :type _request_timeout: int, tuple(int, int), optional
1972        :param _request_auth: set to override the auth_settings for an a single
1973                              request; this effectively ignores the
1974                              authentication in the spec for a single request.
1975        :type _request_auth: dict, optional
1976        :param _content_type: force content-type for the request.
1977        :type _content_type: str, Optional
1978        :param _headers: set to override the headers for a single
1979                         request; this effectively ignores the headers
1980                         in the spec for a single request.
1981        :type _headers: dict, optional
1982        :param _host_index: set to override the host_index for a single
1983                            request; this effectively ignores the host_index
1984                            in the spec for a single request.
1985        :type _host_index: int, optional
1986        :return: Returns the result object.
1987        """ # noqa: E501
1988
1989        _param = self._delete_source_connector_serialize(
1990            organization=organization,
1991            source_connector_id=source_connector_id,
1992            _request_auth=_request_auth,
1993            _content_type=_content_type,
1994            _headers=_headers,
1995            _host_index=_host_index
1996        )
1997
1998        _response_types_map: Dict[str, Optional[str]] = {
1999            '200': "DeleteSourceConnectorResponse",
2000            '400': "GetPipelines400Response",
2001            '401': "GetPipelines400Response",
2002            '403': "GetPipelines400Response",
2003            '404': "GetPipelines400Response",
2004            '500': "GetPipelines400Response",
2005        }
2006        response_data = self.api_client.call_api(
2007            *_param,
2008            _request_timeout=_request_timeout
2009        )
2010        response_data.read()
2011        return self.api_client.response_deserialize(
2012            response_data=response_data,
2013            response_types_map=_response_types_map,
2014        )

Delete a source connector

Parameters
  • organization: (required)
  • source_connector_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.

@validate_call
def delete_source_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
2017    @validate_call
2018    def delete_source_connector_without_preload_content(
2019        self,
2020        organization: StrictStr,
2021        source_connector_id: StrictStr,
2022        _request_timeout: Union[
2023            None,
2024            Annotated[StrictFloat, Field(gt=0)],
2025            Tuple[
2026                Annotated[StrictFloat, Field(gt=0)],
2027                Annotated[StrictFloat, Field(gt=0)]
2028            ]
2029        ] = None,
2030        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2031        _content_type: Optional[StrictStr] = None,
2032        _headers: Optional[Dict[StrictStr, Any]] = None,
2033        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2034    ) -> RESTResponseType:
2035        """Delete a source connector
2036
2037
2038        :param organization: (required)
2039        :type organization: str
2040        :param source_connector_id: (required)
2041        :type source_connector_id: str
2042        :param _request_timeout: timeout setting for this request. If one
2043                                 number provided, it will be total request
2044                                 timeout. It can also be a pair (tuple) of
2045                                 (connection, read) timeouts.
2046        :type _request_timeout: int, tuple(int, int), optional
2047        :param _request_auth: set to override the auth_settings for an a single
2048                              request; this effectively ignores the
2049                              authentication in the spec for a single request.
2050        :type _request_auth: dict, optional
2051        :param _content_type: force content-type for the request.
2052        :type _content_type: str, Optional
2053        :param _headers: set to override the headers for a single
2054                         request; this effectively ignores the headers
2055                         in the spec for a single request.
2056        :type _headers: dict, optional
2057        :param _host_index: set to override the host_index for a single
2058                            request; this effectively ignores the host_index
2059                            in the spec for a single request.
2060        :type _host_index: int, optional
2061        :return: Returns the result object.
2062        """ # noqa: E501
2063
2064        _param = self._delete_source_connector_serialize(
2065            organization=organization,
2066            source_connector_id=source_connector_id,
2067            _request_auth=_request_auth,
2068            _content_type=_content_type,
2069            _headers=_headers,
2070            _host_index=_host_index
2071        )
2072
2073        _response_types_map: Dict[str, Optional[str]] = {
2074            '200': "DeleteSourceConnectorResponse",
2075            '400': "GetPipelines400Response",
2076            '401': "GetPipelines400Response",
2077            '403': "GetPipelines400Response",
2078            '404': "GetPipelines400Response",
2079            '500': "GetPipelines400Response",
2080        }
2081        response_data = self.api_client.call_api(
2082            *_param,
2083            _request_timeout=_request_timeout
2084        )
2085        return response_data.response

Delete a source connector

Parameters
  • organization: (required)
  • source_connector_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.

@validate_call
def delete_user_from_source_connector( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], remove_user_from_source_connector_request: vectorize_client.models.remove_user_from_source_connector_request.RemoveUserFromSourceConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.remove_user_from_source_connector_response.RemoveUserFromSourceConnectorResponse:
2155    @validate_call
2156    def delete_user_from_source_connector(
2157        self,
2158        organization: StrictStr,
2159        source_connector_id: StrictStr,
2160        remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest,
2161        _request_timeout: Union[
2162            None,
2163            Annotated[StrictFloat, Field(gt=0)],
2164            Tuple[
2165                Annotated[StrictFloat, Field(gt=0)],
2166                Annotated[StrictFloat, Field(gt=0)]
2167            ]
2168        ] = None,
2169        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2170        _content_type: Optional[StrictStr] = None,
2171        _headers: Optional[Dict[StrictStr, Any]] = None,
2172        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2173    ) -> RemoveUserFromSourceConnectorResponse:
2174        """Delete a source connector user
2175
2176
2177        :param organization: (required)
2178        :type organization: str
2179        :param source_connector_id: (required)
2180        :type source_connector_id: str
2181        :param remove_user_from_source_connector_request: (required)
2182        :type remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest
2183        :param _request_timeout: timeout setting for this request. If one
2184                                 number provided, it will be total request
2185                                 timeout. It can also be a pair (tuple) of
2186                                 (connection, read) timeouts.
2187        :type _request_timeout: int, tuple(int, int), optional
2188        :param _request_auth: set to override the auth_settings for an a single
2189                              request; this effectively ignores the
2190                              authentication in the spec for a single request.
2191        :type _request_auth: dict, optional
2192        :param _content_type: force content-type for the request.
2193        :type _content_type: str, Optional
2194        :param _headers: set to override the headers for a single
2195                         request; this effectively ignores the headers
2196                         in the spec for a single request.
2197        :type _headers: dict, optional
2198        :param _host_index: set to override the host_index for a single
2199                            request; this effectively ignores the host_index
2200                            in the spec for a single request.
2201        :type _host_index: int, optional
2202        :return: Returns the result object.
2203        """ # noqa: E501
2204
2205        _param = self._delete_user_from_source_connector_serialize(
2206            organization=organization,
2207            source_connector_id=source_connector_id,
2208            remove_user_from_source_connector_request=remove_user_from_source_connector_request,
2209            _request_auth=_request_auth,
2210            _content_type=_content_type,
2211            _headers=_headers,
2212            _host_index=_host_index
2213        )
2214
2215        _response_types_map: Dict[str, Optional[str]] = {
2216            '200': "RemoveUserFromSourceConnectorResponse",
2217            '400': "GetPipelines400Response",
2218            '401': "GetPipelines400Response",
2219            '403': "GetPipelines400Response",
2220            '404': "GetPipelines400Response",
2221            '500': "GetPipelines400Response",
2222        }
2223        response_data = self.api_client.call_api(
2224            *_param,
2225            _request_timeout=_request_timeout
2226        )
2227        response_data.read()
2228        return self.api_client.response_deserialize(
2229            response_data=response_data,
2230            response_types_map=_response_types_map,
2231        ).data

Delete a source connector user

Parameters
  • organization: (required)
  • source_connector_id: (required)
  • remove_user_from_source_connector_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.

@validate_call
def delete_user_from_source_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], remove_user_from_source_connector_request: vectorize_client.models.remove_user_from_source_connector_request.RemoveUserFromSourceConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[RemoveUserFromSourceConnectorResponse]:
2234    @validate_call
2235    def delete_user_from_source_connector_with_http_info(
2236        self,
2237        organization: StrictStr,
2238        source_connector_id: StrictStr,
2239        remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest,
2240        _request_timeout: Union[
2241            None,
2242            Annotated[StrictFloat, Field(gt=0)],
2243            Tuple[
2244                Annotated[StrictFloat, Field(gt=0)],
2245                Annotated[StrictFloat, Field(gt=0)]
2246            ]
2247        ] = None,
2248        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2249        _content_type: Optional[StrictStr] = None,
2250        _headers: Optional[Dict[StrictStr, Any]] = None,
2251        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2252    ) -> ApiResponse[RemoveUserFromSourceConnectorResponse]:
2253        """Delete a source connector user
2254
2255
2256        :param organization: (required)
2257        :type organization: str
2258        :param source_connector_id: (required)
2259        :type source_connector_id: str
2260        :param remove_user_from_source_connector_request: (required)
2261        :type remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest
2262        :param _request_timeout: timeout setting for this request. If one
2263                                 number provided, it will be total request
2264                                 timeout. It can also be a pair (tuple) of
2265                                 (connection, read) timeouts.
2266        :type _request_timeout: int, tuple(int, int), optional
2267        :param _request_auth: set to override the auth_settings for an a single
2268                              request; this effectively ignores the
2269                              authentication in the spec for a single request.
2270        :type _request_auth: dict, optional
2271        :param _content_type: force content-type for the request.
2272        :type _content_type: str, Optional
2273        :param _headers: set to override the headers for a single
2274                         request; this effectively ignores the headers
2275                         in the spec for a single request.
2276        :type _headers: dict, optional
2277        :param _host_index: set to override the host_index for a single
2278                            request; this effectively ignores the host_index
2279                            in the spec for a single request.
2280        :type _host_index: int, optional
2281        :return: Returns the result object.
2282        """ # noqa: E501
2283
2284        _param = self._delete_user_from_source_connector_serialize(
2285            organization=organization,
2286            source_connector_id=source_connector_id,
2287            remove_user_from_source_connector_request=remove_user_from_source_connector_request,
2288            _request_auth=_request_auth,
2289            _content_type=_content_type,
2290            _headers=_headers,
2291            _host_index=_host_index
2292        )
2293
2294        _response_types_map: Dict[str, Optional[str]] = {
2295            '200': "RemoveUserFromSourceConnectorResponse",
2296            '400': "GetPipelines400Response",
2297            '401': "GetPipelines400Response",
2298            '403': "GetPipelines400Response",
2299            '404': "GetPipelines400Response",
2300            '500': "GetPipelines400Response",
2301        }
2302        response_data = self.api_client.call_api(
2303            *_param,
2304            _request_timeout=_request_timeout
2305        )
2306        response_data.read()
2307        return self.api_client.response_deserialize(
2308            response_data=response_data,
2309            response_types_map=_response_types_map,
2310        )

Delete a source connector user

Parameters
  • organization: (required)
  • source_connector_id: (required)
  • remove_user_from_source_connector_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.

@validate_call
def delete_user_from_source_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], remove_user_from_source_connector_request: vectorize_client.models.remove_user_from_source_connector_request.RemoveUserFromSourceConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
2313    @validate_call
2314    def delete_user_from_source_connector_without_preload_content(
2315        self,
2316        organization: StrictStr,
2317        source_connector_id: StrictStr,
2318        remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest,
2319        _request_timeout: Union[
2320            None,
2321            Annotated[StrictFloat, Field(gt=0)],
2322            Tuple[
2323                Annotated[StrictFloat, Field(gt=0)],
2324                Annotated[StrictFloat, Field(gt=0)]
2325            ]
2326        ] = None,
2327        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2328        _content_type: Optional[StrictStr] = None,
2329        _headers: Optional[Dict[StrictStr, Any]] = None,
2330        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2331    ) -> RESTResponseType:
2332        """Delete a source connector user
2333
2334
2335        :param organization: (required)
2336        :type organization: str
2337        :param source_connector_id: (required)
2338        :type source_connector_id: str
2339        :param remove_user_from_source_connector_request: (required)
2340        :type remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest
2341        :param _request_timeout: timeout setting for this request. If one
2342                                 number provided, it will be total request
2343                                 timeout. It can also be a pair (tuple) of
2344                                 (connection, read) timeouts.
2345        :type _request_timeout: int, tuple(int, int), optional
2346        :param _request_auth: set to override the auth_settings for an a single
2347                              request; this effectively ignores the
2348                              authentication in the spec for a single request.
2349        :type _request_auth: dict, optional
2350        :param _content_type: force content-type for the request.
2351        :type _content_type: str, Optional
2352        :param _headers: set to override the headers for a single
2353                         request; this effectively ignores the headers
2354                         in the spec for a single request.
2355        :type _headers: dict, optional
2356        :param _host_index: set to override the host_index for a single
2357                            request; this effectively ignores the host_index
2358                            in the spec for a single request.
2359        :type _host_index: int, optional
2360        :return: Returns the result object.
2361        """ # noqa: E501
2362
2363        _param = self._delete_user_from_source_connector_serialize(
2364            organization=organization,
2365            source_connector_id=source_connector_id,
2366            remove_user_from_source_connector_request=remove_user_from_source_connector_request,
2367            _request_auth=_request_auth,
2368            _content_type=_content_type,
2369            _headers=_headers,
2370            _host_index=_host_index
2371        )
2372
2373        _response_types_map: Dict[str, Optional[str]] = {
2374            '200': "RemoveUserFromSourceConnectorResponse",
2375            '400': "GetPipelines400Response",
2376            '401': "GetPipelines400Response",
2377            '403': "GetPipelines400Response",
2378            '404': "GetPipelines400Response",
2379            '500': "GetPipelines400Response",
2380        }
2381        response_data = self.api_client.call_api(
2382            *_param,
2383            _request_timeout=_request_timeout
2384        )
2385        return response_data.response

Delete a source connector user

Parameters
  • organization: (required)
  • source_connector_id: (required)
  • remove_user_from_source_connector_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.

@validate_call
def get_ai_platform_connector( self, organization: typing.Annotated[str, Strict(strict=True)], aiplatform_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.ai_platform.AIPlatform:
2471    @validate_call
2472    def get_ai_platform_connector(
2473        self,
2474        organization: StrictStr,
2475        aiplatform_id: StrictStr,
2476        _request_timeout: Union[
2477            None,
2478            Annotated[StrictFloat, Field(gt=0)],
2479            Tuple[
2480                Annotated[StrictFloat, Field(gt=0)],
2481                Annotated[StrictFloat, Field(gt=0)]
2482            ]
2483        ] = None,
2484        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2485        _content_type: Optional[StrictStr] = None,
2486        _headers: Optional[Dict[StrictStr, Any]] = None,
2487        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2488    ) -> AIPlatform:
2489        """Get an AI platform connector
2490
2491
2492        :param organization: (required)
2493        :type organization: str
2494        :param aiplatform_id: (required)
2495        :type aiplatform_id: str
2496        :param _request_timeout: timeout setting for this request. If one
2497                                 number provided, it will be total request
2498                                 timeout. It can also be a pair (tuple) of
2499                                 (connection, read) timeouts.
2500        :type _request_timeout: int, tuple(int, int), optional
2501        :param _request_auth: set to override the auth_settings for an a single
2502                              request; this effectively ignores the
2503                              authentication in the spec for a single request.
2504        :type _request_auth: dict, optional
2505        :param _content_type: force content-type for the request.
2506        :type _content_type: str, Optional
2507        :param _headers: set to override the headers for a single
2508                         request; this effectively ignores the headers
2509                         in the spec for a single request.
2510        :type _headers: dict, optional
2511        :param _host_index: set to override the host_index for a single
2512                            request; this effectively ignores the host_index
2513                            in the spec for a single request.
2514        :type _host_index: int, optional
2515        :return: Returns the result object.
2516        """ # noqa: E501
2517
2518        _param = self._get_ai_platform_connector_serialize(
2519            organization=organization,
2520            aiplatform_id=aiplatform_id,
2521            _request_auth=_request_auth,
2522            _content_type=_content_type,
2523            _headers=_headers,
2524            _host_index=_host_index
2525        )
2526
2527        _response_types_map: Dict[str, Optional[str]] = {
2528            '200': "AIPlatform",
2529            '400': "GetPipelines400Response",
2530            '401': "GetPipelines400Response",
2531            '403': "GetPipelines400Response",
2532            '404': "GetPipelines400Response",
2533            '500': "GetPipelines400Response",
2534        }
2535        response_data = self.api_client.call_api(
2536            *_param,
2537            _request_timeout=_request_timeout
2538        )
2539        response_data.read()
2540        return self.api_client.response_deserialize(
2541            response_data=response_data,
2542            response_types_map=_response_types_map,
2543        ).data

Get an AI platform connector

Parameters
  • organization: (required)
  • aiplatform_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.

@validate_call
def get_ai_platform_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], aiplatform_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[AIPlatform]:
2546    @validate_call
2547    def get_ai_platform_connector_with_http_info(
2548        self,
2549        organization: StrictStr,
2550        aiplatform_id: StrictStr,
2551        _request_timeout: Union[
2552            None,
2553            Annotated[StrictFloat, Field(gt=0)],
2554            Tuple[
2555                Annotated[StrictFloat, Field(gt=0)],
2556                Annotated[StrictFloat, Field(gt=0)]
2557            ]
2558        ] = None,
2559        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2560        _content_type: Optional[StrictStr] = None,
2561        _headers: Optional[Dict[StrictStr, Any]] = None,
2562        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2563    ) -> ApiResponse[AIPlatform]:
2564        """Get an AI platform connector
2565
2566
2567        :param organization: (required)
2568        :type organization: str
2569        :param aiplatform_id: (required)
2570        :type aiplatform_id: str
2571        :param _request_timeout: timeout setting for this request. If one
2572                                 number provided, it will be total request
2573                                 timeout. It can also be a pair (tuple) of
2574                                 (connection, read) timeouts.
2575        :type _request_timeout: int, tuple(int, int), optional
2576        :param _request_auth: set to override the auth_settings for an a single
2577                              request; this effectively ignores the
2578                              authentication in the spec for a single request.
2579        :type _request_auth: dict, optional
2580        :param _content_type: force content-type for the request.
2581        :type _content_type: str, Optional
2582        :param _headers: set to override the headers for a single
2583                         request; this effectively ignores the headers
2584                         in the spec for a single request.
2585        :type _headers: dict, optional
2586        :param _host_index: set to override the host_index for a single
2587                            request; this effectively ignores the host_index
2588                            in the spec for a single request.
2589        :type _host_index: int, optional
2590        :return: Returns the result object.
2591        """ # noqa: E501
2592
2593        _param = self._get_ai_platform_connector_serialize(
2594            organization=organization,
2595            aiplatform_id=aiplatform_id,
2596            _request_auth=_request_auth,
2597            _content_type=_content_type,
2598            _headers=_headers,
2599            _host_index=_host_index
2600        )
2601
2602        _response_types_map: Dict[str, Optional[str]] = {
2603            '200': "AIPlatform",
2604            '400': "GetPipelines400Response",
2605            '401': "GetPipelines400Response",
2606            '403': "GetPipelines400Response",
2607            '404': "GetPipelines400Response",
2608            '500': "GetPipelines400Response",
2609        }
2610        response_data = self.api_client.call_api(
2611            *_param,
2612            _request_timeout=_request_timeout
2613        )
2614        response_data.read()
2615        return self.api_client.response_deserialize(
2616            response_data=response_data,
2617            response_types_map=_response_types_map,
2618        )

Get an AI platform connector

Parameters
  • organization: (required)
  • aiplatform_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.

@validate_call
def get_ai_platform_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], aiplatform_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
2621    @validate_call
2622    def get_ai_platform_connector_without_preload_content(
2623        self,
2624        organization: StrictStr,
2625        aiplatform_id: StrictStr,
2626        _request_timeout: Union[
2627            None,
2628            Annotated[StrictFloat, Field(gt=0)],
2629            Tuple[
2630                Annotated[StrictFloat, Field(gt=0)],
2631                Annotated[StrictFloat, Field(gt=0)]
2632            ]
2633        ] = None,
2634        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2635        _content_type: Optional[StrictStr] = None,
2636        _headers: Optional[Dict[StrictStr, Any]] = None,
2637        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2638    ) -> RESTResponseType:
2639        """Get an AI platform connector
2640
2641
2642        :param organization: (required)
2643        :type organization: str
2644        :param aiplatform_id: (required)
2645        :type aiplatform_id: str
2646        :param _request_timeout: timeout setting for this request. If one
2647                                 number provided, it will be total request
2648                                 timeout. It can also be a pair (tuple) of
2649                                 (connection, read) timeouts.
2650        :type _request_timeout: int, tuple(int, int), optional
2651        :param _request_auth: set to override the auth_settings for an a single
2652                              request; this effectively ignores the
2653                              authentication in the spec for a single request.
2654        :type _request_auth: dict, optional
2655        :param _content_type: force content-type for the request.
2656        :type _content_type: str, Optional
2657        :param _headers: set to override the headers for a single
2658                         request; this effectively ignores the headers
2659                         in the spec for a single request.
2660        :type _headers: dict, optional
2661        :param _host_index: set to override the host_index for a single
2662                            request; this effectively ignores the host_index
2663                            in the spec for a single request.
2664        :type _host_index: int, optional
2665        :return: Returns the result object.
2666        """ # noqa: E501
2667
2668        _param = self._get_ai_platform_connector_serialize(
2669            organization=organization,
2670            aiplatform_id=aiplatform_id,
2671            _request_auth=_request_auth,
2672            _content_type=_content_type,
2673            _headers=_headers,
2674            _host_index=_host_index
2675        )
2676
2677        _response_types_map: Dict[str, Optional[str]] = {
2678            '200': "AIPlatform",
2679            '400': "GetPipelines400Response",
2680            '401': "GetPipelines400Response",
2681            '403': "GetPipelines400Response",
2682            '404': "GetPipelines400Response",
2683            '500': "GetPipelines400Response",
2684        }
2685        response_data = self.api_client.call_api(
2686            *_param,
2687            _request_timeout=_request_timeout
2688        )
2689        return response_data.response

Get an AI platform connector

Parameters
  • organization: (required)
  • aiplatform_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.

@validate_call
def get_ai_platform_connectors( self, organization: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.get_ai_platform_connectors200_response.GetAIPlatformConnectors200Response:
2759    @validate_call
2760    def get_ai_platform_connectors(
2761        self,
2762        organization: StrictStr,
2763        _request_timeout: Union[
2764            None,
2765            Annotated[StrictFloat, Field(gt=0)],
2766            Tuple[
2767                Annotated[StrictFloat, Field(gt=0)],
2768                Annotated[StrictFloat, Field(gt=0)]
2769            ]
2770        ] = None,
2771        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2772        _content_type: Optional[StrictStr] = None,
2773        _headers: Optional[Dict[StrictStr, Any]] = None,
2774        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2775    ) -> GetAIPlatformConnectors200Response:
2776        """Get all existing AI Platform connectors
2777
2778
2779        :param organization: (required)
2780        :type organization: str
2781        :param _request_timeout: timeout setting for this request. If one
2782                                 number provided, it will be total request
2783                                 timeout. It can also be a pair (tuple) of
2784                                 (connection, read) timeouts.
2785        :type _request_timeout: int, tuple(int, int), optional
2786        :param _request_auth: set to override the auth_settings for an a single
2787                              request; this effectively ignores the
2788                              authentication in the spec for a single request.
2789        :type _request_auth: dict, optional
2790        :param _content_type: force content-type for the request.
2791        :type _content_type: str, Optional
2792        :param _headers: set to override the headers for a single
2793                         request; this effectively ignores the headers
2794                         in the spec for a single request.
2795        :type _headers: dict, optional
2796        :param _host_index: set to override the host_index for a single
2797                            request; this effectively ignores the host_index
2798                            in the spec for a single request.
2799        :type _host_index: int, optional
2800        :return: Returns the result object.
2801        """ # noqa: E501
2802
2803        _param = self._get_ai_platform_connectors_serialize(
2804            organization=organization,
2805            _request_auth=_request_auth,
2806            _content_type=_content_type,
2807            _headers=_headers,
2808            _host_index=_host_index
2809        )
2810
2811        _response_types_map: Dict[str, Optional[str]] = {
2812            '200': "GetAIPlatformConnectors200Response",
2813            '400': "GetPipelines400Response",
2814            '401': "GetPipelines400Response",
2815            '403': "GetPipelines400Response",
2816            '404': "GetPipelines400Response",
2817            '500': "GetPipelines400Response",
2818        }
2819        response_data = self.api_client.call_api(
2820            *_param,
2821            _request_timeout=_request_timeout
2822        )
2823        response_data.read()
2824        return self.api_client.response_deserialize(
2825            response_data=response_data,
2826            response_types_map=_response_types_map,
2827        ).data

Get all existing AI Platform connectors

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.

@validate_call
def get_ai_platform_connectors_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[GetAIPlatformConnectors200Response]:
2830    @validate_call
2831    def get_ai_platform_connectors_with_http_info(
2832        self,
2833        organization: StrictStr,
2834        _request_timeout: Union[
2835            None,
2836            Annotated[StrictFloat, Field(gt=0)],
2837            Tuple[
2838                Annotated[StrictFloat, Field(gt=0)],
2839                Annotated[StrictFloat, Field(gt=0)]
2840            ]
2841        ] = None,
2842        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2843        _content_type: Optional[StrictStr] = None,
2844        _headers: Optional[Dict[StrictStr, Any]] = None,
2845        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2846    ) -> ApiResponse[GetAIPlatformConnectors200Response]:
2847        """Get all existing AI Platform connectors
2848
2849
2850        :param organization: (required)
2851        :type organization: str
2852        :param _request_timeout: timeout setting for this request. If one
2853                                 number provided, it will be total request
2854                                 timeout. It can also be a pair (tuple) of
2855                                 (connection, read) timeouts.
2856        :type _request_timeout: int, tuple(int, int), optional
2857        :param _request_auth: set to override the auth_settings for an a single
2858                              request; this effectively ignores the
2859                              authentication in the spec for a single request.
2860        :type _request_auth: dict, optional
2861        :param _content_type: force content-type for the request.
2862        :type _content_type: str, Optional
2863        :param _headers: set to override the headers for a single
2864                         request; this effectively ignores the headers
2865                         in the spec for a single request.
2866        :type _headers: dict, optional
2867        :param _host_index: set to override the host_index for a single
2868                            request; this effectively ignores the host_index
2869                            in the spec for a single request.
2870        :type _host_index: int, optional
2871        :return: Returns the result object.
2872        """ # noqa: E501
2873
2874        _param = self._get_ai_platform_connectors_serialize(
2875            organization=organization,
2876            _request_auth=_request_auth,
2877            _content_type=_content_type,
2878            _headers=_headers,
2879            _host_index=_host_index
2880        )
2881
2882        _response_types_map: Dict[str, Optional[str]] = {
2883            '200': "GetAIPlatformConnectors200Response",
2884            '400': "GetPipelines400Response",
2885            '401': "GetPipelines400Response",
2886            '403': "GetPipelines400Response",
2887            '404': "GetPipelines400Response",
2888            '500': "GetPipelines400Response",
2889        }
2890        response_data = self.api_client.call_api(
2891            *_param,
2892            _request_timeout=_request_timeout
2893        )
2894        response_data.read()
2895        return self.api_client.response_deserialize(
2896            response_data=response_data,
2897            response_types_map=_response_types_map,
2898        )

Get all existing AI Platform connectors

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.

@validate_call
def get_ai_platform_connectors_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
2901    @validate_call
2902    def get_ai_platform_connectors_without_preload_content(
2903        self,
2904        organization: StrictStr,
2905        _request_timeout: Union[
2906            None,
2907            Annotated[StrictFloat, Field(gt=0)],
2908            Tuple[
2909                Annotated[StrictFloat, Field(gt=0)],
2910                Annotated[StrictFloat, Field(gt=0)]
2911            ]
2912        ] = None,
2913        _request_auth: Optional[Dict[StrictStr, Any]] = None,
2914        _content_type: Optional[StrictStr] = None,
2915        _headers: Optional[Dict[StrictStr, Any]] = None,
2916        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2917    ) -> RESTResponseType:
2918        """Get all existing AI Platform connectors
2919
2920
2921        :param organization: (required)
2922        :type organization: str
2923        :param _request_timeout: timeout setting for this request. If one
2924                                 number provided, it will be total request
2925                                 timeout. It can also be a pair (tuple) of
2926                                 (connection, read) timeouts.
2927        :type _request_timeout: int, tuple(int, int), optional
2928        :param _request_auth: set to override the auth_settings for an a single
2929                              request; this effectively ignores the
2930                              authentication in the spec for a single request.
2931        :type _request_auth: dict, optional
2932        :param _content_type: force content-type for the request.
2933        :type _content_type: str, Optional
2934        :param _headers: set to override the headers for a single
2935                         request; this effectively ignores the headers
2936                         in the spec for a single request.
2937        :type _headers: dict, optional
2938        :param _host_index: set to override the host_index for a single
2939                            request; this effectively ignores the host_index
2940                            in the spec for a single request.
2941        :type _host_index: int, optional
2942        :return: Returns the result object.
2943        """ # noqa: E501
2944
2945        _param = self._get_ai_platform_connectors_serialize(
2946            organization=organization,
2947            _request_auth=_request_auth,
2948            _content_type=_content_type,
2949            _headers=_headers,
2950            _host_index=_host_index
2951        )
2952
2953        _response_types_map: Dict[str, Optional[str]] = {
2954            '200': "GetAIPlatformConnectors200Response",
2955            '400': "GetPipelines400Response",
2956            '401': "GetPipelines400Response",
2957            '403': "GetPipelines400Response",
2958            '404': "GetPipelines400Response",
2959            '500': "GetPipelines400Response",
2960        }
2961        response_data = self.api_client.call_api(
2962            *_param,
2963            _request_timeout=_request_timeout
2964        )
2965        return response_data.response

Get all existing AI Platform connectors

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.

@validate_call
def get_destination_connector( self, organization: typing.Annotated[str, Strict(strict=True)], destination_connector_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.destination_connector.DestinationConnector:
3032    @validate_call
3033    def get_destination_connector(
3034        self,
3035        organization: StrictStr,
3036        destination_connector_id: StrictStr,
3037        _request_timeout: Union[
3038            None,
3039            Annotated[StrictFloat, Field(gt=0)],
3040            Tuple[
3041                Annotated[StrictFloat, Field(gt=0)],
3042                Annotated[StrictFloat, Field(gt=0)]
3043            ]
3044        ] = None,
3045        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3046        _content_type: Optional[StrictStr] = None,
3047        _headers: Optional[Dict[StrictStr, Any]] = None,
3048        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3049    ) -> DestinationConnector:
3050        """Get a destination connector
3051
3052
3053        :param organization: (required)
3054        :type organization: str
3055        :param destination_connector_id: (required)
3056        :type destination_connector_id: str
3057        :param _request_timeout: timeout setting for this request. If one
3058                                 number provided, it will be total request
3059                                 timeout. It can also be a pair (tuple) of
3060                                 (connection, read) timeouts.
3061        :type _request_timeout: int, tuple(int, int), optional
3062        :param _request_auth: set to override the auth_settings for an a single
3063                              request; this effectively ignores the
3064                              authentication in the spec for a single request.
3065        :type _request_auth: dict, optional
3066        :param _content_type: force content-type for the request.
3067        :type _content_type: str, Optional
3068        :param _headers: set to override the headers for a single
3069                         request; this effectively ignores the headers
3070                         in the spec for a single request.
3071        :type _headers: dict, optional
3072        :param _host_index: set to override the host_index for a single
3073                            request; this effectively ignores the host_index
3074                            in the spec for a single request.
3075        :type _host_index: int, optional
3076        :return: Returns the result object.
3077        """ # noqa: E501
3078
3079        _param = self._get_destination_connector_serialize(
3080            organization=organization,
3081            destination_connector_id=destination_connector_id,
3082            _request_auth=_request_auth,
3083            _content_type=_content_type,
3084            _headers=_headers,
3085            _host_index=_host_index
3086        )
3087
3088        _response_types_map: Dict[str, Optional[str]] = {
3089            '200': "DestinationConnector",
3090            '400': "GetPipelines400Response",
3091            '401': "GetPipelines400Response",
3092            '403': "GetPipelines400Response",
3093            '404': "GetPipelines400Response",
3094            '500': "GetPipelines400Response",
3095        }
3096        response_data = self.api_client.call_api(
3097            *_param,
3098            _request_timeout=_request_timeout
3099        )
3100        response_data.read()
3101        return self.api_client.response_deserialize(
3102            response_data=response_data,
3103            response_types_map=_response_types_map,
3104        ).data

Get a destination connector

Parameters
  • organization: (required)
  • destination_connector_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.

@validate_call
def get_destination_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], destination_connector_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[DestinationConnector]:
3107    @validate_call
3108    def get_destination_connector_with_http_info(
3109        self,
3110        organization: StrictStr,
3111        destination_connector_id: StrictStr,
3112        _request_timeout: Union[
3113            None,
3114            Annotated[StrictFloat, Field(gt=0)],
3115            Tuple[
3116                Annotated[StrictFloat, Field(gt=0)],
3117                Annotated[StrictFloat, Field(gt=0)]
3118            ]
3119        ] = None,
3120        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3121        _content_type: Optional[StrictStr] = None,
3122        _headers: Optional[Dict[StrictStr, Any]] = None,
3123        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3124    ) -> ApiResponse[DestinationConnector]:
3125        """Get a destination connector
3126
3127
3128        :param organization: (required)
3129        :type organization: str
3130        :param destination_connector_id: (required)
3131        :type destination_connector_id: str
3132        :param _request_timeout: timeout setting for this request. If one
3133                                 number provided, it will be total request
3134                                 timeout. It can also be a pair (tuple) of
3135                                 (connection, read) timeouts.
3136        :type _request_timeout: int, tuple(int, int), optional
3137        :param _request_auth: set to override the auth_settings for an a single
3138                              request; this effectively ignores the
3139                              authentication in the spec for a single request.
3140        :type _request_auth: dict, optional
3141        :param _content_type: force content-type for the request.
3142        :type _content_type: str, Optional
3143        :param _headers: set to override the headers for a single
3144                         request; this effectively ignores the headers
3145                         in the spec for a single request.
3146        :type _headers: dict, optional
3147        :param _host_index: set to override the host_index for a single
3148                            request; this effectively ignores the host_index
3149                            in the spec for a single request.
3150        :type _host_index: int, optional
3151        :return: Returns the result object.
3152        """ # noqa: E501
3153
3154        _param = self._get_destination_connector_serialize(
3155            organization=organization,
3156            destination_connector_id=destination_connector_id,
3157            _request_auth=_request_auth,
3158            _content_type=_content_type,
3159            _headers=_headers,
3160            _host_index=_host_index
3161        )
3162
3163        _response_types_map: Dict[str, Optional[str]] = {
3164            '200': "DestinationConnector",
3165            '400': "GetPipelines400Response",
3166            '401': "GetPipelines400Response",
3167            '403': "GetPipelines400Response",
3168            '404': "GetPipelines400Response",
3169            '500': "GetPipelines400Response",
3170        }
3171        response_data = self.api_client.call_api(
3172            *_param,
3173            _request_timeout=_request_timeout
3174        )
3175        response_data.read()
3176        return self.api_client.response_deserialize(
3177            response_data=response_data,
3178            response_types_map=_response_types_map,
3179        )

Get a destination connector

Parameters
  • organization: (required)
  • destination_connector_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.

@validate_call
def get_destination_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], destination_connector_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
3182    @validate_call
3183    def get_destination_connector_without_preload_content(
3184        self,
3185        organization: StrictStr,
3186        destination_connector_id: StrictStr,
3187        _request_timeout: Union[
3188            None,
3189            Annotated[StrictFloat, Field(gt=0)],
3190            Tuple[
3191                Annotated[StrictFloat, Field(gt=0)],
3192                Annotated[StrictFloat, Field(gt=0)]
3193            ]
3194        ] = None,
3195        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3196        _content_type: Optional[StrictStr] = None,
3197        _headers: Optional[Dict[StrictStr, Any]] = None,
3198        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3199    ) -> RESTResponseType:
3200        """Get a destination connector
3201
3202
3203        :param organization: (required)
3204        :type organization: str
3205        :param destination_connector_id: (required)
3206        :type destination_connector_id: str
3207        :param _request_timeout: timeout setting for this request. If one
3208                                 number provided, it will be total request
3209                                 timeout. It can also be a pair (tuple) of
3210                                 (connection, read) timeouts.
3211        :type _request_timeout: int, tuple(int, int), optional
3212        :param _request_auth: set to override the auth_settings for an a single
3213                              request; this effectively ignores the
3214                              authentication in the spec for a single request.
3215        :type _request_auth: dict, optional
3216        :param _content_type: force content-type for the request.
3217        :type _content_type: str, Optional
3218        :param _headers: set to override the headers for a single
3219                         request; this effectively ignores the headers
3220                         in the spec for a single request.
3221        :type _headers: dict, optional
3222        :param _host_index: set to override the host_index for a single
3223                            request; this effectively ignores the host_index
3224                            in the spec for a single request.
3225        :type _host_index: int, optional
3226        :return: Returns the result object.
3227        """ # noqa: E501
3228
3229        _param = self._get_destination_connector_serialize(
3230            organization=organization,
3231            destination_connector_id=destination_connector_id,
3232            _request_auth=_request_auth,
3233            _content_type=_content_type,
3234            _headers=_headers,
3235            _host_index=_host_index
3236        )
3237
3238        _response_types_map: Dict[str, Optional[str]] = {
3239            '200': "DestinationConnector",
3240            '400': "GetPipelines400Response",
3241            '401': "GetPipelines400Response",
3242            '403': "GetPipelines400Response",
3243            '404': "GetPipelines400Response",
3244            '500': "GetPipelines400Response",
3245        }
3246        response_data = self.api_client.call_api(
3247            *_param,
3248            _request_timeout=_request_timeout
3249        )
3250        return response_data.response

Get a destination connector

Parameters
  • organization: (required)
  • destination_connector_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.

@validate_call
def get_destination_connectors( self, organization: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.get_destination_connectors200_response.GetDestinationConnectors200Response:
3320    @validate_call
3321    def get_destination_connectors(
3322        self,
3323        organization: StrictStr,
3324        _request_timeout: Union[
3325            None,
3326            Annotated[StrictFloat, Field(gt=0)],
3327            Tuple[
3328                Annotated[StrictFloat, Field(gt=0)],
3329                Annotated[StrictFloat, Field(gt=0)]
3330            ]
3331        ] = None,
3332        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3333        _content_type: Optional[StrictStr] = None,
3334        _headers: Optional[Dict[StrictStr, Any]] = None,
3335        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3336    ) -> GetDestinationConnectors200Response:
3337        """Get all existing destination connectors
3338
3339
3340        :param organization: (required)
3341        :type organization: str
3342        :param _request_timeout: timeout setting for this request. If one
3343                                 number provided, it will be total request
3344                                 timeout. It can also be a pair (tuple) of
3345                                 (connection, read) timeouts.
3346        :type _request_timeout: int, tuple(int, int), optional
3347        :param _request_auth: set to override the auth_settings for an a single
3348                              request; this effectively ignores the
3349                              authentication in the spec for a single request.
3350        :type _request_auth: dict, optional
3351        :param _content_type: force content-type for the request.
3352        :type _content_type: str, Optional
3353        :param _headers: set to override the headers for a single
3354                         request; this effectively ignores the headers
3355                         in the spec for a single request.
3356        :type _headers: dict, optional
3357        :param _host_index: set to override the host_index for a single
3358                            request; this effectively ignores the host_index
3359                            in the spec for a single request.
3360        :type _host_index: int, optional
3361        :return: Returns the result object.
3362        """ # noqa: E501
3363
3364        _param = self._get_destination_connectors_serialize(
3365            organization=organization,
3366            _request_auth=_request_auth,
3367            _content_type=_content_type,
3368            _headers=_headers,
3369            _host_index=_host_index
3370        )
3371
3372        _response_types_map: Dict[str, Optional[str]] = {
3373            '200': "GetDestinationConnectors200Response",
3374            '400': "GetPipelines400Response",
3375            '401': "GetPipelines400Response",
3376            '403': "GetPipelines400Response",
3377            '404': "GetPipelines400Response",
3378            '500': "GetPipelines400Response",
3379        }
3380        response_data = self.api_client.call_api(
3381            *_param,
3382            _request_timeout=_request_timeout
3383        )
3384        response_data.read()
3385        return self.api_client.response_deserialize(
3386            response_data=response_data,
3387            response_types_map=_response_types_map,
3388        ).data

Get all existing destination connectors

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.

@validate_call
def get_destination_connectors_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[GetDestinationConnectors200Response]:
3391    @validate_call
3392    def get_destination_connectors_with_http_info(
3393        self,
3394        organization: StrictStr,
3395        _request_timeout: Union[
3396            None,
3397            Annotated[StrictFloat, Field(gt=0)],
3398            Tuple[
3399                Annotated[StrictFloat, Field(gt=0)],
3400                Annotated[StrictFloat, Field(gt=0)]
3401            ]
3402        ] = None,
3403        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3404        _content_type: Optional[StrictStr] = None,
3405        _headers: Optional[Dict[StrictStr, Any]] = None,
3406        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3407    ) -> ApiResponse[GetDestinationConnectors200Response]:
3408        """Get all existing destination connectors
3409
3410
3411        :param organization: (required)
3412        :type organization: str
3413        :param _request_timeout: timeout setting for this request. If one
3414                                 number provided, it will be total request
3415                                 timeout. It can also be a pair (tuple) of
3416                                 (connection, read) timeouts.
3417        :type _request_timeout: int, tuple(int, int), optional
3418        :param _request_auth: set to override the auth_settings for an a single
3419                              request; this effectively ignores the
3420                              authentication in the spec for a single request.
3421        :type _request_auth: dict, optional
3422        :param _content_type: force content-type for the request.
3423        :type _content_type: str, Optional
3424        :param _headers: set to override the headers for a single
3425                         request; this effectively ignores the headers
3426                         in the spec for a single request.
3427        :type _headers: dict, optional
3428        :param _host_index: set to override the host_index for a single
3429                            request; this effectively ignores the host_index
3430                            in the spec for a single request.
3431        :type _host_index: int, optional
3432        :return: Returns the result object.
3433        """ # noqa: E501
3434
3435        _param = self._get_destination_connectors_serialize(
3436            organization=organization,
3437            _request_auth=_request_auth,
3438            _content_type=_content_type,
3439            _headers=_headers,
3440            _host_index=_host_index
3441        )
3442
3443        _response_types_map: Dict[str, Optional[str]] = {
3444            '200': "GetDestinationConnectors200Response",
3445            '400': "GetPipelines400Response",
3446            '401': "GetPipelines400Response",
3447            '403': "GetPipelines400Response",
3448            '404': "GetPipelines400Response",
3449            '500': "GetPipelines400Response",
3450        }
3451        response_data = self.api_client.call_api(
3452            *_param,
3453            _request_timeout=_request_timeout
3454        )
3455        response_data.read()
3456        return self.api_client.response_deserialize(
3457            response_data=response_data,
3458            response_types_map=_response_types_map,
3459        )

Get all existing destination connectors

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.

@validate_call
def get_destination_connectors_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
3462    @validate_call
3463    def get_destination_connectors_without_preload_content(
3464        self,
3465        organization: StrictStr,
3466        _request_timeout: Union[
3467            None,
3468            Annotated[StrictFloat, Field(gt=0)],
3469            Tuple[
3470                Annotated[StrictFloat, Field(gt=0)],
3471                Annotated[StrictFloat, Field(gt=0)]
3472            ]
3473        ] = None,
3474        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3475        _content_type: Optional[StrictStr] = None,
3476        _headers: Optional[Dict[StrictStr, Any]] = None,
3477        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3478    ) -> RESTResponseType:
3479        """Get all existing destination connectors
3480
3481
3482        :param organization: (required)
3483        :type organization: str
3484        :param _request_timeout: timeout setting for this request. If one
3485                                 number provided, it will be total request
3486                                 timeout. It can also be a pair (tuple) of
3487                                 (connection, read) timeouts.
3488        :type _request_timeout: int, tuple(int, int), optional
3489        :param _request_auth: set to override the auth_settings for an a single
3490                              request; this effectively ignores the
3491                              authentication in the spec for a single request.
3492        :type _request_auth: dict, optional
3493        :param _content_type: force content-type for the request.
3494        :type _content_type: str, Optional
3495        :param _headers: set to override the headers for a single
3496                         request; this effectively ignores the headers
3497                         in the spec for a single request.
3498        :type _headers: dict, optional
3499        :param _host_index: set to override the host_index for a single
3500                            request; this effectively ignores the host_index
3501                            in the spec for a single request.
3502        :type _host_index: int, optional
3503        :return: Returns the result object.
3504        """ # noqa: E501
3505
3506        _param = self._get_destination_connectors_serialize(
3507            organization=organization,
3508            _request_auth=_request_auth,
3509            _content_type=_content_type,
3510            _headers=_headers,
3511            _host_index=_host_index
3512        )
3513
3514        _response_types_map: Dict[str, Optional[str]] = {
3515            '200': "GetDestinationConnectors200Response",
3516            '400': "GetPipelines400Response",
3517            '401': "GetPipelines400Response",
3518            '403': "GetPipelines400Response",
3519            '404': "GetPipelines400Response",
3520            '500': "GetPipelines400Response",
3521        }
3522        response_data = self.api_client.call_api(
3523            *_param,
3524            _request_timeout=_request_timeout
3525        )
3526        return response_data.response

Get all existing destination connectors

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.

@validate_call
def get_source_connector( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.source_connector.SourceConnector:
3593    @validate_call
3594    def get_source_connector(
3595        self,
3596        organization: StrictStr,
3597        source_connector_id: StrictStr,
3598        _request_timeout: Union[
3599            None,
3600            Annotated[StrictFloat, Field(gt=0)],
3601            Tuple[
3602                Annotated[StrictFloat, Field(gt=0)],
3603                Annotated[StrictFloat, Field(gt=0)]
3604            ]
3605        ] = None,
3606        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3607        _content_type: Optional[StrictStr] = None,
3608        _headers: Optional[Dict[StrictStr, Any]] = None,
3609        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3610    ) -> SourceConnector:
3611        """Get a source connector
3612
3613
3614        :param organization: (required)
3615        :type organization: str
3616        :param source_connector_id: (required)
3617        :type source_connector_id: str
3618        :param _request_timeout: timeout setting for this request. If one
3619                                 number provided, it will be total request
3620                                 timeout. It can also be a pair (tuple) of
3621                                 (connection, read) timeouts.
3622        :type _request_timeout: int, tuple(int, int), optional
3623        :param _request_auth: set to override the auth_settings for an a single
3624                              request; this effectively ignores the
3625                              authentication in the spec for a single request.
3626        :type _request_auth: dict, optional
3627        :param _content_type: force content-type for the request.
3628        :type _content_type: str, Optional
3629        :param _headers: set to override the headers for a single
3630                         request; this effectively ignores the headers
3631                         in the spec for a single request.
3632        :type _headers: dict, optional
3633        :param _host_index: set to override the host_index for a single
3634                            request; this effectively ignores the host_index
3635                            in the spec for a single request.
3636        :type _host_index: int, optional
3637        :return: Returns the result object.
3638        """ # noqa: E501
3639
3640        _param = self._get_source_connector_serialize(
3641            organization=organization,
3642            source_connector_id=source_connector_id,
3643            _request_auth=_request_auth,
3644            _content_type=_content_type,
3645            _headers=_headers,
3646            _host_index=_host_index
3647        )
3648
3649        _response_types_map: Dict[str, Optional[str]] = {
3650            '200': "SourceConnector",
3651            '400': "GetPipelines400Response",
3652            '401': "GetPipelines400Response",
3653            '403': "GetPipelines400Response",
3654            '404': "GetPipelines400Response",
3655            '500': "GetPipelines400Response",
3656        }
3657        response_data = self.api_client.call_api(
3658            *_param,
3659            _request_timeout=_request_timeout
3660        )
3661        response_data.read()
3662        return self.api_client.response_deserialize(
3663            response_data=response_data,
3664            response_types_map=_response_types_map,
3665        ).data

Get a source connector

Parameters
  • organization: (required)
  • source_connector_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.

@validate_call
def get_source_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[SourceConnector]:
3668    @validate_call
3669    def get_source_connector_with_http_info(
3670        self,
3671        organization: StrictStr,
3672        source_connector_id: StrictStr,
3673        _request_timeout: Union[
3674            None,
3675            Annotated[StrictFloat, Field(gt=0)],
3676            Tuple[
3677                Annotated[StrictFloat, Field(gt=0)],
3678                Annotated[StrictFloat, Field(gt=0)]
3679            ]
3680        ] = None,
3681        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3682        _content_type: Optional[StrictStr] = None,
3683        _headers: Optional[Dict[StrictStr, Any]] = None,
3684        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3685    ) -> ApiResponse[SourceConnector]:
3686        """Get a source connector
3687
3688
3689        :param organization: (required)
3690        :type organization: str
3691        :param source_connector_id: (required)
3692        :type source_connector_id: str
3693        :param _request_timeout: timeout setting for this request. If one
3694                                 number provided, it will be total request
3695                                 timeout. It can also be a pair (tuple) of
3696                                 (connection, read) timeouts.
3697        :type _request_timeout: int, tuple(int, int), optional
3698        :param _request_auth: set to override the auth_settings for an a single
3699                              request; this effectively ignores the
3700                              authentication in the spec for a single request.
3701        :type _request_auth: dict, optional
3702        :param _content_type: force content-type for the request.
3703        :type _content_type: str, Optional
3704        :param _headers: set to override the headers for a single
3705                         request; this effectively ignores the headers
3706                         in the spec for a single request.
3707        :type _headers: dict, optional
3708        :param _host_index: set to override the host_index for a single
3709                            request; this effectively ignores the host_index
3710                            in the spec for a single request.
3711        :type _host_index: int, optional
3712        :return: Returns the result object.
3713        """ # noqa: E501
3714
3715        _param = self._get_source_connector_serialize(
3716            organization=organization,
3717            source_connector_id=source_connector_id,
3718            _request_auth=_request_auth,
3719            _content_type=_content_type,
3720            _headers=_headers,
3721            _host_index=_host_index
3722        )
3723
3724        _response_types_map: Dict[str, Optional[str]] = {
3725            '200': "SourceConnector",
3726            '400': "GetPipelines400Response",
3727            '401': "GetPipelines400Response",
3728            '403': "GetPipelines400Response",
3729            '404': "GetPipelines400Response",
3730            '500': "GetPipelines400Response",
3731        }
3732        response_data = self.api_client.call_api(
3733            *_param,
3734            _request_timeout=_request_timeout
3735        )
3736        response_data.read()
3737        return self.api_client.response_deserialize(
3738            response_data=response_data,
3739            response_types_map=_response_types_map,
3740        )

Get a source connector

Parameters
  • organization: (required)
  • source_connector_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.

@validate_call
def get_source_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
3743    @validate_call
3744    def get_source_connector_without_preload_content(
3745        self,
3746        organization: StrictStr,
3747        source_connector_id: StrictStr,
3748        _request_timeout: Union[
3749            None,
3750            Annotated[StrictFloat, Field(gt=0)],
3751            Tuple[
3752                Annotated[StrictFloat, Field(gt=0)],
3753                Annotated[StrictFloat, Field(gt=0)]
3754            ]
3755        ] = None,
3756        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3757        _content_type: Optional[StrictStr] = None,
3758        _headers: Optional[Dict[StrictStr, Any]] = None,
3759        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3760    ) -> RESTResponseType:
3761        """Get a source connector
3762
3763
3764        :param organization: (required)
3765        :type organization: str
3766        :param source_connector_id: (required)
3767        :type source_connector_id: str
3768        :param _request_timeout: timeout setting for this request. If one
3769                                 number provided, it will be total request
3770                                 timeout. It can also be a pair (tuple) of
3771                                 (connection, read) timeouts.
3772        :type _request_timeout: int, tuple(int, int), optional
3773        :param _request_auth: set to override the auth_settings for an a single
3774                              request; this effectively ignores the
3775                              authentication in the spec for a single request.
3776        :type _request_auth: dict, optional
3777        :param _content_type: force content-type for the request.
3778        :type _content_type: str, Optional
3779        :param _headers: set to override the headers for a single
3780                         request; this effectively ignores the headers
3781                         in the spec for a single request.
3782        :type _headers: dict, optional
3783        :param _host_index: set to override the host_index for a single
3784                            request; this effectively ignores the host_index
3785                            in the spec for a single request.
3786        :type _host_index: int, optional
3787        :return: Returns the result object.
3788        """ # noqa: E501
3789
3790        _param = self._get_source_connector_serialize(
3791            organization=organization,
3792            source_connector_id=source_connector_id,
3793            _request_auth=_request_auth,
3794            _content_type=_content_type,
3795            _headers=_headers,
3796            _host_index=_host_index
3797        )
3798
3799        _response_types_map: Dict[str, Optional[str]] = {
3800            '200': "SourceConnector",
3801            '400': "GetPipelines400Response",
3802            '401': "GetPipelines400Response",
3803            '403': "GetPipelines400Response",
3804            '404': "GetPipelines400Response",
3805            '500': "GetPipelines400Response",
3806        }
3807        response_data = self.api_client.call_api(
3808            *_param,
3809            _request_timeout=_request_timeout
3810        )
3811        return response_data.response

Get a source connector

Parameters
  • organization: (required)
  • source_connector_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.

@validate_call
def get_source_connectors( self, organization: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.get_source_connectors200_response.GetSourceConnectors200Response:
3881    @validate_call
3882    def get_source_connectors(
3883        self,
3884        organization: StrictStr,
3885        _request_timeout: Union[
3886            None,
3887            Annotated[StrictFloat, Field(gt=0)],
3888            Tuple[
3889                Annotated[StrictFloat, Field(gt=0)],
3890                Annotated[StrictFloat, Field(gt=0)]
3891            ]
3892        ] = None,
3893        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3894        _content_type: Optional[StrictStr] = None,
3895        _headers: Optional[Dict[StrictStr, Any]] = None,
3896        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3897    ) -> GetSourceConnectors200Response:
3898        """Get all existing source connectors
3899
3900
3901        :param organization: (required)
3902        :type organization: str
3903        :param _request_timeout: timeout setting for this request. If one
3904                                 number provided, it will be total request
3905                                 timeout. It can also be a pair (tuple) of
3906                                 (connection, read) timeouts.
3907        :type _request_timeout: int, tuple(int, int), optional
3908        :param _request_auth: set to override the auth_settings for an a single
3909                              request; this effectively ignores the
3910                              authentication in the spec for a single request.
3911        :type _request_auth: dict, optional
3912        :param _content_type: force content-type for the request.
3913        :type _content_type: str, Optional
3914        :param _headers: set to override the headers for a single
3915                         request; this effectively ignores the headers
3916                         in the spec for a single request.
3917        :type _headers: dict, optional
3918        :param _host_index: set to override the host_index for a single
3919                            request; this effectively ignores the host_index
3920                            in the spec for a single request.
3921        :type _host_index: int, optional
3922        :return: Returns the result object.
3923        """ # noqa: E501
3924
3925        _param = self._get_source_connectors_serialize(
3926            organization=organization,
3927            _request_auth=_request_auth,
3928            _content_type=_content_type,
3929            _headers=_headers,
3930            _host_index=_host_index
3931        )
3932
3933        _response_types_map: Dict[str, Optional[str]] = {
3934            '200': "GetSourceConnectors200Response",
3935            '400': "GetPipelines400Response",
3936            '401': "GetPipelines400Response",
3937            '403': "GetPipelines400Response",
3938            '404': "GetPipelines400Response",
3939            '500': "GetPipelines400Response",
3940        }
3941        response_data = self.api_client.call_api(
3942            *_param,
3943            _request_timeout=_request_timeout
3944        )
3945        response_data.read()
3946        return self.api_client.response_deserialize(
3947            response_data=response_data,
3948            response_types_map=_response_types_map,
3949        ).data

Get all existing source connectors

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.

@validate_call
def get_source_connectors_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[GetSourceConnectors200Response]:
3952    @validate_call
3953    def get_source_connectors_with_http_info(
3954        self,
3955        organization: StrictStr,
3956        _request_timeout: Union[
3957            None,
3958            Annotated[StrictFloat, Field(gt=0)],
3959            Tuple[
3960                Annotated[StrictFloat, Field(gt=0)],
3961                Annotated[StrictFloat, Field(gt=0)]
3962            ]
3963        ] = None,
3964        _request_auth: Optional[Dict[StrictStr, Any]] = None,
3965        _content_type: Optional[StrictStr] = None,
3966        _headers: Optional[Dict[StrictStr, Any]] = None,
3967        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3968    ) -> ApiResponse[GetSourceConnectors200Response]:
3969        """Get all existing source connectors
3970
3971
3972        :param organization: (required)
3973        :type organization: str
3974        :param _request_timeout: timeout setting for this request. If one
3975                                 number provided, it will be total request
3976                                 timeout. It can also be a pair (tuple) of
3977                                 (connection, read) timeouts.
3978        :type _request_timeout: int, tuple(int, int), optional
3979        :param _request_auth: set to override the auth_settings for an a single
3980                              request; this effectively ignores the
3981                              authentication in the spec for a single request.
3982        :type _request_auth: dict, optional
3983        :param _content_type: force content-type for the request.
3984        :type _content_type: str, Optional
3985        :param _headers: set to override the headers for a single
3986                         request; this effectively ignores the headers
3987                         in the spec for a single request.
3988        :type _headers: dict, optional
3989        :param _host_index: set to override the host_index for a single
3990                            request; this effectively ignores the host_index
3991                            in the spec for a single request.
3992        :type _host_index: int, optional
3993        :return: Returns the result object.
3994        """ # noqa: E501
3995
3996        _param = self._get_source_connectors_serialize(
3997            organization=organization,
3998            _request_auth=_request_auth,
3999            _content_type=_content_type,
4000            _headers=_headers,
4001            _host_index=_host_index
4002        )
4003
4004        _response_types_map: Dict[str, Optional[str]] = {
4005            '200': "GetSourceConnectors200Response",
4006            '400': "GetPipelines400Response",
4007            '401': "GetPipelines400Response",
4008            '403': "GetPipelines400Response",
4009            '404': "GetPipelines400Response",
4010            '500': "GetPipelines400Response",
4011        }
4012        response_data = self.api_client.call_api(
4013            *_param,
4014            _request_timeout=_request_timeout
4015        )
4016        response_data.read()
4017        return self.api_client.response_deserialize(
4018            response_data=response_data,
4019            response_types_map=_response_types_map,
4020        )

Get all existing source connectors

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.

@validate_call
def get_source_connectors_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
4023    @validate_call
4024    def get_source_connectors_without_preload_content(
4025        self,
4026        organization: StrictStr,
4027        _request_timeout: Union[
4028            None,
4029            Annotated[StrictFloat, Field(gt=0)],
4030            Tuple[
4031                Annotated[StrictFloat, Field(gt=0)],
4032                Annotated[StrictFloat, Field(gt=0)]
4033            ]
4034        ] = None,
4035        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4036        _content_type: Optional[StrictStr] = None,
4037        _headers: Optional[Dict[StrictStr, Any]] = None,
4038        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4039    ) -> RESTResponseType:
4040        """Get all existing source connectors
4041
4042
4043        :param organization: (required)
4044        :type organization: str
4045        :param _request_timeout: timeout setting for this request. If one
4046                                 number provided, it will be total request
4047                                 timeout. It can also be a pair (tuple) of
4048                                 (connection, read) timeouts.
4049        :type _request_timeout: int, tuple(int, int), optional
4050        :param _request_auth: set to override the auth_settings for an a single
4051                              request; this effectively ignores the
4052                              authentication in the spec for a single request.
4053        :type _request_auth: dict, optional
4054        :param _content_type: force content-type for the request.
4055        :type _content_type: str, Optional
4056        :param _headers: set to override the headers for a single
4057                         request; this effectively ignores the headers
4058                         in the spec for a single request.
4059        :type _headers: dict, optional
4060        :param _host_index: set to override the host_index for a single
4061                            request; this effectively ignores the host_index
4062                            in the spec for a single request.
4063        :type _host_index: int, optional
4064        :return: Returns the result object.
4065        """ # noqa: E501
4066
4067        _param = self._get_source_connectors_serialize(
4068            organization=organization,
4069            _request_auth=_request_auth,
4070            _content_type=_content_type,
4071            _headers=_headers,
4072            _host_index=_host_index
4073        )
4074
4075        _response_types_map: Dict[str, Optional[str]] = {
4076            '200': "GetSourceConnectors200Response",
4077            '400': "GetPipelines400Response",
4078            '401': "GetPipelines400Response",
4079            '403': "GetPipelines400Response",
4080            '404': "GetPipelines400Response",
4081            '500': "GetPipelines400Response",
4082        }
4083        response_data = self.api_client.call_api(
4084            *_param,
4085            _request_timeout=_request_timeout
4086        )
4087        return response_data.response

Get all existing source connectors

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.

@validate_call
def update_ai_platform_connector( self, organization: typing.Annotated[str, Strict(strict=True)], aiplatform_id: typing.Annotated[str, Strict(strict=True)], update_ai_platform_connector_request: vectorize_client.models.update_ai_platform_connector_request.UpdateAIPlatformConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.update_ai_platform_connector_response.UpdateAIPlatformConnectorResponse:
4154    @validate_call
4155    def update_ai_platform_connector(
4156        self,
4157        organization: StrictStr,
4158        aiplatform_id: StrictStr,
4159        update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest,
4160        _request_timeout: Union[
4161            None,
4162            Annotated[StrictFloat, Field(gt=0)],
4163            Tuple[
4164                Annotated[StrictFloat, Field(gt=0)],
4165                Annotated[StrictFloat, Field(gt=0)]
4166            ]
4167        ] = None,
4168        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4169        _content_type: Optional[StrictStr] = None,
4170        _headers: Optional[Dict[StrictStr, Any]] = None,
4171        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4172    ) -> UpdateAIPlatformConnectorResponse:
4173        """Update an AI Platform connector
4174
4175
4176        :param organization: (required)
4177        :type organization: str
4178        :param aiplatform_id: (required)
4179        :type aiplatform_id: str
4180        :param update_ai_platform_connector_request: (required)
4181        :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest
4182        :param _request_timeout: timeout setting for this request. If one
4183                                 number provided, it will be total request
4184                                 timeout. It can also be a pair (tuple) of
4185                                 (connection, read) timeouts.
4186        :type _request_timeout: int, tuple(int, int), optional
4187        :param _request_auth: set to override the auth_settings for an a single
4188                              request; this effectively ignores the
4189                              authentication in the spec for a single request.
4190        :type _request_auth: dict, optional
4191        :param _content_type: force content-type for the request.
4192        :type _content_type: str, Optional
4193        :param _headers: set to override the headers for a single
4194                         request; this effectively ignores the headers
4195                         in the spec for a single request.
4196        :type _headers: dict, optional
4197        :param _host_index: set to override the host_index for a single
4198                            request; this effectively ignores the host_index
4199                            in the spec for a single request.
4200        :type _host_index: int, optional
4201        :return: Returns the result object.
4202        """ # noqa: E501
4203
4204        _param = self._update_ai_platform_connector_serialize(
4205            organization=organization,
4206            aiplatform_id=aiplatform_id,
4207            update_ai_platform_connector_request=update_ai_platform_connector_request,
4208            _request_auth=_request_auth,
4209            _content_type=_content_type,
4210            _headers=_headers,
4211            _host_index=_host_index
4212        )
4213
4214        _response_types_map: Dict[str, Optional[str]] = {
4215            '200': "UpdateAIPlatformConnectorResponse",
4216            '400': "GetPipelines400Response",
4217            '401': "GetPipelines400Response",
4218            '403': "GetPipelines400Response",
4219            '404': "GetPipelines400Response",
4220            '500': "GetPipelines400Response",
4221        }
4222        response_data = self.api_client.call_api(
4223            *_param,
4224            _request_timeout=_request_timeout
4225        )
4226        response_data.read()
4227        return self.api_client.response_deserialize(
4228            response_data=response_data,
4229            response_types_map=_response_types_map,
4230        ).data

Update an AI Platform connector

Parameters
  • organization: (required)
  • aiplatform_id: (required)
  • update_ai_platform_connector_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.

@validate_call
def update_ai_platform_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], aiplatform_id: typing.Annotated[str, Strict(strict=True)], update_ai_platform_connector_request: vectorize_client.models.update_ai_platform_connector_request.UpdateAIPlatformConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[UpdateAIPlatformConnectorResponse]:
4233    @validate_call
4234    def update_ai_platform_connector_with_http_info(
4235        self,
4236        organization: StrictStr,
4237        aiplatform_id: StrictStr,
4238        update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest,
4239        _request_timeout: Union[
4240            None,
4241            Annotated[StrictFloat, Field(gt=0)],
4242            Tuple[
4243                Annotated[StrictFloat, Field(gt=0)],
4244                Annotated[StrictFloat, Field(gt=0)]
4245            ]
4246        ] = None,
4247        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4248        _content_type: Optional[StrictStr] = None,
4249        _headers: Optional[Dict[StrictStr, Any]] = None,
4250        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4251    ) -> ApiResponse[UpdateAIPlatformConnectorResponse]:
4252        """Update an AI Platform connector
4253
4254
4255        :param organization: (required)
4256        :type organization: str
4257        :param aiplatform_id: (required)
4258        :type aiplatform_id: str
4259        :param update_ai_platform_connector_request: (required)
4260        :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest
4261        :param _request_timeout: timeout setting for this request. If one
4262                                 number provided, it will be total request
4263                                 timeout. It can also be a pair (tuple) of
4264                                 (connection, read) timeouts.
4265        :type _request_timeout: int, tuple(int, int), optional
4266        :param _request_auth: set to override the auth_settings for an a single
4267                              request; this effectively ignores the
4268                              authentication in the spec for a single request.
4269        :type _request_auth: dict, optional
4270        :param _content_type: force content-type for the request.
4271        :type _content_type: str, Optional
4272        :param _headers: set to override the headers for a single
4273                         request; this effectively ignores the headers
4274                         in the spec for a single request.
4275        :type _headers: dict, optional
4276        :param _host_index: set to override the host_index for a single
4277                            request; this effectively ignores the host_index
4278                            in the spec for a single request.
4279        :type _host_index: int, optional
4280        :return: Returns the result object.
4281        """ # noqa: E501
4282
4283        _param = self._update_ai_platform_connector_serialize(
4284            organization=organization,
4285            aiplatform_id=aiplatform_id,
4286            update_ai_platform_connector_request=update_ai_platform_connector_request,
4287            _request_auth=_request_auth,
4288            _content_type=_content_type,
4289            _headers=_headers,
4290            _host_index=_host_index
4291        )
4292
4293        _response_types_map: Dict[str, Optional[str]] = {
4294            '200': "UpdateAIPlatformConnectorResponse",
4295            '400': "GetPipelines400Response",
4296            '401': "GetPipelines400Response",
4297            '403': "GetPipelines400Response",
4298            '404': "GetPipelines400Response",
4299            '500': "GetPipelines400Response",
4300        }
4301        response_data = self.api_client.call_api(
4302            *_param,
4303            _request_timeout=_request_timeout
4304        )
4305        response_data.read()
4306        return self.api_client.response_deserialize(
4307            response_data=response_data,
4308            response_types_map=_response_types_map,
4309        )

Update an AI Platform connector

Parameters
  • organization: (required)
  • aiplatform_id: (required)
  • update_ai_platform_connector_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.

@validate_call
def update_ai_platform_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], aiplatform_id: typing.Annotated[str, Strict(strict=True)], update_ai_platform_connector_request: vectorize_client.models.update_ai_platform_connector_request.UpdateAIPlatformConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
4312    @validate_call
4313    def update_ai_platform_connector_without_preload_content(
4314        self,
4315        organization: StrictStr,
4316        aiplatform_id: StrictStr,
4317        update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest,
4318        _request_timeout: Union[
4319            None,
4320            Annotated[StrictFloat, Field(gt=0)],
4321            Tuple[
4322                Annotated[StrictFloat, Field(gt=0)],
4323                Annotated[StrictFloat, Field(gt=0)]
4324            ]
4325        ] = None,
4326        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4327        _content_type: Optional[StrictStr] = None,
4328        _headers: Optional[Dict[StrictStr, Any]] = None,
4329        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4330    ) -> RESTResponseType:
4331        """Update an AI Platform connector
4332
4333
4334        :param organization: (required)
4335        :type organization: str
4336        :param aiplatform_id: (required)
4337        :type aiplatform_id: str
4338        :param update_ai_platform_connector_request: (required)
4339        :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest
4340        :param _request_timeout: timeout setting for this request. If one
4341                                 number provided, it will be total request
4342                                 timeout. It can also be a pair (tuple) of
4343                                 (connection, read) timeouts.
4344        :type _request_timeout: int, tuple(int, int), optional
4345        :param _request_auth: set to override the auth_settings for an a single
4346                              request; this effectively ignores the
4347                              authentication in the spec for a single request.
4348        :type _request_auth: dict, optional
4349        :param _content_type: force content-type for the request.
4350        :type _content_type: str, Optional
4351        :param _headers: set to override the headers for a single
4352                         request; this effectively ignores the headers
4353                         in the spec for a single request.
4354        :type _headers: dict, optional
4355        :param _host_index: set to override the host_index for a single
4356                            request; this effectively ignores the host_index
4357                            in the spec for a single request.
4358        :type _host_index: int, optional
4359        :return: Returns the result object.
4360        """ # noqa: E501
4361
4362        _param = self._update_ai_platform_connector_serialize(
4363            organization=organization,
4364            aiplatform_id=aiplatform_id,
4365            update_ai_platform_connector_request=update_ai_platform_connector_request,
4366            _request_auth=_request_auth,
4367            _content_type=_content_type,
4368            _headers=_headers,
4369            _host_index=_host_index
4370        )
4371
4372        _response_types_map: Dict[str, Optional[str]] = {
4373            '200': "UpdateAIPlatformConnectorResponse",
4374            '400': "GetPipelines400Response",
4375            '401': "GetPipelines400Response",
4376            '403': "GetPipelines400Response",
4377            '404': "GetPipelines400Response",
4378            '500': "GetPipelines400Response",
4379        }
4380        response_data = self.api_client.call_api(
4381            *_param,
4382            _request_timeout=_request_timeout
4383        )
4384        return response_data.response

Update an AI Platform connector

Parameters
  • organization: (required)
  • aiplatform_id: (required)
  • update_ai_platform_connector_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.

@validate_call
def update_destination_connector( self, organization: typing.Annotated[str, Strict(strict=True)], destination_connector_id: typing.Annotated[str, Strict(strict=True)], update_destination_connector_request: vectorize_client.models.update_destination_connector_request.UpdateDestinationConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.update_destination_connector_response.UpdateDestinationConnectorResponse:
4470    @validate_call
4471    def update_destination_connector(
4472        self,
4473        organization: StrictStr,
4474        destination_connector_id: StrictStr,
4475        update_destination_connector_request: UpdateDestinationConnectorRequest,
4476        _request_timeout: Union[
4477            None,
4478            Annotated[StrictFloat, Field(gt=0)],
4479            Tuple[
4480                Annotated[StrictFloat, Field(gt=0)],
4481                Annotated[StrictFloat, Field(gt=0)]
4482            ]
4483        ] = None,
4484        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4485        _content_type: Optional[StrictStr] = None,
4486        _headers: Optional[Dict[StrictStr, Any]] = None,
4487        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4488    ) -> UpdateDestinationConnectorResponse:
4489        """Update a destination connector
4490
4491
4492        :param organization: (required)
4493        :type organization: str
4494        :param destination_connector_id: (required)
4495        :type destination_connector_id: str
4496        :param update_destination_connector_request: (required)
4497        :type update_destination_connector_request: UpdateDestinationConnectorRequest
4498        :param _request_timeout: timeout setting for this request. If one
4499                                 number provided, it will be total request
4500                                 timeout. It can also be a pair (tuple) of
4501                                 (connection, read) timeouts.
4502        :type _request_timeout: int, tuple(int, int), optional
4503        :param _request_auth: set to override the auth_settings for an a single
4504                              request; this effectively ignores the
4505                              authentication in the spec for a single request.
4506        :type _request_auth: dict, optional
4507        :param _content_type: force content-type for the request.
4508        :type _content_type: str, Optional
4509        :param _headers: set to override the headers for a single
4510                         request; this effectively ignores the headers
4511                         in the spec for a single request.
4512        :type _headers: dict, optional
4513        :param _host_index: set to override the host_index for a single
4514                            request; this effectively ignores the host_index
4515                            in the spec for a single request.
4516        :type _host_index: int, optional
4517        :return: Returns the result object.
4518        """ # noqa: E501
4519
4520        _param = self._update_destination_connector_serialize(
4521            organization=organization,
4522            destination_connector_id=destination_connector_id,
4523            update_destination_connector_request=update_destination_connector_request,
4524            _request_auth=_request_auth,
4525            _content_type=_content_type,
4526            _headers=_headers,
4527            _host_index=_host_index
4528        )
4529
4530        _response_types_map: Dict[str, Optional[str]] = {
4531            '200': "UpdateDestinationConnectorResponse",
4532            '400': "GetPipelines400Response",
4533            '401': "GetPipelines400Response",
4534            '403': "GetPipelines400Response",
4535            '404': "GetPipelines400Response",
4536            '500': "GetPipelines400Response",
4537        }
4538        response_data = self.api_client.call_api(
4539            *_param,
4540            _request_timeout=_request_timeout
4541        )
4542        response_data.read()
4543        return self.api_client.response_deserialize(
4544            response_data=response_data,
4545            response_types_map=_response_types_map,
4546        ).data

Update a destination connector

Parameters
  • organization: (required)
  • destination_connector_id: (required)
  • update_destination_connector_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.

@validate_call
def update_destination_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], destination_connector_id: typing.Annotated[str, Strict(strict=True)], update_destination_connector_request: vectorize_client.models.update_destination_connector_request.UpdateDestinationConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[UpdateDestinationConnectorResponse]:
4549    @validate_call
4550    def update_destination_connector_with_http_info(
4551        self,
4552        organization: StrictStr,
4553        destination_connector_id: StrictStr,
4554        update_destination_connector_request: UpdateDestinationConnectorRequest,
4555        _request_timeout: Union[
4556            None,
4557            Annotated[StrictFloat, Field(gt=0)],
4558            Tuple[
4559                Annotated[StrictFloat, Field(gt=0)],
4560                Annotated[StrictFloat, Field(gt=0)]
4561            ]
4562        ] = None,
4563        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4564        _content_type: Optional[StrictStr] = None,
4565        _headers: Optional[Dict[StrictStr, Any]] = None,
4566        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4567    ) -> ApiResponse[UpdateDestinationConnectorResponse]:
4568        """Update a destination connector
4569
4570
4571        :param organization: (required)
4572        :type organization: str
4573        :param destination_connector_id: (required)
4574        :type destination_connector_id: str
4575        :param update_destination_connector_request: (required)
4576        :type update_destination_connector_request: UpdateDestinationConnectorRequest
4577        :param _request_timeout: timeout setting for this request. If one
4578                                 number provided, it will be total request
4579                                 timeout. It can also be a pair (tuple) of
4580                                 (connection, read) timeouts.
4581        :type _request_timeout: int, tuple(int, int), optional
4582        :param _request_auth: set to override the auth_settings for an a single
4583                              request; this effectively ignores the
4584                              authentication in the spec for a single request.
4585        :type _request_auth: dict, optional
4586        :param _content_type: force content-type for the request.
4587        :type _content_type: str, Optional
4588        :param _headers: set to override the headers for a single
4589                         request; this effectively ignores the headers
4590                         in the spec for a single request.
4591        :type _headers: dict, optional
4592        :param _host_index: set to override the host_index for a single
4593                            request; this effectively ignores the host_index
4594                            in the spec for a single request.
4595        :type _host_index: int, optional
4596        :return: Returns the result object.
4597        """ # noqa: E501
4598
4599        _param = self._update_destination_connector_serialize(
4600            organization=organization,
4601            destination_connector_id=destination_connector_id,
4602            update_destination_connector_request=update_destination_connector_request,
4603            _request_auth=_request_auth,
4604            _content_type=_content_type,
4605            _headers=_headers,
4606            _host_index=_host_index
4607        )
4608
4609        _response_types_map: Dict[str, Optional[str]] = {
4610            '200': "UpdateDestinationConnectorResponse",
4611            '400': "GetPipelines400Response",
4612            '401': "GetPipelines400Response",
4613            '403': "GetPipelines400Response",
4614            '404': "GetPipelines400Response",
4615            '500': "GetPipelines400Response",
4616        }
4617        response_data = self.api_client.call_api(
4618            *_param,
4619            _request_timeout=_request_timeout
4620        )
4621        response_data.read()
4622        return self.api_client.response_deserialize(
4623            response_data=response_data,
4624            response_types_map=_response_types_map,
4625        )

Update a destination connector

Parameters
  • organization: (required)
  • destination_connector_id: (required)
  • update_destination_connector_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.

@validate_call
def update_destination_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], destination_connector_id: typing.Annotated[str, Strict(strict=True)], update_destination_connector_request: vectorize_client.models.update_destination_connector_request.UpdateDestinationConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
4628    @validate_call
4629    def update_destination_connector_without_preload_content(
4630        self,
4631        organization: StrictStr,
4632        destination_connector_id: StrictStr,
4633        update_destination_connector_request: UpdateDestinationConnectorRequest,
4634        _request_timeout: Union[
4635            None,
4636            Annotated[StrictFloat, Field(gt=0)],
4637            Tuple[
4638                Annotated[StrictFloat, Field(gt=0)],
4639                Annotated[StrictFloat, Field(gt=0)]
4640            ]
4641        ] = None,
4642        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4643        _content_type: Optional[StrictStr] = None,
4644        _headers: Optional[Dict[StrictStr, Any]] = None,
4645        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4646    ) -> RESTResponseType:
4647        """Update a destination connector
4648
4649
4650        :param organization: (required)
4651        :type organization: str
4652        :param destination_connector_id: (required)
4653        :type destination_connector_id: str
4654        :param update_destination_connector_request: (required)
4655        :type update_destination_connector_request: UpdateDestinationConnectorRequest
4656        :param _request_timeout: timeout setting for this request. If one
4657                                 number provided, it will be total request
4658                                 timeout. It can also be a pair (tuple) of
4659                                 (connection, read) timeouts.
4660        :type _request_timeout: int, tuple(int, int), optional
4661        :param _request_auth: set to override the auth_settings for an a single
4662                              request; this effectively ignores the
4663                              authentication in the spec for a single request.
4664        :type _request_auth: dict, optional
4665        :param _content_type: force content-type for the request.
4666        :type _content_type: str, Optional
4667        :param _headers: set to override the headers for a single
4668                         request; this effectively ignores the headers
4669                         in the spec for a single request.
4670        :type _headers: dict, optional
4671        :param _host_index: set to override the host_index for a single
4672                            request; this effectively ignores the host_index
4673                            in the spec for a single request.
4674        :type _host_index: int, optional
4675        :return: Returns the result object.
4676        """ # noqa: E501
4677
4678        _param = self._update_destination_connector_serialize(
4679            organization=organization,
4680            destination_connector_id=destination_connector_id,
4681            update_destination_connector_request=update_destination_connector_request,
4682            _request_auth=_request_auth,
4683            _content_type=_content_type,
4684            _headers=_headers,
4685            _host_index=_host_index
4686        )
4687
4688        _response_types_map: Dict[str, Optional[str]] = {
4689            '200': "UpdateDestinationConnectorResponse",
4690            '400': "GetPipelines400Response",
4691            '401': "GetPipelines400Response",
4692            '403': "GetPipelines400Response",
4693            '404': "GetPipelines400Response",
4694            '500': "GetPipelines400Response",
4695        }
4696        response_data = self.api_client.call_api(
4697            *_param,
4698            _request_timeout=_request_timeout
4699        )
4700        return response_data.response

Update a destination connector

Parameters
  • organization: (required)
  • destination_connector_id: (required)
  • update_destination_connector_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.

@validate_call
def update_source_connector( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], update_source_connector_request: vectorize_client.models.update_source_connector_request.UpdateSourceConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.update_source_connector_response.UpdateSourceConnectorResponse:
4786    @validate_call
4787    def update_source_connector(
4788        self,
4789        organization: StrictStr,
4790        source_connector_id: StrictStr,
4791        update_source_connector_request: UpdateSourceConnectorRequest,
4792        _request_timeout: Union[
4793            None,
4794            Annotated[StrictFloat, Field(gt=0)],
4795            Tuple[
4796                Annotated[StrictFloat, Field(gt=0)],
4797                Annotated[StrictFloat, Field(gt=0)]
4798            ]
4799        ] = None,
4800        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4801        _content_type: Optional[StrictStr] = None,
4802        _headers: Optional[Dict[StrictStr, Any]] = None,
4803        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4804    ) -> UpdateSourceConnectorResponse:
4805        """Update a source connector
4806
4807
4808        :param organization: (required)
4809        :type organization: str
4810        :param source_connector_id: (required)
4811        :type source_connector_id: str
4812        :param update_source_connector_request: (required)
4813        :type update_source_connector_request: UpdateSourceConnectorRequest
4814        :param _request_timeout: timeout setting for this request. If one
4815                                 number provided, it will be total request
4816                                 timeout. It can also be a pair (tuple) of
4817                                 (connection, read) timeouts.
4818        :type _request_timeout: int, tuple(int, int), optional
4819        :param _request_auth: set to override the auth_settings for an a single
4820                              request; this effectively ignores the
4821                              authentication in the spec for a single request.
4822        :type _request_auth: dict, optional
4823        :param _content_type: force content-type for the request.
4824        :type _content_type: str, Optional
4825        :param _headers: set to override the headers for a single
4826                         request; this effectively ignores the headers
4827                         in the spec for a single request.
4828        :type _headers: dict, optional
4829        :param _host_index: set to override the host_index for a single
4830                            request; this effectively ignores the host_index
4831                            in the spec for a single request.
4832        :type _host_index: int, optional
4833        :return: Returns the result object.
4834        """ # noqa: E501
4835
4836        _param = self._update_source_connector_serialize(
4837            organization=organization,
4838            source_connector_id=source_connector_id,
4839            update_source_connector_request=update_source_connector_request,
4840            _request_auth=_request_auth,
4841            _content_type=_content_type,
4842            _headers=_headers,
4843            _host_index=_host_index
4844        )
4845
4846        _response_types_map: Dict[str, Optional[str]] = {
4847            '200': "UpdateSourceConnectorResponse",
4848            '400': "GetPipelines400Response",
4849            '401': "GetPipelines400Response",
4850            '403': "GetPipelines400Response",
4851            '404': "GetPipelines400Response",
4852            '500': "GetPipelines400Response",
4853        }
4854        response_data = self.api_client.call_api(
4855            *_param,
4856            _request_timeout=_request_timeout
4857        )
4858        response_data.read()
4859        return self.api_client.response_deserialize(
4860            response_data=response_data,
4861            response_types_map=_response_types_map,
4862        ).data

Update a source connector

Parameters
  • organization: (required)
  • source_connector_id: (required)
  • update_source_connector_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.

@validate_call
def update_source_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], update_source_connector_request: vectorize_client.models.update_source_connector_request.UpdateSourceConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[UpdateSourceConnectorResponse]:
4865    @validate_call
4866    def update_source_connector_with_http_info(
4867        self,
4868        organization: StrictStr,
4869        source_connector_id: StrictStr,
4870        update_source_connector_request: UpdateSourceConnectorRequest,
4871        _request_timeout: Union[
4872            None,
4873            Annotated[StrictFloat, Field(gt=0)],
4874            Tuple[
4875                Annotated[StrictFloat, Field(gt=0)],
4876                Annotated[StrictFloat, Field(gt=0)]
4877            ]
4878        ] = None,
4879        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4880        _content_type: Optional[StrictStr] = None,
4881        _headers: Optional[Dict[StrictStr, Any]] = None,
4882        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4883    ) -> ApiResponse[UpdateSourceConnectorResponse]:
4884        """Update a source connector
4885
4886
4887        :param organization: (required)
4888        :type organization: str
4889        :param source_connector_id: (required)
4890        :type source_connector_id: str
4891        :param update_source_connector_request: (required)
4892        :type update_source_connector_request: UpdateSourceConnectorRequest
4893        :param _request_timeout: timeout setting for this request. If one
4894                                 number provided, it will be total request
4895                                 timeout. It can also be a pair (tuple) of
4896                                 (connection, read) timeouts.
4897        :type _request_timeout: int, tuple(int, int), optional
4898        :param _request_auth: set to override the auth_settings for an a single
4899                              request; this effectively ignores the
4900                              authentication in the spec for a single request.
4901        :type _request_auth: dict, optional
4902        :param _content_type: force content-type for the request.
4903        :type _content_type: str, Optional
4904        :param _headers: set to override the headers for a single
4905                         request; this effectively ignores the headers
4906                         in the spec for a single request.
4907        :type _headers: dict, optional
4908        :param _host_index: set to override the host_index for a single
4909                            request; this effectively ignores the host_index
4910                            in the spec for a single request.
4911        :type _host_index: int, optional
4912        :return: Returns the result object.
4913        """ # noqa: E501
4914
4915        _param = self._update_source_connector_serialize(
4916            organization=organization,
4917            source_connector_id=source_connector_id,
4918            update_source_connector_request=update_source_connector_request,
4919            _request_auth=_request_auth,
4920            _content_type=_content_type,
4921            _headers=_headers,
4922            _host_index=_host_index
4923        )
4924
4925        _response_types_map: Dict[str, Optional[str]] = {
4926            '200': "UpdateSourceConnectorResponse",
4927            '400': "GetPipelines400Response",
4928            '401': "GetPipelines400Response",
4929            '403': "GetPipelines400Response",
4930            '404': "GetPipelines400Response",
4931            '500': "GetPipelines400Response",
4932        }
4933        response_data = self.api_client.call_api(
4934            *_param,
4935            _request_timeout=_request_timeout
4936        )
4937        response_data.read()
4938        return self.api_client.response_deserialize(
4939            response_data=response_data,
4940            response_types_map=_response_types_map,
4941        )

Update a source connector

Parameters
  • organization: (required)
  • source_connector_id: (required)
  • update_source_connector_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.

@validate_call
def update_source_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], update_source_connector_request: vectorize_client.models.update_source_connector_request.UpdateSourceConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
4944    @validate_call
4945    def update_source_connector_without_preload_content(
4946        self,
4947        organization: StrictStr,
4948        source_connector_id: StrictStr,
4949        update_source_connector_request: UpdateSourceConnectorRequest,
4950        _request_timeout: Union[
4951            None,
4952            Annotated[StrictFloat, Field(gt=0)],
4953            Tuple[
4954                Annotated[StrictFloat, Field(gt=0)],
4955                Annotated[StrictFloat, Field(gt=0)]
4956            ]
4957        ] = None,
4958        _request_auth: Optional[Dict[StrictStr, Any]] = None,
4959        _content_type: Optional[StrictStr] = None,
4960        _headers: Optional[Dict[StrictStr, Any]] = None,
4961        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4962    ) -> RESTResponseType:
4963        """Update a source connector
4964
4965
4966        :param organization: (required)
4967        :type organization: str
4968        :param source_connector_id: (required)
4969        :type source_connector_id: str
4970        :param update_source_connector_request: (required)
4971        :type update_source_connector_request: UpdateSourceConnectorRequest
4972        :param _request_timeout: timeout setting for this request. If one
4973                                 number provided, it will be total request
4974                                 timeout. It can also be a pair (tuple) of
4975                                 (connection, read) timeouts.
4976        :type _request_timeout: int, tuple(int, int), optional
4977        :param _request_auth: set to override the auth_settings for an a single
4978                              request; this effectively ignores the
4979                              authentication in the spec for a single request.
4980        :type _request_auth: dict, optional
4981        :param _content_type: force content-type for the request.
4982        :type _content_type: str, Optional
4983        :param _headers: set to override the headers for a single
4984                         request; this effectively ignores the headers
4985                         in the spec for a single request.
4986        :type _headers: dict, optional
4987        :param _host_index: set to override the host_index for a single
4988                            request; this effectively ignores the host_index
4989                            in the spec for a single request.
4990        :type _host_index: int, optional
4991        :return: Returns the result object.
4992        """ # noqa: E501
4993
4994        _param = self._update_source_connector_serialize(
4995            organization=organization,
4996            source_connector_id=source_connector_id,
4997            update_source_connector_request=update_source_connector_request,
4998            _request_auth=_request_auth,
4999            _content_type=_content_type,
5000            _headers=_headers,
5001            _host_index=_host_index
5002        )
5003
5004        _response_types_map: Dict[str, Optional[str]] = {
5005            '200': "UpdateSourceConnectorResponse",
5006            '400': "GetPipelines400Response",
5007            '401': "GetPipelines400Response",
5008            '403': "GetPipelines400Response",
5009            '404': "GetPipelines400Response",
5010            '500': "GetPipelines400Response",
5011        }
5012        response_data = self.api_client.call_api(
5013            *_param,
5014            _request_timeout=_request_timeout
5015        )
5016        return response_data.response

Update a source connector

Parameters
  • organization: (required)
  • source_connector_id: (required)
  • update_source_connector_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.

@validate_call
def update_user_in_source_connector( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], update_user_in_source_connector_request: vectorize_client.models.update_user_in_source_connector_request.UpdateUserInSourceConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.models.update_user_in_source_connector_response.UpdateUserInSourceConnectorResponse:
5102    @validate_call
5103    def update_user_in_source_connector(
5104        self,
5105        organization: StrictStr,
5106        source_connector_id: StrictStr,
5107        update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest,
5108        _request_timeout: Union[
5109            None,
5110            Annotated[StrictFloat, Field(gt=0)],
5111            Tuple[
5112                Annotated[StrictFloat, Field(gt=0)],
5113                Annotated[StrictFloat, Field(gt=0)]
5114            ]
5115        ] = None,
5116        _request_auth: Optional[Dict[StrictStr, Any]] = None,
5117        _content_type: Optional[StrictStr] = None,
5118        _headers: Optional[Dict[StrictStr, Any]] = None,
5119        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5120    ) -> UpdateUserInSourceConnectorResponse:
5121        """Update a source connector user
5122
5123
5124        :param organization: (required)
5125        :type organization: str
5126        :param source_connector_id: (required)
5127        :type source_connector_id: str
5128        :param update_user_in_source_connector_request: (required)
5129        :type update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest
5130        :param _request_timeout: timeout setting for this request. If one
5131                                 number provided, it will be total request
5132                                 timeout. It can also be a pair (tuple) of
5133                                 (connection, read) timeouts.
5134        :type _request_timeout: int, tuple(int, int), optional
5135        :param _request_auth: set to override the auth_settings for an a single
5136                              request; this effectively ignores the
5137                              authentication in the spec for a single request.
5138        :type _request_auth: dict, optional
5139        :param _content_type: force content-type for the request.
5140        :type _content_type: str, Optional
5141        :param _headers: set to override the headers for a single
5142                         request; this effectively ignores the headers
5143                         in the spec for a single request.
5144        :type _headers: dict, optional
5145        :param _host_index: set to override the host_index for a single
5146                            request; this effectively ignores the host_index
5147                            in the spec for a single request.
5148        :type _host_index: int, optional
5149        :return: Returns the result object.
5150        """ # noqa: E501
5151
5152        _param = self._update_user_in_source_connector_serialize(
5153            organization=organization,
5154            source_connector_id=source_connector_id,
5155            update_user_in_source_connector_request=update_user_in_source_connector_request,
5156            _request_auth=_request_auth,
5157            _content_type=_content_type,
5158            _headers=_headers,
5159            _host_index=_host_index
5160        )
5161
5162        _response_types_map: Dict[str, Optional[str]] = {
5163            '200': "UpdateUserInSourceConnectorResponse",
5164            '400': "GetPipelines400Response",
5165            '401': "GetPipelines400Response",
5166            '403': "GetPipelines400Response",
5167            '404': "GetPipelines400Response",
5168            '500': "GetPipelines400Response",
5169        }
5170        response_data = self.api_client.call_api(
5171            *_param,
5172            _request_timeout=_request_timeout
5173        )
5174        response_data.read()
5175        return self.api_client.response_deserialize(
5176            response_data=response_data,
5177            response_types_map=_response_types_map,
5178        ).data

Update a source connector user

Parameters
  • organization: (required)
  • source_connector_id: (required)
  • update_user_in_source_connector_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.

@validate_call
def update_user_in_source_connector_with_http_info( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], update_user_in_source_connector_request: vectorize_client.models.update_user_in_source_connector_request.UpdateUserInSourceConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> vectorize_client.api_response.ApiResponse[UpdateUserInSourceConnectorResponse]:
5181    @validate_call
5182    def update_user_in_source_connector_with_http_info(
5183        self,
5184        organization: StrictStr,
5185        source_connector_id: StrictStr,
5186        update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest,
5187        _request_timeout: Union[
5188            None,
5189            Annotated[StrictFloat, Field(gt=0)],
5190            Tuple[
5191                Annotated[StrictFloat, Field(gt=0)],
5192                Annotated[StrictFloat, Field(gt=0)]
5193            ]
5194        ] = None,
5195        _request_auth: Optional[Dict[StrictStr, Any]] = None,
5196        _content_type: Optional[StrictStr] = None,
5197        _headers: Optional[Dict[StrictStr, Any]] = None,
5198        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5199    ) -> ApiResponse[UpdateUserInSourceConnectorResponse]:
5200        """Update a source connector user
5201
5202
5203        :param organization: (required)
5204        :type organization: str
5205        :param source_connector_id: (required)
5206        :type source_connector_id: str
5207        :param update_user_in_source_connector_request: (required)
5208        :type update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest
5209        :param _request_timeout: timeout setting for this request. If one
5210                                 number provided, it will be total request
5211                                 timeout. It can also be a pair (tuple) of
5212                                 (connection, read) timeouts.
5213        :type _request_timeout: int, tuple(int, int), optional
5214        :param _request_auth: set to override the auth_settings for an a single
5215                              request; this effectively ignores the
5216                              authentication in the spec for a single request.
5217        :type _request_auth: dict, optional
5218        :param _content_type: force content-type for the request.
5219        :type _content_type: str, Optional
5220        :param _headers: set to override the headers for a single
5221                         request; this effectively ignores the headers
5222                         in the spec for a single request.
5223        :type _headers: dict, optional
5224        :param _host_index: set to override the host_index for a single
5225                            request; this effectively ignores the host_index
5226                            in the spec for a single request.
5227        :type _host_index: int, optional
5228        :return: Returns the result object.
5229        """ # noqa: E501
5230
5231        _param = self._update_user_in_source_connector_serialize(
5232            organization=organization,
5233            source_connector_id=source_connector_id,
5234            update_user_in_source_connector_request=update_user_in_source_connector_request,
5235            _request_auth=_request_auth,
5236            _content_type=_content_type,
5237            _headers=_headers,
5238            _host_index=_host_index
5239        )
5240
5241        _response_types_map: Dict[str, Optional[str]] = {
5242            '200': "UpdateUserInSourceConnectorResponse",
5243            '400': "GetPipelines400Response",
5244            '401': "GetPipelines400Response",
5245            '403': "GetPipelines400Response",
5246            '404': "GetPipelines400Response",
5247            '500': "GetPipelines400Response",
5248        }
5249        response_data = self.api_client.call_api(
5250            *_param,
5251            _request_timeout=_request_timeout
5252        )
5253        response_data.read()
5254        return self.api_client.response_deserialize(
5255            response_data=response_data,
5256            response_types_map=_response_types_map,
5257        )

Update a source connector user

Parameters
  • organization: (required)
  • source_connector_id: (required)
  • update_user_in_source_connector_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.

@validate_call
def update_user_in_source_connector_without_preload_content( self, organization: typing.Annotated[str, Strict(strict=True)], source_connector_id: typing.Annotated[str, Strict(strict=True)], update_user_in_source_connector_request: vectorize_client.models.update_user_in_source_connector_request.UpdateUserInSourceConnectorRequest, _request_timeout: Union[NoneType, Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Tuple[Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])], Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]]] = None, _request_auth: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _content_type: Optional[Annotated[str, Strict(strict=True)]] = None, _headers: Optional[Dict[Annotated[str, Strict(strict=True)], Any]] = None, _host_index: typing.Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=0)])] = 0) -> urllib3.response.HTTPResponse:
5260    @validate_call
5261    def update_user_in_source_connector_without_preload_content(
5262        self,
5263        organization: StrictStr,
5264        source_connector_id: StrictStr,
5265        update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest,
5266        _request_timeout: Union[
5267            None,
5268            Annotated[StrictFloat, Field(gt=0)],
5269            Tuple[
5270                Annotated[StrictFloat, Field(gt=0)],
5271                Annotated[StrictFloat, Field(gt=0)]
5272            ]
5273        ] = None,
5274        _request_auth: Optional[Dict[StrictStr, Any]] = None,
5275        _content_type: Optional[StrictStr] = None,
5276        _headers: Optional[Dict[StrictStr, Any]] = None,
5277        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5278    ) -> RESTResponseType:
5279        """Update a source connector user
5280
5281
5282        :param organization: (required)
5283        :type organization: str
5284        :param source_connector_id: (required)
5285        :type source_connector_id: str
5286        :param update_user_in_source_connector_request: (required)
5287        :type update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest
5288        :param _request_timeout: timeout setting for this request. If one
5289                                 number provided, it will be total request
5290                                 timeout. It can also be a pair (tuple) of
5291                                 (connection, read) timeouts.
5292        :type _request_timeout: int, tuple(int, int), optional
5293        :param _request_auth: set to override the auth_settings for an a single
5294                              request; this effectively ignores the
5295                              authentication in the spec for a single request.
5296        :type _request_auth: dict, optional
5297        :param _content_type: force content-type for the request.
5298        :type _content_type: str, Optional
5299        :param _headers: set to override the headers for a single
5300                         request; this effectively ignores the headers
5301                         in the spec for a single request.
5302        :type _headers: dict, optional
5303        :param _host_index: set to override the host_index for a single
5304                            request; this effectively ignores the host_index
5305                            in the spec for a single request.
5306        :type _host_index: int, optional
5307        :return: Returns the result object.
5308        """ # noqa: E501
5309
5310        _param = self._update_user_in_source_connector_serialize(
5311            organization=organization,
5312            source_connector_id=source_connector_id,
5313            update_user_in_source_connector_request=update_user_in_source_connector_request,
5314            _request_auth=_request_auth,
5315            _content_type=_content_type,
5316            _headers=_headers,
5317            _host_index=_host_index
5318        )
5319
5320        _response_types_map: Dict[str, Optional[str]] = {
5321            '200': "UpdateUserInSourceConnectorResponse",
5322            '400': "GetPipelines400Response",
5323            '401': "GetPipelines400Response",
5324            '403': "GetPipelines400Response",
5325            '404': "GetPipelines400Response",
5326            '500': "GetPipelines400Response",
5327        }
5328        response_data = self.api_client.call_api(
5329            *_param,
5330            _request_timeout=_request_timeout
5331        )
5332        return response_data.response

Update a source connector user

Parameters
  • organization: (required)
  • source_connector_id: (required)
  • update_user_in_source_connector_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.