-
↳ C8oUtils
- MD5
- MD5ArrayBuffer
- checkHeaderArgument
- getNewGUIDString
- getObjectClassName
- getParameter
- getParameterObjectValue
- getParameterStringValue
- identifyC8oCallRequest
- isValidUrl
- peekParameterObjectValue
- peekParameterStringValue
+ new C8oUtils(http: HttpClient): C8oUtils
Overrides C8oUtilsCore.constructor
Defined in lib/c8oUtils.service.ts:8
Parameters:
| Name | Type |
|---|---|
http |
HttpClient |
Returns: C8oUtils
• data: JSON
Inherited from C8oUtilsCore.data
Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:6
• http: HttpClient
Defined in lib/c8oUtils.service.ts:10
▸ 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
▸ 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
▸ 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
▸ getNewGUIDString(): string
Inherited from C8oUtilsCore.getNewGUIDString
Defined in c8osdk-js-core/src/c8o/c8oUtilsCore.ts:43
Returns: string
▸ 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
▸ 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
▸ 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
▸ 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
▸ 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
▸ 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
▸ 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
▸ 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