Certificates

Certificates

Certificates Objects

class Certificates()

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

constructor
function constructor()

Constructor

Arguments:

  • Reference InternalOpenGateAPI - to the API object.

create
function create(rawFile: File) -> 'Promise'

This invoke a request to OpenGate North API and the callback is managed by promises This method create an element certificate

Arguments:

  • rawFile File - this File is the certificate

Returns:

  • Promise

update
function update() -> 'Promise'

This invoke a request to OpenGate North API and the callback is managed by promises This method update an element certificate

Returns:

  • Promise

withAdministrativeState
function withAdministrativeState(administrativeState: string) -> 'Certificates'

Set the administrativeState attribute

Arguments:

  • administrativeState string

Returns:

  • Certificates

withDescription
function withDescription(description: string) -> 'Certificates'

Set the description attribute

Arguments:

  • description string - optional field

Returns:

  • Certificates

withDomains
function withDomains(domains: Array) -> 'Certificates'

Set the domains attribute

Arguments:

  • domains Array

Returns:

  • Certificates

withId
function withId(id: string) -> 'Certificates'

Set the id attribute

Arguments:

  • id string - required field on delete

Returns:

  • Certificates

withName
function withName(name: string) -> 'Certificates'

Set the name attribute

Arguments:

  • name string - required field

Returns:

  • Certificates

withParameters
function withParameters(parameters: string) -> 'Certificates'

Set the parameters attribute

Arguments:

  • parameters string - optional field

Returns:

  • Certificates

withTags
function withTags(tags: Array) -> 'Certificates'

Set the tags attribute

Arguments:

  • tags Array

Returns:

  • Certificates

withUsages
function withUsages(usages: Array) -> 'Certificates'

Set the usages attribute

Arguments:

  • usages Array

Returns:

  • Certificates