Skip to content

Latest commit

 

History

History
312 lines (181 loc) · 8.27 KB

c8outils.md

File metadata and controls

312 lines (181 loc) · 8.27 KB

c8osdkjscoreC8oUtils

Class: C8oUtils

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new C8oUtils(http: HttpClient): C8oUtils

Overrides C8oUtilsCore.constructor

Defined in lib/c8oUtils.service.ts:8

Parameters:

Name Type
http HttpClient

Returns: C8oUtils

Properties

data

data: JSON

Inherited from C8oUtilsCore.data

Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:6


Private http

http: HttpClient

Defined in lib/c8oUtils.service.ts:10

Methods

Static MD5

MD5(str: string): string

Inherited from C8oUtilsCore.MD5

Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:29

returns 128 bits hash using MD5 algo

Parameters:

Name Type Description
str string any string

Returns: string


Static MD5ArrayBuffer

MD5ArrayBuffer(str: any): Buffer

Inherited from C8oUtilsCore.MD5ArrayBuffer

Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:38

Parameters:

Name Type Description
str any any string

Returns: Buffer


Static checkHeaderArgument

checkHeaderArgument(response: any, argument: any): any

Inherited from C8oUtilsCore.checkHeaderArgument

Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:154

Parameters:

Name Type
response any
argument any

Returns: any


Static getNewGUIDString

getNewGUIDString(): string

Inherited from C8oUtilsCore.getNewGUIDString

Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:43

Returns: string


Static getObjectClassName

getObjectClassName(object: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function"

Inherited from C8oUtilsCore.getObjectClassName

Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:17

Returns the class name of the object as a String, if the object is null then returns the String "null".

Parameters:

Name Type
object any

Returns: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function"

string


Static getParameter

getParameter(parameters: Object, name: string, useName: boolean): any

Inherited from C8oUtilsCore.getParameter

Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:74

TAG Parameter

Parameters:

Name Type
parameters Object
name string
useName boolean

Returns: any


Static getParameterObjectValue

getParameterObjectValue(parameters: Object, name: string, useName: boolean): any

Inherited from C8oUtilsCore.getParameterObjectValue

Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:103

Parameters:

Name Type Default
parameters Object -
name string -
useName boolean false

Returns: any


Static getParameterStringValue

getParameterStringValue(parameters: Object, name: string, useName: boolean): string

Inherited from C8oUtilsCore.getParameterStringValue

Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:95

Searches in the list the parameter with this specific name (or the same name with the prefix 'use') and returns it.
Returns null if the parameter is not found.

Parameters:

Name Type
parameters Object
name string
useName boolean

Returns: string

string


Static identifyC8oCallRequest

identifyC8oCallRequest(parameters: Object, responseType: string): string

Inherited from C8oUtilsCore.identifyC8oCallRequest

Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:150

Serializes a c8o call request thanks to its parameters and response type.

throws C8oException

Parameters:

Name Type
parameters Object
responseType string

Returns: string

string


Static isValidUrl

isValidUrl(url: string): boolean

Inherited from C8oUtilsCore.isValidUrl

Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:21

Parameters:

Name Type
url string

Returns: boolean


Static peekParameterObjectValue

peekParameterObjectValue(parameters: Object, name: string, exceptionIfMissing: boolean): string

Inherited from C8oUtilsCore.peekParameterObjectValue

Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:129

Parameters:

Name Type
parameters Object
name string
exceptionIfMissing boolean

Returns: string


Static peekParameterStringValue

peekParameterStringValue(parameters: Object, name: string, exceptionIfMissing: boolean): string

Inherited from C8oUtilsCore.peekParameterStringValue

Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:115

Parameters:

Name Type
parameters Object
name string
exceptionIfMissing boolean

Returns: string