Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseAPI
    • VehiclesApi

Index

Constructors

constructor

  • new VehiclesApi(configuration?: Configuration): VehiclesApi
  • Parameters

    • configuration: Configuration = ...

    Returns VehiclesApi

Properties

Protected configuration

configuration: Configuration = ...

Methods

getVehicle

getVehicleRaw

  • getVehicleRaw(requestParameters: GetVehicleRequest): Promise<ApiResponse<VehicleResponse>>

listVehicles

listVehiclesRaw

  • listVehiclesRaw(requestParameters: ListVehiclesRequest): Promise<ApiResponse<ListVehiclesResponse>>

Protected request

  • request(context: RequestOpts): Promise<Response>
  • Parameters

    • context: RequestOpts

    Returns Promise<Response>

updateVehicle

  • Updates the given Vehicle object. Note: Vehicle objects are automatically created when Samsara Vehicle Gateways are installed. You cannot create a Vehicle object via API. You are able to update many of the fields of a Vehicle. Note: There are no required fields in the request body, and you only need to provide the fields you wish to update. Update a vehicle

    Parameters

    Returns Promise<VehicleResponse>

updateVehicleRaw

  • Updates the given Vehicle object. Note: Vehicle objects are automatically created when Samsara Vehicle Gateways are installed. You cannot create a Vehicle object via API. You are able to update many of the fields of a Vehicle. Note: There are no required fields in the request body, and you only need to provide the fields you wish to update. Update a vehicle

    Parameters

    Returns Promise<ApiResponse<VehicleResponse>>

withMiddleware

  • withMiddleware<T>(...middlewares: Middleware[]): T
  • Type parameters

    • T: BaseAPI<T>

    Parameters

    • Rest ...middlewares: Middleware[]

    Returns T

withPostMiddleware

  • withPostMiddleware<T>(...postMiddlewares: ((context: ResponseContext) => Promise<void | Response>)[]): T
  • Type parameters

    • T: BaseAPI<T>

    Parameters

    • Rest ...postMiddlewares: ((context: ResponseContext) => Promise<void | Response>)[]

    Returns T

withPreMiddleware

  • withPreMiddleware<T>(...preMiddlewares: ((context: RequestContext) => Promise<void | FetchParams>)[]): T
  • Type parameters

    • T: BaseAPI<T>

    Parameters

    • Rest ...preMiddlewares: ((context: RequestContext) => Promise<void | FetchParams>)[]

    Returns T

Generated using TypeDoc