@gooddata/api-client-tiger 10.26.0-alpha.8 → 10.26.0

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.
@@ -546,6 +546,47 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
546
546
  options: localVarRequestOptions,
547
547
  };
548
548
  },
549
+ /**
550
+ * Each cancel token corresponds to one unique execution request for the same result id. If all cancel tokens for the same result id are applied, the execution for this result id is canceled.
551
+ * @summary Applies all the given cancel tokens.
552
+ * @param {string} workspaceId Workspace identifier
553
+ * @param {AfmCancelTokens} afmCancelTokens
554
+ * @param {*} [options] Override http request option.
555
+ * @throws {RequiredError}
556
+ */
557
+ cancelExecutions: async (workspaceId, afmCancelTokens, options = {}) => {
558
+ // verify required parameter 'workspaceId' is not null or undefined
559
+ assertParamExists("cancelExecutions", "workspaceId", workspaceId);
560
+ // verify required parameter 'afmCancelTokens' is not null or undefined
561
+ assertParamExists("cancelExecutions", "afmCancelTokens", afmCancelTokens);
562
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/execution/afm/cancel`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
563
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
564
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
565
+ let baseOptions;
566
+ if (configuration) {
567
+ baseOptions = configuration.baseOptions;
568
+ }
569
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
570
+ const localVarHeaderParameter = {};
571
+ const localVarQueryParameter = {};
572
+ localVarHeaderParameter["Content-Type"] = "application/json";
573
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
574
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
575
+ localVarRequestOptions.headers = {
576
+ ...localVarHeaderParameter,
577
+ ...headersFromBaseOptions,
578
+ ...options.headers,
579
+ };
580
+ const needsSerialization = typeof afmCancelTokens !== "string" ||
581
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
582
+ localVarRequestOptions.data = needsSerialization
583
+ ? JSON.stringify(afmCancelTokens !== undefined ? afmCancelTokens : {})
584
+ : afmCancelTokens || "";
585
+ return {
586
+ url: toPathString(localVarUrlObj),
587
+ options: localVarRequestOptions,
588
+ };
589
+ },
549
590
  /**
550
591
  * (EXPERIMENTAL) Computes clusters for data points from the provided execution result and parameters.
551
592
  * @summary (EXPERIMENTAL) Smart functions - Clustering
@@ -1100,10 +1141,11 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
1100
1141
  * @param {Array<number>} [offset] Request page with these offsets. Format is offset&#x3D;1,2,3,... - one offset for each dimensions in ResultSpec from originating AFM.
1101
1142
  * @param {Array<number>} [limit] Return only this number of items. Format is limit&#x3D;1,2,3,... - one limit for each dimensions in ResultSpec from originating AFM.
1102
1143
  * @param {Array<string>} [excludedTotalDimensions] Identifiers of the dimensions where grand total data should not be returned for this request. A grand total will not be returned if all of its totalDimensions are in excludedTotalDimensions.
1144
+ * @param {string} [xGDCCANCELTOKEN]
1103
1145
  * @param {*} [options] Override http request option.
1104
1146
  * @throws {RequiredError}
1105
1147
  */
1106
- retrieveResult: async (workspaceId, resultId, offset, limit, excludedTotalDimensions, options = {}) => {
1148
+ retrieveResult: async (workspaceId, resultId, offset, limit, excludedTotalDimensions, xGDCCANCELTOKEN, options = {}) => {
1107
1149
  // verify required parameter 'workspaceId' is not null or undefined
1108
1150
  assertParamExists("retrieveResult", "workspaceId", workspaceId);
1109
1151
  // verify required parameter 'resultId' is not null or undefined
@@ -1129,6 +1171,9 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
1129
1171
  if (excludedTotalDimensions) {
1130
1172
  localVarQueryParameter["excludedTotalDimensions"] = excludedTotalDimensions.join(COLLECTION_FORMATS.csv);
1131
1173
  }
1174
+ if (xGDCCANCELTOKEN !== undefined && xGDCCANCELTOKEN !== null) {
1175
+ localVarHeaderParameter["X-GDC-CANCEL-TOKEN"] = String(xGDCCANCELTOKEN);
1176
+ }
1132
1177
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1133
1178
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1134
1179
  localVarRequestOptions.headers = {
@@ -1226,6 +1271,18 @@ export const ActionsApiFp = function (configuration) {
1226
1271
  const localVarAxiosArgs = await localVarAxiosParamCreator.anomalyDetectionResult(workspaceId, resultId, offset, limit, options);
1227
1272
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1228
1273
  },
1274
+ /**
1275
+ * Each cancel token corresponds to one unique execution request for the same result id. If all cancel tokens for the same result id are applied, the execution for this result id is canceled.
1276
+ * @summary Applies all the given cancel tokens.
1277
+ * @param {string} workspaceId Workspace identifier
1278
+ * @param {AfmCancelTokens} afmCancelTokens
1279
+ * @param {*} [options] Override http request option.
1280
+ * @throws {RequiredError}
1281
+ */
1282
+ async cancelExecutions(workspaceId, afmCancelTokens, options) {
1283
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelExecutions(workspaceId, afmCancelTokens, options);
1284
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1285
+ },
1229
1286
  /**
1230
1287
  * (EXPERIMENTAL) Computes clusters for data points from the provided execution result and parameters.
1231
1288
  * @summary (EXPERIMENTAL) Smart functions - Clustering
@@ -1395,11 +1452,12 @@ export const ActionsApiFp = function (configuration) {
1395
1452
  * @param {Array<number>} [offset] Request page with these offsets. Format is offset&#x3D;1,2,3,... - one offset for each dimensions in ResultSpec from originating AFM.
1396
1453
  * @param {Array<number>} [limit] Return only this number of items. Format is limit&#x3D;1,2,3,... - one limit for each dimensions in ResultSpec from originating AFM.
1397
1454
  * @param {Array<string>} [excludedTotalDimensions] Identifiers of the dimensions where grand total data should not be returned for this request. A grand total will not be returned if all of its totalDimensions are in excludedTotalDimensions.
1455
+ * @param {string} [xGDCCANCELTOKEN]
1398
1456
  * @param {*} [options] Override http request option.
1399
1457
  * @throws {RequiredError}
1400
1458
  */
1401
- async retrieveResult(workspaceId, resultId, offset, limit, excludedTotalDimensions, options) {
1402
- const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveResult(workspaceId, resultId, offset, limit, excludedTotalDimensions, options);
1459
+ async retrieveResult(workspaceId, resultId, offset, limit, excludedTotalDimensions, xGDCCANCELTOKEN, options) {
1460
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveResult(workspaceId, resultId, offset, limit, excludedTotalDimensions, xGDCCANCELTOKEN, options);
1403
1461
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1404
1462
  },
1405
1463
  };
@@ -1483,6 +1541,18 @@ export const ActionsApiFactory = function (configuration, basePath, axios) {
1483
1541
  .anomalyDetectionResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, options)
1484
1542
  .then((request) => request(axios, basePath));
1485
1543
  },
1544
+ /**
1545
+ * Each cancel token corresponds to one unique execution request for the same result id. If all cancel tokens for the same result id are applied, the execution for this result id is canceled.
1546
+ * @summary Applies all the given cancel tokens.
1547
+ * @param {ActionsApiCancelExecutionsRequest} requestParameters Request parameters.
1548
+ * @param {*} [options] Override http request option.
1549
+ * @throws {RequiredError}
1550
+ */
1551
+ cancelExecutions(requestParameters, options) {
1552
+ return localVarFp
1553
+ .cancelExecutions(requestParameters.workspaceId, requestParameters.afmCancelTokens, options)
1554
+ .then((request) => request(axios, basePath));
1555
+ },
1486
1556
  /**
1487
1557
  * (EXPERIMENTAL) Computes clusters for data points from the provided execution result and parameters.
1488
1558
  * @summary (EXPERIMENTAL) Smart functions - Clustering
@@ -1636,7 +1706,7 @@ export const ActionsApiFactory = function (configuration, basePath, axios) {
1636
1706
  */
1637
1707
  retrieveResult(requestParameters, options) {
1638
1708
  return localVarFp
1639
- .retrieveResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, requestParameters.excludedTotalDimensions, options)
1709
+ .retrieveResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, requestParameters.excludedTotalDimensions, requestParameters.xGDCCANCELTOKEN, options)
1640
1710
  .then((request) => request(axios, basePath));
1641
1711
  },
1642
1712
  };
@@ -1726,6 +1796,19 @@ export class ActionsApi extends BaseAPI {
1726
1796
  .anomalyDetectionResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, options)
1727
1797
  .then((request) => request(this.axios, this.basePath));
1728
1798
  }
1799
+ /**
1800
+ * Each cancel token corresponds to one unique execution request for the same result id. If all cancel tokens for the same result id are applied, the execution for this result id is canceled.
1801
+ * @summary Applies all the given cancel tokens.
1802
+ * @param {ActionsApiCancelExecutionsRequest} requestParameters Request parameters.
1803
+ * @param {*} [options] Override http request option.
1804
+ * @throws {RequiredError}
1805
+ * @memberof ActionsApi
1806
+ */
1807
+ cancelExecutions(requestParameters, options) {
1808
+ return ActionsApiFp(this.configuration)
1809
+ .cancelExecutions(requestParameters.workspaceId, requestParameters.afmCancelTokens, options)
1810
+ .then((request) => request(this.axios, this.basePath));
1811
+ }
1729
1812
  /**
1730
1813
  * (EXPERIMENTAL) Computes clusters for data points from the provided execution result and parameters.
1731
1814
  * @summary (EXPERIMENTAL) Smart functions - Clustering
@@ -1892,7 +1975,7 @@ export class ActionsApi extends BaseAPI {
1892
1975
  */
1893
1976
  retrieveResult(requestParameters, options) {
1894
1977
  return ActionsApiFp(this.configuration)
1895
- .retrieveResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, requestParameters.excludedTotalDimensions, options)
1978
+ .retrieveResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, requestParameters.excludedTotalDimensions, requestParameters.xGDCCANCELTOKEN, options)
1896
1979
  .then((request) => request(this.axios, this.basePath));
1897
1980
  }
1898
1981
  }
@@ -2266,10 +2349,11 @@ export const ComputationApiAxiosParamCreator = function (configuration) {
2266
2349
  * @param {Array<number>} [offset] Request page with these offsets. Format is offset&#x3D;1,2,3,... - one offset for each dimensions in ResultSpec from originating AFM.
2267
2350
  * @param {Array<number>} [limit] Return only this number of items. Format is limit&#x3D;1,2,3,... - one limit for each dimensions in ResultSpec from originating AFM.
2268
2351
  * @param {Array<string>} [excludedTotalDimensions] Identifiers of the dimensions where grand total data should not be returned for this request. A grand total will not be returned if all of its totalDimensions are in excludedTotalDimensions.
2352
+ * @param {string} [xGDCCANCELTOKEN]
2269
2353
  * @param {*} [options] Override http request option.
2270
2354
  * @throws {RequiredError}
2271
2355
  */
2272
- retrieveResult: async (workspaceId, resultId, offset, limit, excludedTotalDimensions, options = {}) => {
2356
+ retrieveResult: async (workspaceId, resultId, offset, limit, excludedTotalDimensions, xGDCCANCELTOKEN, options = {}) => {
2273
2357
  // verify required parameter 'workspaceId' is not null or undefined
2274
2358
  assertParamExists("retrieveResult", "workspaceId", workspaceId);
2275
2359
  // verify required parameter 'resultId' is not null or undefined
@@ -2295,6 +2379,9 @@ export const ComputationApiAxiosParamCreator = function (configuration) {
2295
2379
  if (excludedTotalDimensions) {
2296
2380
  localVarQueryParameter["excludedTotalDimensions"] = excludedTotalDimensions.join(COLLECTION_FORMATS.csv);
2297
2381
  }
2382
+ if (xGDCCANCELTOKEN !== undefined && xGDCCANCELTOKEN !== null) {
2383
+ localVarHeaderParameter["X-GDC-CANCEL-TOKEN"] = String(xGDCCANCELTOKEN);
2384
+ }
2298
2385
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2299
2386
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2300
2387
  localVarRequestOptions.headers = {
@@ -2429,11 +2516,12 @@ export const ComputationApiFp = function (configuration) {
2429
2516
  * @param {Array<number>} [offset] Request page with these offsets. Format is offset&#x3D;1,2,3,... - one offset for each dimensions in ResultSpec from originating AFM.
2430
2517
  * @param {Array<number>} [limit] Return only this number of items. Format is limit&#x3D;1,2,3,... - one limit for each dimensions in ResultSpec from originating AFM.
2431
2518
  * @param {Array<string>} [excludedTotalDimensions] Identifiers of the dimensions where grand total data should not be returned for this request. A grand total will not be returned if all of its totalDimensions are in excludedTotalDimensions.
2519
+ * @param {string} [xGDCCANCELTOKEN]
2432
2520
  * @param {*} [options] Override http request option.
2433
2521
  * @throws {RequiredError}
2434
2522
  */
2435
- async retrieveResult(workspaceId, resultId, offset, limit, excludedTotalDimensions, options) {
2436
- const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveResult(workspaceId, resultId, offset, limit, excludedTotalDimensions, options);
2523
+ async retrieveResult(workspaceId, resultId, offset, limit, excludedTotalDimensions, xGDCCANCELTOKEN, options) {
2524
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveResult(workspaceId, resultId, offset, limit, excludedTotalDimensions, xGDCCANCELTOKEN, options);
2437
2525
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2438
2526
  },
2439
2527
  };
@@ -2550,7 +2638,7 @@ export const ComputationApiFactory = function (configuration, basePath, axios) {
2550
2638
  */
2551
2639
  retrieveResult(requestParameters, options) {
2552
2640
  return localVarFp
2553
- .retrieveResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, requestParameters.excludedTotalDimensions, options)
2641
+ .retrieveResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, requestParameters.excludedTotalDimensions, requestParameters.xGDCCANCELTOKEN, options)
2554
2642
  .then((request) => request(axios, basePath));
2555
2643
  },
2556
2644
  };
@@ -2676,7 +2764,7 @@ export class ComputationApi extends BaseAPI {
2676
2764
  */
2677
2765
  retrieveResult(requestParameters, options) {
2678
2766
  return ComputationApiFp(this.configuration)
2679
- .retrieveResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, requestParameters.excludedTotalDimensions, options)
2767
+ .retrieveResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, requestParameters.excludedTotalDimensions, requestParameters.xGDCCANCELTOKEN, options)
2680
2768
  .then((request) => request(this.axios, this.basePath));
2681
2769
  }
2682
2770
  }