|
| 1 | +# hotdata.ConnectionTypesApi |
| 2 | + |
| 3 | +All URIs are relative to *https://app.hotdata.dev* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**get_connection_type**](ConnectionTypesApi.md#get_connection_type) | **GET** /v1/connection-types/{name} | Get connection type details |
| 8 | +[**list_connection_types**](ConnectionTypesApi.md#list_connection_types) | **GET** /v1/connection-types | List connection types |
| 9 | + |
| 10 | + |
| 11 | +# **get_connection_type** |
| 12 | +> ConnectionTypeDetail get_connection_type(name) |
| 13 | +
|
| 14 | +Get connection type details |
| 15 | + |
| 16 | +Get configuration schema and authentication requirements for a specific connection type. |
| 17 | + |
| 18 | +### Example |
| 19 | + |
| 20 | +* Bearer Authentication (BearerAuth): |
| 21 | + |
| 22 | +```python |
| 23 | +import hotdata |
| 24 | +from hotdata.models.connection_type_detail import ConnectionTypeDetail |
| 25 | +from hotdata.rest import ApiException |
| 26 | +from pprint import pprint |
| 27 | + |
| 28 | +# Defining the host is optional and defaults to https://app.hotdata.dev |
| 29 | +# See configuration.py for a list of all supported configuration parameters. |
| 30 | +configuration = hotdata.Configuration( |
| 31 | + host = "https://app.hotdata.dev" |
| 32 | +) |
| 33 | + |
| 34 | +# The client must configure the authentication and authorization parameters |
| 35 | +# in accordance with the API server security policy. |
| 36 | +# Examples for each auth method are provided below, use the example that |
| 37 | +# satisfies your auth use case. |
| 38 | + |
| 39 | +# Configure Bearer authorization: BearerAuth |
| 40 | +configuration = hotdata.Configuration( |
| 41 | + access_token = os.environ["BEARER_TOKEN"] |
| 42 | +) |
| 43 | + |
| 44 | +# Enter a context with an instance of the API client |
| 45 | +with hotdata.ApiClient(configuration) as api_client: |
| 46 | + # Create an instance of the API class |
| 47 | + api_instance = hotdata.ConnectionTypesApi(api_client) |
| 48 | + name = 'name_example' # str | Connection type name (e.g. postgres, mysql, snowflake) |
| 49 | + |
| 50 | + try: |
| 51 | + # Get connection type details |
| 52 | + api_response = api_instance.get_connection_type(name) |
| 53 | + print("The response of ConnectionTypesApi->get_connection_type:\n") |
| 54 | + pprint(api_response) |
| 55 | + except Exception as e: |
| 56 | + print("Exception when calling ConnectionTypesApi->get_connection_type: %s\n" % e) |
| 57 | +``` |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | +### Parameters |
| 62 | + |
| 63 | + |
| 64 | +Name | Type | Description | Notes |
| 65 | +------------- | ------------- | ------------- | ------------- |
| 66 | + **name** | **str**| Connection type name (e.g. postgres, mysql, snowflake) | |
| 67 | + |
| 68 | +### Return type |
| 69 | + |
| 70 | +[**ConnectionTypeDetail**](ConnectionTypeDetail.md) |
| 71 | + |
| 72 | +### Authorization |
| 73 | + |
| 74 | +[BearerAuth](../README.md#BearerAuth) |
| 75 | + |
| 76 | +### HTTP request headers |
| 77 | + |
| 78 | + - **Content-Type**: Not defined |
| 79 | + - **Accept**: application/json |
| 80 | + |
| 81 | +### HTTP response details |
| 82 | + |
| 83 | +| Status code | Description | Response headers | |
| 84 | +|-------------|-------------|------------------| |
| 85 | +**200** | Connection type details | - | |
| 86 | +**404** | Unknown connection type | - | |
| 87 | + |
| 88 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 89 | + |
| 90 | +# **list_connection_types** |
| 91 | +> ListConnectionTypesResponse list_connection_types() |
| 92 | +
|
| 93 | +List connection types |
| 94 | + |
| 95 | +List all available connection types, including native sources and FlightDLT services. |
| 96 | + |
| 97 | +### Example |
| 98 | + |
| 99 | +* Bearer Authentication (BearerAuth): |
| 100 | + |
| 101 | +```python |
| 102 | +import hotdata |
| 103 | +from hotdata.models.list_connection_types_response import ListConnectionTypesResponse |
| 104 | +from hotdata.rest import ApiException |
| 105 | +from pprint import pprint |
| 106 | + |
| 107 | +# Defining the host is optional and defaults to https://app.hotdata.dev |
| 108 | +# See configuration.py for a list of all supported configuration parameters. |
| 109 | +configuration = hotdata.Configuration( |
| 110 | + host = "https://app.hotdata.dev" |
| 111 | +) |
| 112 | + |
| 113 | +# The client must configure the authentication and authorization parameters |
| 114 | +# in accordance with the API server security policy. |
| 115 | +# Examples for each auth method are provided below, use the example that |
| 116 | +# satisfies your auth use case. |
| 117 | + |
| 118 | +# Configure Bearer authorization: BearerAuth |
| 119 | +configuration = hotdata.Configuration( |
| 120 | + access_token = os.environ["BEARER_TOKEN"] |
| 121 | +) |
| 122 | + |
| 123 | +# Enter a context with an instance of the API client |
| 124 | +with hotdata.ApiClient(configuration) as api_client: |
| 125 | + # Create an instance of the API class |
| 126 | + api_instance = hotdata.ConnectionTypesApi(api_client) |
| 127 | + |
| 128 | + try: |
| 129 | + # List connection types |
| 130 | + api_response = api_instance.list_connection_types() |
| 131 | + print("The response of ConnectionTypesApi->list_connection_types:\n") |
| 132 | + pprint(api_response) |
| 133 | + except Exception as e: |
| 134 | + print("Exception when calling ConnectionTypesApi->list_connection_types: %s\n" % e) |
| 135 | +``` |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | +### Parameters |
| 140 | + |
| 141 | +This endpoint does not need any parameter. |
| 142 | + |
| 143 | +### Return type |
| 144 | + |
| 145 | +[**ListConnectionTypesResponse**](ListConnectionTypesResponse.md) |
| 146 | + |
| 147 | +### Authorization |
| 148 | + |
| 149 | +[BearerAuth](../README.md#BearerAuth) |
| 150 | + |
| 151 | +### HTTP request headers |
| 152 | + |
| 153 | + - **Content-Type**: Not defined |
| 154 | + - **Accept**: application/json |
| 155 | + |
| 156 | +### HTTP response details |
| 157 | + |
| 158 | +| Status code | Description | Response headers | |
| 159 | +|-------------|-------------|------------------| |
| 160 | +**200** | Available connection types | - | |
| 161 | + |
| 162 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 163 | + |
0 commit comments