Models
Extends:
This is a base object that contains all you can do about Models.
Constructor Summary
| Public Constructor | ||
| public |
constructor(Reference: InternalOpenGateAPI) Constructor |
|
Method Summary
| Public Methods | ||
| public |
deleteInCascade(): * |
|
| public |
updateInCascade(): * |
|
| public |
withDescription(description: string): Models Set the description attribute |
|
| public |
withIdentifier(id: string): Models Set the identifier attribute |
|
| public |
Set the name attribute |
|
| public |
Set the notes attribute |
|
| public |
Set the url attribute |
|
| public |
withVersion(version: string): Models 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(Reference: InternalOpenGateAPI) source
Constructor
Override:
BaseProvision#constructorParams:
| Name | Type | Attribute | Description |
| Reference | InternalOpenGateAPI | to the API object. |
Public Methods
public withDescription(description: string): Models source
Set the description attribute
Params:
| Name | Type | Attribute | Description |
| description | string | required field |
public withIdentifier(id: string): Models source
Set the identifier attribute
Params:
| Name | Type | Attribute | Description |
| id | string | required field |
public withName(name: string): Models source
Set the name attribute
Params:
| Name | Type | Attribute | Description |
| name | string | required field |
public withNotes(notes: string): Models source
Set the notes attribute
Params:
| Name | Type | Attribute | Description |
| notes | string |