@wandelbots/nova-api 25.4.0-dev.2 → 25.4.0-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/v2/api.d.ts +162 -19
- package/v2/api.js +254 -1
- package/v2/api.js.map +1 -1
- package/v2/api.ts +311 -19
package/package.json
CHANGED
package/v2/api.d.ts
CHANGED
|
@@ -870,6 +870,31 @@ export interface Compound {
|
|
|
870
870
|
*/
|
|
871
871
|
'child_geometries': Array<Geometry>;
|
|
872
872
|
}
|
|
873
|
+
/**
|
|
874
|
+
* Configuration resource object.
|
|
875
|
+
* @export
|
|
876
|
+
* @interface ConfigurationResource
|
|
877
|
+
*/
|
|
878
|
+
export interface ConfigurationResource {
|
|
879
|
+
/**
|
|
880
|
+
* Identifier of a configuration resource.
|
|
881
|
+
* @type {string}
|
|
882
|
+
* @memberof ConfigurationResource
|
|
883
|
+
*/
|
|
884
|
+
'id': string;
|
|
885
|
+
/**
|
|
886
|
+
* Human-readable name of the configuration resource.
|
|
887
|
+
* @type {string}
|
|
888
|
+
* @memberof ConfigurationResource
|
|
889
|
+
*/
|
|
890
|
+
'name': string;
|
|
891
|
+
/**
|
|
892
|
+
* Array of configuration resources.
|
|
893
|
+
* @type {Array<ConfigurationResource>}
|
|
894
|
+
* @memberof ConfigurationResource
|
|
895
|
+
*/
|
|
896
|
+
'children'?: Array<ConfigurationResource>;
|
|
897
|
+
}
|
|
873
898
|
/**
|
|
874
899
|
*
|
|
875
900
|
* @export
|
|
@@ -5556,25 +5581,6 @@ export interface StartOnIO {
|
|
|
5556
5581
|
*/
|
|
5557
5582
|
'comparator': Comparator;
|
|
5558
5583
|
}
|
|
5559
|
-
/**
|
|
5560
|
-
* The `Status` type defines a logical error model that is suitable for different programming environments including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `status` message contains two pieces of data: error code and error message. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
5561
|
-
* @export
|
|
5562
|
-
* @interface Status
|
|
5563
|
-
*/
|
|
5564
|
-
export interface Status {
|
|
5565
|
-
/**
|
|
5566
|
-
* The status code, which should be an enum value of [google.rpc.Code](https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto).
|
|
5567
|
-
* @type {number}
|
|
5568
|
-
* @memberof Status
|
|
5569
|
-
*/
|
|
5570
|
-
'code'?: number;
|
|
5571
|
-
/**
|
|
5572
|
-
* An error message in English.
|
|
5573
|
-
* @type {string}
|
|
5574
|
-
* @memberof Status
|
|
5575
|
-
*/
|
|
5576
|
-
'message'?: string;
|
|
5577
|
-
}
|
|
5578
5584
|
/**
|
|
5579
5585
|
*
|
|
5580
5586
|
* @export
|
|
@@ -6759,6 +6765,143 @@ export declare class CellApi extends BaseAPI {
|
|
|
6759
6765
|
*/
|
|
6760
6766
|
updateCell(cell: string, cell2: Cell, completionTimeout?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
6761
6767
|
}
|
|
6768
|
+
/**
|
|
6769
|
+
* ConfigurationApi - axios parameter creator
|
|
6770
|
+
* @export
|
|
6771
|
+
*/
|
|
6772
|
+
export declare const ConfigurationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
6773
|
+
/**
|
|
6774
|
+
* Retrieves a configuration backup based on provided resource identifiers.
|
|
6775
|
+
* @summary Retrieve Configuration Backup
|
|
6776
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
6777
|
+
* @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
|
|
6778
|
+
* @param {*} [options] Override http request option.
|
|
6779
|
+
* @throws {RequiredError}
|
|
6780
|
+
*/
|
|
6781
|
+
backupConfiguration: (resources: Array<string>, metadata?: {
|
|
6782
|
+
[key: string]: string;
|
|
6783
|
+
}, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6784
|
+
/**
|
|
6785
|
+
* Retrieves a list of all available configuration resources for backup purposes.
|
|
6786
|
+
* @summary List Configuration Resources
|
|
6787
|
+
* @param {*} [options] Override http request option.
|
|
6788
|
+
* @throws {RequiredError}
|
|
6789
|
+
*/
|
|
6790
|
+
listConfigurationResources: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6791
|
+
/**
|
|
6792
|
+
* Restores a previously backed up configuration.
|
|
6793
|
+
* @summary Restore Configuration Backup
|
|
6794
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
6795
|
+
* @param {File} body Backup file stream containing the configuration to restore.
|
|
6796
|
+
* @param {*} [options] Override http request option.
|
|
6797
|
+
* @throws {RequiredError}
|
|
6798
|
+
*/
|
|
6799
|
+
restoreConfiguration: (resources: Array<string>, body: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6800
|
+
};
|
|
6801
|
+
/**
|
|
6802
|
+
* ConfigurationApi - functional programming interface
|
|
6803
|
+
* @export
|
|
6804
|
+
*/
|
|
6805
|
+
export declare const ConfigurationApiFp: (configuration?: Configuration) => {
|
|
6806
|
+
/**
|
|
6807
|
+
* Retrieves a configuration backup based on provided resource identifiers.
|
|
6808
|
+
* @summary Retrieve Configuration Backup
|
|
6809
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
6810
|
+
* @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
|
|
6811
|
+
* @param {*} [options] Override http request option.
|
|
6812
|
+
* @throws {RequiredError}
|
|
6813
|
+
*/
|
|
6814
|
+
backupConfiguration(resources: Array<string>, metadata?: {
|
|
6815
|
+
[key: string]: string;
|
|
6816
|
+
}, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
6817
|
+
/**
|
|
6818
|
+
* Retrieves a list of all available configuration resources for backup purposes.
|
|
6819
|
+
* @summary List Configuration Resources
|
|
6820
|
+
* @param {*} [options] Override http request option.
|
|
6821
|
+
* @throws {RequiredError}
|
|
6822
|
+
*/
|
|
6823
|
+
listConfigurationResources(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ConfigurationResource>>>;
|
|
6824
|
+
/**
|
|
6825
|
+
* Restores a previously backed up configuration.
|
|
6826
|
+
* @summary Restore Configuration Backup
|
|
6827
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
6828
|
+
* @param {File} body Backup file stream containing the configuration to restore.
|
|
6829
|
+
* @param {*} [options] Override http request option.
|
|
6830
|
+
* @throws {RequiredError}
|
|
6831
|
+
*/
|
|
6832
|
+
restoreConfiguration(resources: Array<string>, body: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
6833
|
+
};
|
|
6834
|
+
/**
|
|
6835
|
+
* ConfigurationApi - factory interface
|
|
6836
|
+
* @export
|
|
6837
|
+
*/
|
|
6838
|
+
export declare const ConfigurationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
6839
|
+
/**
|
|
6840
|
+
* Retrieves a configuration backup based on provided resource identifiers.
|
|
6841
|
+
* @summary Retrieve Configuration Backup
|
|
6842
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
6843
|
+
* @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
|
|
6844
|
+
* @param {*} [options] Override http request option.
|
|
6845
|
+
* @throws {RequiredError}
|
|
6846
|
+
*/
|
|
6847
|
+
backupConfiguration(resources: Array<string>, metadata?: {
|
|
6848
|
+
[key: string]: string;
|
|
6849
|
+
}, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
6850
|
+
/**
|
|
6851
|
+
* Retrieves a list of all available configuration resources for backup purposes.
|
|
6852
|
+
* @summary List Configuration Resources
|
|
6853
|
+
* @param {*} [options] Override http request option.
|
|
6854
|
+
* @throws {RequiredError}
|
|
6855
|
+
*/
|
|
6856
|
+
listConfigurationResources(options?: RawAxiosRequestConfig): AxiosPromise<Array<ConfigurationResource>>;
|
|
6857
|
+
/**
|
|
6858
|
+
* Restores a previously backed up configuration.
|
|
6859
|
+
* @summary Restore Configuration Backup
|
|
6860
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
6861
|
+
* @param {File} body Backup file stream containing the configuration to restore.
|
|
6862
|
+
* @param {*} [options] Override http request option.
|
|
6863
|
+
* @throws {RequiredError}
|
|
6864
|
+
*/
|
|
6865
|
+
restoreConfiguration(resources: Array<string>, body: File, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
6866
|
+
};
|
|
6867
|
+
/**
|
|
6868
|
+
* ConfigurationApi - object-oriented interface
|
|
6869
|
+
* @export
|
|
6870
|
+
* @class ConfigurationApi
|
|
6871
|
+
* @extends {BaseAPI}
|
|
6872
|
+
*/
|
|
6873
|
+
export declare class ConfigurationApi extends BaseAPI {
|
|
6874
|
+
/**
|
|
6875
|
+
* Retrieves a configuration backup based on provided resource identifiers.
|
|
6876
|
+
* @summary Retrieve Configuration Backup
|
|
6877
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
6878
|
+
* @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
|
|
6879
|
+
* @param {*} [options] Override http request option.
|
|
6880
|
+
* @throws {RequiredError}
|
|
6881
|
+
* @memberof ConfigurationApi
|
|
6882
|
+
*/
|
|
6883
|
+
backupConfiguration(resources: Array<string>, metadata?: {
|
|
6884
|
+
[key: string]: string;
|
|
6885
|
+
}, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
6886
|
+
/**
|
|
6887
|
+
* Retrieves a list of all available configuration resources for backup purposes.
|
|
6888
|
+
* @summary List Configuration Resources
|
|
6889
|
+
* @param {*} [options] Override http request option.
|
|
6890
|
+
* @throws {RequiredError}
|
|
6891
|
+
* @memberof ConfigurationApi
|
|
6892
|
+
*/
|
|
6893
|
+
listConfigurationResources(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConfigurationResource[], any>>;
|
|
6894
|
+
/**
|
|
6895
|
+
* Restores a previously backed up configuration.
|
|
6896
|
+
* @summary Restore Configuration Backup
|
|
6897
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
6898
|
+
* @param {File} body Backup file stream containing the configuration to restore.
|
|
6899
|
+
* @param {*} [options] Override http request option.
|
|
6900
|
+
* @throws {RequiredError}
|
|
6901
|
+
* @memberof ConfigurationApi
|
|
6902
|
+
*/
|
|
6903
|
+
restoreConfiguration(resources: Array<string>, body: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
6904
|
+
}
|
|
6762
6905
|
/**
|
|
6763
6906
|
* ControllerApi - axios parameter creator
|
|
6764
6907
|
* @export
|
package/v2/api.js
CHANGED
|
@@ -16,7 +16,7 @@ import globalAxios from 'axios';
|
|
|
16
16
|
// @ts-ignore
|
|
17
17
|
import { DUMMY_BASE_URL, assertParamExists, setBasicAuthToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
19
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from './base';
|
|
20
20
|
export const AbbControllerKindEnum = {
|
|
21
21
|
AbbController: 'AbbController'
|
|
22
22
|
};
|
|
@@ -1640,6 +1640,259 @@ export class CellApi extends BaseAPI {
|
|
|
1640
1640
|
return CellApiFp(this.configuration).updateCell(cell, cell2, completionTimeout, options).then((request) => request(this.axios, this.basePath));
|
|
1641
1641
|
}
|
|
1642
1642
|
}
|
|
1643
|
+
/**
|
|
1644
|
+
* ConfigurationApi - axios parameter creator
|
|
1645
|
+
* @export
|
|
1646
|
+
*/
|
|
1647
|
+
export const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
1648
|
+
return {
|
|
1649
|
+
/**
|
|
1650
|
+
* Retrieves a configuration backup based on provided resource identifiers.
|
|
1651
|
+
* @summary Retrieve Configuration Backup
|
|
1652
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
1653
|
+
* @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
|
|
1654
|
+
* @param {*} [options] Override http request option.
|
|
1655
|
+
* @throws {RequiredError}
|
|
1656
|
+
*/
|
|
1657
|
+
backupConfiguration: async (resources, metadata, options = {}) => {
|
|
1658
|
+
// verify required parameter 'resources' is not null or undefined
|
|
1659
|
+
assertParamExists('backupConfiguration', 'resources', resources);
|
|
1660
|
+
const localVarPath = `/system/configuration`;
|
|
1661
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1662
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1663
|
+
let baseOptions;
|
|
1664
|
+
if (configuration) {
|
|
1665
|
+
baseOptions = configuration.baseOptions;
|
|
1666
|
+
}
|
|
1667
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1668
|
+
const localVarHeaderParameter = {};
|
|
1669
|
+
const localVarQueryParameter = {};
|
|
1670
|
+
// authentication BasicAuth required
|
|
1671
|
+
// http basic authentication required
|
|
1672
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1673
|
+
// authentication BearerAuth required
|
|
1674
|
+
// http bearer authentication required
|
|
1675
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1676
|
+
if (resources) {
|
|
1677
|
+
localVarQueryParameter['resources'] = resources.join(COLLECTION_FORMATS.csv);
|
|
1678
|
+
}
|
|
1679
|
+
if (metadata !== undefined) {
|
|
1680
|
+
localVarQueryParameter['metadata'] = metadata;
|
|
1681
|
+
}
|
|
1682
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1683
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1684
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1685
|
+
return {
|
|
1686
|
+
url: toPathString(localVarUrlObj),
|
|
1687
|
+
options: localVarRequestOptions,
|
|
1688
|
+
};
|
|
1689
|
+
},
|
|
1690
|
+
/**
|
|
1691
|
+
* Retrieves a list of all available configuration resources for backup purposes.
|
|
1692
|
+
* @summary List Configuration Resources
|
|
1693
|
+
* @param {*} [options] Override http request option.
|
|
1694
|
+
* @throws {RequiredError}
|
|
1695
|
+
*/
|
|
1696
|
+
listConfigurationResources: async (options = {}) => {
|
|
1697
|
+
const localVarPath = `/system/configuration/resources`;
|
|
1698
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1699
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1700
|
+
let baseOptions;
|
|
1701
|
+
if (configuration) {
|
|
1702
|
+
baseOptions = configuration.baseOptions;
|
|
1703
|
+
}
|
|
1704
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1705
|
+
const localVarHeaderParameter = {};
|
|
1706
|
+
const localVarQueryParameter = {};
|
|
1707
|
+
// authentication BasicAuth required
|
|
1708
|
+
// http basic authentication required
|
|
1709
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1710
|
+
// authentication BearerAuth required
|
|
1711
|
+
// http bearer authentication required
|
|
1712
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1713
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1714
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1715
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1716
|
+
return {
|
|
1717
|
+
url: toPathString(localVarUrlObj),
|
|
1718
|
+
options: localVarRequestOptions,
|
|
1719
|
+
};
|
|
1720
|
+
},
|
|
1721
|
+
/**
|
|
1722
|
+
* Restores a previously backed up configuration.
|
|
1723
|
+
* @summary Restore Configuration Backup
|
|
1724
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
1725
|
+
* @param {File} body Backup file stream containing the configuration to restore.
|
|
1726
|
+
* @param {*} [options] Override http request option.
|
|
1727
|
+
* @throws {RequiredError}
|
|
1728
|
+
*/
|
|
1729
|
+
restoreConfiguration: async (resources, body, options = {}) => {
|
|
1730
|
+
// verify required parameter 'resources' is not null or undefined
|
|
1731
|
+
assertParamExists('restoreConfiguration', 'resources', resources);
|
|
1732
|
+
// verify required parameter 'body' is not null or undefined
|
|
1733
|
+
assertParamExists('restoreConfiguration', 'body', body);
|
|
1734
|
+
const localVarPath = `/system/configuration`;
|
|
1735
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1736
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1737
|
+
let baseOptions;
|
|
1738
|
+
if (configuration) {
|
|
1739
|
+
baseOptions = configuration.baseOptions;
|
|
1740
|
+
}
|
|
1741
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1742
|
+
const localVarHeaderParameter = {};
|
|
1743
|
+
const localVarQueryParameter = {};
|
|
1744
|
+
// authentication BasicAuth required
|
|
1745
|
+
// http basic authentication required
|
|
1746
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1747
|
+
// authentication BearerAuth required
|
|
1748
|
+
// http bearer authentication required
|
|
1749
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1750
|
+
if (resources) {
|
|
1751
|
+
localVarQueryParameter['resources'] = resources.join(COLLECTION_FORMATS.csv);
|
|
1752
|
+
}
|
|
1753
|
+
localVarHeaderParameter['Content-Type'] = 'application/gzip';
|
|
1754
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1755
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1756
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1757
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
1758
|
+
return {
|
|
1759
|
+
url: toPathString(localVarUrlObj),
|
|
1760
|
+
options: localVarRequestOptions,
|
|
1761
|
+
};
|
|
1762
|
+
},
|
|
1763
|
+
};
|
|
1764
|
+
};
|
|
1765
|
+
/**
|
|
1766
|
+
* ConfigurationApi - functional programming interface
|
|
1767
|
+
* @export
|
|
1768
|
+
*/
|
|
1769
|
+
export const ConfigurationApiFp = function (configuration) {
|
|
1770
|
+
const localVarAxiosParamCreator = ConfigurationApiAxiosParamCreator(configuration);
|
|
1771
|
+
return {
|
|
1772
|
+
/**
|
|
1773
|
+
* Retrieves a configuration backup based on provided resource identifiers.
|
|
1774
|
+
* @summary Retrieve Configuration Backup
|
|
1775
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
1776
|
+
* @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
|
|
1777
|
+
* @param {*} [options] Override http request option.
|
|
1778
|
+
* @throws {RequiredError}
|
|
1779
|
+
*/
|
|
1780
|
+
async backupConfiguration(resources, metadata, options) {
|
|
1781
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backupConfiguration(resources, metadata, options);
|
|
1782
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1783
|
+
const localVarOperationServerBasePath = operationServerMap['ConfigurationApi.backupConfiguration']?.[localVarOperationServerIndex]?.url;
|
|
1784
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1785
|
+
},
|
|
1786
|
+
/**
|
|
1787
|
+
* Retrieves a list of all available configuration resources for backup purposes.
|
|
1788
|
+
* @summary List Configuration Resources
|
|
1789
|
+
* @param {*} [options] Override http request option.
|
|
1790
|
+
* @throws {RequiredError}
|
|
1791
|
+
*/
|
|
1792
|
+
async listConfigurationResources(options) {
|
|
1793
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listConfigurationResources(options);
|
|
1794
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1795
|
+
const localVarOperationServerBasePath = operationServerMap['ConfigurationApi.listConfigurationResources']?.[localVarOperationServerIndex]?.url;
|
|
1796
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1797
|
+
},
|
|
1798
|
+
/**
|
|
1799
|
+
* Restores a previously backed up configuration.
|
|
1800
|
+
* @summary Restore Configuration Backup
|
|
1801
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
1802
|
+
* @param {File} body Backup file stream containing the configuration to restore.
|
|
1803
|
+
* @param {*} [options] Override http request option.
|
|
1804
|
+
* @throws {RequiredError}
|
|
1805
|
+
*/
|
|
1806
|
+
async restoreConfiguration(resources, body, options) {
|
|
1807
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.restoreConfiguration(resources, body, options);
|
|
1808
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1809
|
+
const localVarOperationServerBasePath = operationServerMap['ConfigurationApi.restoreConfiguration']?.[localVarOperationServerIndex]?.url;
|
|
1810
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1811
|
+
},
|
|
1812
|
+
};
|
|
1813
|
+
};
|
|
1814
|
+
/**
|
|
1815
|
+
* ConfigurationApi - factory interface
|
|
1816
|
+
* @export
|
|
1817
|
+
*/
|
|
1818
|
+
export const ConfigurationApiFactory = function (configuration, basePath, axios) {
|
|
1819
|
+
const localVarFp = ConfigurationApiFp(configuration);
|
|
1820
|
+
return {
|
|
1821
|
+
/**
|
|
1822
|
+
* Retrieves a configuration backup based on provided resource identifiers.
|
|
1823
|
+
* @summary Retrieve Configuration Backup
|
|
1824
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
1825
|
+
* @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
|
|
1826
|
+
* @param {*} [options] Override http request option.
|
|
1827
|
+
* @throws {RequiredError}
|
|
1828
|
+
*/
|
|
1829
|
+
backupConfiguration(resources, metadata, options) {
|
|
1830
|
+
return localVarFp.backupConfiguration(resources, metadata, options).then((request) => request(axios, basePath));
|
|
1831
|
+
},
|
|
1832
|
+
/**
|
|
1833
|
+
* Retrieves a list of all available configuration resources for backup purposes.
|
|
1834
|
+
* @summary List Configuration Resources
|
|
1835
|
+
* @param {*} [options] Override http request option.
|
|
1836
|
+
* @throws {RequiredError}
|
|
1837
|
+
*/
|
|
1838
|
+
listConfigurationResources(options) {
|
|
1839
|
+
return localVarFp.listConfigurationResources(options).then((request) => request(axios, basePath));
|
|
1840
|
+
},
|
|
1841
|
+
/**
|
|
1842
|
+
* Restores a previously backed up configuration.
|
|
1843
|
+
* @summary Restore Configuration Backup
|
|
1844
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
1845
|
+
* @param {File} body Backup file stream containing the configuration to restore.
|
|
1846
|
+
* @param {*} [options] Override http request option.
|
|
1847
|
+
* @throws {RequiredError}
|
|
1848
|
+
*/
|
|
1849
|
+
restoreConfiguration(resources, body, options) {
|
|
1850
|
+
return localVarFp.restoreConfiguration(resources, body, options).then((request) => request(axios, basePath));
|
|
1851
|
+
},
|
|
1852
|
+
};
|
|
1853
|
+
};
|
|
1854
|
+
/**
|
|
1855
|
+
* ConfigurationApi - object-oriented interface
|
|
1856
|
+
* @export
|
|
1857
|
+
* @class ConfigurationApi
|
|
1858
|
+
* @extends {BaseAPI}
|
|
1859
|
+
*/
|
|
1860
|
+
export class ConfigurationApi extends BaseAPI {
|
|
1861
|
+
/**
|
|
1862
|
+
* Retrieves a configuration backup based on provided resource identifiers.
|
|
1863
|
+
* @summary Retrieve Configuration Backup
|
|
1864
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
1865
|
+
* @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
|
|
1866
|
+
* @param {*} [options] Override http request option.
|
|
1867
|
+
* @throws {RequiredError}
|
|
1868
|
+
* @memberof ConfigurationApi
|
|
1869
|
+
*/
|
|
1870
|
+
backupConfiguration(resources, metadata, options) {
|
|
1871
|
+
return ConfigurationApiFp(this.configuration).backupConfiguration(resources, metadata, options).then((request) => request(this.axios, this.basePath));
|
|
1872
|
+
}
|
|
1873
|
+
/**
|
|
1874
|
+
* Retrieves a list of all available configuration resources for backup purposes.
|
|
1875
|
+
* @summary List Configuration Resources
|
|
1876
|
+
* @param {*} [options] Override http request option.
|
|
1877
|
+
* @throws {RequiredError}
|
|
1878
|
+
* @memberof ConfigurationApi
|
|
1879
|
+
*/
|
|
1880
|
+
listConfigurationResources(options) {
|
|
1881
|
+
return ConfigurationApiFp(this.configuration).listConfigurationResources(options).then((request) => request(this.axios, this.basePath));
|
|
1882
|
+
}
|
|
1883
|
+
/**
|
|
1884
|
+
* Restores a previously backed up configuration.
|
|
1885
|
+
* @summary Restore Configuration Backup
|
|
1886
|
+
* @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
|
|
1887
|
+
* @param {File} body Backup file stream containing the configuration to restore.
|
|
1888
|
+
* @param {*} [options] Override http request option.
|
|
1889
|
+
* @throws {RequiredError}
|
|
1890
|
+
* @memberof ConfigurationApi
|
|
1891
|
+
*/
|
|
1892
|
+
restoreConfiguration(resources, body, options) {
|
|
1893
|
+
return ConfigurationApiFp(this.configuration).restoreConfiguration(resources, body, options).then((request) => request(this.axios, this.basePath));
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1643
1896
|
/**
|
|
1644
1897
|
* ControllerApi - axios parameter creator
|
|
1645
1898
|
* @export
|