Home Manual Reference Source Test Repository
import RestRequest from 'opengate-js/src/schedule/RestRequest.js'
public class | source

RestRequest

Extends:

BaseProvision → RestRequest

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

Constructor Summary

Public Constructor
public

Constructor

Method Summary

Public Methods
public

toJson(): *

public

update()

public

withAsyncResponseMaxTimeToWaitCallback(asyncResponseMaxTimeToWaitCallback: string): RestRequest

Sets the async response with selected timeout

public

withBody(restRequestBody: string): RestRequest

Sets the body for restRequest

public

withHeaders(restRequestHeaders: string): RestRequest

Sets the header for restRequest

public

Sets the identifier attribute

public

withMethod(restRequestMethod: string): RestRequest

Sets the method for restRequest

public

withOrganization(organization: string): Channels

Set the organization attribute

public

Sets the crontab expression for schedule

public

Sets the isImmediateExecution attribute for schedule

public

withSyncResponseTimeout(syncResponseTimeout: string): RestRequest

Sets the sync response with selected timeout

public

withUrl(restRequestUrl: string): RestRequest

Sets the url for restRequest

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 toJson(): * source

Return:

*

public update() source

This invoke a request to OpenGate North API and the callback is managed by promises This function updates a entity of provision

Override:

BaseProvision#update

public withAsyncResponseMaxTimeToWaitCallback(asyncResponseMaxTimeToWaitCallback: string): RestRequest source

Sets the async response with selected timeout

Params:

NameTypeAttributeDescription
asyncResponseMaxTimeToWaitCallback string

Return:

RestRequest

public withBody(restRequestBody: string): RestRequest source

Sets the body for restRequest

Params:

NameTypeAttributeDescription
restRequestBody string

Return:

RestRequest

public withHeaders(restRequestHeaders: string): RestRequest source

Sets the header for restRequest

Params:

NameTypeAttributeDescription
restRequestHeaders string

Return:

RestRequest

public withIdentifier(identifier: string): RestRequest source

Sets the identifier attribute

Params:

NameTypeAttributeDescription
identifier string

Return:

RestRequest

public withMethod(restRequestMethod: string): RestRequest source

Sets the method for restRequest

Params:

NameTypeAttributeDescription
restRequestMethod string

Return:

RestRequest

public withOrganization(organization: string): Channels source

Set the organization attribute

Params:

NameTypeAttributeDescription
organization string

Return:

Channels

public withScheduleCronExpression(cronExpression: string): RestRequest source

Sets the crontab expression for schedule

Params:

NameTypeAttributeDescription
cronExpression string

Return:

RestRequest

public withScheduleImmediateExecution(isImmediateExecution: boolean): RestRequest source

Sets the isImmediateExecution attribute for schedule

Params:

NameTypeAttributeDescription
isImmediateExecution boolean

Return:

RestRequest

public withSyncResponseTimeout(syncResponseTimeout: string): RestRequest source

Sets the sync response with selected timeout

Params:

NameTypeAttributeDescription
syncResponseTimeout string

Return:

RestRequest

public withUrl(restRequestUrl: string): RestRequest source

Sets the url for restRequest

Params:

NameTypeAttributeDescription
restRequestUrl string

Return:

RestRequest