()
| 30 | }); |
| 31 | } |
| 32 | async list(): Promise<DataSource[]> { |
| 33 | const response = await this.authUtil.requestWithAuthIfRequired({ |
| 34 | method: 'get', |
| 35 | url: '/api/datasources', |
| 36 | }); |
| 37 | if (response.status !== 200) { |
| 38 | throw new Error(`Unexpected status code: ${response.status}`); |
| 39 | } |
| 40 | if (!response.data) { |
| 41 | return null; |
| 42 | } |
| 43 | return response.data; |
| 44 | } |
| 45 | async get(account: string, container: string): Promise<DataSource> { |
| 46 | const response = await this.authUtil.requestWithAuthIfRequired({ |
| 47 | method: 'get', |
nothing calls this directly
no test coverage detected