OrganizationPlans
Extends:
This is a base object that contains all you can do about Organizations plan.
Constructor Summary
| Public Constructor | ||
| public |
constructor(Reference: InternalOpenGateAPI) |
|
Method Summary
| Public Methods | ||
| public |
withFlowRate(flowRate: object): OrganizationPlans Set the flowRate attribute |
|
| public |
withIdentifier(identifier: string): OrganizationPlans Set the identifier attribute |
|
| public |
withMaxDeviceAmount(maxDeviceAmount: object): OrganizationPlans Set the maxDeviceAmount attribute |
|
| public |
withMaxStorageLifeTime(maxStorageLifeTime: object): OrganizationPlans Set the maxStorageLifeTime attribute |
|
| public |
withName(name: string): OrganizationPlans Set the name attribute |
|
Inherited Summary
| From class BaseProvision | ||
| public |
This invoke a request to OpenGate North API and the callback is managed by promises This function create a entity of provision |
|
| public |
This invoke a request to OpenGate North API and the callback is managed by promises This function deletes a entity of provision |
|
| public |
This invoke a request to OpenGate North API and the callback is managed by promises This function updates a entity of provision |
|
Public Constructors
public constructor(Reference: InternalOpenGateAPI) source
Constructor
Override:
BaseProvision#constructorParams:
| Name | Type | Attribute | Description |
| Reference | InternalOpenGateAPI | to the API object. |
Public Methods
public withFlowRate(flowRate: object): OrganizationPlans source
Set the flowRate attribute
Params:
| Name | Type | Attribute | Description |
| flowRate | object | {value: number, unit: [SECONDS, MINUTES, HOURS, DAYS, MONTHS, YEARS]} |
public withIdentifier(identifier: string): OrganizationPlans source
Set the identifier attribute
Params:
| Name | Type | Attribute | Description |
| identifier | string | required field |
public withMaxDeviceAmount(maxDeviceAmount: object): OrganizationPlans source
Set the maxDeviceAmount attribute
Params:
| Name | Type | Attribute | Description |
| maxDeviceAmount | object | optional and greater than 0 |
public withMaxStorageLifeTime(maxStorageLifeTime: object): OrganizationPlans source
Set the maxStorageLifeTime attribute
Params:
| Name | Type | Attribute | Description |
| maxStorageLifeTime | object | required field: {total: number, period: [SECONDS, MINUTES, HOURS, DAYS, MONTHS, YEARS]} |
public withName(name: string): OrganizationPlans source
Set the name attribute
Params:
| Name | Type | Attribute | Description |
| name | string | required field |