Constructor Summary
| Public Constructor | ||
| public |
constructor(ogapi: InternalOpenGateAPI, organization: string) Constructor |
|
Method Summary
| Public Methods | ||
| public |
addAllowedResourceType(resourceType: string): Datamodels Set the addAllowedResourceType attribute |
|
| public |
addCategory(category: Object, datastreams: Array): Datamodels Add a flavor. |
|
| public |
addDatastream(category: string, datastream: object): Datamodels Add a datastream to the indicated category |
|
| public |
delete() Delete not supported on this builder. |
|
| public |
update() Update not supported on this builder. |
|
| public |
withDescription(description: string): Datamodels Set the description attribute |
|
| public |
withIdentifier(identifier: string): Datamodels Set the identifier attribute |
|
| public |
withName(name: string): Datamodels Set the name attribute |
|
| public |
withVersion(version: string): Datamodels Set the version 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(ogapi: InternalOpenGateAPI, organization: string) source
Constructor
Override:
BaseProvision#constructorParams:
| Name | Type | Attribute | Description |
| ogapi | InternalOpenGateAPI |
|
this is ogapi instance |
| organization | string |
|
Organization where the IoT datamodel will be created |
Public Methods
public addAllowedResourceType(resourceType: string): Datamodels source
Set the addAllowedResourceType attribute
Params:
| Name | Type | Attribute | Description |
| resourceType | string | required field |
public addCategory(category: Object, datastreams: Array): Datamodels source
Add a flavor. If the field datastreams have value, they will add to this flavor
public addDatastream(category: string, datastream: object): Datamodels source
Add a datastream to the indicated category
public delete() source
Delete not supported on this builder. Use IoTDatamodelHelper instead.
Override:
BaseProvision#deletepublic update() source
Update not supported on this builder. Use IoTDatamodelHelper instead.
Override:
BaseProvision#updatepublic withDescription(description: string): Datamodels source
Set the description attribute
Params:
| Name | Type | Attribute | Description |
| description | string |
public withIdentifier(identifier: string): Datamodels source
Set the identifier attribute
Params:
| Name | Type | Attribute | Description |
| identifier | string |
|
required field |
public withName(name: string): Datamodels source
Set the name attribute
Params:
| Name | Type | Attribute | Description |
| name | string |
|
required field |
public withVersion(version: string): Datamodels source
Set the version attribute
Params:
| Name | Type | Attribute | Description |
| version | string |
|
required field |