/sdks/js/http_client/v1/docs/ConnectionsV1Api.md

https://github.com/polyaxon/polyaxon · Markdown · 394 lines · 277 code · 117 blank · 0 comment · 0 complexity · aec3d5e196be9d79b408132504fd518a MD5 · raw file

  1. # PolyaxonSdk.ConnectionsV1Api
  2. Polyaxon sdk
  3. All URIs are relative to *http://localhost*
  4. Method | HTTP request | Description
  5. ------------- | ------------- | -------------
  6. [**createConnection**](ConnectionsV1Api.md#createConnection) | **POST** /api/v1/orgs/{owner}/connections | Create connection
  7. [**deleteConnection**](ConnectionsV1Api.md#deleteConnection) | **DELETE** /api/v1/orgs/{owner}/connections/{uuid} | Delete connection
  8. [**getConnection**](ConnectionsV1Api.md#getConnection) | **GET** /api/v1/orgs/{owner}/connections/{uuid} | Get connection
  9. [**listConnectionNames**](ConnectionsV1Api.md#listConnectionNames) | **GET** /api/v1/orgs/{owner}/connections/names | List connections names
  10. [**listConnections**](ConnectionsV1Api.md#listConnections) | **GET** /api/v1/orgs/{owner}/connections | List connections
  11. [**patchConnection**](ConnectionsV1Api.md#patchConnection) | **PATCH** /api/v1/orgs/{owner}/connections/{connection.uuid} | Patch connection
  12. [**updateConnection**](ConnectionsV1Api.md#updateConnection) | **PUT** /api/v1/orgs/{owner}/connections/{connection.uuid} | Update connection
  13. ## createConnection
  14. > V1ConnectionResponse createConnection(owner, body)
  15. Create connection
  16. ### Example
  17. ```javascript
  18. import PolyaxonSdk from 'polyaxon-sdk';
  19. let defaultClient = PolyaxonSdk.ApiClient.instance;
  20. // Configure API key authorization: ApiKey
  21. let ApiKey = defaultClient.authentications['ApiKey'];
  22. ApiKey.apiKey = 'YOUR API KEY';
  23. // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
  24. //ApiKey.apiKeyPrefix = 'Token';
  25. let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
  26. let owner = "owner_example"; // String | Owner of the namespace
  27. let body = new PolyaxonSdk.V1ConnectionResponse(); // V1ConnectionResponse | Connection body
  28. apiInstance.createConnection(owner, body, (error, data, response) => {
  29. if (error) {
  30. console.error(error);
  31. } else {
  32. console.log('API called successfully. Returned data: ' + data);
  33. }
  34. });
  35. ```
  36. ### Parameters
  37. Name | Type | Description | Notes
  38. ------------- | ------------- | ------------- | -------------
  39. **owner** | **String**| Owner of the namespace |
  40. **body** | [**V1ConnectionResponse**](V1ConnectionResponse.md)| Connection body |
  41. ### Return type
  42. [**V1ConnectionResponse**](V1ConnectionResponse.md)
  43. ### Authorization
  44. [ApiKey](../README.md#ApiKey)
  45. ### HTTP request headers
  46. - **Content-Type**: application/json
  47. - **Accept**: application/json
  48. ## deleteConnection
  49. > deleteConnection(owner, uuid)
  50. Delete connection
  51. ### Example
  52. ```javascript
  53. import PolyaxonSdk from 'polyaxon-sdk';
  54. let defaultClient = PolyaxonSdk.ApiClient.instance;
  55. // Configure API key authorization: ApiKey
  56. let ApiKey = defaultClient.authentications['ApiKey'];
  57. ApiKey.apiKey = 'YOUR API KEY';
  58. // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
  59. //ApiKey.apiKeyPrefix = 'Token';
  60. let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
  61. let owner = "owner_example"; // String | Owner of the namespace
  62. let uuid = "uuid_example"; // String | Uuid identifier of the entity
  63. apiInstance.deleteConnection(owner, uuid, (error, data, response) => {
  64. if (error) {
  65. console.error(error);
  66. } else {
  67. console.log('API called successfully.');
  68. }
  69. });
  70. ```
  71. ### Parameters
  72. Name | Type | Description | Notes
  73. ------------- | ------------- | ------------- | -------------
  74. **owner** | **String**| Owner of the namespace |
  75. **uuid** | **String**| Uuid identifier of the entity |
  76. ### Return type
  77. null (empty response body)
  78. ### Authorization
  79. [ApiKey](../README.md#ApiKey)
  80. ### HTTP request headers
  81. - **Content-Type**: Not defined
  82. - **Accept**: application/json
  83. ## getConnection
  84. > V1ConnectionResponse getConnection(owner, uuid)
  85. Get connection
  86. ### Example
  87. ```javascript
  88. import PolyaxonSdk from 'polyaxon-sdk';
  89. let defaultClient = PolyaxonSdk.ApiClient.instance;
  90. // Configure API key authorization: ApiKey
  91. let ApiKey = defaultClient.authentications['ApiKey'];
  92. ApiKey.apiKey = 'YOUR API KEY';
  93. // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
  94. //ApiKey.apiKeyPrefix = 'Token';
  95. let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
  96. let owner = "owner_example"; // String | Owner of the namespace
  97. let uuid = "uuid_example"; // String | Uuid identifier of the entity
  98. apiInstance.getConnection(owner, uuid, (error, data, response) => {
  99. if (error) {
  100. console.error(error);
  101. } else {
  102. console.log('API called successfully. Returned data: ' + data);
  103. }
  104. });
  105. ```
  106. ### Parameters
  107. Name | Type | Description | Notes
  108. ------------- | ------------- | ------------- | -------------
  109. **owner** | **String**| Owner of the namespace |
  110. **uuid** | **String**| Uuid identifier of the entity |
  111. ### Return type
  112. [**V1ConnectionResponse**](V1ConnectionResponse.md)
  113. ### Authorization
  114. [ApiKey](../README.md#ApiKey)
  115. ### HTTP request headers
  116. - **Content-Type**: Not defined
  117. - **Accept**: application/json
  118. ## listConnectionNames
  119. > V1ListConnectionsResponse listConnectionNames(owner, opts)
  120. List connections names
  121. ### Example
  122. ```javascript
  123. import PolyaxonSdk from 'polyaxon-sdk';
  124. let defaultClient = PolyaxonSdk.ApiClient.instance;
  125. // Configure API key authorization: ApiKey
  126. let ApiKey = defaultClient.authentications['ApiKey'];
  127. ApiKey.apiKey = 'YOUR API KEY';
  128. // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
  129. //ApiKey.apiKeyPrefix = 'Token';
  130. let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
  131. let owner = "owner_example"; // String | Owner of the namespace
  132. let opts = {
  133. 'offset': 56, // Number | Pagination offset.
  134. 'limit': 56, // Number | Limit size.
  135. 'sort': "sort_example", // String | Sort to order the search.
  136. 'query': "query_example" // String | Query filter the search search.
  137. };
  138. apiInstance.listConnectionNames(owner, opts, (error, data, response) => {
  139. if (error) {
  140. console.error(error);
  141. } else {
  142. console.log('API called successfully. Returned data: ' + data);
  143. }
  144. });
  145. ```
  146. ### Parameters
  147. Name | Type | Description | Notes
  148. ------------- | ------------- | ------------- | -------------
  149. **owner** | **String**| Owner of the namespace |
  150. **offset** | **Number**| Pagination offset. | [optional]
  151. **limit** | **Number**| Limit size. | [optional]
  152. **sort** | **String**| Sort to order the search. | [optional]
  153. **query** | **String**| Query filter the search search. | [optional]
  154. ### Return type
  155. [**V1ListConnectionsResponse**](V1ListConnectionsResponse.md)
  156. ### Authorization
  157. [ApiKey](../README.md#ApiKey)
  158. ### HTTP request headers
  159. - **Content-Type**: Not defined
  160. - **Accept**: application/json
  161. ## listConnections
  162. > V1ListConnectionsResponse listConnections(owner, opts)
  163. List connections
  164. ### Example
  165. ```javascript
  166. import PolyaxonSdk from 'polyaxon-sdk';
  167. let defaultClient = PolyaxonSdk.ApiClient.instance;
  168. // Configure API key authorization: ApiKey
  169. let ApiKey = defaultClient.authentications['ApiKey'];
  170. ApiKey.apiKey = 'YOUR API KEY';
  171. // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
  172. //ApiKey.apiKeyPrefix = 'Token';
  173. let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
  174. let owner = "owner_example"; // String | Owner of the namespace
  175. let opts = {
  176. 'offset': 56, // Number | Pagination offset.
  177. 'limit': 56, // Number | Limit size.
  178. 'sort': "sort_example", // String | Sort to order the search.
  179. 'query': "query_example" // String | Query filter the search search.
  180. };
  181. apiInstance.listConnections(owner, opts, (error, data, response) => {
  182. if (error) {
  183. console.error(error);
  184. } else {
  185. console.log('API called successfully. Returned data: ' + data);
  186. }
  187. });
  188. ```
  189. ### Parameters
  190. Name | Type | Description | Notes
  191. ------------- | ------------- | ------------- | -------------
  192. **owner** | **String**| Owner of the namespace |
  193. **offset** | **Number**| Pagination offset. | [optional]
  194. **limit** | **Number**| Limit size. | [optional]
  195. **sort** | **String**| Sort to order the search. | [optional]
  196. **query** | **String**| Query filter the search search. | [optional]
  197. ### Return type
  198. [**V1ListConnectionsResponse**](V1ListConnectionsResponse.md)
  199. ### Authorization
  200. [ApiKey](../README.md#ApiKey)
  201. ### HTTP request headers
  202. - **Content-Type**: Not defined
  203. - **Accept**: application/json
  204. ## patchConnection
  205. > V1ConnectionResponse patchConnection(owner, connection_uuid, body)
  206. Patch connection
  207. ### Example
  208. ```javascript
  209. import PolyaxonSdk from 'polyaxon-sdk';
  210. let defaultClient = PolyaxonSdk.ApiClient.instance;
  211. // Configure API key authorization: ApiKey
  212. let ApiKey = defaultClient.authentications['ApiKey'];
  213. ApiKey.apiKey = 'YOUR API KEY';
  214. // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
  215. //ApiKey.apiKeyPrefix = 'Token';
  216. let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
  217. let owner = "owner_example"; // String | Owner of the namespace
  218. let connection_uuid = "connection_uuid_example"; // String | UUID
  219. let body = new PolyaxonSdk.V1ConnectionResponse(); // V1ConnectionResponse | Connection body
  220. apiInstance.patchConnection(owner, connection_uuid, body, (error, data, response) => {
  221. if (error) {
  222. console.error(error);
  223. } else {
  224. console.log('API called successfully. Returned data: ' + data);
  225. }
  226. });
  227. ```
  228. ### Parameters
  229. Name | Type | Description | Notes
  230. ------------- | ------------- | ------------- | -------------
  231. **owner** | **String**| Owner of the namespace |
  232. **connection_uuid** | **String**| UUID |
  233. **body** | [**V1ConnectionResponse**](V1ConnectionResponse.md)| Connection body |
  234. ### Return type
  235. [**V1ConnectionResponse**](V1ConnectionResponse.md)
  236. ### Authorization
  237. [ApiKey](../README.md#ApiKey)
  238. ### HTTP request headers
  239. - **Content-Type**: application/json
  240. - **Accept**: application/json
  241. ## updateConnection
  242. > V1ConnectionResponse updateConnection(owner, connection_uuid, body)
  243. Update connection
  244. ### Example
  245. ```javascript
  246. import PolyaxonSdk from 'polyaxon-sdk';
  247. let defaultClient = PolyaxonSdk.ApiClient.instance;
  248. // Configure API key authorization: ApiKey
  249. let ApiKey = defaultClient.authentications['ApiKey'];
  250. ApiKey.apiKey = 'YOUR API KEY';
  251. // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
  252. //ApiKey.apiKeyPrefix = 'Token';
  253. let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
  254. let owner = "owner_example"; // String | Owner of the namespace
  255. let connection_uuid = "connection_uuid_example"; // String | UUID
  256. let body = new PolyaxonSdk.V1ConnectionResponse(); // V1ConnectionResponse | Connection body
  257. apiInstance.updateConnection(owner, connection_uuid, body, (error, data, response) => {
  258. if (error) {
  259. console.error(error);
  260. } else {
  261. console.log('API called successfully. Returned data: ' + data);
  262. }
  263. });
  264. ```
  265. ### Parameters
  266. Name | Type | Description | Notes
  267. ------------- | ------------- | ------------- | -------------
  268. **owner** | **String**| Owner of the namespace |
  269. **connection_uuid** | **String**| UUID |
  270. **body** | [**V1ConnectionResponse**](V1ConnectionResponse.md)| Connection body |
  271. ### Return type
  272. [**V1ConnectionResponse**](V1ConnectionResponse.md)
  273. ### Authorization
  274. [ApiKey](../README.md#ApiKey)
  275. ### HTTP request headers
  276. - **Content-Type**: application/json
  277. - **Accept**: application/json