/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: fa7bcb35c15e */ import { indexingDatasourceStatus } from "../funcs/indexingDatasourceStatus.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Datasource extends ClientSDK { /** * Beta: Get datasource status * * @remarks * Gather information about the datasource's overall status. Currently in beta, might undergo breaking changes without prior notice. * * Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. */ async status( datasource: string, options?: RequestOptions, ): Promise { return unwrapAsync(indexingDatasourceStatus( this, datasource, options, )); } }