Home Manual Reference Source Test Repository
public class | source

OperationType

Extends:

BaseProvision → OperationType

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

Constructor Summary

Public Constructor
public

Constructor

Method Summary

Public Methods
public

applicableTo(applicableTo: array): OperationType

Allows the modification of the applicableTo

public

Create a new Rule

public

Deletes the selected RuleConfiguration

public

Set the catalog

public

Udpate a Rule

public

Set the description attribute

public

Set the name for update attribute

public

withModels(models: array): OperationType

Allows the modification of the allowed models

public

Set the name attribute

public

Set the organization attribute

public

withParameters(parameters: array): OperationType

Allows the modification of the parameters

public

withProfiles(profiles: array): OperationType

Allows the modification of the profiles allowed

public

withSteps(steps: array): OperationType

Allows the modification of the steps

public

Set the title 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 applicableTo(applicableTo: array): OperationType source

Allows the modification of the applicableTo

Params:

NameTypeAttributeDescription
applicableTo array

Return:

OperationType

public create(): Promise source

Create a new Rule

Override:

BaseProvision#create

Return:

Promise

Throw:

Error

public delete(): Promise source

Deletes the selected RuleConfiguration

Override:

BaseProvision#delete

Return:

Promise

Throw:

Error

public fromCatalog(fromCatalog: string): OperationType source

Set the catalog

Params:

NameTypeAttributeDescription
fromCatalog string

Return:

OperationType

public update(): Promise source

Udpate a Rule

Override:

BaseProvision#update

Return:

Promise

Throw:

Error

public withDescription(description: string): OperationType source

Set the description attribute

Params:

NameTypeAttributeDescription
description string

Return:

OperationType

public withIdentifier(name: string): OperationType source

Set the name for update attribute

Params:

NameTypeAttributeDescription
name string

required field

Return:

OperationType

public withModels(models: array): OperationType source

Allows the modification of the allowed models

Params:

NameTypeAttributeDescription
models array

Return:

OperationType

public withName(name: string): OperationType source

Set the name attribute

Params:

NameTypeAttributeDescription
name string

required field

Return:

OperationType

public withOrganization(organization: string): OperationType source

Set the organization attribute

Params:

NameTypeAttributeDescription
organization string

required field

Return:

OperationType

public withParameters(parameters: array): OperationType source

Allows the modification of the parameters

Params:

NameTypeAttributeDescription
parameters array

Return:

OperationType

public withProfiles(profiles: array): OperationType source

Allows the modification of the profiles allowed

Params:

NameTypeAttributeDescription
profiles array

Return:

OperationType

public withSteps(steps: array): OperationType source

Allows the modification of the steps

Params:

NameTypeAttributeDescription
steps array

Return:

OperationType

public withTitle(title: string): OperationType source

Set the title attribute

Params:

NameTypeAttributeDescription
title string

required field

Return:

OperationType