(account: string, container: string)
| 43 | return response.data; |
| 44 | } |
| 45 | async get(account: string, container: string): Promise<DataSource> { |
| 46 | const response = await this.authUtil.requestWithAuthIfRequired({ |
| 47 | method: 'get', |
| 48 | url: `/api/datasources/${account}/${container}/datasource`, |
| 49 | }); |
| 50 | if (response.status !== 200) { |
| 51 | throw new Error(`Unexpected status code: ${response.status}`); |
| 52 | } |
| 53 | if (!response.data) { |
| 54 | return null; |
| 55 | } |
| 56 | return response.data; |
| 57 | } |
| 58 | async getSasToken(account: string, container: string, filepath: string, write: boolean): Promise<Object> { |
| 59 | try { |
| 60 | const response = await this.authUtil.requestWithAuthIfRequired({ |
nothing calls this directly
no test coverage detected