/** * Config service. * @version 4.3.1 * @class ConfigApi */ export class ConfigApi { /** * Make the default {@link ApiClient} class available for developers to be able to extend it and bring * their own fetch methods into the SDK */ static get ApiClient(): typeof ApiClient; /** * Constructs a new ConfigApi. * @alias module:api/ConfigApi * @class * @param {module:ApiClient} [apiClient] Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ constructor(apiClient?: any); apiClient: any; /** * Retrieve the current LCM configuration for a cluster. * Retrieve the current LCM framework configuration for a cluster. The response includes the LCM repository URL, auto-inventory settings, framework version, connectivity type (connected-site or dark-site), HTTPS enforcement, and lists of supported and deprecated software entities. When operating from Prism Central, supply the X-Cluster-Id header to target a specific Prism Element cluster; omitting the header returns the Prism Central configuration. To modify the configuration, use PUT /config. * @param {Object} opts Optional parameters defined for the operation * @param { String } opts.xClusterId The cluster UUID on which the resource is present or the operation is being performed. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetConfigApiResponse } and HTTP response */ getConfig(opts: { xClusterId: string; }, ...args: any): Promise; /** * Update the LCM configuration for a cluster. * Update the LCM framework configuration for a cluster. Supply the full Config object in the request body with the desired changes. Updatable fields include the repository URL, auto-inventory toggle and schedule, HTTPS enforcement, and module auto-upgrade enablement. Read-only fields such as version and displayVersion are ignored in the request. The operation is asynchronous and returns a TaskReference; poll the task to confirm the configuration change succeeded. This endpoint requires the If-Match header with the ETag value from a prior GET /config response to prevent concurrent modification conflicts. When operating from Prism Central, supply the X-Cluster-Id header to target a specific Prism Element cluster. * @param { Partial } body specification * @param {Object} opts Optional parameters defined for the operation * @param { String } opts.xClusterId The cluster UUID on which the resource is present or the operation is being performed. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateConfigApiResponse } and HTTP response */ updateConfig(body: Partial, opts: { xClusterId: string; }, ...args: any): Promise; #private; } import GetConfigApiResponse from "../models/lifecycle/v4/resources/GetConfigApiResponse"; import ResourcesConfig from "../models/lifecycle/v4/resources/Config"; import UpdateConfigApiResponse from "../models/lifecycle/v4/resources/UpdateConfigApiResponse"; import { ApiClient } from "../ApiClient";