Maximo API Client - v0.9.01
    Preparing search index...

    Class MASClientBuilder

    Builder for creating MASClient instances. Allows configuring common settings for all sub-clients (Manage, Tools, etc.) and specific settings for each.

    Index

    Methods

    • Sets the base URL for the MAS suite. This will be used as the default base URL for all sub-clients.

      Parameters

      • url: string

        The base URL

      Returns this

    • Configures authentication using an API key. This API key will be used for all clients that support it.

      Parameters

      • apiKey: string

        The API key

      Returns this

    • Configures SSL settings.

      Parameters

      • enabled: boolean

        True to enable SSL

      Returns this

    • Configures whether to reject unauthorized certificates.

      Parameters

      • reject: boolean

        True to reject, false to allow

      Returns this

    • Returns this

    • Sets the CA certificate content for all clients.

      Parameters

      • ca: string

        The CA certificate content

      Returns this

    • Sets the path to the CA certificate file for all clients.

      Parameters

      • path: string

        The path to the CA certificate file

      Returns this

    • Enables or disables automatic certificate extraction for all clients.

      Parameters

      • enabled: boolean

        True to enable auto extraction

      Returns this

    • Sets the request timeout for all clients.

      Parameters

      • ms: number

        Timeout in milliseconds

      Returns this

    • Sets the log level for all clients.

      Parameters

      Returns this

    • Sets a custom logger for all clients.

      Parameters

      • logger: ILogger

        The logger instance

      Returns this

    • Sets the authentication type for the Manage client.

      Parameters

      Returns this

    • Sets the API home path for the Manage client.

      Parameters

      • home: ApiHome

        The API home (OSLC, API, REST)

      Returns this

    • Configures the Manage (OSLC/REST) client.

      Parameters

      • configurer: (builder: MaximoClientBuilder) => void

        A function that receives a MaximoClientBuilder to configure the Manage client.

      Returns this

    • Configures the Tools API client.

      Parameters

      • configurer: (builder: MaximoToolsClientBuilder) => void

        A function that receives a MaximoToolsClientBuilder to configure the Tools client.

      Returns this

    • Validates the configuration and builds the MASClient.

      Returns MASClient

      A new MASClient instance

    Constructors