Class: Drivers

repositories.Drivers

Drivers repository.

The Drivers class allows the user to manage drivers and their properties.

Hierarchy

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new Drivers(agent)

Creates an instance of Repository.

Parameters

Name Type
agent PeerAgent

Inherited from

Repository .constructor

Methods

query

query(): Promise<IPagedResponse<SDKDriver>>

Lists all the drivers in the active project.

Example

Copy
Copied
const pagedResponse = await dl.drivers.query()
const drivers = pagedResponse.items

Returns

Promise<IPagedResponse<SDKDriver>>

  • A promise that resolves to a paged response with the listed drivers.