Class: Drivers
repositories.Drivers
Drivers repository.
The Drivers class allows the user to manage drivers and their properties.
Hierarchy
-
Repository
↳
Drivers
Implements
Table of contents
Constructors
Methods
Constructors
constructor
• new Drivers(agent
)
Creates an instance of Repository.
Parameters
Name | Type |
---|---|
agent |
PeerAgent |
Inherited from
Methods
query
▸ query(): Promise
<IPagedResponse
<SDKDriver
>>
Lists all the drivers in the active project.
Example
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.