Home Manual Reference Source Test Repository
public class | source

Models

Extends:

BaseProvision → Models

This is a base object that contains all you can do about Models.

Constructor Summary

Public Constructor
public

Constructor

Method Summary

Public Methods
public
public
public

withDescription(description: string): Models

Set the description attribute

public

Set the identifier attribute

public

Set the name attribute

public

Set the notes attribute

public

Set the url attribute

public

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

delete(body: *): Promise

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#constructor

Params:

NameTypeAttributeDescription
Reference InternalOpenGateAPI

to the API object.

Public Methods

public deleteInCascade(): * source

Return:

*

public updateInCascade(): * source

Return:

*

public withDescription(description: string): Models source

Set the description attribute

Params:

NameTypeAttributeDescription
description string

required field

Return:

Models

public withIdentifier(id: string): Models source

Set the identifier attribute

Params:

NameTypeAttributeDescription
id string

required field

Return:

Models

public withName(name: string): Models source

Set the name attribute

Params:

NameTypeAttributeDescription
name string

required field

Return:

Models

public withNotes(notes: string): Models source

Set the notes attribute

Params:

NameTypeAttributeDescription
notes string

Return:

Models

public withUrl(url: string): Models source

Set the url attribute

Params:

NameTypeAttributeDescription
url string

Return:

Models

public withVersion(version: string): Models source

Set the version attribute

Params:

NameTypeAttributeDescription
version string

Return:

Models