Entity Builder
This is a base object that contains all you can do about Devices.
constructor
Constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| Reference | InternalOpenGateAPI |
❌ | to the API object. |
assetsBuilder(organization, timeout)
Get a AssetBuilder for operate with entities of type asset
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| organization | string |
❌ | required field |
| timeout | number |
✅ | timeout on request |
Retorna
Tip
Tipo: Promise
Ejemplos
devicesBuilder(organization, timeout)
Get a DeviceBuilder for operate with entities of type device
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| organization | string |
❌ | required field |
| timeout | number |
✅ | timeout on request |
Retorna
Tip
Tipo: Promise
Ejemplos
newCsvBulkBuilder(organization, resource, timeout, async)
Get a new CsvBulkBuilder
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| organization | string |
❌ | required field. |
| resource | string |
❌ | required field. Type of resource: entities or tickets |
| timeout | number |
✅ | timeout in millisecons. The request will have a specific time out if it will be exceeded then the promise throw an exception |
| async | boolean |
✅ | forces async execution for the bulk operation |
Retorna
Tip
Tipo: CsvBulkBuilder
Ejemplos
newJsonBulkBuilder(organization, resource, timeout, async)
Get a new JsonBulkBuilder
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| organization | string |
❌ | required field. |
| resource | string |
❌ | required field. Type of resource: entities or tickets |
| timeout | number |
✅ | timeout in millisecons. The request will have a specific time out if it will be exceeded then the promise throw an exception |
| async | boolean |
✅ | forces async execution for the bulk operation |
Retorna
Tip
Tipo: JsonBulkBuilder
Ejemplos
newJsonFlattenedBulkBuilder(organization, resource, timeout, async)
Get a new JsonFlattenedBulkBuilder
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| organization | string |
❌ | required field. |
| resource | string |
❌ | required field. Type of resource: entities or tickets |
| timeout | number |
✅ | timeout in millisecons. The request will have a specific time out if it will be exceeded then the promise throw an exception |
| async | boolean |
✅ | forces async execution for the bulk operation |
Retorna
Tip
Tipo: JsonFlattenedBulkBuilder
Ejemplos
subscribersBuilder(organization, timeout)
Get a SubscriberBuilder for operate with entities of type subscriber
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| organization | string |
❌ | required field |
| timeout | number |
✅ | timeout on request |
Retorna
Tip
Tipo: Promise
Ejemplos
subscriptionsBuilder(organization, timeout)
Get a SubscriptionBuilder for operate with entities of type subscription
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| organization | string |
❌ | required field |
| timeout | number |
✅ | timeout on request |
Retorna
Tip
Tipo: Promise
Ejemplos
ticketsBuilder(organization, timeout)
Get a TicketBuilder for operate with entities of type ticket
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| organization | string |
❌ | required field |
| timeout | number |
✅ | timeout on request |
Retorna
Tip
Tipo: Promise