// This is Generated Source. import AccountDeviceUpdate from "../definitions/AccountDeviceUpdate"; import DeviceResource from "../definitions/DeviceResource"; import GetAccountDevicesResponse from "../definitions/GetAccountDevicesResponse"; import GetDeviceInfoResponse from "../definitions/GetDeviceInfoResponse"; import PathSegment from "../PathSegment"; export default class Device extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("device", id, prv, service); } /** *

Since 1.0.12 (Release 6.4)

Returns all the devices for a particular extension.

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

Usage Plan Group

Light

*/ list(): Promise { return this._send({ body: undefined, ignoreId: false, method: "get", query: undefined, }).then((res) => { return res.json(); }); } /** *

Since 1.0.12 (Release 6.4)

Returns all the devices for a particular extension.

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

Usage Plan Group

Light

* return {ApiResponse} */ listRaw(): Promise { return this._send({ body: undefined, ignoreId: false, method: "get", query: undefined, }); } /** *

Since 1.0.9 (Release 6.1)

Returns account device(s) by their ID(s).

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

Usage Plan Group

Light

*/ get(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }).then((res) => { return res.json(); }); } /** *

Since 1.0.9 (Release 6.1)

Returns account device(s) by their ID(s).

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

Usage Plan Group

Light

* return {ApiResponse} */ getRaw(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }); } /** * */ put(body: AccountDeviceUpdate): Promise { return this._send({ body: body, ignoreId: true, method: "put", query: undefined, }).then((res) => { return res.json(); }); } /** * * return {ApiResponse} */ putRaw(body: AccountDeviceUpdate): Promise { return this._send({ body: body, ignoreId: true, method: "put", query: undefined, }); } }