@cosmotech/api-ts 3.0.14-dev → 3.1.0-dev
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/README.md +2 -2
- package/api.ts +6994 -3617
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +4289 -2112
- package/dist/api.js +2788 -84
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
* Cosmo Tech Platform API
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 3.0
|
|
8
|
+
* The version of the OpenAPI document: 3.1.0-dev
|
|
9
9
|
* Contact: platform@cosmotech.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -73,7 +73,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76
|
-
exports.WorkspaceApi = exports.WorkspaceApiFactory = exports.WorkspaceApiFp = exports.WorkspaceApiAxiosParamCreator = exports.ValidatorApi = exports.ValidatorApiFactory = exports.ValidatorApiFp = exports.ValidatorApiAxiosParamCreator = exports.TwingraphApi = exports.TwingraphApiFactory = exports.TwingraphApiFp = exports.TwingraphApiAxiosParamCreator = exports.SolutionApi = exports.SolutionApiFactory = exports.SolutionApiFp = exports.SolutionApiAxiosParamCreator = exports.ScenariorunresultApi = exports.ScenariorunresultApiFactory = exports.ScenariorunresultApiFp = exports.ScenariorunresultApiAxiosParamCreator = exports.ScenariorunApi = exports.ScenariorunApiFactory = exports.ScenariorunApiFp = exports.ScenariorunApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.DatasetApi = exports.DatasetApiFactory = exports.DatasetApiFp = exports.DatasetApiAxiosParamCreator = exports.ConnectorApi = exports.ConnectorApiFactory = exports.ConnectorApiFp = exports.ConnectorApiAxiosParamCreator = exports.ValidatorRunStateEnum = exports.ScenarioValidationStatus = exports.ScenarioRunState = exports.ScenarioRunSearchStateEnum = exports.ScenarioJobState = exports.RunTemplateStepSource = exports.RunTemplateOrchestrator = exports.RunTemplateHandlerId = exports.DatasetSourceType = exports.
|
|
76
|
+
exports.WorkspaceApi = exports.WorkspaceApiFactory = exports.WorkspaceApiFp = exports.WorkspaceApiAxiosParamCreator = exports.ValidatorApi = exports.ValidatorApiFactory = exports.ValidatorApiFp = exports.ValidatorApiAxiosParamCreator = exports.TwingraphApi = exports.TwingraphApiFactory = exports.TwingraphApiFp = exports.TwingraphApiAxiosParamCreator = exports.SolutionApi = exports.SolutionApiFactory = exports.SolutionApiFp = exports.SolutionApiAxiosParamCreator = exports.ScenariorunresultApi = exports.ScenariorunresultApiFactory = exports.ScenariorunresultApiFp = exports.ScenariorunresultApiAxiosParamCreator = exports.ScenariorunApi = exports.ScenariorunApiFactory = exports.ScenariorunApiFp = exports.ScenariorunApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.RunnerApi = exports.RunnerApiFactory = exports.RunnerApiFp = exports.RunnerApiAxiosParamCreator = exports.RunApi = exports.RunApiFactory = exports.RunApiFp = exports.RunApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.DatasetApi = exports.DatasetApiFactory = exports.DatasetApiFp = exports.DatasetApiAxiosParamCreator = exports.ConnectorApi = exports.ConnectorApiFactory = exports.ConnectorApiFp = exports.ConnectorApiAxiosParamCreator = exports.ValidatorRunStateEnum = exports.ScenarioValidationStatus = exports.ScenarioRunState = exports.ScenarioRunSearchStateEnum = exports.ScenarioJobState = exports.RunnerValidationStatus = exports.RunnerJobState = exports.RunTemplateStepSource = exports.RunTemplateOrchestrator = exports.RunTemplateHandlerId = exports.RunState = exports.RunSearchStateEnum = exports.DatasetSourceType = exports.DatasetTwincacheStatusEnum = exports.DatasetIngestionStatusEnum = exports.ConnectorIoTypesEnum = void 0;
|
|
77
77
|
var axios_1 = require("axios");
|
|
78
78
|
// Some imports not used depending on template conditions
|
|
79
79
|
// @ts-ignore
|
|
@@ -84,11 +84,15 @@ exports.ConnectorIoTypesEnum = {
|
|
|
84
84
|
Read: 'read',
|
|
85
85
|
Write: 'write'
|
|
86
86
|
};
|
|
87
|
-
exports.
|
|
88
|
-
|
|
87
|
+
exports.DatasetIngestionStatusEnum = {
|
|
88
|
+
None: 'NONE',
|
|
89
89
|
Pending: 'PENDING',
|
|
90
90
|
Error: 'ERROR',
|
|
91
|
-
|
|
91
|
+
Success: 'SUCCESS'
|
|
92
|
+
};
|
|
93
|
+
exports.DatasetTwincacheStatusEnum = {
|
|
94
|
+
Empty: 'EMPTY',
|
|
95
|
+
Full: 'FULL'
|
|
92
96
|
};
|
|
93
97
|
/**
|
|
94
98
|
* the Dataset Source Type
|
|
@@ -100,7 +104,31 @@ exports.DatasetSourceType = {
|
|
|
100
104
|
AzureStorage: 'AzureStorage',
|
|
101
105
|
File: 'File',
|
|
102
106
|
None: 'None',
|
|
103
|
-
Twincache: 'Twincache'
|
|
107
|
+
Twincache: 'Twincache',
|
|
108
|
+
Etl: 'ETL'
|
|
109
|
+
};
|
|
110
|
+
exports.RunSearchStateEnum = {
|
|
111
|
+
FetchingDatasets: 'FetchingDatasets',
|
|
112
|
+
FetchingScenarioParameters: 'FetchingScenarioParameters',
|
|
113
|
+
ApplyingScenarioParameters: 'ApplyingScenarioParameters',
|
|
114
|
+
ValidatingScenarioData: 'ValidatingScenarioData',
|
|
115
|
+
SendingScenarioDataToDataWarehouse: 'SendingScenarioDataToDataWarehouse',
|
|
116
|
+
PreRun: 'PreRun',
|
|
117
|
+
Running: 'Running',
|
|
118
|
+
PostRun: 'PostRun',
|
|
119
|
+
Success: 'Success',
|
|
120
|
+
Failed: 'Failed'
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* the Run end-to-end state
|
|
124
|
+
* @export
|
|
125
|
+
* @enum {string}
|
|
126
|
+
*/
|
|
127
|
+
exports.RunState = {
|
|
128
|
+
Running: 'Running',
|
|
129
|
+
Successful: 'Successful',
|
|
130
|
+
Failed: 'Failed',
|
|
131
|
+
Unknown: 'Unknown'
|
|
104
132
|
};
|
|
105
133
|
/**
|
|
106
134
|
* the Run Template step handler identifier
|
|
@@ -135,6 +163,30 @@ exports.RunTemplateStepSource = {
|
|
|
135
163
|
Local: 'local',
|
|
136
164
|
Platform: 'platform'
|
|
137
165
|
};
|
|
166
|
+
/**
|
|
167
|
+
* the Runner job state
|
|
168
|
+
* @export
|
|
169
|
+
* @enum {string}
|
|
170
|
+
*/
|
|
171
|
+
exports.RunnerJobState = {
|
|
172
|
+
Created: 'Created',
|
|
173
|
+
Running: 'Running',
|
|
174
|
+
Successful: 'Successful',
|
|
175
|
+
Failed: 'Failed',
|
|
176
|
+
Unknown: 'Unknown',
|
|
177
|
+
DataIngestionInProgress: 'DataIngestionInProgress'
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* the validation status of the runner
|
|
181
|
+
* @export
|
|
182
|
+
* @enum {string}
|
|
183
|
+
*/
|
|
184
|
+
exports.RunnerValidationStatus = {
|
|
185
|
+
Draft: 'Draft',
|
|
186
|
+
Rejected: 'Rejected',
|
|
187
|
+
Unknown: 'Unknown',
|
|
188
|
+
Validated: 'Validated'
|
|
189
|
+
};
|
|
138
190
|
/**
|
|
139
191
|
* the Scenario job state
|
|
140
192
|
* @export
|
|
@@ -1373,7 +1425,7 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
|
|
|
1373
1425
|
});
|
|
1374
1426
|
},
|
|
1375
1427
|
/**
|
|
1376
|
-
* Get the status of the import workflow lauch on the dataset\'s refresh.
|
|
1428
|
+
* Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
|
|
1377
1429
|
* @summary Get the dataset\'s refresh job status
|
|
1378
1430
|
* @param {string} organizationId the Organization identifier
|
|
1379
1431
|
* @param {string} datasetId the dataset identifier
|
|
@@ -1476,6 +1528,58 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
|
|
|
1476
1528
|
});
|
|
1477
1529
|
});
|
|
1478
1530
|
},
|
|
1531
|
+
/**
|
|
1532
|
+
*
|
|
1533
|
+
* @param {string} organizationId the Organization identifier
|
|
1534
|
+
* @param {string} datasetId the Dataset identifier
|
|
1535
|
+
* @param {string} workspaceId workspace id to be linked to
|
|
1536
|
+
* @param {*} [options] Override http request option.
|
|
1537
|
+
* @throws {RequiredError}
|
|
1538
|
+
*/
|
|
1539
|
+
linkWorkspace: function (organizationId, datasetId, workspaceId, options) {
|
|
1540
|
+
if (options === void 0) { options = {}; }
|
|
1541
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1542
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1543
|
+
return __generator(this, function (_a) {
|
|
1544
|
+
switch (_a.label) {
|
|
1545
|
+
case 0:
|
|
1546
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1547
|
+
common_1.assertParamExists('linkWorkspace', 'organizationId', organizationId);
|
|
1548
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
1549
|
+
common_1.assertParamExists('linkWorkspace', 'datasetId', datasetId);
|
|
1550
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
1551
|
+
common_1.assertParamExists('linkWorkspace', 'workspaceId', workspaceId);
|
|
1552
|
+
localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/link"
|
|
1553
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
1554
|
+
.replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
|
|
1555
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1556
|
+
if (configuration) {
|
|
1557
|
+
baseOptions = configuration.baseOptions;
|
|
1558
|
+
}
|
|
1559
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1560
|
+
localVarHeaderParameter = {};
|
|
1561
|
+
localVarQueryParameter = {};
|
|
1562
|
+
// authentication oAuth2AuthCode required
|
|
1563
|
+
// oauth required
|
|
1564
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
1565
|
+
case 1:
|
|
1566
|
+
// authentication oAuth2AuthCode required
|
|
1567
|
+
// oauth required
|
|
1568
|
+
_a.sent();
|
|
1569
|
+
if (workspaceId !== undefined) {
|
|
1570
|
+
localVarQueryParameter['workspaceId'] = workspaceId;
|
|
1571
|
+
}
|
|
1572
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1573
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1574
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1575
|
+
return [2 /*return*/, {
|
|
1576
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1577
|
+
options: localVarRequestOptions,
|
|
1578
|
+
}];
|
|
1579
|
+
}
|
|
1580
|
+
});
|
|
1581
|
+
});
|
|
1582
|
+
},
|
|
1479
1583
|
/**
|
|
1480
1584
|
* Refresh dataset from parent source. At date, sources can be: dataset (refresh from another dataset) Azure Digital twin Azure storage Local File (import a new file) During refresh, datas are overwritten
|
|
1481
1585
|
* @summary Refresh data on dataset from dataset\'s source
|
|
@@ -1621,6 +1725,53 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
|
|
|
1621
1725
|
});
|
|
1622
1726
|
});
|
|
1623
1727
|
},
|
|
1728
|
+
/**
|
|
1729
|
+
* Rollback the twingraph on a dataset after a failed refresh
|
|
1730
|
+
* @summary Rollback the dataset after a failed refresh
|
|
1731
|
+
* @param {string} organizationId the Organization identifier
|
|
1732
|
+
* @param {string} datasetId the Dataset identifier
|
|
1733
|
+
* @param {*} [options] Override http request option.
|
|
1734
|
+
* @throws {RequiredError}
|
|
1735
|
+
*/
|
|
1736
|
+
rollbackRefresh: function (organizationId, datasetId, options) {
|
|
1737
|
+
if (options === void 0) { options = {}; }
|
|
1738
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1739
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1740
|
+
return __generator(this, function (_a) {
|
|
1741
|
+
switch (_a.label) {
|
|
1742
|
+
case 0:
|
|
1743
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1744
|
+
common_1.assertParamExists('rollbackRefresh', 'organizationId', organizationId);
|
|
1745
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
1746
|
+
common_1.assertParamExists('rollbackRefresh', 'datasetId', datasetId);
|
|
1747
|
+
localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/refresh/rollback"
|
|
1748
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
1749
|
+
.replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
|
|
1750
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1751
|
+
if (configuration) {
|
|
1752
|
+
baseOptions = configuration.baseOptions;
|
|
1753
|
+
}
|
|
1754
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1755
|
+
localVarHeaderParameter = {};
|
|
1756
|
+
localVarQueryParameter = {};
|
|
1757
|
+
// authentication oAuth2AuthCode required
|
|
1758
|
+
// oauth required
|
|
1759
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
1760
|
+
case 1:
|
|
1761
|
+
// authentication oAuth2AuthCode required
|
|
1762
|
+
// oauth required
|
|
1763
|
+
_a.sent();
|
|
1764
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1765
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1766
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1767
|
+
return [2 /*return*/, {
|
|
1768
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1769
|
+
options: localVarRequestOptions,
|
|
1770
|
+
}];
|
|
1771
|
+
}
|
|
1772
|
+
});
|
|
1773
|
+
});
|
|
1774
|
+
},
|
|
1624
1775
|
/**
|
|
1625
1776
|
*
|
|
1626
1777
|
* @summary Search Datasets by tags
|
|
@@ -1891,6 +2042,58 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
|
|
|
1891
2042
|
});
|
|
1892
2043
|
});
|
|
1893
2044
|
},
|
|
2045
|
+
/**
|
|
2046
|
+
*
|
|
2047
|
+
* @param {string} organizationId the Organization identifier
|
|
2048
|
+
* @param {string} datasetId the Dataset identifier
|
|
2049
|
+
* @param {string} workspaceId workspace id to be linked to
|
|
2050
|
+
* @param {*} [options] Override http request option.
|
|
2051
|
+
* @throws {RequiredError}
|
|
2052
|
+
*/
|
|
2053
|
+
unlinkWorkspace: function (organizationId, datasetId, workspaceId, options) {
|
|
2054
|
+
if (options === void 0) { options = {}; }
|
|
2055
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
2056
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2057
|
+
return __generator(this, function (_a) {
|
|
2058
|
+
switch (_a.label) {
|
|
2059
|
+
case 0:
|
|
2060
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2061
|
+
common_1.assertParamExists('unlinkWorkspace', 'organizationId', organizationId);
|
|
2062
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
2063
|
+
common_1.assertParamExists('unlinkWorkspace', 'datasetId', datasetId);
|
|
2064
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2065
|
+
common_1.assertParamExists('unlinkWorkspace', 'workspaceId', workspaceId);
|
|
2066
|
+
localVarPath = "/organizations/{organization_id}/datasets/{dataset_id}/unlink"
|
|
2067
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
2068
|
+
.replace("{" + "dataset_id" + "}", encodeURIComponent(String(datasetId)));
|
|
2069
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2070
|
+
if (configuration) {
|
|
2071
|
+
baseOptions = configuration.baseOptions;
|
|
2072
|
+
}
|
|
2073
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2074
|
+
localVarHeaderParameter = {};
|
|
2075
|
+
localVarQueryParameter = {};
|
|
2076
|
+
// authentication oAuth2AuthCode required
|
|
2077
|
+
// oauth required
|
|
2078
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
2079
|
+
case 1:
|
|
2080
|
+
// authentication oAuth2AuthCode required
|
|
2081
|
+
// oauth required
|
|
2082
|
+
_a.sent();
|
|
2083
|
+
if (workspaceId !== undefined) {
|
|
2084
|
+
localVarQueryParameter['workspaceId'] = workspaceId;
|
|
2085
|
+
}
|
|
2086
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2087
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2088
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2089
|
+
return [2 /*return*/, {
|
|
2090
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
2091
|
+
options: localVarRequestOptions,
|
|
2092
|
+
}];
|
|
2093
|
+
}
|
|
2094
|
+
});
|
|
2095
|
+
});
|
|
2096
|
+
},
|
|
1894
2097
|
/**
|
|
1895
2098
|
*
|
|
1896
2099
|
* @summary Update a dataset
|
|
@@ -2420,7 +2623,7 @@ exports.DatasetApiFp = function (configuration) {
|
|
|
2420
2623
|
});
|
|
2421
2624
|
},
|
|
2422
2625
|
/**
|
|
2423
|
-
* Get the status of the import workflow lauch on the dataset\'s refresh.
|
|
2626
|
+
* Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
|
|
2424
2627
|
* @summary Get the dataset\'s refresh job status
|
|
2425
2628
|
* @param {string} organizationId the Organization identifier
|
|
2426
2629
|
* @param {string} datasetId the dataset identifier
|
|
@@ -2463,6 +2666,27 @@ exports.DatasetApiFp = function (configuration) {
|
|
|
2463
2666
|
});
|
|
2464
2667
|
});
|
|
2465
2668
|
},
|
|
2669
|
+
/**
|
|
2670
|
+
*
|
|
2671
|
+
* @param {string} organizationId the Organization identifier
|
|
2672
|
+
* @param {string} datasetId the Dataset identifier
|
|
2673
|
+
* @param {string} workspaceId workspace id to be linked to
|
|
2674
|
+
* @param {*} [options] Override http request option.
|
|
2675
|
+
* @throws {RequiredError}
|
|
2676
|
+
*/
|
|
2677
|
+
linkWorkspace: function (organizationId, datasetId, workspaceId, options) {
|
|
2678
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2679
|
+
var localVarAxiosArgs;
|
|
2680
|
+
return __generator(this, function (_a) {
|
|
2681
|
+
switch (_a.label) {
|
|
2682
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkWorkspace(organizationId, datasetId, workspaceId, options)];
|
|
2683
|
+
case 1:
|
|
2684
|
+
localVarAxiosArgs = _a.sent();
|
|
2685
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2686
|
+
}
|
|
2687
|
+
});
|
|
2688
|
+
});
|
|
2689
|
+
},
|
|
2466
2690
|
/**
|
|
2467
2691
|
* Refresh dataset from parent source. At date, sources can be: dataset (refresh from another dataset) Azure Digital twin Azure storage Local File (import a new file) During refresh, datas are overwritten
|
|
2468
2692
|
* @summary Refresh data on dataset from dataset\'s source
|
|
@@ -2527,6 +2751,27 @@ exports.DatasetApiFp = function (configuration) {
|
|
|
2527
2751
|
});
|
|
2528
2752
|
});
|
|
2529
2753
|
},
|
|
2754
|
+
/**
|
|
2755
|
+
* Rollback the twingraph on a dataset after a failed refresh
|
|
2756
|
+
* @summary Rollback the dataset after a failed refresh
|
|
2757
|
+
* @param {string} organizationId the Organization identifier
|
|
2758
|
+
* @param {string} datasetId the Dataset identifier
|
|
2759
|
+
* @param {*} [options] Override http request option.
|
|
2760
|
+
* @throws {RequiredError}
|
|
2761
|
+
*/
|
|
2762
|
+
rollbackRefresh: function (organizationId, datasetId, options) {
|
|
2763
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2764
|
+
var localVarAxiosArgs;
|
|
2765
|
+
return __generator(this, function (_a) {
|
|
2766
|
+
switch (_a.label) {
|
|
2767
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.rollbackRefresh(organizationId, datasetId, options)];
|
|
2768
|
+
case 1:
|
|
2769
|
+
localVarAxiosArgs = _a.sent();
|
|
2770
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2771
|
+
}
|
|
2772
|
+
});
|
|
2773
|
+
});
|
|
2774
|
+
},
|
|
2530
2775
|
/**
|
|
2531
2776
|
*
|
|
2532
2777
|
* @summary Search Datasets by tags
|
|
@@ -2639,6 +2884,27 @@ exports.DatasetApiFp = function (configuration) {
|
|
|
2639
2884
|
});
|
|
2640
2885
|
});
|
|
2641
2886
|
},
|
|
2887
|
+
/**
|
|
2888
|
+
*
|
|
2889
|
+
* @param {string} organizationId the Organization identifier
|
|
2890
|
+
* @param {string} datasetId the Dataset identifier
|
|
2891
|
+
* @param {string} workspaceId workspace id to be linked to
|
|
2892
|
+
* @param {*} [options] Override http request option.
|
|
2893
|
+
* @throws {RequiredError}
|
|
2894
|
+
*/
|
|
2895
|
+
unlinkWorkspace: function (organizationId, datasetId, workspaceId, options) {
|
|
2896
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2897
|
+
var localVarAxiosArgs;
|
|
2898
|
+
return __generator(this, function (_a) {
|
|
2899
|
+
switch (_a.label) {
|
|
2900
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkWorkspace(organizationId, datasetId, workspaceId, options)];
|
|
2901
|
+
case 1:
|
|
2902
|
+
localVarAxiosArgs = _a.sent();
|
|
2903
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2904
|
+
}
|
|
2905
|
+
});
|
|
2906
|
+
});
|
|
2907
|
+
},
|
|
2642
2908
|
/**
|
|
2643
2909
|
*
|
|
2644
2910
|
* @summary Update a dataset
|
|
@@ -2902,7 +3168,7 @@ exports.DatasetApiFactory = function (configuration, basePath, axios) {
|
|
|
2902
3168
|
return localVarFp.getDatasetSecurityUsers(organizationId, datasetId, options).then(function (request) { return request(axios, basePath); });
|
|
2903
3169
|
},
|
|
2904
3170
|
/**
|
|
2905
|
-
* Get the status of the import workflow lauch on the dataset\'s refresh.
|
|
3171
|
+
* Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
|
|
2906
3172
|
* @summary Get the dataset\'s refresh job status
|
|
2907
3173
|
* @param {string} organizationId the Organization identifier
|
|
2908
3174
|
* @param {string} datasetId the dataset identifier
|
|
@@ -2925,6 +3191,17 @@ exports.DatasetApiFactory = function (configuration, basePath, axios) {
|
|
|
2925
3191
|
getTwingraphEntities: function (organizationId, datasetId, type, ids, options) {
|
|
2926
3192
|
return localVarFp.getTwingraphEntities(organizationId, datasetId, type, ids, options).then(function (request) { return request(axios, basePath); });
|
|
2927
3193
|
},
|
|
3194
|
+
/**
|
|
3195
|
+
*
|
|
3196
|
+
* @param {string} organizationId the Organization identifier
|
|
3197
|
+
* @param {string} datasetId the Dataset identifier
|
|
3198
|
+
* @param {string} workspaceId workspace id to be linked to
|
|
3199
|
+
* @param {*} [options] Override http request option.
|
|
3200
|
+
* @throws {RequiredError}
|
|
3201
|
+
*/
|
|
3202
|
+
linkWorkspace: function (organizationId, datasetId, workspaceId, options) {
|
|
3203
|
+
return localVarFp.linkWorkspace(organizationId, datasetId, workspaceId, options).then(function (request) { return request(axios, basePath); });
|
|
3204
|
+
},
|
|
2928
3205
|
/**
|
|
2929
3206
|
* Refresh dataset from parent source. At date, sources can be: dataset (refresh from another dataset) Azure Digital twin Azure storage Local File (import a new file) During refresh, datas are overwritten
|
|
2930
3207
|
* @summary Refresh data on dataset from dataset\'s source
|
|
@@ -2959,6 +3236,17 @@ exports.DatasetApiFactory = function (configuration, basePath, axios) {
|
|
|
2959
3236
|
removeDatasetAccessControl: function (organizationId, datasetId, identityId, options) {
|
|
2960
3237
|
return localVarFp.removeDatasetAccessControl(organizationId, datasetId, identityId, options).then(function (request) { return request(axios, basePath); });
|
|
2961
3238
|
},
|
|
3239
|
+
/**
|
|
3240
|
+
* Rollback the twingraph on a dataset after a failed refresh
|
|
3241
|
+
* @summary Rollback the dataset after a failed refresh
|
|
3242
|
+
* @param {string} organizationId the Organization identifier
|
|
3243
|
+
* @param {string} datasetId the Dataset identifier
|
|
3244
|
+
* @param {*} [options] Override http request option.
|
|
3245
|
+
* @throws {RequiredError}
|
|
3246
|
+
*/
|
|
3247
|
+
rollbackRefresh: function (organizationId, datasetId, options) {
|
|
3248
|
+
return localVarFp.rollbackRefresh(organizationId, datasetId, options).then(function (request) { return request(axios, basePath); });
|
|
3249
|
+
},
|
|
2962
3250
|
/**
|
|
2963
3251
|
*
|
|
2964
3252
|
* @summary Search Datasets by tags
|
|
@@ -3021,6 +3309,17 @@ exports.DatasetApiFactory = function (configuration, basePath, axios) {
|
|
|
3021
3309
|
twingraphQuery: function (organizationId, datasetId, datasetTwinGraphQuery, options) {
|
|
3022
3310
|
return localVarFp.twingraphQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then(function (request) { return request(axios, basePath); });
|
|
3023
3311
|
},
|
|
3312
|
+
/**
|
|
3313
|
+
*
|
|
3314
|
+
* @param {string} organizationId the Organization identifier
|
|
3315
|
+
* @param {string} datasetId the Dataset identifier
|
|
3316
|
+
* @param {string} workspaceId workspace id to be linked to
|
|
3317
|
+
* @param {*} [options] Override http request option.
|
|
3318
|
+
* @throws {RequiredError}
|
|
3319
|
+
*/
|
|
3320
|
+
unlinkWorkspace: function (organizationId, datasetId, workspaceId, options) {
|
|
3321
|
+
return localVarFp.unlinkWorkspace(organizationId, datasetId, workspaceId, options).then(function (request) { return request(axios, basePath); });
|
|
3322
|
+
},
|
|
3024
3323
|
/**
|
|
3025
3324
|
*
|
|
3026
3325
|
* @summary Update a dataset
|
|
@@ -3276,7 +3575,7 @@ var DatasetApi = /** @class */ (function (_super) {
|
|
|
3276
3575
|
return exports.DatasetApiFp(this.configuration).getDatasetSecurityUsers(organizationId, datasetId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3277
3576
|
};
|
|
3278
3577
|
/**
|
|
3279
|
-
* Get the status of the import workflow lauch on the dataset\'s refresh.
|
|
3578
|
+
* Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
|
|
3280
3579
|
* @summary Get the dataset\'s refresh job status
|
|
3281
3580
|
* @param {string} organizationId the Organization identifier
|
|
3282
3581
|
* @param {string} datasetId the dataset identifier
|
|
@@ -3303,6 +3602,19 @@ var DatasetApi = /** @class */ (function (_super) {
|
|
|
3303
3602
|
var _this = this;
|
|
3304
3603
|
return exports.DatasetApiFp(this.configuration).getTwingraphEntities(organizationId, datasetId, type, ids, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3305
3604
|
};
|
|
3605
|
+
/**
|
|
3606
|
+
*
|
|
3607
|
+
* @param {string} organizationId the Organization identifier
|
|
3608
|
+
* @param {string} datasetId the Dataset identifier
|
|
3609
|
+
* @param {string} workspaceId workspace id to be linked to
|
|
3610
|
+
* @param {*} [options] Override http request option.
|
|
3611
|
+
* @throws {RequiredError}
|
|
3612
|
+
* @memberof DatasetApi
|
|
3613
|
+
*/
|
|
3614
|
+
DatasetApi.prototype.linkWorkspace = function (organizationId, datasetId, workspaceId, options) {
|
|
3615
|
+
var _this = this;
|
|
3616
|
+
return exports.DatasetApiFp(this.configuration).linkWorkspace(organizationId, datasetId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3617
|
+
};
|
|
3306
3618
|
/**
|
|
3307
3619
|
* Refresh dataset from parent source. At date, sources can be: dataset (refresh from another dataset) Azure Digital twin Azure storage Local File (import a new file) During refresh, datas are overwritten
|
|
3308
3620
|
* @summary Refresh data on dataset from dataset\'s source
|
|
@@ -3344,7 +3656,20 @@ var DatasetApi = /** @class */ (function (_super) {
|
|
|
3344
3656
|
return exports.DatasetApiFp(this.configuration).removeDatasetAccessControl(organizationId, datasetId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3345
3657
|
};
|
|
3346
3658
|
/**
|
|
3347
|
-
*
|
|
3659
|
+
* Rollback the twingraph on a dataset after a failed refresh
|
|
3660
|
+
* @summary Rollback the dataset after a failed refresh
|
|
3661
|
+
* @param {string} organizationId the Organization identifier
|
|
3662
|
+
* @param {string} datasetId the Dataset identifier
|
|
3663
|
+
* @param {*} [options] Override http request option.
|
|
3664
|
+
* @throws {RequiredError}
|
|
3665
|
+
* @memberof DatasetApi
|
|
3666
|
+
*/
|
|
3667
|
+
DatasetApi.prototype.rollbackRefresh = function (organizationId, datasetId, options) {
|
|
3668
|
+
var _this = this;
|
|
3669
|
+
return exports.DatasetApiFp(this.configuration).rollbackRefresh(organizationId, datasetId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3670
|
+
};
|
|
3671
|
+
/**
|
|
3672
|
+
*
|
|
3348
3673
|
* @summary Search Datasets by tags
|
|
3349
3674
|
* @param {string} organizationId the Organization identifier
|
|
3350
3675
|
* @param {DatasetSearch} datasetSearch the Dataset search parameters
|
|
@@ -3415,6 +3740,19 @@ var DatasetApi = /** @class */ (function (_super) {
|
|
|
3415
3740
|
var _this = this;
|
|
3416
3741
|
return exports.DatasetApiFp(this.configuration).twingraphQuery(organizationId, datasetId, datasetTwinGraphQuery, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3417
3742
|
};
|
|
3743
|
+
/**
|
|
3744
|
+
*
|
|
3745
|
+
* @param {string} organizationId the Organization identifier
|
|
3746
|
+
* @param {string} datasetId the Dataset identifier
|
|
3747
|
+
* @param {string} workspaceId workspace id to be linked to
|
|
3748
|
+
* @param {*} [options] Override http request option.
|
|
3749
|
+
* @throws {RequiredError}
|
|
3750
|
+
* @memberof DatasetApi
|
|
3751
|
+
*/
|
|
3752
|
+
DatasetApi.prototype.unlinkWorkspace = function (organizationId, datasetId, workspaceId, options) {
|
|
3753
|
+
var _this = this;
|
|
3754
|
+
return exports.DatasetApiFp(this.configuration).unlinkWorkspace(organizationId, datasetId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3755
|
+
};
|
|
3418
3756
|
/**
|
|
3419
3757
|
*
|
|
3420
3758
|
* @summary Update a dataset
|
|
@@ -4861,192 +5199,2364 @@ var OrganizationApi = /** @class */ (function (_super) {
|
|
|
4861
5199
|
* @param {string} organizationId the Organization identifier
|
|
4862
5200
|
* @param {*} [options] Override http request option.
|
|
4863
5201
|
* @throws {RequiredError}
|
|
4864
|
-
* @memberof OrganizationApi
|
|
5202
|
+
* @memberof OrganizationApi
|
|
5203
|
+
*/
|
|
5204
|
+
OrganizationApi.prototype.findOrganizationById = function (organizationId, options) {
|
|
5205
|
+
var _this = this;
|
|
5206
|
+
return exports.OrganizationApiFp(this.configuration).findOrganizationById(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5207
|
+
};
|
|
5208
|
+
/**
|
|
5209
|
+
*
|
|
5210
|
+
* @summary Get all permissions per components
|
|
5211
|
+
* @param {*} [options] Override http request option.
|
|
5212
|
+
* @throws {RequiredError}
|
|
5213
|
+
* @memberof OrganizationApi
|
|
5214
|
+
*/
|
|
5215
|
+
OrganizationApi.prototype.getAllPermissions = function (options) {
|
|
5216
|
+
var _this = this;
|
|
5217
|
+
return exports.OrganizationApiFp(this.configuration).getAllPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5218
|
+
};
|
|
5219
|
+
/**
|
|
5220
|
+
*
|
|
5221
|
+
* @summary Get a control access for the Organization
|
|
5222
|
+
* @param {string} organizationId the Organization identifier
|
|
5223
|
+
* @param {string} identityId the User identifier
|
|
5224
|
+
* @param {*} [options] Override http request option.
|
|
5225
|
+
* @throws {RequiredError}
|
|
5226
|
+
* @memberof OrganizationApi
|
|
5227
|
+
*/
|
|
5228
|
+
OrganizationApi.prototype.getOrganizationAccessControl = function (organizationId, identityId, options) {
|
|
5229
|
+
var _this = this;
|
|
5230
|
+
return exports.OrganizationApiFp(this.configuration).getOrganizationAccessControl(organizationId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5231
|
+
};
|
|
5232
|
+
/**
|
|
5233
|
+
*
|
|
5234
|
+
* @summary Get the Organization permissions by given role
|
|
5235
|
+
* @param {string} organizationId the Organization identifier
|
|
5236
|
+
* @param {string} role the Role
|
|
5237
|
+
* @param {*} [options] Override http request option.
|
|
5238
|
+
* @throws {RequiredError}
|
|
5239
|
+
* @memberof OrganizationApi
|
|
5240
|
+
*/
|
|
5241
|
+
OrganizationApi.prototype.getOrganizationPermissions = function (organizationId, role, options) {
|
|
5242
|
+
var _this = this;
|
|
5243
|
+
return exports.OrganizationApiFp(this.configuration).getOrganizationPermissions(organizationId, role, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5244
|
+
};
|
|
5245
|
+
/**
|
|
5246
|
+
*
|
|
5247
|
+
* @summary Get the Organization security information
|
|
5248
|
+
* @param {string} organizationId the Organization identifier
|
|
5249
|
+
* @param {*} [options] Override http request option.
|
|
5250
|
+
* @throws {RequiredError}
|
|
5251
|
+
* @memberof OrganizationApi
|
|
5252
|
+
*/
|
|
5253
|
+
OrganizationApi.prototype.getOrganizationSecurity = function (organizationId, options) {
|
|
5254
|
+
var _this = this;
|
|
5255
|
+
return exports.OrganizationApiFp(this.configuration).getOrganizationSecurity(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5256
|
+
};
|
|
5257
|
+
/**
|
|
5258
|
+
*
|
|
5259
|
+
* @summary Get the Organization security users list
|
|
5260
|
+
* @param {string} organizationId The Organization identifier
|
|
5261
|
+
* @param {*} [options] Override http request option.
|
|
5262
|
+
* @throws {RequiredError}
|
|
5263
|
+
* @memberof OrganizationApi
|
|
5264
|
+
*/
|
|
5265
|
+
OrganizationApi.prototype.getOrganizationSecurityUsers = function (organizationId, options) {
|
|
5266
|
+
var _this = this;
|
|
5267
|
+
return exports.OrganizationApiFp(this.configuration).getOrganizationSecurityUsers(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5268
|
+
};
|
|
5269
|
+
/**
|
|
5270
|
+
*
|
|
5271
|
+
* @summary Register a new organization
|
|
5272
|
+
* @param {Organization} organization the Organization to register
|
|
5273
|
+
* @param {*} [options] Override http request option.
|
|
5274
|
+
* @throws {RequiredError}
|
|
5275
|
+
* @memberof OrganizationApi
|
|
5276
|
+
*/
|
|
5277
|
+
OrganizationApi.prototype.registerOrganization = function (organization, options) {
|
|
5278
|
+
var _this = this;
|
|
5279
|
+
return exports.OrganizationApiFp(this.configuration).registerOrganization(organization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5280
|
+
};
|
|
5281
|
+
/**
|
|
5282
|
+
*
|
|
5283
|
+
* @summary Remove the specified access from the given Organization
|
|
5284
|
+
* @param {string} organizationId the Organization identifier
|
|
5285
|
+
* @param {string} identityId the User identifier
|
|
5286
|
+
* @param {*} [options] Override http request option.
|
|
5287
|
+
* @throws {RequiredError}
|
|
5288
|
+
* @memberof OrganizationApi
|
|
5289
|
+
*/
|
|
5290
|
+
OrganizationApi.prototype.removeOrganizationAccessControl = function (organizationId, identityId, options) {
|
|
5291
|
+
var _this = this;
|
|
5292
|
+
return exports.OrganizationApiFp(this.configuration).removeOrganizationAccessControl(organizationId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5293
|
+
};
|
|
5294
|
+
/**
|
|
5295
|
+
*
|
|
5296
|
+
* @summary Set the Organization default security
|
|
5297
|
+
* @param {string} organizationId the Organization identifier
|
|
5298
|
+
* @param {OrganizationRole} organizationRole This change the organization default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the organization.
|
|
5299
|
+
* @param {*} [options] Override http request option.
|
|
5300
|
+
* @throws {RequiredError}
|
|
5301
|
+
* @memberof OrganizationApi
|
|
5302
|
+
*/
|
|
5303
|
+
OrganizationApi.prototype.setOrganizationDefaultSecurity = function (organizationId, organizationRole, options) {
|
|
5304
|
+
var _this = this;
|
|
5305
|
+
return exports.OrganizationApiFp(this.configuration).setOrganizationDefaultSecurity(organizationId, organizationRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5306
|
+
};
|
|
5307
|
+
/**
|
|
5308
|
+
*
|
|
5309
|
+
* @summary Unregister an organization
|
|
5310
|
+
* @param {string} organizationId the Organization identifier
|
|
5311
|
+
* @param {*} [options] Override http request option.
|
|
5312
|
+
* @throws {RequiredError}
|
|
5313
|
+
* @memberof OrganizationApi
|
|
5314
|
+
*/
|
|
5315
|
+
OrganizationApi.prototype.unregisterOrganization = function (organizationId, options) {
|
|
5316
|
+
var _this = this;
|
|
5317
|
+
return exports.OrganizationApiFp(this.configuration).unregisterOrganization(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5318
|
+
};
|
|
5319
|
+
/**
|
|
5320
|
+
*
|
|
5321
|
+
* @summary Update an Organization
|
|
5322
|
+
* @param {string} organizationId the Organization identifier
|
|
5323
|
+
* @param {Organization} organization the new Organization details. This endpoint can\'t be used to update security
|
|
5324
|
+
* @param {*} [options] Override http request option.
|
|
5325
|
+
* @throws {RequiredError}
|
|
5326
|
+
* @memberof OrganizationApi
|
|
5327
|
+
*/
|
|
5328
|
+
OrganizationApi.prototype.updateOrganization = function (organizationId, organization, options) {
|
|
5329
|
+
var _this = this;
|
|
5330
|
+
return exports.OrganizationApiFp(this.configuration).updateOrganization(organizationId, organization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5331
|
+
};
|
|
5332
|
+
/**
|
|
5333
|
+
*
|
|
5334
|
+
* @summary Update the specified access to User for an Organization
|
|
5335
|
+
* @param {string} organizationId the Organization identifier
|
|
5336
|
+
* @param {string} identityId the User identifier
|
|
5337
|
+
* @param {OrganizationRole} organizationRole The new Organization Access Control
|
|
5338
|
+
* @param {*} [options] Override http request option.
|
|
5339
|
+
* @throws {RequiredError}
|
|
5340
|
+
* @memberof OrganizationApi
|
|
5341
|
+
*/
|
|
5342
|
+
OrganizationApi.prototype.updateOrganizationAccessControl = function (organizationId, identityId, organizationRole, options) {
|
|
5343
|
+
var _this = this;
|
|
5344
|
+
return exports.OrganizationApiFp(this.configuration).updateOrganizationAccessControl(organizationId, identityId, organizationRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5345
|
+
};
|
|
5346
|
+
/**
|
|
5347
|
+
*
|
|
5348
|
+
* @summary Update the solutions container registry configuration for the Organization specified
|
|
5349
|
+
* @param {string} organizationId the Organization identifier
|
|
5350
|
+
* @param {OrganizationService} organizationService the new solutions container registry configuration to use
|
|
5351
|
+
* @param {*} [options] Override http request option.
|
|
5352
|
+
* @throws {RequiredError}
|
|
5353
|
+
* @memberof OrganizationApi
|
|
5354
|
+
*/
|
|
5355
|
+
OrganizationApi.prototype.updateSolutionsContainerRegistryByOrganizationId = function (organizationId, organizationService, options) {
|
|
5356
|
+
var _this = this;
|
|
5357
|
+
return exports.OrganizationApiFp(this.configuration).updateSolutionsContainerRegistryByOrganizationId(organizationId, organizationService, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5358
|
+
};
|
|
5359
|
+
/**
|
|
5360
|
+
*
|
|
5361
|
+
* @summary Update storage configuration for the Organization specified
|
|
5362
|
+
* @param {string} organizationId the Organization identifier
|
|
5363
|
+
* @param {OrganizationService} organizationService the new Storage configuration to use
|
|
5364
|
+
* @param {*} [options] Override http request option.
|
|
5365
|
+
* @throws {RequiredError}
|
|
5366
|
+
* @memberof OrganizationApi
|
|
5367
|
+
*/
|
|
5368
|
+
OrganizationApi.prototype.updateStorageByOrganizationId = function (organizationId, organizationService, options) {
|
|
5369
|
+
var _this = this;
|
|
5370
|
+
return exports.OrganizationApiFp(this.configuration).updateStorageByOrganizationId(organizationId, organizationService, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5371
|
+
};
|
|
5372
|
+
/**
|
|
5373
|
+
*
|
|
5374
|
+
* @summary Update tenant credentials for the Organization specified
|
|
5375
|
+
* @param {string} organizationId the Organization identifier
|
|
5376
|
+
* @param {{ [key: string]: object; }} requestBody the new Tenant Credentials to use
|
|
5377
|
+
* @param {*} [options] Override http request option.
|
|
5378
|
+
* @throws {RequiredError}
|
|
5379
|
+
* @memberof OrganizationApi
|
|
5380
|
+
*/
|
|
5381
|
+
OrganizationApi.prototype.updateTenantCredentialsByOrganizationId = function (organizationId, requestBody, options) {
|
|
5382
|
+
var _this = this;
|
|
5383
|
+
return exports.OrganizationApiFp(this.configuration).updateTenantCredentialsByOrganizationId(organizationId, requestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5384
|
+
};
|
|
5385
|
+
return OrganizationApi;
|
|
5386
|
+
}(base_1.BaseAPI));
|
|
5387
|
+
exports.OrganizationApi = OrganizationApi;
|
|
5388
|
+
/**
|
|
5389
|
+
* RunApi - axios parameter creator
|
|
5390
|
+
* @export
|
|
5391
|
+
*/
|
|
5392
|
+
exports.RunApiAxiosParamCreator = function (configuration) {
|
|
5393
|
+
var _this = this;
|
|
5394
|
+
return {
|
|
5395
|
+
/**
|
|
5396
|
+
*
|
|
5397
|
+
* @summary Delete a run
|
|
5398
|
+
* @param {string} organizationId the Organization identifier
|
|
5399
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5400
|
+
* @param {string} runnerId the Runner identifier
|
|
5401
|
+
* @param {string} runId the Run identifier
|
|
5402
|
+
* @param {*} [options] Override http request option.
|
|
5403
|
+
* @throws {RequiredError}
|
|
5404
|
+
*/
|
|
5405
|
+
deleteRun: function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5406
|
+
if (options === void 0) { options = {}; }
|
|
5407
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5408
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5409
|
+
return __generator(this, function (_a) {
|
|
5410
|
+
switch (_a.label) {
|
|
5411
|
+
case 0:
|
|
5412
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5413
|
+
common_1.assertParamExists('deleteRun', 'organizationId', organizationId);
|
|
5414
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5415
|
+
common_1.assertParamExists('deleteRun', 'workspaceId', workspaceId);
|
|
5416
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
5417
|
+
common_1.assertParamExists('deleteRun', 'runnerId', runnerId);
|
|
5418
|
+
// verify required parameter 'runId' is not null or undefined
|
|
5419
|
+
common_1.assertParamExists('deleteRun', 'runId', runId);
|
|
5420
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}"
|
|
5421
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
5422
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
5423
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)))
|
|
5424
|
+
.replace("{" + "run_id" + "}", encodeURIComponent(String(runId)));
|
|
5425
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5426
|
+
if (configuration) {
|
|
5427
|
+
baseOptions = configuration.baseOptions;
|
|
5428
|
+
}
|
|
5429
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
5430
|
+
localVarHeaderParameter = {};
|
|
5431
|
+
localVarQueryParameter = {};
|
|
5432
|
+
// authentication oAuth2AuthCode required
|
|
5433
|
+
// oauth required
|
|
5434
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
5435
|
+
case 1:
|
|
5436
|
+
// authentication oAuth2AuthCode required
|
|
5437
|
+
// oauth required
|
|
5438
|
+
_a.sent();
|
|
5439
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5440
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5441
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5442
|
+
return [2 /*return*/, {
|
|
5443
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
5444
|
+
options: localVarRequestOptions,
|
|
5445
|
+
}];
|
|
5446
|
+
}
|
|
5447
|
+
});
|
|
5448
|
+
});
|
|
5449
|
+
},
|
|
5450
|
+
/**
|
|
5451
|
+
*
|
|
5452
|
+
* @summary Get the details of a run
|
|
5453
|
+
* @param {string} organizationId the Organization identifier
|
|
5454
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5455
|
+
* @param {string} runnerId the Runner identifier
|
|
5456
|
+
* @param {string} runId the Run identifier
|
|
5457
|
+
* @param {*} [options] Override http request option.
|
|
5458
|
+
* @throws {RequiredError}
|
|
5459
|
+
*/
|
|
5460
|
+
getRun: function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5461
|
+
if (options === void 0) { options = {}; }
|
|
5462
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5463
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5464
|
+
return __generator(this, function (_a) {
|
|
5465
|
+
switch (_a.label) {
|
|
5466
|
+
case 0:
|
|
5467
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5468
|
+
common_1.assertParamExists('getRun', 'organizationId', organizationId);
|
|
5469
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5470
|
+
common_1.assertParamExists('getRun', 'workspaceId', workspaceId);
|
|
5471
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
5472
|
+
common_1.assertParamExists('getRun', 'runnerId', runnerId);
|
|
5473
|
+
// verify required parameter 'runId' is not null or undefined
|
|
5474
|
+
common_1.assertParamExists('getRun', 'runId', runId);
|
|
5475
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}"
|
|
5476
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
5477
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
5478
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)))
|
|
5479
|
+
.replace("{" + "run_id" + "}", encodeURIComponent(String(runId)));
|
|
5480
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5481
|
+
if (configuration) {
|
|
5482
|
+
baseOptions = configuration.baseOptions;
|
|
5483
|
+
}
|
|
5484
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5485
|
+
localVarHeaderParameter = {};
|
|
5486
|
+
localVarQueryParameter = {};
|
|
5487
|
+
// authentication oAuth2AuthCode required
|
|
5488
|
+
// oauth required
|
|
5489
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
5490
|
+
case 1:
|
|
5491
|
+
// authentication oAuth2AuthCode required
|
|
5492
|
+
// oauth required
|
|
5493
|
+
_a.sent();
|
|
5494
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5495
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5496
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5497
|
+
return [2 /*return*/, {
|
|
5498
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
5499
|
+
options: localVarRequestOptions,
|
|
5500
|
+
}];
|
|
5501
|
+
}
|
|
5502
|
+
});
|
|
5503
|
+
});
|
|
5504
|
+
},
|
|
5505
|
+
/**
|
|
5506
|
+
*
|
|
5507
|
+
* @summary get the logs for the Run
|
|
5508
|
+
* @param {string} organizationId the Organization identifier
|
|
5509
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5510
|
+
* @param {string} runnerId the Runner identifier
|
|
5511
|
+
* @param {string} runId the Run identifier
|
|
5512
|
+
* @param {*} [options] Override http request option.
|
|
5513
|
+
* @throws {RequiredError}
|
|
5514
|
+
*/
|
|
5515
|
+
getRunLogs: function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5516
|
+
if (options === void 0) { options = {}; }
|
|
5517
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5518
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5519
|
+
return __generator(this, function (_a) {
|
|
5520
|
+
switch (_a.label) {
|
|
5521
|
+
case 0:
|
|
5522
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5523
|
+
common_1.assertParamExists('getRunLogs', 'organizationId', organizationId);
|
|
5524
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5525
|
+
common_1.assertParamExists('getRunLogs', 'workspaceId', workspaceId);
|
|
5526
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
5527
|
+
common_1.assertParamExists('getRunLogs', 'runnerId', runnerId);
|
|
5528
|
+
// verify required parameter 'runId' is not null or undefined
|
|
5529
|
+
common_1.assertParamExists('getRunLogs', 'runId', runId);
|
|
5530
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/logs"
|
|
5531
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
5532
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
5533
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)))
|
|
5534
|
+
.replace("{" + "run_id" + "}", encodeURIComponent(String(runId)));
|
|
5535
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5536
|
+
if (configuration) {
|
|
5537
|
+
baseOptions = configuration.baseOptions;
|
|
5538
|
+
}
|
|
5539
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5540
|
+
localVarHeaderParameter = {};
|
|
5541
|
+
localVarQueryParameter = {};
|
|
5542
|
+
// authentication oAuth2AuthCode required
|
|
5543
|
+
// oauth required
|
|
5544
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
5545
|
+
case 1:
|
|
5546
|
+
// authentication oAuth2AuthCode required
|
|
5547
|
+
// oauth required
|
|
5548
|
+
_a.sent();
|
|
5549
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5550
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5551
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5552
|
+
return [2 /*return*/, {
|
|
5553
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
5554
|
+
options: localVarRequestOptions,
|
|
5555
|
+
}];
|
|
5556
|
+
}
|
|
5557
|
+
});
|
|
5558
|
+
});
|
|
5559
|
+
},
|
|
5560
|
+
/**
|
|
5561
|
+
*
|
|
5562
|
+
* @summary get the status for the Run
|
|
5563
|
+
* @param {string} organizationId the Organization identifier
|
|
5564
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5565
|
+
* @param {string} runnerId the Runner identifier
|
|
5566
|
+
* @param {string} runId the Run identifier
|
|
5567
|
+
* @param {*} [options] Override http request option.
|
|
5568
|
+
* @throws {RequiredError}
|
|
5569
|
+
*/
|
|
5570
|
+
getRunStatus: function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5571
|
+
if (options === void 0) { options = {}; }
|
|
5572
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5573
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5574
|
+
return __generator(this, function (_a) {
|
|
5575
|
+
switch (_a.label) {
|
|
5576
|
+
case 0:
|
|
5577
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5578
|
+
common_1.assertParamExists('getRunStatus', 'organizationId', organizationId);
|
|
5579
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5580
|
+
common_1.assertParamExists('getRunStatus', 'workspaceId', workspaceId);
|
|
5581
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
5582
|
+
common_1.assertParamExists('getRunStatus', 'runnerId', runnerId);
|
|
5583
|
+
// verify required parameter 'runId' is not null or undefined
|
|
5584
|
+
common_1.assertParamExists('getRunStatus', 'runId', runId);
|
|
5585
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/status"
|
|
5586
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
5587
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
5588
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)))
|
|
5589
|
+
.replace("{" + "run_id" + "}", encodeURIComponent(String(runId)));
|
|
5590
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5591
|
+
if (configuration) {
|
|
5592
|
+
baseOptions = configuration.baseOptions;
|
|
5593
|
+
}
|
|
5594
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5595
|
+
localVarHeaderParameter = {};
|
|
5596
|
+
localVarQueryParameter = {};
|
|
5597
|
+
// authentication oAuth2AuthCode required
|
|
5598
|
+
// oauth required
|
|
5599
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
5600
|
+
case 1:
|
|
5601
|
+
// authentication oAuth2AuthCode required
|
|
5602
|
+
// oauth required
|
|
5603
|
+
_a.sent();
|
|
5604
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5605
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5606
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5607
|
+
return [2 /*return*/, {
|
|
5608
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
5609
|
+
options: localVarRequestOptions,
|
|
5610
|
+
}];
|
|
5611
|
+
}
|
|
5612
|
+
});
|
|
5613
|
+
});
|
|
5614
|
+
},
|
|
5615
|
+
/**
|
|
5616
|
+
*
|
|
5617
|
+
* @summary get the list of Runs for the Runner
|
|
5618
|
+
* @param {string} organizationId the Organization identifier
|
|
5619
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5620
|
+
* @param {string} runnerId the Runner identifier
|
|
5621
|
+
* @param {number} [page] page number to query
|
|
5622
|
+
* @param {number} [size] amount of result by page
|
|
5623
|
+
* @param {*} [options] Override http request option.
|
|
5624
|
+
* @throws {RequiredError}
|
|
5625
|
+
*/
|
|
5626
|
+
listRuns: function (organizationId, workspaceId, runnerId, page, size, options) {
|
|
5627
|
+
if (options === void 0) { options = {}; }
|
|
5628
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5629
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5630
|
+
return __generator(this, function (_a) {
|
|
5631
|
+
switch (_a.label) {
|
|
5632
|
+
case 0:
|
|
5633
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5634
|
+
common_1.assertParamExists('listRuns', 'organizationId', organizationId);
|
|
5635
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5636
|
+
common_1.assertParamExists('listRuns', 'workspaceId', workspaceId);
|
|
5637
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
5638
|
+
common_1.assertParamExists('listRuns', 'runnerId', runnerId);
|
|
5639
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs"
|
|
5640
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
5641
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
5642
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)));
|
|
5643
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5644
|
+
if (configuration) {
|
|
5645
|
+
baseOptions = configuration.baseOptions;
|
|
5646
|
+
}
|
|
5647
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5648
|
+
localVarHeaderParameter = {};
|
|
5649
|
+
localVarQueryParameter = {};
|
|
5650
|
+
// authentication oAuth2AuthCode required
|
|
5651
|
+
// oauth required
|
|
5652
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
5653
|
+
case 1:
|
|
5654
|
+
// authentication oAuth2AuthCode required
|
|
5655
|
+
// oauth required
|
|
5656
|
+
_a.sent();
|
|
5657
|
+
if (page !== undefined) {
|
|
5658
|
+
localVarQueryParameter['page'] = page;
|
|
5659
|
+
}
|
|
5660
|
+
if (size !== undefined) {
|
|
5661
|
+
localVarQueryParameter['size'] = size;
|
|
5662
|
+
}
|
|
5663
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5664
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5665
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5666
|
+
return [2 /*return*/, {
|
|
5667
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
5668
|
+
options: localVarRequestOptions,
|
|
5669
|
+
}];
|
|
5670
|
+
}
|
|
5671
|
+
});
|
|
5672
|
+
});
|
|
5673
|
+
},
|
|
5674
|
+
};
|
|
5675
|
+
};
|
|
5676
|
+
/**
|
|
5677
|
+
* RunApi - functional programming interface
|
|
5678
|
+
* @export
|
|
5679
|
+
*/
|
|
5680
|
+
exports.RunApiFp = function (configuration) {
|
|
5681
|
+
var localVarAxiosParamCreator = exports.RunApiAxiosParamCreator(configuration);
|
|
5682
|
+
return {
|
|
5683
|
+
/**
|
|
5684
|
+
*
|
|
5685
|
+
* @summary Delete a run
|
|
5686
|
+
* @param {string} organizationId the Organization identifier
|
|
5687
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5688
|
+
* @param {string} runnerId the Runner identifier
|
|
5689
|
+
* @param {string} runId the Run identifier
|
|
5690
|
+
* @param {*} [options] Override http request option.
|
|
5691
|
+
* @throws {RequiredError}
|
|
5692
|
+
*/
|
|
5693
|
+
deleteRun: function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5694
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5695
|
+
var localVarAxiosArgs;
|
|
5696
|
+
return __generator(this, function (_a) {
|
|
5697
|
+
switch (_a.label) {
|
|
5698
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteRun(organizationId, workspaceId, runnerId, runId, options)];
|
|
5699
|
+
case 1:
|
|
5700
|
+
localVarAxiosArgs = _a.sent();
|
|
5701
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
5702
|
+
}
|
|
5703
|
+
});
|
|
5704
|
+
});
|
|
5705
|
+
},
|
|
5706
|
+
/**
|
|
5707
|
+
*
|
|
5708
|
+
* @summary Get the details of a run
|
|
5709
|
+
* @param {string} organizationId the Organization identifier
|
|
5710
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5711
|
+
* @param {string} runnerId the Runner identifier
|
|
5712
|
+
* @param {string} runId the Run identifier
|
|
5713
|
+
* @param {*} [options] Override http request option.
|
|
5714
|
+
* @throws {RequiredError}
|
|
5715
|
+
*/
|
|
5716
|
+
getRun: function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5717
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5718
|
+
var localVarAxiosArgs;
|
|
5719
|
+
return __generator(this, function (_a) {
|
|
5720
|
+
switch (_a.label) {
|
|
5721
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRun(organizationId, workspaceId, runnerId, runId, options)];
|
|
5722
|
+
case 1:
|
|
5723
|
+
localVarAxiosArgs = _a.sent();
|
|
5724
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
5725
|
+
}
|
|
5726
|
+
});
|
|
5727
|
+
});
|
|
5728
|
+
},
|
|
5729
|
+
/**
|
|
5730
|
+
*
|
|
5731
|
+
* @summary get the logs for the Run
|
|
5732
|
+
* @param {string} organizationId the Organization identifier
|
|
5733
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5734
|
+
* @param {string} runnerId the Runner identifier
|
|
5735
|
+
* @param {string} runId the Run identifier
|
|
5736
|
+
* @param {*} [options] Override http request option.
|
|
5737
|
+
* @throws {RequiredError}
|
|
5738
|
+
*/
|
|
5739
|
+
getRunLogs: function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5740
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5741
|
+
var localVarAxiosArgs;
|
|
5742
|
+
return __generator(this, function (_a) {
|
|
5743
|
+
switch (_a.label) {
|
|
5744
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRunLogs(organizationId, workspaceId, runnerId, runId, options)];
|
|
5745
|
+
case 1:
|
|
5746
|
+
localVarAxiosArgs = _a.sent();
|
|
5747
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
5748
|
+
}
|
|
5749
|
+
});
|
|
5750
|
+
});
|
|
5751
|
+
},
|
|
5752
|
+
/**
|
|
5753
|
+
*
|
|
5754
|
+
* @summary get the status for the Run
|
|
5755
|
+
* @param {string} organizationId the Organization identifier
|
|
5756
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5757
|
+
* @param {string} runnerId the Runner identifier
|
|
5758
|
+
* @param {string} runId the Run identifier
|
|
5759
|
+
* @param {*} [options] Override http request option.
|
|
5760
|
+
* @throws {RequiredError}
|
|
5761
|
+
*/
|
|
5762
|
+
getRunStatus: function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5763
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5764
|
+
var localVarAxiosArgs;
|
|
5765
|
+
return __generator(this, function (_a) {
|
|
5766
|
+
switch (_a.label) {
|
|
5767
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRunStatus(organizationId, workspaceId, runnerId, runId, options)];
|
|
5768
|
+
case 1:
|
|
5769
|
+
localVarAxiosArgs = _a.sent();
|
|
5770
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
5771
|
+
}
|
|
5772
|
+
});
|
|
5773
|
+
});
|
|
5774
|
+
},
|
|
5775
|
+
/**
|
|
5776
|
+
*
|
|
5777
|
+
* @summary get the list of Runs for the Runner
|
|
5778
|
+
* @param {string} organizationId the Organization identifier
|
|
5779
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5780
|
+
* @param {string} runnerId the Runner identifier
|
|
5781
|
+
* @param {number} [page] page number to query
|
|
5782
|
+
* @param {number} [size] amount of result by page
|
|
5783
|
+
* @param {*} [options] Override http request option.
|
|
5784
|
+
* @throws {RequiredError}
|
|
5785
|
+
*/
|
|
5786
|
+
listRuns: function (organizationId, workspaceId, runnerId, page, size, options) {
|
|
5787
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5788
|
+
var localVarAxiosArgs;
|
|
5789
|
+
return __generator(this, function (_a) {
|
|
5790
|
+
switch (_a.label) {
|
|
5791
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRuns(organizationId, workspaceId, runnerId, page, size, options)];
|
|
5792
|
+
case 1:
|
|
5793
|
+
localVarAxiosArgs = _a.sent();
|
|
5794
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
5795
|
+
}
|
|
5796
|
+
});
|
|
5797
|
+
});
|
|
5798
|
+
},
|
|
5799
|
+
};
|
|
5800
|
+
};
|
|
5801
|
+
/**
|
|
5802
|
+
* RunApi - factory interface
|
|
5803
|
+
* @export
|
|
5804
|
+
*/
|
|
5805
|
+
exports.RunApiFactory = function (configuration, basePath, axios) {
|
|
5806
|
+
var localVarFp = exports.RunApiFp(configuration);
|
|
5807
|
+
return {
|
|
5808
|
+
/**
|
|
5809
|
+
*
|
|
5810
|
+
* @summary Delete a run
|
|
5811
|
+
* @param {string} organizationId the Organization identifier
|
|
5812
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5813
|
+
* @param {string} runnerId the Runner identifier
|
|
5814
|
+
* @param {string} runId the Run identifier
|
|
5815
|
+
* @param {*} [options] Override http request option.
|
|
5816
|
+
* @throws {RequiredError}
|
|
5817
|
+
*/
|
|
5818
|
+
deleteRun: function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5819
|
+
return localVarFp.deleteRun(organizationId, workspaceId, runnerId, runId, options).then(function (request) { return request(axios, basePath); });
|
|
5820
|
+
},
|
|
5821
|
+
/**
|
|
5822
|
+
*
|
|
5823
|
+
* @summary Get the details of a run
|
|
5824
|
+
* @param {string} organizationId the Organization identifier
|
|
5825
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5826
|
+
* @param {string} runnerId the Runner identifier
|
|
5827
|
+
* @param {string} runId the Run identifier
|
|
5828
|
+
* @param {*} [options] Override http request option.
|
|
5829
|
+
* @throws {RequiredError}
|
|
5830
|
+
*/
|
|
5831
|
+
getRun: function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5832
|
+
return localVarFp.getRun(organizationId, workspaceId, runnerId, runId, options).then(function (request) { return request(axios, basePath); });
|
|
5833
|
+
},
|
|
5834
|
+
/**
|
|
5835
|
+
*
|
|
5836
|
+
* @summary get the logs for the Run
|
|
5837
|
+
* @param {string} organizationId the Organization identifier
|
|
5838
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5839
|
+
* @param {string} runnerId the Runner identifier
|
|
5840
|
+
* @param {string} runId the Run identifier
|
|
5841
|
+
* @param {*} [options] Override http request option.
|
|
5842
|
+
* @throws {RequiredError}
|
|
5843
|
+
*/
|
|
5844
|
+
getRunLogs: function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5845
|
+
return localVarFp.getRunLogs(organizationId, workspaceId, runnerId, runId, options).then(function (request) { return request(axios, basePath); });
|
|
5846
|
+
},
|
|
5847
|
+
/**
|
|
5848
|
+
*
|
|
5849
|
+
* @summary get the status for the Run
|
|
5850
|
+
* @param {string} organizationId the Organization identifier
|
|
5851
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5852
|
+
* @param {string} runnerId the Runner identifier
|
|
5853
|
+
* @param {string} runId the Run identifier
|
|
5854
|
+
* @param {*} [options] Override http request option.
|
|
5855
|
+
* @throws {RequiredError}
|
|
5856
|
+
*/
|
|
5857
|
+
getRunStatus: function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5858
|
+
return localVarFp.getRunStatus(organizationId, workspaceId, runnerId, runId, options).then(function (request) { return request(axios, basePath); });
|
|
5859
|
+
},
|
|
5860
|
+
/**
|
|
5861
|
+
*
|
|
5862
|
+
* @summary get the list of Runs for the Runner
|
|
5863
|
+
* @param {string} organizationId the Organization identifier
|
|
5864
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5865
|
+
* @param {string} runnerId the Runner identifier
|
|
5866
|
+
* @param {number} [page] page number to query
|
|
5867
|
+
* @param {number} [size] amount of result by page
|
|
5868
|
+
* @param {*} [options] Override http request option.
|
|
5869
|
+
* @throws {RequiredError}
|
|
5870
|
+
*/
|
|
5871
|
+
listRuns: function (organizationId, workspaceId, runnerId, page, size, options) {
|
|
5872
|
+
return localVarFp.listRuns(organizationId, workspaceId, runnerId, page, size, options).then(function (request) { return request(axios, basePath); });
|
|
5873
|
+
},
|
|
5874
|
+
};
|
|
5875
|
+
};
|
|
5876
|
+
/**
|
|
5877
|
+
* RunApi - object-oriented interface
|
|
5878
|
+
* @export
|
|
5879
|
+
* @class RunApi
|
|
5880
|
+
* @extends {BaseAPI}
|
|
5881
|
+
*/
|
|
5882
|
+
var RunApi = /** @class */ (function (_super) {
|
|
5883
|
+
__extends(RunApi, _super);
|
|
5884
|
+
function RunApi() {
|
|
5885
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
5886
|
+
}
|
|
5887
|
+
/**
|
|
5888
|
+
*
|
|
5889
|
+
* @summary Delete a run
|
|
5890
|
+
* @param {string} organizationId the Organization identifier
|
|
5891
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5892
|
+
* @param {string} runnerId the Runner identifier
|
|
5893
|
+
* @param {string} runId the Run identifier
|
|
5894
|
+
* @param {*} [options] Override http request option.
|
|
5895
|
+
* @throws {RequiredError}
|
|
5896
|
+
* @memberof RunApi
|
|
5897
|
+
*/
|
|
5898
|
+
RunApi.prototype.deleteRun = function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5899
|
+
var _this = this;
|
|
5900
|
+
return exports.RunApiFp(this.configuration).deleteRun(organizationId, workspaceId, runnerId, runId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5901
|
+
};
|
|
5902
|
+
/**
|
|
5903
|
+
*
|
|
5904
|
+
* @summary Get the details of a run
|
|
5905
|
+
* @param {string} organizationId the Organization identifier
|
|
5906
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5907
|
+
* @param {string} runnerId the Runner identifier
|
|
5908
|
+
* @param {string} runId the Run identifier
|
|
5909
|
+
* @param {*} [options] Override http request option.
|
|
5910
|
+
* @throws {RequiredError}
|
|
5911
|
+
* @memberof RunApi
|
|
5912
|
+
*/
|
|
5913
|
+
RunApi.prototype.getRun = function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5914
|
+
var _this = this;
|
|
5915
|
+
return exports.RunApiFp(this.configuration).getRun(organizationId, workspaceId, runnerId, runId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5916
|
+
};
|
|
5917
|
+
/**
|
|
5918
|
+
*
|
|
5919
|
+
* @summary get the logs for the Run
|
|
5920
|
+
* @param {string} organizationId the Organization identifier
|
|
5921
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5922
|
+
* @param {string} runnerId the Runner identifier
|
|
5923
|
+
* @param {string} runId the Run identifier
|
|
5924
|
+
* @param {*} [options] Override http request option.
|
|
5925
|
+
* @throws {RequiredError}
|
|
5926
|
+
* @memberof RunApi
|
|
5927
|
+
*/
|
|
5928
|
+
RunApi.prototype.getRunLogs = function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5929
|
+
var _this = this;
|
|
5930
|
+
return exports.RunApiFp(this.configuration).getRunLogs(organizationId, workspaceId, runnerId, runId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5931
|
+
};
|
|
5932
|
+
/**
|
|
5933
|
+
*
|
|
5934
|
+
* @summary get the status for the Run
|
|
5935
|
+
* @param {string} organizationId the Organization identifier
|
|
5936
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5937
|
+
* @param {string} runnerId the Runner identifier
|
|
5938
|
+
* @param {string} runId the Run identifier
|
|
5939
|
+
* @param {*} [options] Override http request option.
|
|
5940
|
+
* @throws {RequiredError}
|
|
5941
|
+
* @memberof RunApi
|
|
5942
|
+
*/
|
|
5943
|
+
RunApi.prototype.getRunStatus = function (organizationId, workspaceId, runnerId, runId, options) {
|
|
5944
|
+
var _this = this;
|
|
5945
|
+
return exports.RunApiFp(this.configuration).getRunStatus(organizationId, workspaceId, runnerId, runId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5946
|
+
};
|
|
5947
|
+
/**
|
|
5948
|
+
*
|
|
5949
|
+
* @summary get the list of Runs for the Runner
|
|
5950
|
+
* @param {string} organizationId the Organization identifier
|
|
5951
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5952
|
+
* @param {string} runnerId the Runner identifier
|
|
5953
|
+
* @param {number} [page] page number to query
|
|
5954
|
+
* @param {number} [size] amount of result by page
|
|
5955
|
+
* @param {*} [options] Override http request option.
|
|
5956
|
+
* @throws {RequiredError}
|
|
5957
|
+
* @memberof RunApi
|
|
5958
|
+
*/
|
|
5959
|
+
RunApi.prototype.listRuns = function (organizationId, workspaceId, runnerId, page, size, options) {
|
|
5960
|
+
var _this = this;
|
|
5961
|
+
return exports.RunApiFp(this.configuration).listRuns(organizationId, workspaceId, runnerId, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5962
|
+
};
|
|
5963
|
+
return RunApi;
|
|
5964
|
+
}(base_1.BaseAPI));
|
|
5965
|
+
exports.RunApi = RunApi;
|
|
5966
|
+
/**
|
|
5967
|
+
* RunnerApi - axios parameter creator
|
|
5968
|
+
* @export
|
|
5969
|
+
*/
|
|
5970
|
+
exports.RunnerApiAxiosParamCreator = function (configuration) {
|
|
5971
|
+
var _this = this;
|
|
5972
|
+
return {
|
|
5973
|
+
/**
|
|
5974
|
+
*
|
|
5975
|
+
* @summary Add a control access to the Runner
|
|
5976
|
+
* @param {string} organizationId the Organization identifier
|
|
5977
|
+
* @param {string} workspaceId the Workspace identifier
|
|
5978
|
+
* @param {string} runnerId the Runner identifier
|
|
5979
|
+
* @param {RunnerAccessControl} runnerAccessControl the new Runner security access to add.
|
|
5980
|
+
* @param {*} [options] Override http request option.
|
|
5981
|
+
* @throws {RequiredError}
|
|
5982
|
+
*/
|
|
5983
|
+
addRunnerAccessControl: function (organizationId, workspaceId, runnerId, runnerAccessControl, options) {
|
|
5984
|
+
if (options === void 0) { options = {}; }
|
|
5985
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5986
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5987
|
+
return __generator(this, function (_a) {
|
|
5988
|
+
switch (_a.label) {
|
|
5989
|
+
case 0:
|
|
5990
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5991
|
+
common_1.assertParamExists('addRunnerAccessControl', 'organizationId', organizationId);
|
|
5992
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
5993
|
+
common_1.assertParamExists('addRunnerAccessControl', 'workspaceId', workspaceId);
|
|
5994
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
5995
|
+
common_1.assertParamExists('addRunnerAccessControl', 'runnerId', runnerId);
|
|
5996
|
+
// verify required parameter 'runnerAccessControl' is not null or undefined
|
|
5997
|
+
common_1.assertParamExists('addRunnerAccessControl', 'runnerAccessControl', runnerAccessControl);
|
|
5998
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access"
|
|
5999
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6000
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
6001
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)));
|
|
6002
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6003
|
+
if (configuration) {
|
|
6004
|
+
baseOptions = configuration.baseOptions;
|
|
6005
|
+
}
|
|
6006
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6007
|
+
localVarHeaderParameter = {};
|
|
6008
|
+
localVarQueryParameter = {};
|
|
6009
|
+
// authentication oAuth2AuthCode required
|
|
6010
|
+
// oauth required
|
|
6011
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6012
|
+
case 1:
|
|
6013
|
+
// authentication oAuth2AuthCode required
|
|
6014
|
+
// oauth required
|
|
6015
|
+
_a.sent();
|
|
6016
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6017
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6018
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6019
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6020
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(runnerAccessControl, localVarRequestOptions, configuration);
|
|
6021
|
+
return [2 /*return*/, {
|
|
6022
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6023
|
+
options: localVarRequestOptions,
|
|
6024
|
+
}];
|
|
6025
|
+
}
|
|
6026
|
+
});
|
|
6027
|
+
});
|
|
6028
|
+
},
|
|
6029
|
+
/**
|
|
6030
|
+
*
|
|
6031
|
+
* @summary Create a new Runner
|
|
6032
|
+
* @param {string} organizationId the Organization identifier
|
|
6033
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6034
|
+
* @param {Runner} runner the Runner to create
|
|
6035
|
+
* @param {*} [options] Override http request option.
|
|
6036
|
+
* @throws {RequiredError}
|
|
6037
|
+
*/
|
|
6038
|
+
createRunner: function (organizationId, workspaceId, runner, options) {
|
|
6039
|
+
if (options === void 0) { options = {}; }
|
|
6040
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6041
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6042
|
+
return __generator(this, function (_a) {
|
|
6043
|
+
switch (_a.label) {
|
|
6044
|
+
case 0:
|
|
6045
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6046
|
+
common_1.assertParamExists('createRunner', 'organizationId', organizationId);
|
|
6047
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6048
|
+
common_1.assertParamExists('createRunner', 'workspaceId', workspaceId);
|
|
6049
|
+
// verify required parameter 'runner' is not null or undefined
|
|
6050
|
+
common_1.assertParamExists('createRunner', 'runner', runner);
|
|
6051
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners"
|
|
6052
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6053
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
|
|
6054
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6055
|
+
if (configuration) {
|
|
6056
|
+
baseOptions = configuration.baseOptions;
|
|
6057
|
+
}
|
|
6058
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6059
|
+
localVarHeaderParameter = {};
|
|
6060
|
+
localVarQueryParameter = {};
|
|
6061
|
+
// authentication oAuth2AuthCode required
|
|
6062
|
+
// oauth required
|
|
6063
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6064
|
+
case 1:
|
|
6065
|
+
// authentication oAuth2AuthCode required
|
|
6066
|
+
// oauth required
|
|
6067
|
+
_a.sent();
|
|
6068
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6069
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6070
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6071
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6072
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(runner, localVarRequestOptions, configuration);
|
|
6073
|
+
return [2 /*return*/, {
|
|
6074
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6075
|
+
options: localVarRequestOptions,
|
|
6076
|
+
}];
|
|
6077
|
+
}
|
|
6078
|
+
});
|
|
6079
|
+
});
|
|
6080
|
+
},
|
|
6081
|
+
/**
|
|
6082
|
+
*
|
|
6083
|
+
* @summary Delete a runner
|
|
6084
|
+
* @param {string} organizationId the Organization identifier
|
|
6085
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6086
|
+
* @param {string} runnerId the Runner identifier
|
|
6087
|
+
* @param {*} [options] Override http request option.
|
|
6088
|
+
* @throws {RequiredError}
|
|
6089
|
+
*/
|
|
6090
|
+
deleteRunner: function (organizationId, workspaceId, runnerId, options) {
|
|
6091
|
+
if (options === void 0) { options = {}; }
|
|
6092
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6093
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6094
|
+
return __generator(this, function (_a) {
|
|
6095
|
+
switch (_a.label) {
|
|
6096
|
+
case 0:
|
|
6097
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6098
|
+
common_1.assertParamExists('deleteRunner', 'organizationId', organizationId);
|
|
6099
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6100
|
+
common_1.assertParamExists('deleteRunner', 'workspaceId', workspaceId);
|
|
6101
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
6102
|
+
common_1.assertParamExists('deleteRunner', 'runnerId', runnerId);
|
|
6103
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}"
|
|
6104
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6105
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
6106
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)));
|
|
6107
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6108
|
+
if (configuration) {
|
|
6109
|
+
baseOptions = configuration.baseOptions;
|
|
6110
|
+
}
|
|
6111
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
6112
|
+
localVarHeaderParameter = {};
|
|
6113
|
+
localVarQueryParameter = {};
|
|
6114
|
+
// authentication oAuth2AuthCode required
|
|
6115
|
+
// oauth required
|
|
6116
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6117
|
+
case 1:
|
|
6118
|
+
// authentication oAuth2AuthCode required
|
|
6119
|
+
// oauth required
|
|
6120
|
+
_a.sent();
|
|
6121
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6122
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6123
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6124
|
+
return [2 /*return*/, {
|
|
6125
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6126
|
+
options: localVarRequestOptions,
|
|
6127
|
+
}];
|
|
6128
|
+
}
|
|
6129
|
+
});
|
|
6130
|
+
});
|
|
6131
|
+
},
|
|
6132
|
+
/**
|
|
6133
|
+
*
|
|
6134
|
+
* @summary Get the details of an runner
|
|
6135
|
+
* @param {string} organizationId the Organization identifier
|
|
6136
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6137
|
+
* @param {string} runnerId the Runner identifier
|
|
6138
|
+
* @param {*} [options] Override http request option.
|
|
6139
|
+
* @throws {RequiredError}
|
|
6140
|
+
*/
|
|
6141
|
+
getRunner: function (organizationId, workspaceId, runnerId, options) {
|
|
6142
|
+
if (options === void 0) { options = {}; }
|
|
6143
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6144
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6145
|
+
return __generator(this, function (_a) {
|
|
6146
|
+
switch (_a.label) {
|
|
6147
|
+
case 0:
|
|
6148
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6149
|
+
common_1.assertParamExists('getRunner', 'organizationId', organizationId);
|
|
6150
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6151
|
+
common_1.assertParamExists('getRunner', 'workspaceId', workspaceId);
|
|
6152
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
6153
|
+
common_1.assertParamExists('getRunner', 'runnerId', runnerId);
|
|
6154
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}"
|
|
6155
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6156
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
6157
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)));
|
|
6158
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6159
|
+
if (configuration) {
|
|
6160
|
+
baseOptions = configuration.baseOptions;
|
|
6161
|
+
}
|
|
6162
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
6163
|
+
localVarHeaderParameter = {};
|
|
6164
|
+
localVarQueryParameter = {};
|
|
6165
|
+
// authentication oAuth2AuthCode required
|
|
6166
|
+
// oauth required
|
|
6167
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6168
|
+
case 1:
|
|
6169
|
+
// authentication oAuth2AuthCode required
|
|
6170
|
+
// oauth required
|
|
6171
|
+
_a.sent();
|
|
6172
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6173
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6174
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6175
|
+
return [2 /*return*/, {
|
|
6176
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6177
|
+
options: localVarRequestOptions,
|
|
6178
|
+
}];
|
|
6179
|
+
}
|
|
6180
|
+
});
|
|
6181
|
+
});
|
|
6182
|
+
},
|
|
6183
|
+
/**
|
|
6184
|
+
*
|
|
6185
|
+
* @summary Get a control access for the Runner
|
|
6186
|
+
* @param {string} organizationId the Organization identifier
|
|
6187
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6188
|
+
* @param {string} runnerId the Runner identifier
|
|
6189
|
+
* @param {string} identityId the User identifier
|
|
6190
|
+
* @param {*} [options] Override http request option.
|
|
6191
|
+
* @throws {RequiredError}
|
|
6192
|
+
*/
|
|
6193
|
+
getRunnerAccessControl: function (organizationId, workspaceId, runnerId, identityId, options) {
|
|
6194
|
+
if (options === void 0) { options = {}; }
|
|
6195
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6196
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6197
|
+
return __generator(this, function (_a) {
|
|
6198
|
+
switch (_a.label) {
|
|
6199
|
+
case 0:
|
|
6200
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6201
|
+
common_1.assertParamExists('getRunnerAccessControl', 'organizationId', organizationId);
|
|
6202
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6203
|
+
common_1.assertParamExists('getRunnerAccessControl', 'workspaceId', workspaceId);
|
|
6204
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
6205
|
+
common_1.assertParamExists('getRunnerAccessControl', 'runnerId', runnerId);
|
|
6206
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
6207
|
+
common_1.assertParamExists('getRunnerAccessControl', 'identityId', identityId);
|
|
6208
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id}"
|
|
6209
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6210
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
6211
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)))
|
|
6212
|
+
.replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
|
|
6213
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6214
|
+
if (configuration) {
|
|
6215
|
+
baseOptions = configuration.baseOptions;
|
|
6216
|
+
}
|
|
6217
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
6218
|
+
localVarHeaderParameter = {};
|
|
6219
|
+
localVarQueryParameter = {};
|
|
6220
|
+
// authentication oAuth2AuthCode required
|
|
6221
|
+
// oauth required
|
|
6222
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6223
|
+
case 1:
|
|
6224
|
+
// authentication oAuth2AuthCode required
|
|
6225
|
+
// oauth required
|
|
6226
|
+
_a.sent();
|
|
6227
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6228
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6229
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6230
|
+
return [2 /*return*/, {
|
|
6231
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6232
|
+
options: localVarRequestOptions,
|
|
6233
|
+
}];
|
|
6234
|
+
}
|
|
6235
|
+
});
|
|
6236
|
+
});
|
|
6237
|
+
},
|
|
6238
|
+
/**
|
|
6239
|
+
*
|
|
6240
|
+
* @summary Get the Runner permission by given role
|
|
6241
|
+
* @param {string} organizationId the Organization identifier
|
|
6242
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6243
|
+
* @param {string} runnerId the Runner identifier
|
|
6244
|
+
* @param {string} role the Role
|
|
6245
|
+
* @param {*} [options] Override http request option.
|
|
6246
|
+
* @throws {RequiredError}
|
|
6247
|
+
*/
|
|
6248
|
+
getRunnerPermissions: function (organizationId, workspaceId, runnerId, role, options) {
|
|
6249
|
+
if (options === void 0) { options = {}; }
|
|
6250
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6251
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6252
|
+
return __generator(this, function (_a) {
|
|
6253
|
+
switch (_a.label) {
|
|
6254
|
+
case 0:
|
|
6255
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6256
|
+
common_1.assertParamExists('getRunnerPermissions', 'organizationId', organizationId);
|
|
6257
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6258
|
+
common_1.assertParamExists('getRunnerPermissions', 'workspaceId', workspaceId);
|
|
6259
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
6260
|
+
common_1.assertParamExists('getRunnerPermissions', 'runnerId', runnerId);
|
|
6261
|
+
// verify required parameter 'role' is not null or undefined
|
|
6262
|
+
common_1.assertParamExists('getRunnerPermissions', 'role', role);
|
|
6263
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/permissions/{role}"
|
|
6264
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6265
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
6266
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)))
|
|
6267
|
+
.replace("{" + "role" + "}", encodeURIComponent(String(role)));
|
|
6268
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6269
|
+
if (configuration) {
|
|
6270
|
+
baseOptions = configuration.baseOptions;
|
|
6271
|
+
}
|
|
6272
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
6273
|
+
localVarHeaderParameter = {};
|
|
6274
|
+
localVarQueryParameter = {};
|
|
6275
|
+
// authentication oAuth2AuthCode required
|
|
6276
|
+
// oauth required
|
|
6277
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6278
|
+
case 1:
|
|
6279
|
+
// authentication oAuth2AuthCode required
|
|
6280
|
+
// oauth required
|
|
6281
|
+
_a.sent();
|
|
6282
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6283
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6284
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6285
|
+
return [2 /*return*/, {
|
|
6286
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6287
|
+
options: localVarRequestOptions,
|
|
6288
|
+
}];
|
|
6289
|
+
}
|
|
6290
|
+
});
|
|
6291
|
+
});
|
|
6292
|
+
},
|
|
6293
|
+
/**
|
|
6294
|
+
*
|
|
6295
|
+
* @summary Get the Runner security information
|
|
6296
|
+
* @param {string} organizationId the Organization identifier
|
|
6297
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6298
|
+
* @param {string} runnerId the Runner identifier
|
|
6299
|
+
* @param {*} [options] Override http request option.
|
|
6300
|
+
* @throws {RequiredError}
|
|
6301
|
+
*/
|
|
6302
|
+
getRunnerSecurity: function (organizationId, workspaceId, runnerId, options) {
|
|
6303
|
+
if (options === void 0) { options = {}; }
|
|
6304
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6305
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6306
|
+
return __generator(this, function (_a) {
|
|
6307
|
+
switch (_a.label) {
|
|
6308
|
+
case 0:
|
|
6309
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6310
|
+
common_1.assertParamExists('getRunnerSecurity', 'organizationId', organizationId);
|
|
6311
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6312
|
+
common_1.assertParamExists('getRunnerSecurity', 'workspaceId', workspaceId);
|
|
6313
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
6314
|
+
common_1.assertParamExists('getRunnerSecurity', 'runnerId', runnerId);
|
|
6315
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security"
|
|
6316
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6317
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
6318
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)));
|
|
6319
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6320
|
+
if (configuration) {
|
|
6321
|
+
baseOptions = configuration.baseOptions;
|
|
6322
|
+
}
|
|
6323
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
6324
|
+
localVarHeaderParameter = {};
|
|
6325
|
+
localVarQueryParameter = {};
|
|
6326
|
+
// authentication oAuth2AuthCode required
|
|
6327
|
+
// oauth required
|
|
6328
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6329
|
+
case 1:
|
|
6330
|
+
// authentication oAuth2AuthCode required
|
|
6331
|
+
// oauth required
|
|
6332
|
+
_a.sent();
|
|
6333
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6334
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6335
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6336
|
+
return [2 /*return*/, {
|
|
6337
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6338
|
+
options: localVarRequestOptions,
|
|
6339
|
+
}];
|
|
6340
|
+
}
|
|
6341
|
+
});
|
|
6342
|
+
});
|
|
6343
|
+
},
|
|
6344
|
+
/**
|
|
6345
|
+
*
|
|
6346
|
+
* @summary Get the Runner security users list
|
|
6347
|
+
* @param {string} organizationId the Organization identifier
|
|
6348
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6349
|
+
* @param {string} runnerId the Runner identifier
|
|
6350
|
+
* @param {*} [options] Override http request option.
|
|
6351
|
+
* @throws {RequiredError}
|
|
6352
|
+
*/
|
|
6353
|
+
getRunnerSecurityUsers: function (organizationId, workspaceId, runnerId, options) {
|
|
6354
|
+
if (options === void 0) { options = {}; }
|
|
6355
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6356
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6357
|
+
return __generator(this, function (_a) {
|
|
6358
|
+
switch (_a.label) {
|
|
6359
|
+
case 0:
|
|
6360
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6361
|
+
common_1.assertParamExists('getRunnerSecurityUsers', 'organizationId', organizationId);
|
|
6362
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6363
|
+
common_1.assertParamExists('getRunnerSecurityUsers', 'workspaceId', workspaceId);
|
|
6364
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
6365
|
+
common_1.assertParamExists('getRunnerSecurityUsers', 'runnerId', runnerId);
|
|
6366
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/users"
|
|
6367
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6368
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
6369
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)));
|
|
6370
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6371
|
+
if (configuration) {
|
|
6372
|
+
baseOptions = configuration.baseOptions;
|
|
6373
|
+
}
|
|
6374
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
6375
|
+
localVarHeaderParameter = {};
|
|
6376
|
+
localVarQueryParameter = {};
|
|
6377
|
+
// authentication oAuth2AuthCode required
|
|
6378
|
+
// oauth required
|
|
6379
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6380
|
+
case 1:
|
|
6381
|
+
// authentication oAuth2AuthCode required
|
|
6382
|
+
// oauth required
|
|
6383
|
+
_a.sent();
|
|
6384
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6385
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6386
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6387
|
+
return [2 /*return*/, {
|
|
6388
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6389
|
+
options: localVarRequestOptions,
|
|
6390
|
+
}];
|
|
6391
|
+
}
|
|
6392
|
+
});
|
|
6393
|
+
});
|
|
6394
|
+
},
|
|
6395
|
+
/**
|
|
6396
|
+
*
|
|
6397
|
+
* @summary List all Runners
|
|
6398
|
+
* @param {string} organizationId the Organization identifier
|
|
6399
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6400
|
+
* @param {number} [page] page number to query
|
|
6401
|
+
* @param {number} [size] amount of result by page
|
|
6402
|
+
* @param {*} [options] Override http request option.
|
|
6403
|
+
* @throws {RequiredError}
|
|
6404
|
+
*/
|
|
6405
|
+
listRunners: function (organizationId, workspaceId, page, size, options) {
|
|
6406
|
+
if (options === void 0) { options = {}; }
|
|
6407
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6408
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6409
|
+
return __generator(this, function (_a) {
|
|
6410
|
+
switch (_a.label) {
|
|
6411
|
+
case 0:
|
|
6412
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6413
|
+
common_1.assertParamExists('listRunners', 'organizationId', organizationId);
|
|
6414
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6415
|
+
common_1.assertParamExists('listRunners', 'workspaceId', workspaceId);
|
|
6416
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners"
|
|
6417
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6418
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
|
|
6419
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6420
|
+
if (configuration) {
|
|
6421
|
+
baseOptions = configuration.baseOptions;
|
|
6422
|
+
}
|
|
6423
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
6424
|
+
localVarHeaderParameter = {};
|
|
6425
|
+
localVarQueryParameter = {};
|
|
6426
|
+
// authentication oAuth2AuthCode required
|
|
6427
|
+
// oauth required
|
|
6428
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6429
|
+
case 1:
|
|
6430
|
+
// authentication oAuth2AuthCode required
|
|
6431
|
+
// oauth required
|
|
6432
|
+
_a.sent();
|
|
6433
|
+
if (page !== undefined) {
|
|
6434
|
+
localVarQueryParameter['page'] = page;
|
|
6435
|
+
}
|
|
6436
|
+
if (size !== undefined) {
|
|
6437
|
+
localVarQueryParameter['size'] = size;
|
|
6438
|
+
}
|
|
6439
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6440
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6441
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6442
|
+
return [2 /*return*/, {
|
|
6443
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6444
|
+
options: localVarRequestOptions,
|
|
6445
|
+
}];
|
|
6446
|
+
}
|
|
6447
|
+
});
|
|
6448
|
+
});
|
|
6449
|
+
},
|
|
6450
|
+
/**
|
|
6451
|
+
*
|
|
6452
|
+
* @summary Remove the specified access from the given Organization Runner
|
|
6453
|
+
* @param {string} organizationId the Organization identifier
|
|
6454
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6455
|
+
* @param {string} runnerId the Runner identifier
|
|
6456
|
+
* @param {string} identityId the User identifier
|
|
6457
|
+
* @param {*} [options] Override http request option.
|
|
6458
|
+
* @throws {RequiredError}
|
|
6459
|
+
*/
|
|
6460
|
+
removeRunnerAccessControl: function (organizationId, workspaceId, runnerId, identityId, options) {
|
|
6461
|
+
if (options === void 0) { options = {}; }
|
|
6462
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6463
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6464
|
+
return __generator(this, function (_a) {
|
|
6465
|
+
switch (_a.label) {
|
|
6466
|
+
case 0:
|
|
6467
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6468
|
+
common_1.assertParamExists('removeRunnerAccessControl', 'organizationId', organizationId);
|
|
6469
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6470
|
+
common_1.assertParamExists('removeRunnerAccessControl', 'workspaceId', workspaceId);
|
|
6471
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
6472
|
+
common_1.assertParamExists('removeRunnerAccessControl', 'runnerId', runnerId);
|
|
6473
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
6474
|
+
common_1.assertParamExists('removeRunnerAccessControl', 'identityId', identityId);
|
|
6475
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id}"
|
|
6476
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6477
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
6478
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)))
|
|
6479
|
+
.replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
|
|
6480
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6481
|
+
if (configuration) {
|
|
6482
|
+
baseOptions = configuration.baseOptions;
|
|
6483
|
+
}
|
|
6484
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
6485
|
+
localVarHeaderParameter = {};
|
|
6486
|
+
localVarQueryParameter = {};
|
|
6487
|
+
// authentication oAuth2AuthCode required
|
|
6488
|
+
// oauth required
|
|
6489
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6490
|
+
case 1:
|
|
6491
|
+
// authentication oAuth2AuthCode required
|
|
6492
|
+
// oauth required
|
|
6493
|
+
_a.sent();
|
|
6494
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6495
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6496
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6497
|
+
return [2 /*return*/, {
|
|
6498
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6499
|
+
options: localVarRequestOptions,
|
|
6500
|
+
}];
|
|
6501
|
+
}
|
|
6502
|
+
});
|
|
6503
|
+
});
|
|
6504
|
+
},
|
|
6505
|
+
/**
|
|
6506
|
+
*
|
|
6507
|
+
* @summary Set the Runner default security
|
|
6508
|
+
* @param {string} organizationId the Organization identifier
|
|
6509
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6510
|
+
* @param {string} runnerId the Runner identifier
|
|
6511
|
+
* @param {RunnerRole} runnerRole This change the runner default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the runner.
|
|
6512
|
+
* @param {*} [options] Override http request option.
|
|
6513
|
+
* @throws {RequiredError}
|
|
6514
|
+
*/
|
|
6515
|
+
setRunnerDefaultSecurity: function (organizationId, workspaceId, runnerId, runnerRole, options) {
|
|
6516
|
+
if (options === void 0) { options = {}; }
|
|
6517
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6518
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6519
|
+
return __generator(this, function (_a) {
|
|
6520
|
+
switch (_a.label) {
|
|
6521
|
+
case 0:
|
|
6522
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6523
|
+
common_1.assertParamExists('setRunnerDefaultSecurity', 'organizationId', organizationId);
|
|
6524
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6525
|
+
common_1.assertParamExists('setRunnerDefaultSecurity', 'workspaceId', workspaceId);
|
|
6526
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
6527
|
+
common_1.assertParamExists('setRunnerDefaultSecurity', 'runnerId', runnerId);
|
|
6528
|
+
// verify required parameter 'runnerRole' is not null or undefined
|
|
6529
|
+
common_1.assertParamExists('setRunnerDefaultSecurity', 'runnerRole', runnerRole);
|
|
6530
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/default"
|
|
6531
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6532
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
6533
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)));
|
|
6534
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6535
|
+
if (configuration) {
|
|
6536
|
+
baseOptions = configuration.baseOptions;
|
|
6537
|
+
}
|
|
6538
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6539
|
+
localVarHeaderParameter = {};
|
|
6540
|
+
localVarQueryParameter = {};
|
|
6541
|
+
// authentication oAuth2AuthCode required
|
|
6542
|
+
// oauth required
|
|
6543
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6544
|
+
case 1:
|
|
6545
|
+
// authentication oAuth2AuthCode required
|
|
6546
|
+
// oauth required
|
|
6547
|
+
_a.sent();
|
|
6548
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6549
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6550
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6551
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6552
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(runnerRole, localVarRequestOptions, configuration);
|
|
6553
|
+
return [2 /*return*/, {
|
|
6554
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6555
|
+
options: localVarRequestOptions,
|
|
6556
|
+
}];
|
|
6557
|
+
}
|
|
6558
|
+
});
|
|
6559
|
+
});
|
|
6560
|
+
},
|
|
6561
|
+
/**
|
|
6562
|
+
*
|
|
6563
|
+
* @summary Start a run with runner parameters
|
|
6564
|
+
* @param {string} organizationId the Organization identifier
|
|
6565
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6566
|
+
* @param {string} runnerId the Runner identifier
|
|
6567
|
+
* @param {*} [options] Override http request option.
|
|
6568
|
+
* @throws {RequiredError}
|
|
6569
|
+
*/
|
|
6570
|
+
startRun: function (organizationId, workspaceId, runnerId, options) {
|
|
6571
|
+
if (options === void 0) { options = {}; }
|
|
6572
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6573
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6574
|
+
return __generator(this, function (_a) {
|
|
6575
|
+
switch (_a.label) {
|
|
6576
|
+
case 0:
|
|
6577
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6578
|
+
common_1.assertParamExists('startRun', 'organizationId', organizationId);
|
|
6579
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6580
|
+
common_1.assertParamExists('startRun', 'workspaceId', workspaceId);
|
|
6581
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
6582
|
+
common_1.assertParamExists('startRun', 'runnerId', runnerId);
|
|
6583
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/start"
|
|
6584
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6585
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
6586
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)));
|
|
6587
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6588
|
+
if (configuration) {
|
|
6589
|
+
baseOptions = configuration.baseOptions;
|
|
6590
|
+
}
|
|
6591
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6592
|
+
localVarHeaderParameter = {};
|
|
6593
|
+
localVarQueryParameter = {};
|
|
6594
|
+
// authentication oAuth2AuthCode required
|
|
6595
|
+
// oauth required
|
|
6596
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6597
|
+
case 1:
|
|
6598
|
+
// authentication oAuth2AuthCode required
|
|
6599
|
+
// oauth required
|
|
6600
|
+
_a.sent();
|
|
6601
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6602
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6603
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6604
|
+
return [2 /*return*/, {
|
|
6605
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6606
|
+
options: localVarRequestOptions,
|
|
6607
|
+
}];
|
|
6608
|
+
}
|
|
6609
|
+
});
|
|
6610
|
+
});
|
|
6611
|
+
},
|
|
6612
|
+
/**
|
|
6613
|
+
*
|
|
6614
|
+
* @summary Stop the last run
|
|
6615
|
+
* @param {string} organizationId the Organization identifier
|
|
6616
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6617
|
+
* @param {string} runnerId the Runner identifier
|
|
6618
|
+
* @param {*} [options] Override http request option.
|
|
6619
|
+
* @throws {RequiredError}
|
|
6620
|
+
*/
|
|
6621
|
+
stopRun: function (organizationId, workspaceId, runnerId, options) {
|
|
6622
|
+
if (options === void 0) { options = {}; }
|
|
6623
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6624
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6625
|
+
return __generator(this, function (_a) {
|
|
6626
|
+
switch (_a.label) {
|
|
6627
|
+
case 0:
|
|
6628
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6629
|
+
common_1.assertParamExists('stopRun', 'organizationId', organizationId);
|
|
6630
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6631
|
+
common_1.assertParamExists('stopRun', 'workspaceId', workspaceId);
|
|
6632
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
6633
|
+
common_1.assertParamExists('stopRun', 'runnerId', runnerId);
|
|
6634
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/stop"
|
|
6635
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6636
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
6637
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)));
|
|
6638
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6639
|
+
if (configuration) {
|
|
6640
|
+
baseOptions = configuration.baseOptions;
|
|
6641
|
+
}
|
|
6642
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6643
|
+
localVarHeaderParameter = {};
|
|
6644
|
+
localVarQueryParameter = {};
|
|
6645
|
+
// authentication oAuth2AuthCode required
|
|
6646
|
+
// oauth required
|
|
6647
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6648
|
+
case 1:
|
|
6649
|
+
// authentication oAuth2AuthCode required
|
|
6650
|
+
// oauth required
|
|
6651
|
+
_a.sent();
|
|
6652
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6653
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6654
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6655
|
+
return [2 /*return*/, {
|
|
6656
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6657
|
+
options: localVarRequestOptions,
|
|
6658
|
+
}];
|
|
6659
|
+
}
|
|
6660
|
+
});
|
|
6661
|
+
});
|
|
6662
|
+
},
|
|
6663
|
+
/**
|
|
6664
|
+
*
|
|
6665
|
+
* @summary Update a runner
|
|
6666
|
+
* @param {string} organizationId the Organization identifier
|
|
6667
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6668
|
+
* @param {string} runnerId the Runner identifier
|
|
6669
|
+
* @param {Runner} runner the new Runner details. This endpoint can\'t be used to update security
|
|
6670
|
+
* @param {*} [options] Override http request option.
|
|
6671
|
+
* @throws {RequiredError}
|
|
6672
|
+
*/
|
|
6673
|
+
updateRunner: function (organizationId, workspaceId, runnerId, runner, options) {
|
|
6674
|
+
if (options === void 0) { options = {}; }
|
|
6675
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6676
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6677
|
+
return __generator(this, function (_a) {
|
|
6678
|
+
switch (_a.label) {
|
|
6679
|
+
case 0:
|
|
6680
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6681
|
+
common_1.assertParamExists('updateRunner', 'organizationId', organizationId);
|
|
6682
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6683
|
+
common_1.assertParamExists('updateRunner', 'workspaceId', workspaceId);
|
|
6684
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
6685
|
+
common_1.assertParamExists('updateRunner', 'runnerId', runnerId);
|
|
6686
|
+
// verify required parameter 'runner' is not null or undefined
|
|
6687
|
+
common_1.assertParamExists('updateRunner', 'runner', runner);
|
|
6688
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}"
|
|
6689
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6690
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
6691
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)));
|
|
6692
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6693
|
+
if (configuration) {
|
|
6694
|
+
baseOptions = configuration.baseOptions;
|
|
6695
|
+
}
|
|
6696
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
6697
|
+
localVarHeaderParameter = {};
|
|
6698
|
+
localVarQueryParameter = {};
|
|
6699
|
+
// authentication oAuth2AuthCode required
|
|
6700
|
+
// oauth required
|
|
6701
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6702
|
+
case 1:
|
|
6703
|
+
// authentication oAuth2AuthCode required
|
|
6704
|
+
// oauth required
|
|
6705
|
+
_a.sent();
|
|
6706
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6707
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6708
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6709
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6710
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(runner, localVarRequestOptions, configuration);
|
|
6711
|
+
return [2 /*return*/, {
|
|
6712
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6713
|
+
options: localVarRequestOptions,
|
|
6714
|
+
}];
|
|
6715
|
+
}
|
|
6716
|
+
});
|
|
6717
|
+
});
|
|
6718
|
+
},
|
|
6719
|
+
/**
|
|
6720
|
+
*
|
|
6721
|
+
* @summary Update the specified access to User for a Runner
|
|
6722
|
+
* @param {string} organizationId the Organization identifier
|
|
6723
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6724
|
+
* @param {string} runnerId the Runner identifier
|
|
6725
|
+
* @param {string} identityId the User identifier
|
|
6726
|
+
* @param {RunnerRole} runnerRole The new Runner Access Control
|
|
6727
|
+
* @param {*} [options] Override http request option.
|
|
6728
|
+
* @throws {RequiredError}
|
|
6729
|
+
*/
|
|
6730
|
+
updateRunnerAccessControl: function (organizationId, workspaceId, runnerId, identityId, runnerRole, options) {
|
|
6731
|
+
if (options === void 0) { options = {}; }
|
|
6732
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6733
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6734
|
+
return __generator(this, function (_a) {
|
|
6735
|
+
switch (_a.label) {
|
|
6736
|
+
case 0:
|
|
6737
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
6738
|
+
common_1.assertParamExists('updateRunnerAccessControl', 'organizationId', organizationId);
|
|
6739
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
6740
|
+
common_1.assertParamExists('updateRunnerAccessControl', 'workspaceId', workspaceId);
|
|
6741
|
+
// verify required parameter 'runnerId' is not null or undefined
|
|
6742
|
+
common_1.assertParamExists('updateRunnerAccessControl', 'runnerId', runnerId);
|
|
6743
|
+
// verify required parameter 'identityId' is not null or undefined
|
|
6744
|
+
common_1.assertParamExists('updateRunnerAccessControl', 'identityId', identityId);
|
|
6745
|
+
// verify required parameter 'runnerRole' is not null or undefined
|
|
6746
|
+
common_1.assertParamExists('updateRunnerAccessControl', 'runnerRole', runnerRole);
|
|
6747
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id}"
|
|
6748
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
6749
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
|
|
6750
|
+
.replace("{" + "runner_id" + "}", encodeURIComponent(String(runnerId)))
|
|
6751
|
+
.replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
|
|
6752
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6753
|
+
if (configuration) {
|
|
6754
|
+
baseOptions = configuration.baseOptions;
|
|
6755
|
+
}
|
|
6756
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
6757
|
+
localVarHeaderParameter = {};
|
|
6758
|
+
localVarQueryParameter = {};
|
|
6759
|
+
// authentication oAuth2AuthCode required
|
|
6760
|
+
// oauth required
|
|
6761
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
6762
|
+
case 1:
|
|
6763
|
+
// authentication oAuth2AuthCode required
|
|
6764
|
+
// oauth required
|
|
6765
|
+
_a.sent();
|
|
6766
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6767
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6768
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6769
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6770
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(runnerRole, localVarRequestOptions, configuration);
|
|
6771
|
+
return [2 /*return*/, {
|
|
6772
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6773
|
+
options: localVarRequestOptions,
|
|
6774
|
+
}];
|
|
6775
|
+
}
|
|
6776
|
+
});
|
|
6777
|
+
});
|
|
6778
|
+
},
|
|
6779
|
+
};
|
|
6780
|
+
};
|
|
6781
|
+
/**
|
|
6782
|
+
* RunnerApi - functional programming interface
|
|
6783
|
+
* @export
|
|
6784
|
+
*/
|
|
6785
|
+
exports.RunnerApiFp = function (configuration) {
|
|
6786
|
+
var localVarAxiosParamCreator = exports.RunnerApiAxiosParamCreator(configuration);
|
|
6787
|
+
return {
|
|
6788
|
+
/**
|
|
6789
|
+
*
|
|
6790
|
+
* @summary Add a control access to the Runner
|
|
6791
|
+
* @param {string} organizationId the Organization identifier
|
|
6792
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6793
|
+
* @param {string} runnerId the Runner identifier
|
|
6794
|
+
* @param {RunnerAccessControl} runnerAccessControl the new Runner security access to add.
|
|
6795
|
+
* @param {*} [options] Override http request option.
|
|
6796
|
+
* @throws {RequiredError}
|
|
6797
|
+
*/
|
|
6798
|
+
addRunnerAccessControl: function (organizationId, workspaceId, runnerId, runnerAccessControl, options) {
|
|
6799
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6800
|
+
var localVarAxiosArgs;
|
|
6801
|
+
return __generator(this, function (_a) {
|
|
6802
|
+
switch (_a.label) {
|
|
6803
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.addRunnerAccessControl(organizationId, workspaceId, runnerId, runnerAccessControl, options)];
|
|
6804
|
+
case 1:
|
|
6805
|
+
localVarAxiosArgs = _a.sent();
|
|
6806
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6807
|
+
}
|
|
6808
|
+
});
|
|
6809
|
+
});
|
|
6810
|
+
},
|
|
6811
|
+
/**
|
|
6812
|
+
*
|
|
6813
|
+
* @summary Create a new Runner
|
|
6814
|
+
* @param {string} organizationId the Organization identifier
|
|
6815
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6816
|
+
* @param {Runner} runner the Runner to create
|
|
6817
|
+
* @param {*} [options] Override http request option.
|
|
6818
|
+
* @throws {RequiredError}
|
|
6819
|
+
*/
|
|
6820
|
+
createRunner: function (organizationId, workspaceId, runner, options) {
|
|
6821
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6822
|
+
var localVarAxiosArgs;
|
|
6823
|
+
return __generator(this, function (_a) {
|
|
6824
|
+
switch (_a.label) {
|
|
6825
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createRunner(organizationId, workspaceId, runner, options)];
|
|
6826
|
+
case 1:
|
|
6827
|
+
localVarAxiosArgs = _a.sent();
|
|
6828
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6829
|
+
}
|
|
6830
|
+
});
|
|
6831
|
+
});
|
|
6832
|
+
},
|
|
6833
|
+
/**
|
|
6834
|
+
*
|
|
6835
|
+
* @summary Delete a runner
|
|
6836
|
+
* @param {string} organizationId the Organization identifier
|
|
6837
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6838
|
+
* @param {string} runnerId the Runner identifier
|
|
6839
|
+
* @param {*} [options] Override http request option.
|
|
6840
|
+
* @throws {RequiredError}
|
|
6841
|
+
*/
|
|
6842
|
+
deleteRunner: function (organizationId, workspaceId, runnerId, options) {
|
|
6843
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6844
|
+
var localVarAxiosArgs;
|
|
6845
|
+
return __generator(this, function (_a) {
|
|
6846
|
+
switch (_a.label) {
|
|
6847
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteRunner(organizationId, workspaceId, runnerId, options)];
|
|
6848
|
+
case 1:
|
|
6849
|
+
localVarAxiosArgs = _a.sent();
|
|
6850
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6851
|
+
}
|
|
6852
|
+
});
|
|
6853
|
+
});
|
|
6854
|
+
},
|
|
6855
|
+
/**
|
|
6856
|
+
*
|
|
6857
|
+
* @summary Get the details of an runner
|
|
6858
|
+
* @param {string} organizationId the Organization identifier
|
|
6859
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6860
|
+
* @param {string} runnerId the Runner identifier
|
|
6861
|
+
* @param {*} [options] Override http request option.
|
|
6862
|
+
* @throws {RequiredError}
|
|
6863
|
+
*/
|
|
6864
|
+
getRunner: function (organizationId, workspaceId, runnerId, options) {
|
|
6865
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6866
|
+
var localVarAxiosArgs;
|
|
6867
|
+
return __generator(this, function (_a) {
|
|
6868
|
+
switch (_a.label) {
|
|
6869
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRunner(organizationId, workspaceId, runnerId, options)];
|
|
6870
|
+
case 1:
|
|
6871
|
+
localVarAxiosArgs = _a.sent();
|
|
6872
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6873
|
+
}
|
|
6874
|
+
});
|
|
6875
|
+
});
|
|
6876
|
+
},
|
|
6877
|
+
/**
|
|
6878
|
+
*
|
|
6879
|
+
* @summary Get a control access for the Runner
|
|
6880
|
+
* @param {string} organizationId the Organization identifier
|
|
6881
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6882
|
+
* @param {string} runnerId the Runner identifier
|
|
6883
|
+
* @param {string} identityId the User identifier
|
|
6884
|
+
* @param {*} [options] Override http request option.
|
|
6885
|
+
* @throws {RequiredError}
|
|
6886
|
+
*/
|
|
6887
|
+
getRunnerAccessControl: function (organizationId, workspaceId, runnerId, identityId, options) {
|
|
6888
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6889
|
+
var localVarAxiosArgs;
|
|
6890
|
+
return __generator(this, function (_a) {
|
|
6891
|
+
switch (_a.label) {
|
|
6892
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRunnerAccessControl(organizationId, workspaceId, runnerId, identityId, options)];
|
|
6893
|
+
case 1:
|
|
6894
|
+
localVarAxiosArgs = _a.sent();
|
|
6895
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6896
|
+
}
|
|
6897
|
+
});
|
|
6898
|
+
});
|
|
6899
|
+
},
|
|
6900
|
+
/**
|
|
6901
|
+
*
|
|
6902
|
+
* @summary Get the Runner permission by given role
|
|
6903
|
+
* @param {string} organizationId the Organization identifier
|
|
6904
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6905
|
+
* @param {string} runnerId the Runner identifier
|
|
6906
|
+
* @param {string} role the Role
|
|
6907
|
+
* @param {*} [options] Override http request option.
|
|
6908
|
+
* @throws {RequiredError}
|
|
6909
|
+
*/
|
|
6910
|
+
getRunnerPermissions: function (organizationId, workspaceId, runnerId, role, options) {
|
|
6911
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6912
|
+
var localVarAxiosArgs;
|
|
6913
|
+
return __generator(this, function (_a) {
|
|
6914
|
+
switch (_a.label) {
|
|
6915
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRunnerPermissions(organizationId, workspaceId, runnerId, role, options)];
|
|
6916
|
+
case 1:
|
|
6917
|
+
localVarAxiosArgs = _a.sent();
|
|
6918
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6919
|
+
}
|
|
6920
|
+
});
|
|
6921
|
+
});
|
|
6922
|
+
},
|
|
6923
|
+
/**
|
|
6924
|
+
*
|
|
6925
|
+
* @summary Get the Runner security information
|
|
6926
|
+
* @param {string} organizationId the Organization identifier
|
|
6927
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6928
|
+
* @param {string} runnerId the Runner identifier
|
|
6929
|
+
* @param {*} [options] Override http request option.
|
|
6930
|
+
* @throws {RequiredError}
|
|
6931
|
+
*/
|
|
6932
|
+
getRunnerSecurity: function (organizationId, workspaceId, runnerId, options) {
|
|
6933
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6934
|
+
var localVarAxiosArgs;
|
|
6935
|
+
return __generator(this, function (_a) {
|
|
6936
|
+
switch (_a.label) {
|
|
6937
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRunnerSecurity(organizationId, workspaceId, runnerId, options)];
|
|
6938
|
+
case 1:
|
|
6939
|
+
localVarAxiosArgs = _a.sent();
|
|
6940
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6941
|
+
}
|
|
6942
|
+
});
|
|
6943
|
+
});
|
|
6944
|
+
},
|
|
6945
|
+
/**
|
|
6946
|
+
*
|
|
6947
|
+
* @summary Get the Runner security users list
|
|
6948
|
+
* @param {string} organizationId the Organization identifier
|
|
6949
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6950
|
+
* @param {string} runnerId the Runner identifier
|
|
6951
|
+
* @param {*} [options] Override http request option.
|
|
6952
|
+
* @throws {RequiredError}
|
|
6953
|
+
*/
|
|
6954
|
+
getRunnerSecurityUsers: function (organizationId, workspaceId, runnerId, options) {
|
|
6955
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6956
|
+
var localVarAxiosArgs;
|
|
6957
|
+
return __generator(this, function (_a) {
|
|
6958
|
+
switch (_a.label) {
|
|
6959
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRunnerSecurityUsers(organizationId, workspaceId, runnerId, options)];
|
|
6960
|
+
case 1:
|
|
6961
|
+
localVarAxiosArgs = _a.sent();
|
|
6962
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6963
|
+
}
|
|
6964
|
+
});
|
|
6965
|
+
});
|
|
6966
|
+
},
|
|
6967
|
+
/**
|
|
6968
|
+
*
|
|
6969
|
+
* @summary List all Runners
|
|
6970
|
+
* @param {string} organizationId the Organization identifier
|
|
6971
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6972
|
+
* @param {number} [page] page number to query
|
|
6973
|
+
* @param {number} [size] amount of result by page
|
|
6974
|
+
* @param {*} [options] Override http request option.
|
|
6975
|
+
* @throws {RequiredError}
|
|
6976
|
+
*/
|
|
6977
|
+
listRunners: function (organizationId, workspaceId, page, size, options) {
|
|
6978
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6979
|
+
var localVarAxiosArgs;
|
|
6980
|
+
return __generator(this, function (_a) {
|
|
6981
|
+
switch (_a.label) {
|
|
6982
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRunners(organizationId, workspaceId, page, size, options)];
|
|
6983
|
+
case 1:
|
|
6984
|
+
localVarAxiosArgs = _a.sent();
|
|
6985
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6986
|
+
}
|
|
6987
|
+
});
|
|
6988
|
+
});
|
|
6989
|
+
},
|
|
6990
|
+
/**
|
|
6991
|
+
*
|
|
6992
|
+
* @summary Remove the specified access from the given Organization Runner
|
|
6993
|
+
* @param {string} organizationId the Organization identifier
|
|
6994
|
+
* @param {string} workspaceId the Workspace identifier
|
|
6995
|
+
* @param {string} runnerId the Runner identifier
|
|
6996
|
+
* @param {string} identityId the User identifier
|
|
6997
|
+
* @param {*} [options] Override http request option.
|
|
6998
|
+
* @throws {RequiredError}
|
|
6999
|
+
*/
|
|
7000
|
+
removeRunnerAccessControl: function (organizationId, workspaceId, runnerId, identityId, options) {
|
|
7001
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7002
|
+
var localVarAxiosArgs;
|
|
7003
|
+
return __generator(this, function (_a) {
|
|
7004
|
+
switch (_a.label) {
|
|
7005
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeRunnerAccessControl(organizationId, workspaceId, runnerId, identityId, options)];
|
|
7006
|
+
case 1:
|
|
7007
|
+
localVarAxiosArgs = _a.sent();
|
|
7008
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
7009
|
+
}
|
|
7010
|
+
});
|
|
7011
|
+
});
|
|
7012
|
+
},
|
|
7013
|
+
/**
|
|
7014
|
+
*
|
|
7015
|
+
* @summary Set the Runner default security
|
|
7016
|
+
* @param {string} organizationId the Organization identifier
|
|
7017
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7018
|
+
* @param {string} runnerId the Runner identifier
|
|
7019
|
+
* @param {RunnerRole} runnerRole This change the runner default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the runner.
|
|
7020
|
+
* @param {*} [options] Override http request option.
|
|
7021
|
+
* @throws {RequiredError}
|
|
7022
|
+
*/
|
|
7023
|
+
setRunnerDefaultSecurity: function (organizationId, workspaceId, runnerId, runnerRole, options) {
|
|
7024
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7025
|
+
var localVarAxiosArgs;
|
|
7026
|
+
return __generator(this, function (_a) {
|
|
7027
|
+
switch (_a.label) {
|
|
7028
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.setRunnerDefaultSecurity(organizationId, workspaceId, runnerId, runnerRole, options)];
|
|
7029
|
+
case 1:
|
|
7030
|
+
localVarAxiosArgs = _a.sent();
|
|
7031
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
7032
|
+
}
|
|
7033
|
+
});
|
|
7034
|
+
});
|
|
7035
|
+
},
|
|
7036
|
+
/**
|
|
7037
|
+
*
|
|
7038
|
+
* @summary Start a run with runner parameters
|
|
7039
|
+
* @param {string} organizationId the Organization identifier
|
|
7040
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7041
|
+
* @param {string} runnerId the Runner identifier
|
|
7042
|
+
* @param {*} [options] Override http request option.
|
|
7043
|
+
* @throws {RequiredError}
|
|
7044
|
+
*/
|
|
7045
|
+
startRun: function (organizationId, workspaceId, runnerId, options) {
|
|
7046
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7047
|
+
var localVarAxiosArgs;
|
|
7048
|
+
return __generator(this, function (_a) {
|
|
7049
|
+
switch (_a.label) {
|
|
7050
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.startRun(organizationId, workspaceId, runnerId, options)];
|
|
7051
|
+
case 1:
|
|
7052
|
+
localVarAxiosArgs = _a.sent();
|
|
7053
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
7054
|
+
}
|
|
7055
|
+
});
|
|
7056
|
+
});
|
|
7057
|
+
},
|
|
7058
|
+
/**
|
|
7059
|
+
*
|
|
7060
|
+
* @summary Stop the last run
|
|
7061
|
+
* @param {string} organizationId the Organization identifier
|
|
7062
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7063
|
+
* @param {string} runnerId the Runner identifier
|
|
7064
|
+
* @param {*} [options] Override http request option.
|
|
7065
|
+
* @throws {RequiredError}
|
|
7066
|
+
*/
|
|
7067
|
+
stopRun: function (organizationId, workspaceId, runnerId, options) {
|
|
7068
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7069
|
+
var localVarAxiosArgs;
|
|
7070
|
+
return __generator(this, function (_a) {
|
|
7071
|
+
switch (_a.label) {
|
|
7072
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.stopRun(organizationId, workspaceId, runnerId, options)];
|
|
7073
|
+
case 1:
|
|
7074
|
+
localVarAxiosArgs = _a.sent();
|
|
7075
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
7076
|
+
}
|
|
7077
|
+
});
|
|
7078
|
+
});
|
|
7079
|
+
},
|
|
7080
|
+
/**
|
|
7081
|
+
*
|
|
7082
|
+
* @summary Update a runner
|
|
7083
|
+
* @param {string} organizationId the Organization identifier
|
|
7084
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7085
|
+
* @param {string} runnerId the Runner identifier
|
|
7086
|
+
* @param {Runner} runner the new Runner details. This endpoint can\'t be used to update security
|
|
7087
|
+
* @param {*} [options] Override http request option.
|
|
7088
|
+
* @throws {RequiredError}
|
|
7089
|
+
*/
|
|
7090
|
+
updateRunner: function (organizationId, workspaceId, runnerId, runner, options) {
|
|
7091
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7092
|
+
var localVarAxiosArgs;
|
|
7093
|
+
return __generator(this, function (_a) {
|
|
7094
|
+
switch (_a.label) {
|
|
7095
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateRunner(organizationId, workspaceId, runnerId, runner, options)];
|
|
7096
|
+
case 1:
|
|
7097
|
+
localVarAxiosArgs = _a.sent();
|
|
7098
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
7099
|
+
}
|
|
7100
|
+
});
|
|
7101
|
+
});
|
|
7102
|
+
},
|
|
7103
|
+
/**
|
|
7104
|
+
*
|
|
7105
|
+
* @summary Update the specified access to User for a Runner
|
|
7106
|
+
* @param {string} organizationId the Organization identifier
|
|
7107
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7108
|
+
* @param {string} runnerId the Runner identifier
|
|
7109
|
+
* @param {string} identityId the User identifier
|
|
7110
|
+
* @param {RunnerRole} runnerRole The new Runner Access Control
|
|
7111
|
+
* @param {*} [options] Override http request option.
|
|
7112
|
+
* @throws {RequiredError}
|
|
7113
|
+
*/
|
|
7114
|
+
updateRunnerAccessControl: function (organizationId, workspaceId, runnerId, identityId, runnerRole, options) {
|
|
7115
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7116
|
+
var localVarAxiosArgs;
|
|
7117
|
+
return __generator(this, function (_a) {
|
|
7118
|
+
switch (_a.label) {
|
|
7119
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateRunnerAccessControl(organizationId, workspaceId, runnerId, identityId, runnerRole, options)];
|
|
7120
|
+
case 1:
|
|
7121
|
+
localVarAxiosArgs = _a.sent();
|
|
7122
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
7123
|
+
}
|
|
7124
|
+
});
|
|
7125
|
+
});
|
|
7126
|
+
},
|
|
7127
|
+
};
|
|
7128
|
+
};
|
|
7129
|
+
/**
|
|
7130
|
+
* RunnerApi - factory interface
|
|
7131
|
+
* @export
|
|
7132
|
+
*/
|
|
7133
|
+
exports.RunnerApiFactory = function (configuration, basePath, axios) {
|
|
7134
|
+
var localVarFp = exports.RunnerApiFp(configuration);
|
|
7135
|
+
return {
|
|
7136
|
+
/**
|
|
7137
|
+
*
|
|
7138
|
+
* @summary Add a control access to the Runner
|
|
7139
|
+
* @param {string} organizationId the Organization identifier
|
|
7140
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7141
|
+
* @param {string} runnerId the Runner identifier
|
|
7142
|
+
* @param {RunnerAccessControl} runnerAccessControl the new Runner security access to add.
|
|
7143
|
+
* @param {*} [options] Override http request option.
|
|
7144
|
+
* @throws {RequiredError}
|
|
7145
|
+
*/
|
|
7146
|
+
addRunnerAccessControl: function (organizationId, workspaceId, runnerId, runnerAccessControl, options) {
|
|
7147
|
+
return localVarFp.addRunnerAccessControl(organizationId, workspaceId, runnerId, runnerAccessControl, options).then(function (request) { return request(axios, basePath); });
|
|
7148
|
+
},
|
|
7149
|
+
/**
|
|
7150
|
+
*
|
|
7151
|
+
* @summary Create a new Runner
|
|
7152
|
+
* @param {string} organizationId the Organization identifier
|
|
7153
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7154
|
+
* @param {Runner} runner the Runner to create
|
|
7155
|
+
* @param {*} [options] Override http request option.
|
|
7156
|
+
* @throws {RequiredError}
|
|
7157
|
+
*/
|
|
7158
|
+
createRunner: function (organizationId, workspaceId, runner, options) {
|
|
7159
|
+
return localVarFp.createRunner(organizationId, workspaceId, runner, options).then(function (request) { return request(axios, basePath); });
|
|
7160
|
+
},
|
|
7161
|
+
/**
|
|
7162
|
+
*
|
|
7163
|
+
* @summary Delete a runner
|
|
7164
|
+
* @param {string} organizationId the Organization identifier
|
|
7165
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7166
|
+
* @param {string} runnerId the Runner identifier
|
|
7167
|
+
* @param {*} [options] Override http request option.
|
|
7168
|
+
* @throws {RequiredError}
|
|
7169
|
+
*/
|
|
7170
|
+
deleteRunner: function (organizationId, workspaceId, runnerId, options) {
|
|
7171
|
+
return localVarFp.deleteRunner(organizationId, workspaceId, runnerId, options).then(function (request) { return request(axios, basePath); });
|
|
7172
|
+
},
|
|
7173
|
+
/**
|
|
7174
|
+
*
|
|
7175
|
+
* @summary Get the details of an runner
|
|
7176
|
+
* @param {string} organizationId the Organization identifier
|
|
7177
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7178
|
+
* @param {string} runnerId the Runner identifier
|
|
7179
|
+
* @param {*} [options] Override http request option.
|
|
7180
|
+
* @throws {RequiredError}
|
|
7181
|
+
*/
|
|
7182
|
+
getRunner: function (organizationId, workspaceId, runnerId, options) {
|
|
7183
|
+
return localVarFp.getRunner(organizationId, workspaceId, runnerId, options).then(function (request) { return request(axios, basePath); });
|
|
7184
|
+
},
|
|
7185
|
+
/**
|
|
7186
|
+
*
|
|
7187
|
+
* @summary Get a control access for the Runner
|
|
7188
|
+
* @param {string} organizationId the Organization identifier
|
|
7189
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7190
|
+
* @param {string} runnerId the Runner identifier
|
|
7191
|
+
* @param {string} identityId the User identifier
|
|
7192
|
+
* @param {*} [options] Override http request option.
|
|
7193
|
+
* @throws {RequiredError}
|
|
7194
|
+
*/
|
|
7195
|
+
getRunnerAccessControl: function (organizationId, workspaceId, runnerId, identityId, options) {
|
|
7196
|
+
return localVarFp.getRunnerAccessControl(organizationId, workspaceId, runnerId, identityId, options).then(function (request) { return request(axios, basePath); });
|
|
7197
|
+
},
|
|
7198
|
+
/**
|
|
7199
|
+
*
|
|
7200
|
+
* @summary Get the Runner permission by given role
|
|
7201
|
+
* @param {string} organizationId the Organization identifier
|
|
7202
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7203
|
+
* @param {string} runnerId the Runner identifier
|
|
7204
|
+
* @param {string} role the Role
|
|
7205
|
+
* @param {*} [options] Override http request option.
|
|
7206
|
+
* @throws {RequiredError}
|
|
7207
|
+
*/
|
|
7208
|
+
getRunnerPermissions: function (organizationId, workspaceId, runnerId, role, options) {
|
|
7209
|
+
return localVarFp.getRunnerPermissions(organizationId, workspaceId, runnerId, role, options).then(function (request) { return request(axios, basePath); });
|
|
7210
|
+
},
|
|
7211
|
+
/**
|
|
7212
|
+
*
|
|
7213
|
+
* @summary Get the Runner security information
|
|
7214
|
+
* @param {string} organizationId the Organization identifier
|
|
7215
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7216
|
+
* @param {string} runnerId the Runner identifier
|
|
7217
|
+
* @param {*} [options] Override http request option.
|
|
7218
|
+
* @throws {RequiredError}
|
|
7219
|
+
*/
|
|
7220
|
+
getRunnerSecurity: function (organizationId, workspaceId, runnerId, options) {
|
|
7221
|
+
return localVarFp.getRunnerSecurity(organizationId, workspaceId, runnerId, options).then(function (request) { return request(axios, basePath); });
|
|
7222
|
+
},
|
|
7223
|
+
/**
|
|
7224
|
+
*
|
|
7225
|
+
* @summary Get the Runner security users list
|
|
7226
|
+
* @param {string} organizationId the Organization identifier
|
|
7227
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7228
|
+
* @param {string} runnerId the Runner identifier
|
|
7229
|
+
* @param {*} [options] Override http request option.
|
|
7230
|
+
* @throws {RequiredError}
|
|
7231
|
+
*/
|
|
7232
|
+
getRunnerSecurityUsers: function (organizationId, workspaceId, runnerId, options) {
|
|
7233
|
+
return localVarFp.getRunnerSecurityUsers(organizationId, workspaceId, runnerId, options).then(function (request) { return request(axios, basePath); });
|
|
7234
|
+
},
|
|
7235
|
+
/**
|
|
7236
|
+
*
|
|
7237
|
+
* @summary List all Runners
|
|
7238
|
+
* @param {string} organizationId the Organization identifier
|
|
7239
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7240
|
+
* @param {number} [page] page number to query
|
|
7241
|
+
* @param {number} [size] amount of result by page
|
|
7242
|
+
* @param {*} [options] Override http request option.
|
|
7243
|
+
* @throws {RequiredError}
|
|
7244
|
+
*/
|
|
7245
|
+
listRunners: function (organizationId, workspaceId, page, size, options) {
|
|
7246
|
+
return localVarFp.listRunners(organizationId, workspaceId, page, size, options).then(function (request) { return request(axios, basePath); });
|
|
7247
|
+
},
|
|
7248
|
+
/**
|
|
7249
|
+
*
|
|
7250
|
+
* @summary Remove the specified access from the given Organization Runner
|
|
7251
|
+
* @param {string} organizationId the Organization identifier
|
|
7252
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7253
|
+
* @param {string} runnerId the Runner identifier
|
|
7254
|
+
* @param {string} identityId the User identifier
|
|
7255
|
+
* @param {*} [options] Override http request option.
|
|
7256
|
+
* @throws {RequiredError}
|
|
7257
|
+
*/
|
|
7258
|
+
removeRunnerAccessControl: function (organizationId, workspaceId, runnerId, identityId, options) {
|
|
7259
|
+
return localVarFp.removeRunnerAccessControl(organizationId, workspaceId, runnerId, identityId, options).then(function (request) { return request(axios, basePath); });
|
|
7260
|
+
},
|
|
7261
|
+
/**
|
|
7262
|
+
*
|
|
7263
|
+
* @summary Set the Runner default security
|
|
7264
|
+
* @param {string} organizationId the Organization identifier
|
|
7265
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7266
|
+
* @param {string} runnerId the Runner identifier
|
|
7267
|
+
* @param {RunnerRole} runnerRole This change the runner default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the runner.
|
|
7268
|
+
* @param {*} [options] Override http request option.
|
|
7269
|
+
* @throws {RequiredError}
|
|
7270
|
+
*/
|
|
7271
|
+
setRunnerDefaultSecurity: function (organizationId, workspaceId, runnerId, runnerRole, options) {
|
|
7272
|
+
return localVarFp.setRunnerDefaultSecurity(organizationId, workspaceId, runnerId, runnerRole, options).then(function (request) { return request(axios, basePath); });
|
|
7273
|
+
},
|
|
7274
|
+
/**
|
|
7275
|
+
*
|
|
7276
|
+
* @summary Start a run with runner parameters
|
|
7277
|
+
* @param {string} organizationId the Organization identifier
|
|
7278
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7279
|
+
* @param {string} runnerId the Runner identifier
|
|
7280
|
+
* @param {*} [options] Override http request option.
|
|
7281
|
+
* @throws {RequiredError}
|
|
7282
|
+
*/
|
|
7283
|
+
startRun: function (organizationId, workspaceId, runnerId, options) {
|
|
7284
|
+
return localVarFp.startRun(organizationId, workspaceId, runnerId, options).then(function (request) { return request(axios, basePath); });
|
|
7285
|
+
},
|
|
7286
|
+
/**
|
|
7287
|
+
*
|
|
7288
|
+
* @summary Stop the last run
|
|
7289
|
+
* @param {string} organizationId the Organization identifier
|
|
7290
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7291
|
+
* @param {string} runnerId the Runner identifier
|
|
7292
|
+
* @param {*} [options] Override http request option.
|
|
7293
|
+
* @throws {RequiredError}
|
|
7294
|
+
*/
|
|
7295
|
+
stopRun: function (organizationId, workspaceId, runnerId, options) {
|
|
7296
|
+
return localVarFp.stopRun(organizationId, workspaceId, runnerId, options).then(function (request) { return request(axios, basePath); });
|
|
7297
|
+
},
|
|
7298
|
+
/**
|
|
7299
|
+
*
|
|
7300
|
+
* @summary Update a runner
|
|
7301
|
+
* @param {string} organizationId the Organization identifier
|
|
7302
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7303
|
+
* @param {string} runnerId the Runner identifier
|
|
7304
|
+
* @param {Runner} runner the new Runner details. This endpoint can\'t be used to update security
|
|
7305
|
+
* @param {*} [options] Override http request option.
|
|
7306
|
+
* @throws {RequiredError}
|
|
7307
|
+
*/
|
|
7308
|
+
updateRunner: function (organizationId, workspaceId, runnerId, runner, options) {
|
|
7309
|
+
return localVarFp.updateRunner(organizationId, workspaceId, runnerId, runner, options).then(function (request) { return request(axios, basePath); });
|
|
7310
|
+
},
|
|
7311
|
+
/**
|
|
7312
|
+
*
|
|
7313
|
+
* @summary Update the specified access to User for a Runner
|
|
7314
|
+
* @param {string} organizationId the Organization identifier
|
|
7315
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7316
|
+
* @param {string} runnerId the Runner identifier
|
|
7317
|
+
* @param {string} identityId the User identifier
|
|
7318
|
+
* @param {RunnerRole} runnerRole The new Runner Access Control
|
|
7319
|
+
* @param {*} [options] Override http request option.
|
|
7320
|
+
* @throws {RequiredError}
|
|
7321
|
+
*/
|
|
7322
|
+
updateRunnerAccessControl: function (organizationId, workspaceId, runnerId, identityId, runnerRole, options) {
|
|
7323
|
+
return localVarFp.updateRunnerAccessControl(organizationId, workspaceId, runnerId, identityId, runnerRole, options).then(function (request) { return request(axios, basePath); });
|
|
7324
|
+
},
|
|
7325
|
+
};
|
|
7326
|
+
};
|
|
7327
|
+
/**
|
|
7328
|
+
* RunnerApi - object-oriented interface
|
|
7329
|
+
* @export
|
|
7330
|
+
* @class RunnerApi
|
|
7331
|
+
* @extends {BaseAPI}
|
|
7332
|
+
*/
|
|
7333
|
+
var RunnerApi = /** @class */ (function (_super) {
|
|
7334
|
+
__extends(RunnerApi, _super);
|
|
7335
|
+
function RunnerApi() {
|
|
7336
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
7337
|
+
}
|
|
7338
|
+
/**
|
|
7339
|
+
*
|
|
7340
|
+
* @summary Add a control access to the Runner
|
|
7341
|
+
* @param {string} organizationId the Organization identifier
|
|
7342
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7343
|
+
* @param {string} runnerId the Runner identifier
|
|
7344
|
+
* @param {RunnerAccessControl} runnerAccessControl the new Runner security access to add.
|
|
7345
|
+
* @param {*} [options] Override http request option.
|
|
7346
|
+
* @throws {RequiredError}
|
|
7347
|
+
* @memberof RunnerApi
|
|
4865
7348
|
*/
|
|
4866
|
-
|
|
7349
|
+
RunnerApi.prototype.addRunnerAccessControl = function (organizationId, workspaceId, runnerId, runnerAccessControl, options) {
|
|
4867
7350
|
var _this = this;
|
|
4868
|
-
return exports.
|
|
7351
|
+
return exports.RunnerApiFp(this.configuration).addRunnerAccessControl(organizationId, workspaceId, runnerId, runnerAccessControl, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4869
7352
|
};
|
|
4870
7353
|
/**
|
|
4871
7354
|
*
|
|
4872
|
-
* @summary
|
|
7355
|
+
* @summary Create a new Runner
|
|
7356
|
+
* @param {string} organizationId the Organization identifier
|
|
7357
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7358
|
+
* @param {Runner} runner the Runner to create
|
|
4873
7359
|
* @param {*} [options] Override http request option.
|
|
4874
7360
|
* @throws {RequiredError}
|
|
4875
|
-
* @memberof
|
|
7361
|
+
* @memberof RunnerApi
|
|
4876
7362
|
*/
|
|
4877
|
-
|
|
7363
|
+
RunnerApi.prototype.createRunner = function (organizationId, workspaceId, runner, options) {
|
|
4878
7364
|
var _this = this;
|
|
4879
|
-
return exports.
|
|
7365
|
+
return exports.RunnerApiFp(this.configuration).createRunner(organizationId, workspaceId, runner, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4880
7366
|
};
|
|
4881
7367
|
/**
|
|
4882
7368
|
*
|
|
4883
|
-
* @summary
|
|
7369
|
+
* @summary Delete a runner
|
|
4884
7370
|
* @param {string} organizationId the Organization identifier
|
|
4885
|
-
* @param {string}
|
|
7371
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7372
|
+
* @param {string} runnerId the Runner identifier
|
|
4886
7373
|
* @param {*} [options] Override http request option.
|
|
4887
7374
|
* @throws {RequiredError}
|
|
4888
|
-
* @memberof
|
|
7375
|
+
* @memberof RunnerApi
|
|
4889
7376
|
*/
|
|
4890
|
-
|
|
7377
|
+
RunnerApi.prototype.deleteRunner = function (organizationId, workspaceId, runnerId, options) {
|
|
4891
7378
|
var _this = this;
|
|
4892
|
-
return exports.
|
|
7379
|
+
return exports.RunnerApiFp(this.configuration).deleteRunner(organizationId, workspaceId, runnerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4893
7380
|
};
|
|
4894
7381
|
/**
|
|
4895
7382
|
*
|
|
4896
|
-
* @summary Get the
|
|
7383
|
+
* @summary Get the details of an runner
|
|
4897
7384
|
* @param {string} organizationId the Organization identifier
|
|
4898
|
-
* @param {string}
|
|
7385
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7386
|
+
* @param {string} runnerId the Runner identifier
|
|
4899
7387
|
* @param {*} [options] Override http request option.
|
|
4900
7388
|
* @throws {RequiredError}
|
|
4901
|
-
* @memberof
|
|
7389
|
+
* @memberof RunnerApi
|
|
4902
7390
|
*/
|
|
4903
|
-
|
|
7391
|
+
RunnerApi.prototype.getRunner = function (organizationId, workspaceId, runnerId, options) {
|
|
4904
7392
|
var _this = this;
|
|
4905
|
-
return exports.
|
|
7393
|
+
return exports.RunnerApiFp(this.configuration).getRunner(organizationId, workspaceId, runnerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4906
7394
|
};
|
|
4907
7395
|
/**
|
|
4908
7396
|
*
|
|
4909
|
-
* @summary Get
|
|
7397
|
+
* @summary Get a control access for the Runner
|
|
4910
7398
|
* @param {string} organizationId the Organization identifier
|
|
7399
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7400
|
+
* @param {string} runnerId the Runner identifier
|
|
7401
|
+
* @param {string} identityId the User identifier
|
|
4911
7402
|
* @param {*} [options] Override http request option.
|
|
4912
7403
|
* @throws {RequiredError}
|
|
4913
|
-
* @memberof
|
|
7404
|
+
* @memberof RunnerApi
|
|
4914
7405
|
*/
|
|
4915
|
-
|
|
7406
|
+
RunnerApi.prototype.getRunnerAccessControl = function (organizationId, workspaceId, runnerId, identityId, options) {
|
|
4916
7407
|
var _this = this;
|
|
4917
|
-
return exports.
|
|
7408
|
+
return exports.RunnerApiFp(this.configuration).getRunnerAccessControl(organizationId, workspaceId, runnerId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4918
7409
|
};
|
|
4919
7410
|
/**
|
|
4920
7411
|
*
|
|
4921
|
-
* @summary Get the
|
|
4922
|
-
* @param {string} organizationId
|
|
7412
|
+
* @summary Get the Runner permission by given role
|
|
7413
|
+
* @param {string} organizationId the Organization identifier
|
|
7414
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7415
|
+
* @param {string} runnerId the Runner identifier
|
|
7416
|
+
* @param {string} role the Role
|
|
4923
7417
|
* @param {*} [options] Override http request option.
|
|
4924
7418
|
* @throws {RequiredError}
|
|
4925
|
-
* @memberof
|
|
7419
|
+
* @memberof RunnerApi
|
|
4926
7420
|
*/
|
|
4927
|
-
|
|
7421
|
+
RunnerApi.prototype.getRunnerPermissions = function (organizationId, workspaceId, runnerId, role, options) {
|
|
4928
7422
|
var _this = this;
|
|
4929
|
-
return exports.
|
|
7423
|
+
return exports.RunnerApiFp(this.configuration).getRunnerPermissions(organizationId, workspaceId, runnerId, role, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4930
7424
|
};
|
|
4931
7425
|
/**
|
|
4932
7426
|
*
|
|
4933
|
-
* @summary
|
|
4934
|
-
* @param {
|
|
7427
|
+
* @summary Get the Runner security information
|
|
7428
|
+
* @param {string} organizationId the Organization identifier
|
|
7429
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7430
|
+
* @param {string} runnerId the Runner identifier
|
|
4935
7431
|
* @param {*} [options] Override http request option.
|
|
4936
7432
|
* @throws {RequiredError}
|
|
4937
|
-
* @memberof
|
|
7433
|
+
* @memberof RunnerApi
|
|
4938
7434
|
*/
|
|
4939
|
-
|
|
7435
|
+
RunnerApi.prototype.getRunnerSecurity = function (organizationId, workspaceId, runnerId, options) {
|
|
4940
7436
|
var _this = this;
|
|
4941
|
-
return exports.
|
|
7437
|
+
return exports.RunnerApiFp(this.configuration).getRunnerSecurity(organizationId, workspaceId, runnerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4942
7438
|
};
|
|
4943
7439
|
/**
|
|
4944
7440
|
*
|
|
4945
|
-
* @summary
|
|
7441
|
+
* @summary Get the Runner security users list
|
|
4946
7442
|
* @param {string} organizationId the Organization identifier
|
|
4947
|
-
* @param {string}
|
|
7443
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7444
|
+
* @param {string} runnerId the Runner identifier
|
|
4948
7445
|
* @param {*} [options] Override http request option.
|
|
4949
7446
|
* @throws {RequiredError}
|
|
4950
|
-
* @memberof
|
|
7447
|
+
* @memberof RunnerApi
|
|
4951
7448
|
*/
|
|
4952
|
-
|
|
7449
|
+
RunnerApi.prototype.getRunnerSecurityUsers = function (organizationId, workspaceId, runnerId, options) {
|
|
4953
7450
|
var _this = this;
|
|
4954
|
-
return exports.
|
|
7451
|
+
return exports.RunnerApiFp(this.configuration).getRunnerSecurityUsers(organizationId, workspaceId, runnerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4955
7452
|
};
|
|
4956
7453
|
/**
|
|
4957
7454
|
*
|
|
4958
|
-
* @summary
|
|
7455
|
+
* @summary List all Runners
|
|
4959
7456
|
* @param {string} organizationId the Organization identifier
|
|
4960
|
-
* @param {
|
|
7457
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7458
|
+
* @param {number} [page] page number to query
|
|
7459
|
+
* @param {number} [size] amount of result by page
|
|
4961
7460
|
* @param {*} [options] Override http request option.
|
|
4962
7461
|
* @throws {RequiredError}
|
|
4963
|
-
* @memberof
|
|
7462
|
+
* @memberof RunnerApi
|
|
4964
7463
|
*/
|
|
4965
|
-
|
|
7464
|
+
RunnerApi.prototype.listRunners = function (organizationId, workspaceId, page, size, options) {
|
|
4966
7465
|
var _this = this;
|
|
4967
|
-
return exports.
|
|
7466
|
+
return exports.RunnerApiFp(this.configuration).listRunners(organizationId, workspaceId, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4968
7467
|
};
|
|
4969
7468
|
/**
|
|
4970
7469
|
*
|
|
4971
|
-
* @summary
|
|
7470
|
+
* @summary Remove the specified access from the given Organization Runner
|
|
4972
7471
|
* @param {string} organizationId the Organization identifier
|
|
7472
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7473
|
+
* @param {string} runnerId the Runner identifier
|
|
7474
|
+
* @param {string} identityId the User identifier
|
|
4973
7475
|
* @param {*} [options] Override http request option.
|
|
4974
7476
|
* @throws {RequiredError}
|
|
4975
|
-
* @memberof
|
|
7477
|
+
* @memberof RunnerApi
|
|
4976
7478
|
*/
|
|
4977
|
-
|
|
7479
|
+
RunnerApi.prototype.removeRunnerAccessControl = function (organizationId, workspaceId, runnerId, identityId, options) {
|
|
4978
7480
|
var _this = this;
|
|
4979
|
-
return exports.
|
|
7481
|
+
return exports.RunnerApiFp(this.configuration).removeRunnerAccessControl(organizationId, workspaceId, runnerId, identityId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4980
7482
|
};
|
|
4981
7483
|
/**
|
|
4982
7484
|
*
|
|
4983
|
-
* @summary
|
|
7485
|
+
* @summary Set the Runner default security
|
|
4984
7486
|
* @param {string} organizationId the Organization identifier
|
|
4985
|
-
* @param {
|
|
7487
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7488
|
+
* @param {string} runnerId the Runner identifier
|
|
7489
|
+
* @param {RunnerRole} runnerRole This change the runner default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the runner.
|
|
4986
7490
|
* @param {*} [options] Override http request option.
|
|
4987
7491
|
* @throws {RequiredError}
|
|
4988
|
-
* @memberof
|
|
7492
|
+
* @memberof RunnerApi
|
|
4989
7493
|
*/
|
|
4990
|
-
|
|
7494
|
+
RunnerApi.prototype.setRunnerDefaultSecurity = function (organizationId, workspaceId, runnerId, runnerRole, options) {
|
|
4991
7495
|
var _this = this;
|
|
4992
|
-
return exports.
|
|
7496
|
+
return exports.RunnerApiFp(this.configuration).setRunnerDefaultSecurity(organizationId, workspaceId, runnerId, runnerRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4993
7497
|
};
|
|
4994
7498
|
/**
|
|
4995
7499
|
*
|
|
4996
|
-
* @summary
|
|
7500
|
+
* @summary Start a run with runner parameters
|
|
4997
7501
|
* @param {string} organizationId the Organization identifier
|
|
4998
|
-
* @param {string}
|
|
4999
|
-
* @param {
|
|
7502
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7503
|
+
* @param {string} runnerId the Runner identifier
|
|
5000
7504
|
* @param {*} [options] Override http request option.
|
|
5001
7505
|
* @throws {RequiredError}
|
|
5002
|
-
* @memberof
|
|
7506
|
+
* @memberof RunnerApi
|
|
5003
7507
|
*/
|
|
5004
|
-
|
|
7508
|
+
RunnerApi.prototype.startRun = function (organizationId, workspaceId, runnerId, options) {
|
|
5005
7509
|
var _this = this;
|
|
5006
|
-
return exports.
|
|
7510
|
+
return exports.RunnerApiFp(this.configuration).startRun(organizationId, workspaceId, runnerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5007
7511
|
};
|
|
5008
7512
|
/**
|
|
5009
7513
|
*
|
|
5010
|
-
* @summary
|
|
7514
|
+
* @summary Stop the last run
|
|
5011
7515
|
* @param {string} organizationId the Organization identifier
|
|
5012
|
-
* @param {
|
|
7516
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7517
|
+
* @param {string} runnerId the Runner identifier
|
|
5013
7518
|
* @param {*} [options] Override http request option.
|
|
5014
7519
|
* @throws {RequiredError}
|
|
5015
|
-
* @memberof
|
|
7520
|
+
* @memberof RunnerApi
|
|
5016
7521
|
*/
|
|
5017
|
-
|
|
7522
|
+
RunnerApi.prototype.stopRun = function (organizationId, workspaceId, runnerId, options) {
|
|
5018
7523
|
var _this = this;
|
|
5019
|
-
return exports.
|
|
7524
|
+
return exports.RunnerApiFp(this.configuration).stopRun(organizationId, workspaceId, runnerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5020
7525
|
};
|
|
5021
7526
|
/**
|
|
5022
7527
|
*
|
|
5023
|
-
* @summary Update
|
|
7528
|
+
* @summary Update a runner
|
|
5024
7529
|
* @param {string} organizationId the Organization identifier
|
|
5025
|
-
* @param {
|
|
7530
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7531
|
+
* @param {string} runnerId the Runner identifier
|
|
7532
|
+
* @param {Runner} runner the new Runner details. This endpoint can\'t be used to update security
|
|
5026
7533
|
* @param {*} [options] Override http request option.
|
|
5027
7534
|
* @throws {RequiredError}
|
|
5028
|
-
* @memberof
|
|
7535
|
+
* @memberof RunnerApi
|
|
5029
7536
|
*/
|
|
5030
|
-
|
|
7537
|
+
RunnerApi.prototype.updateRunner = function (organizationId, workspaceId, runnerId, runner, options) {
|
|
5031
7538
|
var _this = this;
|
|
5032
|
-
return exports.
|
|
7539
|
+
return exports.RunnerApiFp(this.configuration).updateRunner(organizationId, workspaceId, runnerId, runner, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5033
7540
|
};
|
|
5034
7541
|
/**
|
|
5035
7542
|
*
|
|
5036
|
-
* @summary Update
|
|
7543
|
+
* @summary Update the specified access to User for a Runner
|
|
5037
7544
|
* @param {string} organizationId the Organization identifier
|
|
5038
|
-
* @param {
|
|
7545
|
+
* @param {string} workspaceId the Workspace identifier
|
|
7546
|
+
* @param {string} runnerId the Runner identifier
|
|
7547
|
+
* @param {string} identityId the User identifier
|
|
7548
|
+
* @param {RunnerRole} runnerRole The new Runner Access Control
|
|
5039
7549
|
* @param {*} [options] Override http request option.
|
|
5040
7550
|
* @throws {RequiredError}
|
|
5041
|
-
* @memberof
|
|
7551
|
+
* @memberof RunnerApi
|
|
5042
7552
|
*/
|
|
5043
|
-
|
|
7553
|
+
RunnerApi.prototype.updateRunnerAccessControl = function (organizationId, workspaceId, runnerId, identityId, runnerRole, options) {
|
|
5044
7554
|
var _this = this;
|
|
5045
|
-
return exports.
|
|
7555
|
+
return exports.RunnerApiFp(this.configuration).updateRunnerAccessControl(organizationId, workspaceId, runnerId, identityId, runnerRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5046
7556
|
};
|
|
5047
|
-
return
|
|
7557
|
+
return RunnerApi;
|
|
5048
7558
|
}(base_1.BaseAPI));
|
|
5049
|
-
exports.
|
|
7559
|
+
exports.RunnerApi = RunnerApi;
|
|
5050
7560
|
/**
|
|
5051
7561
|
* ScenarioApi - axios parameter creator
|
|
5052
7562
|
* @export
|
|
@@ -14334,6 +16844,58 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
14334
16844
|
});
|
|
14335
16845
|
});
|
|
14336
16846
|
},
|
|
16847
|
+
/**
|
|
16848
|
+
*
|
|
16849
|
+
* @param {string} organizationId the Organization identifier
|
|
16850
|
+
* @param {string} workspaceId the Workspace identifier
|
|
16851
|
+
* @param {string} datasetId dataset id to be linked to
|
|
16852
|
+
* @param {*} [options] Override http request option.
|
|
16853
|
+
* @throws {RequiredError}
|
|
16854
|
+
*/
|
|
16855
|
+
linkDataset: function (organizationId, workspaceId, datasetId, options) {
|
|
16856
|
+
if (options === void 0) { options = {}; }
|
|
16857
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16858
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16859
|
+
return __generator(this, function (_a) {
|
|
16860
|
+
switch (_a.label) {
|
|
16861
|
+
case 0:
|
|
16862
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
16863
|
+
common_1.assertParamExists('linkDataset', 'organizationId', organizationId);
|
|
16864
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
16865
|
+
common_1.assertParamExists('linkDataset', 'workspaceId', workspaceId);
|
|
16866
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
16867
|
+
common_1.assertParamExists('linkDataset', 'datasetId', datasetId);
|
|
16868
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/link"
|
|
16869
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
16870
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
|
|
16871
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16872
|
+
if (configuration) {
|
|
16873
|
+
baseOptions = configuration.baseOptions;
|
|
16874
|
+
}
|
|
16875
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
16876
|
+
localVarHeaderParameter = {};
|
|
16877
|
+
localVarQueryParameter = {};
|
|
16878
|
+
// authentication oAuth2AuthCode required
|
|
16879
|
+
// oauth required
|
|
16880
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
16881
|
+
case 1:
|
|
16882
|
+
// authentication oAuth2AuthCode required
|
|
16883
|
+
// oauth required
|
|
16884
|
+
_a.sent();
|
|
16885
|
+
if (datasetId !== undefined) {
|
|
16886
|
+
localVarQueryParameter['datasetId'] = datasetId;
|
|
16887
|
+
}
|
|
16888
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16889
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16890
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16891
|
+
return [2 /*return*/, {
|
|
16892
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16893
|
+
options: localVarRequestOptions,
|
|
16894
|
+
}];
|
|
16895
|
+
}
|
|
16896
|
+
});
|
|
16897
|
+
});
|
|
16898
|
+
},
|
|
14337
16899
|
/**
|
|
14338
16900
|
*
|
|
14339
16901
|
* @summary Remove the specified access from the given Organization Workspace
|
|
@@ -14437,6 +16999,58 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
14437
16999
|
});
|
|
14438
17000
|
});
|
|
14439
17001
|
},
|
|
17002
|
+
/**
|
|
17003
|
+
*
|
|
17004
|
+
* @param {string} organizationId the Organization identifier
|
|
17005
|
+
* @param {string} workspaceId the Workspace identifier
|
|
17006
|
+
* @param {string} datasetId dataset id to be linked to
|
|
17007
|
+
* @param {*} [options] Override http request option.
|
|
17008
|
+
* @throws {RequiredError}
|
|
17009
|
+
*/
|
|
17010
|
+
unlinkDataset: function (organizationId, workspaceId, datasetId, options) {
|
|
17011
|
+
if (options === void 0) { options = {}; }
|
|
17012
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
17013
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17014
|
+
return __generator(this, function (_a) {
|
|
17015
|
+
switch (_a.label) {
|
|
17016
|
+
case 0:
|
|
17017
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
17018
|
+
common_1.assertParamExists('unlinkDataset', 'organizationId', organizationId);
|
|
17019
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
17020
|
+
common_1.assertParamExists('unlinkDataset', 'workspaceId', workspaceId);
|
|
17021
|
+
// verify required parameter 'datasetId' is not null or undefined
|
|
17022
|
+
common_1.assertParamExists('unlinkDataset', 'datasetId', datasetId);
|
|
17023
|
+
localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/unlink"
|
|
17024
|
+
.replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
|
|
17025
|
+
.replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
|
|
17026
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17027
|
+
if (configuration) {
|
|
17028
|
+
baseOptions = configuration.baseOptions;
|
|
17029
|
+
}
|
|
17030
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
17031
|
+
localVarHeaderParameter = {};
|
|
17032
|
+
localVarQueryParameter = {};
|
|
17033
|
+
// authentication oAuth2AuthCode required
|
|
17034
|
+
// oauth required
|
|
17035
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
|
|
17036
|
+
case 1:
|
|
17037
|
+
// authentication oAuth2AuthCode required
|
|
17038
|
+
// oauth required
|
|
17039
|
+
_a.sent();
|
|
17040
|
+
if (datasetId !== undefined) {
|
|
17041
|
+
localVarQueryParameter['datasetId'] = datasetId;
|
|
17042
|
+
}
|
|
17043
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17044
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17045
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17046
|
+
return [2 /*return*/, {
|
|
17047
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
17048
|
+
options: localVarRequestOptions,
|
|
17049
|
+
}];
|
|
17050
|
+
}
|
|
17051
|
+
});
|
|
17052
|
+
});
|
|
17053
|
+
},
|
|
14440
17054
|
/**
|
|
14441
17055
|
*
|
|
14442
17056
|
* @summary Update a workspace
|
|
@@ -14919,6 +17533,27 @@ exports.WorkspaceApiFp = function (configuration) {
|
|
|
14919
17533
|
});
|
|
14920
17534
|
});
|
|
14921
17535
|
},
|
|
17536
|
+
/**
|
|
17537
|
+
*
|
|
17538
|
+
* @param {string} organizationId the Organization identifier
|
|
17539
|
+
* @param {string} workspaceId the Workspace identifier
|
|
17540
|
+
* @param {string} datasetId dataset id to be linked to
|
|
17541
|
+
* @param {*} [options] Override http request option.
|
|
17542
|
+
* @throws {RequiredError}
|
|
17543
|
+
*/
|
|
17544
|
+
linkDataset: function (organizationId, workspaceId, datasetId, options) {
|
|
17545
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17546
|
+
var localVarAxiosArgs;
|
|
17547
|
+
return __generator(this, function (_a) {
|
|
17548
|
+
switch (_a.label) {
|
|
17549
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkDataset(organizationId, workspaceId, datasetId, options)];
|
|
17550
|
+
case 1:
|
|
17551
|
+
localVarAxiosArgs = _a.sent();
|
|
17552
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17553
|
+
}
|
|
17554
|
+
});
|
|
17555
|
+
});
|
|
17556
|
+
},
|
|
14922
17557
|
/**
|
|
14923
17558
|
*
|
|
14924
17559
|
* @summary Remove the specified access from the given Organization Workspace
|
|
@@ -14963,6 +17598,27 @@ exports.WorkspaceApiFp = function (configuration) {
|
|
|
14963
17598
|
});
|
|
14964
17599
|
});
|
|
14965
17600
|
},
|
|
17601
|
+
/**
|
|
17602
|
+
*
|
|
17603
|
+
* @param {string} organizationId the Organization identifier
|
|
17604
|
+
* @param {string} workspaceId the Workspace identifier
|
|
17605
|
+
* @param {string} datasetId dataset id to be linked to
|
|
17606
|
+
* @param {*} [options] Override http request option.
|
|
17607
|
+
* @throws {RequiredError}
|
|
17608
|
+
*/
|
|
17609
|
+
unlinkDataset: function (organizationId, workspaceId, datasetId, options) {
|
|
17610
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17611
|
+
var localVarAxiosArgs;
|
|
17612
|
+
return __generator(this, function (_a) {
|
|
17613
|
+
switch (_a.label) {
|
|
17614
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkDataset(organizationId, workspaceId, datasetId, options)];
|
|
17615
|
+
case 1:
|
|
17616
|
+
localVarAxiosArgs = _a.sent();
|
|
17617
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17618
|
+
}
|
|
17619
|
+
});
|
|
17620
|
+
});
|
|
17621
|
+
},
|
|
14966
17622
|
/**
|
|
14967
17623
|
*
|
|
14968
17624
|
* @summary Update a workspace
|
|
@@ -15202,6 +17858,17 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
15202
17858
|
getWorkspaceSecurityUsers: function (organizationId, workspaceId, options) {
|
|
15203
17859
|
return localVarFp.getWorkspaceSecurityUsers(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
|
|
15204
17860
|
},
|
|
17861
|
+
/**
|
|
17862
|
+
*
|
|
17863
|
+
* @param {string} organizationId the Organization identifier
|
|
17864
|
+
* @param {string} workspaceId the Workspace identifier
|
|
17865
|
+
* @param {string} datasetId dataset id to be linked to
|
|
17866
|
+
* @param {*} [options] Override http request option.
|
|
17867
|
+
* @throws {RequiredError}
|
|
17868
|
+
*/
|
|
17869
|
+
linkDataset: function (organizationId, workspaceId, datasetId, options) {
|
|
17870
|
+
return localVarFp.linkDataset(organizationId, workspaceId, datasetId, options).then(function (request) { return request(axios, basePath); });
|
|
17871
|
+
},
|
|
15205
17872
|
/**
|
|
15206
17873
|
*
|
|
15207
17874
|
* @summary Remove the specified access from the given Organization Workspace
|
|
@@ -15226,6 +17893,17 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
15226
17893
|
setWorkspaceDefaultSecurity: function (organizationId, workspaceId, workspaceRole, options) {
|
|
15227
17894
|
return localVarFp.setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options).then(function (request) { return request(axios, basePath); });
|
|
15228
17895
|
},
|
|
17896
|
+
/**
|
|
17897
|
+
*
|
|
17898
|
+
* @param {string} organizationId the Organization identifier
|
|
17899
|
+
* @param {string} workspaceId the Workspace identifier
|
|
17900
|
+
* @param {string} datasetId dataset id to be linked to
|
|
17901
|
+
* @param {*} [options] Override http request option.
|
|
17902
|
+
* @throws {RequiredError}
|
|
17903
|
+
*/
|
|
17904
|
+
unlinkDataset: function (organizationId, workspaceId, datasetId, options) {
|
|
17905
|
+
return localVarFp.unlinkDataset(organizationId, workspaceId, datasetId, options).then(function (request) { return request(axios, basePath); });
|
|
17906
|
+
},
|
|
15229
17907
|
/**
|
|
15230
17908
|
*
|
|
15231
17909
|
* @summary Update a workspace
|
|
@@ -15467,6 +18145,19 @@ var WorkspaceApi = /** @class */ (function (_super) {
|
|
|
15467
18145
|
var _this = this;
|
|
15468
18146
|
return exports.WorkspaceApiFp(this.configuration).getWorkspaceSecurityUsers(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15469
18147
|
};
|
|
18148
|
+
/**
|
|
18149
|
+
*
|
|
18150
|
+
* @param {string} organizationId the Organization identifier
|
|
18151
|
+
* @param {string} workspaceId the Workspace identifier
|
|
18152
|
+
* @param {string} datasetId dataset id to be linked to
|
|
18153
|
+
* @param {*} [options] Override http request option.
|
|
18154
|
+
* @throws {RequiredError}
|
|
18155
|
+
* @memberof WorkspaceApi
|
|
18156
|
+
*/
|
|
18157
|
+
WorkspaceApi.prototype.linkDataset = function (organizationId, workspaceId, datasetId, options) {
|
|
18158
|
+
var _this = this;
|
|
18159
|
+
return exports.WorkspaceApiFp(this.configuration).linkDataset(organizationId, workspaceId, datasetId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18160
|
+
};
|
|
15470
18161
|
/**
|
|
15471
18162
|
*
|
|
15472
18163
|
* @summary Remove the specified access from the given Organization Workspace
|
|
@@ -15495,6 +18186,19 @@ var WorkspaceApi = /** @class */ (function (_super) {
|
|
|
15495
18186
|
var _this = this;
|
|
15496
18187
|
return exports.WorkspaceApiFp(this.configuration).setWorkspaceDefaultSecurity(organizationId, workspaceId, workspaceRole, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15497
18188
|
};
|
|
18189
|
+
/**
|
|
18190
|
+
*
|
|
18191
|
+
* @param {string} organizationId the Organization identifier
|
|
18192
|
+
* @param {string} workspaceId the Workspace identifier
|
|
18193
|
+
* @param {string} datasetId dataset id to be linked to
|
|
18194
|
+
* @param {*} [options] Override http request option.
|
|
18195
|
+
* @throws {RequiredError}
|
|
18196
|
+
* @memberof WorkspaceApi
|
|
18197
|
+
*/
|
|
18198
|
+
WorkspaceApi.prototype.unlinkDataset = function (organizationId, workspaceId, datasetId, options) {
|
|
18199
|
+
var _this = this;
|
|
18200
|
+
return exports.WorkspaceApiFp(this.configuration).unlinkDataset(organizationId, workspaceId, datasetId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18201
|
+
};
|
|
15498
18202
|
/**
|
|
15499
18203
|
*
|
|
15500
18204
|
* @summary Update a workspace
|