|
5 | 5 |
|
6 | 6 | No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
7 | 7 |
|
8 | | - The version of the OpenAPI document: v0.10.5 |
| 8 | + The version of the OpenAPI document: v0.11.0 |
9 | 9 | Generated by OpenAPI Generator (https://openapi-generator.tech) |
10 | 10 |
|
11 | 11 | Do not edit the class manually. |
@@ -1405,253 +1405,6 @@ def _delete_connection_serialize( |
1405 | 1405 | _request_auth=_request_auth, |
1406 | 1406 | ) |
1407 | 1407 |
|
1408 | | - async def establish_inbound( |
1409 | | - self, |
1410 | | - conn_id: Annotated[StrictStr, Field(description="Connection identifier")], |
1411 | | - ref_id: Annotated[ |
1412 | | - StrictStr, Field(description="Inbound connection identifier") |
1413 | | - ], |
1414 | | - _request_timeout: Union[ |
1415 | | - None, |
1416 | | - Annotated[StrictFloat, Field(gt=0)], |
1417 | | - Tuple[ |
1418 | | - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] |
1419 | | - ], |
1420 | | - ] = None, |
1421 | | - _request_auth: Optional[Dict[StrictStr, Any]] = None, |
1422 | | - _content_type: Optional[StrictStr] = None, |
1423 | | - _headers: Optional[Dict[StrictStr, Any]] = None, |
1424 | | - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, |
1425 | | - ) -> object: |
1426 | | - """Assign another connection as the inbound connection |
1427 | | -
|
1428 | | -
|
1429 | | - :param conn_id: Connection identifier (required) |
1430 | | - :type conn_id: str |
1431 | | - :param ref_id: Inbound connection identifier (required) |
1432 | | - :type ref_id: str |
1433 | | - :param _request_timeout: timeout setting for this request. If one |
1434 | | - number provided, it will be total request |
1435 | | - timeout. It can also be a pair (tuple) of |
1436 | | - (connection, read) timeouts. |
1437 | | - :type _request_timeout: int, tuple(int, int), optional |
1438 | | - :param _request_auth: set to override the auth_settings for an a single |
1439 | | - request; this effectively ignores the |
1440 | | - authentication in the spec for a single request. |
1441 | | - :type _request_auth: dict, optional |
1442 | | - :param _content_type: force content-type for the request. |
1443 | | - :type _content_type: str, Optional |
1444 | | - :param _headers: set to override the headers for a single |
1445 | | - request; this effectively ignores the headers |
1446 | | - in the spec for a single request. |
1447 | | - :type _headers: dict, optional |
1448 | | - :param _host_index: set to override the host_index for a single |
1449 | | - request; this effectively ignores the host_index |
1450 | | - in the spec for a single request. |
1451 | | - :type _host_index: int, optional |
1452 | | - :return: Returns the result object. |
1453 | | - """ # noqa: E501 |
1454 | | - |
1455 | | - _param = self._establish_inbound_serialize( |
1456 | | - conn_id=conn_id, |
1457 | | - ref_id=ref_id, |
1458 | | - _request_auth=_request_auth, |
1459 | | - _content_type=_content_type, |
1460 | | - _headers=_headers, |
1461 | | - _host_index=_host_index, |
1462 | | - ) |
1463 | | - |
1464 | | - _response_types_map: Dict[str, Optional[str]] = {"200": "object"} |
1465 | | - response_data = await self.api_client.call_api( |
1466 | | - *_param, _request_timeout=_request_timeout |
1467 | | - ) |
1468 | | - await response_data.read() |
1469 | | - return self.api_client.response_deserialize( |
1470 | | - response_data=response_data, |
1471 | | - response_types_map=_response_types_map, |
1472 | | - ).data |
1473 | | - |
1474 | | - async def establish_inbound_with_http_info( |
1475 | | - self, |
1476 | | - conn_id: Annotated[StrictStr, Field(description="Connection identifier")], |
1477 | | - ref_id: Annotated[ |
1478 | | - StrictStr, Field(description="Inbound connection identifier") |
1479 | | - ], |
1480 | | - _request_timeout: Union[ |
1481 | | - None, |
1482 | | - Annotated[StrictFloat, Field(gt=0)], |
1483 | | - Tuple[ |
1484 | | - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] |
1485 | | - ], |
1486 | | - ] = None, |
1487 | | - _request_auth: Optional[Dict[StrictStr, Any]] = None, |
1488 | | - _content_type: Optional[StrictStr] = None, |
1489 | | - _headers: Optional[Dict[StrictStr, Any]] = None, |
1490 | | - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, |
1491 | | - ) -> ApiResponse[object]: |
1492 | | - """Assign another connection as the inbound connection |
1493 | | -
|
1494 | | -
|
1495 | | - :param conn_id: Connection identifier (required) |
1496 | | - :type conn_id: str |
1497 | | - :param ref_id: Inbound connection identifier (required) |
1498 | | - :type ref_id: str |
1499 | | - :param _request_timeout: timeout setting for this request. If one |
1500 | | - number provided, it will be total request |
1501 | | - timeout. It can also be a pair (tuple) of |
1502 | | - (connection, read) timeouts. |
1503 | | - :type _request_timeout: int, tuple(int, int), optional |
1504 | | - :param _request_auth: set to override the auth_settings for an a single |
1505 | | - request; this effectively ignores the |
1506 | | - authentication in the spec for a single request. |
1507 | | - :type _request_auth: dict, optional |
1508 | | - :param _content_type: force content-type for the request. |
1509 | | - :type _content_type: str, Optional |
1510 | | - :param _headers: set to override the headers for a single |
1511 | | - request; this effectively ignores the headers |
1512 | | - in the spec for a single request. |
1513 | | - :type _headers: dict, optional |
1514 | | - :param _host_index: set to override the host_index for a single |
1515 | | - request; this effectively ignores the host_index |
1516 | | - in the spec for a single request. |
1517 | | - :type _host_index: int, optional |
1518 | | - :return: Returns the result object. |
1519 | | - """ # noqa: E501 |
1520 | | - |
1521 | | - _param = self._establish_inbound_serialize( |
1522 | | - conn_id=conn_id, |
1523 | | - ref_id=ref_id, |
1524 | | - _request_auth=_request_auth, |
1525 | | - _content_type=_content_type, |
1526 | | - _headers=_headers, |
1527 | | - _host_index=_host_index, |
1528 | | - ) |
1529 | | - |
1530 | | - _response_types_map: Dict[str, Optional[str]] = {"200": "object"} |
1531 | | - response_data = await self.api_client.call_api( |
1532 | | - *_param, _request_timeout=_request_timeout |
1533 | | - ) |
1534 | | - await response_data.read() |
1535 | | - return self.api_client.response_deserialize( |
1536 | | - response_data=response_data, |
1537 | | - response_types_map=_response_types_map, |
1538 | | - ) |
1539 | | - |
1540 | | - async def establish_inbound_without_preload_content( |
1541 | | - self, |
1542 | | - conn_id: Annotated[StrictStr, Field(description="Connection identifier")], |
1543 | | - ref_id: Annotated[ |
1544 | | - StrictStr, Field(description="Inbound connection identifier") |
1545 | | - ], |
1546 | | - _request_timeout: Union[ |
1547 | | - None, |
1548 | | - Annotated[StrictFloat, Field(gt=0)], |
1549 | | - Tuple[ |
1550 | | - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] |
1551 | | - ], |
1552 | | - ] = None, |
1553 | | - _request_auth: Optional[Dict[StrictStr, Any]] = None, |
1554 | | - _content_type: Optional[StrictStr] = None, |
1555 | | - _headers: Optional[Dict[StrictStr, Any]] = None, |
1556 | | - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, |
1557 | | - ) -> RESTResponseType: |
1558 | | - """Assign another connection as the inbound connection |
1559 | | -
|
1560 | | -
|
1561 | | - :param conn_id: Connection identifier (required) |
1562 | | - :type conn_id: str |
1563 | | - :param ref_id: Inbound connection identifier (required) |
1564 | | - :type ref_id: str |
1565 | | - :param _request_timeout: timeout setting for this request. If one |
1566 | | - number provided, it will be total request |
1567 | | - timeout. It can also be a pair (tuple) of |
1568 | | - (connection, read) timeouts. |
1569 | | - :type _request_timeout: int, tuple(int, int), optional |
1570 | | - :param _request_auth: set to override the auth_settings for an a single |
1571 | | - request; this effectively ignores the |
1572 | | - authentication in the spec for a single request. |
1573 | | - :type _request_auth: dict, optional |
1574 | | - :param _content_type: force content-type for the request. |
1575 | | - :type _content_type: str, Optional |
1576 | | - :param _headers: set to override the headers for a single |
1577 | | - request; this effectively ignores the headers |
1578 | | - in the spec for a single request. |
1579 | | - :type _headers: dict, optional |
1580 | | - :param _host_index: set to override the host_index for a single |
1581 | | - request; this effectively ignores the host_index |
1582 | | - in the spec for a single request. |
1583 | | - :type _host_index: int, optional |
1584 | | - :return: Returns the result object. |
1585 | | - """ # noqa: E501 |
1586 | | - |
1587 | | - _param = self._establish_inbound_serialize( |
1588 | | - conn_id=conn_id, |
1589 | | - ref_id=ref_id, |
1590 | | - _request_auth=_request_auth, |
1591 | | - _content_type=_content_type, |
1592 | | - _headers=_headers, |
1593 | | - _host_index=_host_index, |
1594 | | - ) |
1595 | | - |
1596 | | - _response_types_map: Dict[str, Optional[str]] = {"200": "object"} |
1597 | | - response_data = await self.api_client.call_api( |
1598 | | - *_param, _request_timeout=_request_timeout |
1599 | | - ) |
1600 | | - return response_data.response |
1601 | | - |
1602 | | - def _establish_inbound_serialize( |
1603 | | - self, |
1604 | | - conn_id, |
1605 | | - ref_id, |
1606 | | - _request_auth, |
1607 | | - _content_type, |
1608 | | - _headers, |
1609 | | - _host_index, |
1610 | | - ) -> Tuple: |
1611 | | - _host = None |
1612 | | - |
1613 | | - _collection_formats: Dict[str, str] = {} |
1614 | | - |
1615 | | - _path_params: Dict[str, str] = {} |
1616 | | - _query_params: List[Tuple[str, str]] = [] |
1617 | | - _header_params: Dict[str, Optional[str]] = _headers or {} |
1618 | | - _form_params: List[Tuple[str, str]] = [] |
1619 | | - _files: Dict[str, str] = {} |
1620 | | - _body_params: Optional[bytes] = None |
1621 | | - |
1622 | | - # process the path parameters |
1623 | | - if conn_id is not None: |
1624 | | - _path_params["conn_id"] = conn_id |
1625 | | - if ref_id is not None: |
1626 | | - _path_params["ref_id"] = ref_id |
1627 | | - # process the query parameters |
1628 | | - # process the header parameters |
1629 | | - # process the form parameters |
1630 | | - # process the body parameter |
1631 | | - |
1632 | | - # set the HTTP header `Accept` |
1633 | | - _header_params["Accept"] = self.api_client.select_header_accept( |
1634 | | - ["application/json"] |
1635 | | - ) |
1636 | | - |
1637 | | - # authentication setting |
1638 | | - _auth_settings: List[str] = ["AuthorizationHeader"] |
1639 | | - |
1640 | | - return self.api_client.param_serialize( |
1641 | | - method="POST", |
1642 | | - resource_path="/connections/{conn_id}/establish-inbound/{ref_id}", |
1643 | | - path_params=_path_params, |
1644 | | - query_params=_query_params, |
1645 | | - header_params=_header_params, |
1646 | | - body=_body_params, |
1647 | | - post_params=_form_params, |
1648 | | - files=_files, |
1649 | | - auth_settings=_auth_settings, |
1650 | | - collection_formats=_collection_formats, |
1651 | | - _host=_host, |
1652 | | - _request_auth=_request_auth, |
1653 | | - ) |
1654 | | - |
1655 | 1408 | async def get_connection( |
1656 | 1409 | self, |
1657 | 1410 | conn_id: Annotated[StrictStr, Field(description="Connection identifier")], |
|
0 commit comments