@dynatrace-sdk/client-classic-environment-v2 7.0.0 → 9.0.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.
package/cjs/index.js CHANGED
@@ -206,6 +206,7 @@ __export(index_exports, {
206
206
  PreconditionType: () => PreconditionType,
207
207
  PrivateSyntheticLocationDeploymentType: () => PrivateSyntheticLocationDeploymentType,
208
208
  PrivateSyntheticLocationFipsMode: () => PrivateSyntheticLocationFipsMode,
209
+ PrivateSyntheticLocationNodeSize: () => PrivateSyntheticLocationNodeSize,
209
210
  PrivateSyntheticLocationStatus: () => PrivateSyntheticLocationStatus,
210
211
  PrivateSyntheticLocationType: () => PrivateSyntheticLocationType,
211
212
  ProblemImpactLevel: () => ProblemImpactLevel,
@@ -326,6 +327,7 @@ __export(index_exports, {
326
327
  SyntheticOnDemandFailedExecutionStatusExecutionStage: () => SyntheticOnDemandFailedExecutionStatusExecutionStage,
327
328
  SyntheticOnDemandMonitorExecutionsClient: () => SyntheticOnDemandMonitorExecutionsClient,
328
329
  SyntheticTagWithSourceDtoSource: () => SyntheticTagWithSourceDtoSource,
330
+ TenantTokenRotationStatusStatus: () => TenantTokenRotationStatusStatus,
329
331
  UpdateJavaScriptMappingFileMetadataAliasQueryFileType: () => UpdateJavaScriptMappingFileMetadataAliasQueryFileType,
330
332
  UpdateJavaScriptMappingFileMetadataPathFileType: () => UpdateJavaScriptMappingFileMetadataPathFileType,
331
333
  UpdateJobAgType: () => UpdateJobAgType,
@@ -1669,6 +1671,8 @@ var AccessTokensApiTokensClient = class {
1669
1671
  * 1. Specify the number of results per page in the **pageSize** query parameter.
1670
1672
  * 2. Use the cursor from the **nextPageKey** field of the previous response in the **nextPageKey** query parameter to obtain subsequent pages.
1671
1673
  *
1674
+ * @deprecated
1675
+ *
1672
1676
  * @returns {Promise<ApiTokenList>} Success
1673
1677
  *
1674
1678
  * @example <caption>Code example</caption>
@@ -1850,6 +1854,8 @@ var AccessTokensApiTokensClient = class {
1850
1854
  *
1851
1855
  * Creating personal access tokens requires the `environment:roles:viewer` permission. Creating access tokens requires the `environment:roles:manage-settings` permission.
1852
1856
  *
1857
+ * @deprecated
1858
+ *
1853
1859
  * @returns {Promise<ApiTokenCreated>} Success. The token has been created. The body of the response contains the token secret.
1854
1860
  *
1855
1861
  * @example <caption>Code example</caption>
@@ -2024,6 +2030,10 @@ var AccessTokensApiTokensClient = class {
2024
2030
  * + environment:roles:viewer
2025
2031
  * + api-tokens:tokens:read
2026
2032
  *
2033
+ *
2034
+ *
2035
+ * @deprecated
2036
+ *
2027
2037
  * @returns {Promise<ApiToken>} Success
2028
2038
  *
2029
2039
  * @example <caption>Code example</caption>
@@ -2189,6 +2199,8 @@ var AccessTokensApiTokensClient = class {
2189
2199
  *
2190
2200
  * <br/><br/>The token secret is **not** exposed.
2191
2201
  *
2202
+ * @deprecated
2203
+ *
2192
2204
  * @returns {Promise<ApiToken>} Success
2193
2205
  *
2194
2206
  * @example <caption>Code example</caption>
@@ -2366,6 +2378,10 @@ var AccessTokensApiTokensClient = class {
2366
2378
  * + environment:roles:viewer
2367
2379
  * + api-tokens:tokens:write
2368
2380
  *
2381
+ *
2382
+ *
2383
+ * @deprecated
2384
+ *
2369
2385
  * @example <caption>Code example</caption>
2370
2386
  * import { accessTokensApiTokensClient } from "@dynatrace-sdk/client-classic-environment-v2";
2371
2387
  *
@@ -2526,6 +2542,10 @@ var AccessTokensApiTokensClient = class {
2526
2542
  * + environment:roles:viewer
2527
2543
  * + api-tokens:tokens:write
2528
2544
  *
2545
+ *
2546
+ *
2547
+ * @deprecated
2548
+ *
2529
2549
  * @example <caption>Code example</caption>
2530
2550
  * import { accessTokensApiTokensClient } from "@dynatrace-sdk/client-classic-environment-v2";
2531
2551
  *
@@ -3199,6 +3219,173 @@ var AccessTokensTenantTokensClient = class {
3199
3219
  }
3200
3220
  }
3201
3221
  }
3222
+ /**
3223
+ * Gets tenant token rotation status
3224
+ *
3225
+ * **One of the following scopes is required:**
3226
+ * + environment-api:tenant-token-rotation:write
3227
+ * + fleet-management:tenant-token:rotate
3228
+ *
3229
+ * <br/>**One of the following permissions is required:**
3230
+ * + environment:roles:manage-settings
3231
+ * + fleet-management:tenant-token:rotate
3232
+ *
3233
+ * <br/><br/>To learn how to rotate tokens, see [Token rotation](https://dt-url.net/1543sf6) in Dynatrace Documentation.
3234
+ *
3235
+ * @returns {Promise<TenantTokenRotationStatus>} Success. Returns rotation status.
3236
+ *
3237
+ * @example <caption>Code example</caption>
3238
+ * import { accessTokensTenantTokensClient } from "@dynatrace-sdk/client-classic-environment-v2";
3239
+ *
3240
+ * const data =
3241
+ * await accessTokensTenantTokensClient.getRotationStatus();
3242
+ *
3243
+ * @throws {ErrorEnvelopeError} Failed. Tenant token configuration is unavailable. | Client side error. | Server side error.
3244
+ * @throws {InvalidResponseError}
3245
+ * @throws {ApiClientError}
3246
+ * @throws {ClientRequestError}
3247
+ */
3248
+ async getRotationStatus(config = {}) {
3249
+ try {
3250
+ const response = await this.httpClient.send({
3251
+ url: `/platform/classic/environment-api/v2/tenantTokenRotation/status`,
3252
+ method: "GET",
3253
+ headers: {
3254
+ Accept: "application/json; charset=utf-8, application/json"
3255
+ },
3256
+ abortSignal: config instanceof EventTarget ? config : config.abortSignal,
3257
+ statusValidator: (status) => {
3258
+ return [200].includes(status);
3259
+ }
3260
+ });
3261
+ const responseValue = await response.body("json");
3262
+ try {
3263
+ return this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
3264
+ } catch (err) {
3265
+ throw new import_shared_errors6.InvalidResponseError(
3266
+ `AccessTokensTenantTokensClient.getRotationStatus:200`,
3267
+ err,
3268
+ responseValue,
3269
+ void 0,
3270
+ void 0,
3271
+ response
3272
+ );
3273
+ }
3274
+ } catch (e) {
3275
+ if ((0, import_http_client4.isHttpClientAbortError)(e) || (0, import_shared_errors6.isInvalidResponseError)(e)) {
3276
+ throw e;
3277
+ }
3278
+ if (!(0, import_http_client4.isHttpClientResponseError)(e)) {
3279
+ throw new import_shared_errors6.ApiClientError("UnexpectedError", "Unexpected error", e);
3280
+ }
3281
+ const response = e.response;
3282
+ await apiGatewayErrorsHandler(response);
3283
+ switch (response.status) {
3284
+ case 503: {
3285
+ const responseValue = await response.body("json");
3286
+ try {
3287
+ const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
3288
+ throw new ErrorEnvelopeError(
3289
+ `503`,
3290
+ response,
3291
+ errorBody,
3292
+ getErrorMessage(errorBody, "Failed. Tenant token configuration is unavailable."),
3293
+ e
3294
+ );
3295
+ } catch (err) {
3296
+ if (err instanceof ErrorEnvelopeError) {
3297
+ throw err;
3298
+ }
3299
+ throw new import_shared_errors6.InvalidResponseError(
3300
+ `AccessTokensTenantTokensClient.getRotationStatus:503`,
3301
+ err,
3302
+ responseValue,
3303
+ "ErrorEnvelope",
3304
+ void 0,
3305
+ response
3306
+ );
3307
+ }
3308
+ }
3309
+ default: {
3310
+ if (response.status >= 400 && response.status <= 499) {
3311
+ const responseValue = await response.body("json");
3312
+ try {
3313
+ const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
3314
+ throw new ErrorEnvelopeError(
3315
+ `${response.status}`,
3316
+ response,
3317
+ errorBody,
3318
+ getErrorMessage(errorBody, "Client side error."),
3319
+ e
3320
+ );
3321
+ } catch (err) {
3322
+ if (err instanceof ErrorEnvelopeError) {
3323
+ throw err;
3324
+ }
3325
+ throw new import_shared_errors6.InvalidResponseError(
3326
+ `AccessTokensTenantTokensClient.getRotationStatus:${response.status}`,
3327
+ err,
3328
+ responseValue,
3329
+ "ErrorEnvelope",
3330
+ void 0,
3331
+ response
3332
+ );
3333
+ }
3334
+ } else if (response.status >= 500 && response.status <= 599) {
3335
+ const responseValue = await response.body("json");
3336
+ try {
3337
+ const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
3338
+ throw new ErrorEnvelopeError(
3339
+ `${response.status}`,
3340
+ response,
3341
+ errorBody,
3342
+ getErrorMessage(errorBody, "Server side error."),
3343
+ e
3344
+ );
3345
+ } catch (err) {
3346
+ if (err instanceof ErrorEnvelopeError) {
3347
+ throw err;
3348
+ }
3349
+ throw new import_shared_errors6.InvalidResponseError(
3350
+ `AccessTokensTenantTokensClient.getRotationStatus:${response.status}`,
3351
+ err,
3352
+ responseValue,
3353
+ "ErrorEnvelope",
3354
+ void 0,
3355
+ response
3356
+ );
3357
+ }
3358
+ } else {
3359
+ try {
3360
+ const responseValue = await response.body("json");
3361
+ throw new import_shared_errors6.ClientRequestError(
3362
+ `${response.status}`,
3363
+ response,
3364
+ responseValue,
3365
+ getErrorMessage(
3366
+ responseValue,
3367
+ `Unexpected api response: code=${response.status} body="${responseValue}"`
3368
+ )
3369
+ );
3370
+ } catch (error) {
3371
+ if (error instanceof import_shared_errors6.ClientRequestError) {
3372
+ throw error;
3373
+ }
3374
+ const responseValue = await response.body("text").catch(() => "");
3375
+ throw new import_shared_errors6.InvalidResponseError(
3376
+ `${response.status}`,
3377
+ error,
3378
+ responseValue,
3379
+ "json",
3380
+ "Unexpected api response",
3381
+ response
3382
+ );
3383
+ }
3384
+ }
3385
+ }
3386
+ }
3387
+ }
3388
+ }
3202
3389
  };
3203
3390
  var accessTokensTenantTokensClient = /* @__PURE__ */ new AccessTokensTenantTokensClient(import_http_client4.httpClient);
3204
3391
 
@@ -3229,6 +3416,10 @@ var ActiveGatesActiveGateGroupsClient = class {
3229
3416
  * + environment:roles:manage-settings
3230
3417
  * + fleet-management:activegates:read
3231
3418
  *
3419
+ * <br/><br/>Deprecated since version 1.343. Use DQL Smartscape nodes to query ActiveGate data instead. See https://dt-url.net/mf03894
3420
+ *
3421
+ * @deprecated
3422
+ *
3232
3423
  * @returns {Promise<ActiveGateGroups>} Success
3233
3424
  *
3234
3425
  * @example <caption>Code example</caption>
@@ -3531,7 +3722,9 @@ var ActiveGatesClient = class {
3531
3722
  * + environment:roles:manage-settings
3532
3723
  * + fleet-management:activegates:read
3533
3724
  *
3534
- * <br/><br/>The response includes all ActiveGates that are currently connected to the environment or have been connected during last 2 hours.
3725
+ * <br/><br/>The response includes all ActiveGates that are currently connected to the environment or have been connected during last 2 hours. Deprecated since version 1.343. Use DQL Smartscape nodes to query ActiveGate data instead. See https://dt-url.net/mf03894
3726
+ *
3727
+ * @deprecated
3535
3728
  *
3536
3729
  * @returns {Promise<ActiveGateList>} Success
3537
3730
  *
@@ -3721,6 +3914,10 @@ var ActiveGatesClient = class {
3721
3914
  * + environment:roles:manage-settings
3722
3915
  * + fleet-management:activegates:read
3723
3916
  *
3917
+ * <br/><br/>Deprecated since version 1.343. Use DQL Smartscape nodes to query ActiveGate data instead. See https://dt-url.net/mf03894
3918
+ *
3919
+ * @deprecated
3920
+ *
3724
3921
  * @returns {Promise<ActiveGate>} Success
3725
3922
  *
3726
3923
  * @example <caption>Code example</caption>
@@ -15801,6 +15998,8 @@ var FleetManagementContainerImagesClient = class {
15801
15998
  * + environment:roles:agent-install
15802
15999
  * + fleet-management:container-images:read
15803
16000
  *
16001
+ * <br/><br/>Returns container image references for Dynatrace components from the specified registry. Returned image versions are resolved based on the configured target versions: dynatrace-activegate, dynatrace-eec, dynatrace-sql-extension-executor, and dynatrace-database-datasource-executor image versions are resolved from the ActiveGate target version; dynatrace-oneagent, dynatrace-codemodules, and dynatrace-logmodule image versions are resolved from the OneAgent target version. If no target version is configured for a component, the latest available image is returned.
16002
+ *
15804
16003
  * @returns {Promise<ContainerImageData>} Container images data returned
15805
16004
  *
15806
16005
  * @example <caption>Code example</caption>
@@ -20942,7 +21141,7 @@ var MonitoredEntitiesClient = class {
20942
21141
  * const data =
20943
21142
  * await monitoredEntitiesClient.setSecurityContext({
20944
21143
  * entitySelector: "...",
20945
- * body: {},
21144
+ * body: { securityContext: ["..."] },
20946
21145
  * });
20947
21146
  *
20948
21147
  * @throws {ErrorEnvelopeError} Client side error. | Server side error.
@@ -33379,14 +33578,18 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
33379
33578
  *
33380
33579
  * **Required scope:** environment-api:synthetic:write<br/>**Required permission:** environment:roles:manage-settings
33381
33580
  *
33382
- * @returns {Promise<SyntheticConfigDto>} Success. The set of synthetic related parameters has been updated. Response doesn't have a body.
33383
- *
33384
33581
  * @example <caption>Code example</caption>
33385
33582
  * import { syntheticLocationsNodesAndConfigurationClient } from "@dynatrace-sdk/client-classic-environment-v2";
33386
33583
  *
33387
33584
  * const data =
33388
33585
  * await syntheticLocationsNodesAndConfigurationClient.updateConfiguration(
33389
- * { body: { bmMonitorTimeout: 10, bmStepTimeout: 10 } },
33586
+ * {
33587
+ * body: {
33588
+ * bmMonitorTimeout: 10,
33589
+ * bmStepTimeout: 10,
33590
+ * maintenanceWindowsExcludedFromAvailability: false,
33591
+ * },
33592
+ * },
33390
33593
  * );
33391
33594
  *
33392
33595
  * @throws {ErrorEnvelopeError} Client side error. | Server side error.
@@ -33400,35 +33603,22 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
33400
33603
  }
33401
33604
  const encodedBody = this.shouldTransformDates ? transformRequest(config.body, []) : config.body;
33402
33605
  try {
33403
- const response = await this.httpClient.send({
33606
+ await this.httpClient.send({
33404
33607
  url: `/platform/classic/environment-api/v2/synthetic/config`,
33405
33608
  method: "PUT",
33406
33609
  requestBodyType: "json",
33407
33610
  body: encodedBody,
33408
33611
  headers: {
33409
- "Content-Type": "application/json; charset=utf-8",
33410
- Accept: "application/json; charset=utf-8, application/json"
33612
+ "Content-Type": "application/json; charset=utf-8"
33411
33613
  },
33412
33614
  abortSignal: config instanceof EventTarget ? config : config.abortSignal,
33413
33615
  statusValidator: (status) => {
33414
33616
  return [204].includes(status);
33415
33617
  }
33416
33618
  });
33417
- const responseValue = await response.body("json");
33418
- try {
33419
- return this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
33420
- } catch (err) {
33421
- throw new import_shared_errors47.InvalidResponseError(
33422
- `SyntheticLocationsNodesAndConfigurationClient.updateConfiguration:204`,
33423
- err,
33424
- responseValue,
33425
- void 0,
33426
- void 0,
33427
- response
33428
- );
33429
- }
33619
+ return;
33430
33620
  } catch (e) {
33431
- if ((0, import_http_client39.isHttpClientAbortError)(e) || (0, import_shared_errors47.isInvalidResponseError)(e)) {
33621
+ if ((0, import_http_client39.isHttpClientAbortError)(e)) {
33432
33622
  throw e;
33433
33623
  }
33434
33624
  if (!(0, import_http_client39.isHttpClientResponseError)(e)) {
@@ -33662,7 +33852,6 @@ var SyntheticLocationsNodesAndConfigurationClient = class {
33662
33852
  * latitude: 10,
33663
33853
  * longitude: 10,
33664
33854
  * name: "...",
33665
- * nodes: ["..."],
33666
33855
  * type: "CLUSTER",
33667
33856
  * },
33668
33857
  * },
@@ -37697,6 +37886,7 @@ var ApiTokenUpdateScopesItem = /* @__PURE__ */ ((ApiTokenUpdateScopesItem2) => {
37697
37886
  var AssessmentAccuracyDetailsReducedReasonsItem = /* @__PURE__ */ ((AssessmentAccuracyDetailsReducedReasonsItem2) => {
37698
37887
  AssessmentAccuracyDetailsReducedReasonsItem2["LimitedAgentSupport"] = "LIMITED_AGENT_SUPPORT";
37699
37888
  AssessmentAccuracyDetailsReducedReasonsItem2["LimitedByConfiguration"] = "LIMITED_BY_CONFIGURATION";
37889
+ AssessmentAccuracyDetailsReducedReasonsItem2["LimitedByServiceDetectionV2"] = "LIMITED_BY_SERVICE_DETECTION_V2";
37700
37890
  return AssessmentAccuracyDetailsReducedReasonsItem2;
37701
37891
  })(AssessmentAccuracyDetailsReducedReasonsItem || {});
37702
37892
 
@@ -37905,6 +38095,7 @@ var ContainerImageComponentType = /* @__PURE__ */ ((ContainerImageComponentType2
37905
38095
  ContainerImageComponentType2["Activegate"] = "activegate";
37906
38096
  ContainerImageComponentType2["Codemodules"] = "codemodules";
37907
38097
  ContainerImageComponentType2["DatabaseDatasourceExecutor"] = "database-datasource-executor";
38098
+ ContainerImageComponentType2["SqlExtensionExecutor"] = "sql-extension-executor";
37908
38099
  ContainerImageComponentType2["DynatraceSqlExtensionExecutor"] = "dynatrace-sql-extension-executor";
37909
38100
  ContainerImageComponentType2["Eec"] = "eec";
37910
38101
  ContainerImageComponentType2["Logmodule"] = "logmodule";
@@ -38736,6 +38927,7 @@ var MetricDescriptorAggregationTypesItem = /* @__PURE__ */ ((MetricDescriptorAgg
38736
38927
  // packages/client/classic-environment-v2/src/lib/models/metric-descriptor-transformations-item.ts
38737
38928
  var MetricDescriptorTransformationsItem = /* @__PURE__ */ ((MetricDescriptorTransformationsItem2) => {
38738
38929
  MetricDescriptorTransformationsItem2["AsGauge"] = "asGauge";
38930
+ MetricDescriptorTransformationsItem2["AsHistogram"] = "asHistogram";
38739
38931
  MetricDescriptorTransformationsItem2["Default"] = "default";
38740
38932
  MetricDescriptorTransformationsItem2["Delta"] = "delta";
38741
38933
  MetricDescriptorTransformationsItem2["EvaluateModel"] = "evaluateModel";
@@ -38900,6 +39092,15 @@ var PrivateSyntheticLocationFipsMode = /* @__PURE__ */ ((PrivateSyntheticLocatio
38900
39092
  return PrivateSyntheticLocationFipsMode2;
38901
39093
  })(PrivateSyntheticLocationFipsMode || {});
38902
39094
 
39095
+ // packages/client/classic-environment-v2/src/lib/models/private-synthetic-location-node-size.ts
39096
+ var PrivateSyntheticLocationNodeSize = /* @__PURE__ */ ((PrivateSyntheticLocationNodeSize2) => {
39097
+ PrivateSyntheticLocationNodeSize2["M"] = "M";
39098
+ PrivateSyntheticLocationNodeSize2["S"] = "S";
39099
+ PrivateSyntheticLocationNodeSize2["Unsupported"] = "UNSUPPORTED";
39100
+ PrivateSyntheticLocationNodeSize2["Xs"] = "XS";
39101
+ return PrivateSyntheticLocationNodeSize2;
39102
+ })(PrivateSyntheticLocationNodeSize || {});
39103
+
38903
39104
  // packages/client/classic-environment-v2/src/lib/models/private-synthetic-location-status.ts
38904
39105
  var PrivateSyntheticLocationStatus = /* @__PURE__ */ ((PrivateSyntheticLocationStatus2) => {
38905
39106
  PrivateSyntheticLocationStatus2["Disabled"] = "DISABLED";
@@ -39785,6 +39986,13 @@ var SyntheticTagWithSourceDtoSource = /* @__PURE__ */ ((SyntheticTagWithSourceDt
39785
39986
  return SyntheticTagWithSourceDtoSource2;
39786
39987
  })(SyntheticTagWithSourceDtoSource || {});
39787
39988
 
39989
+ // packages/client/classic-environment-v2/src/lib/models/tenant-token-rotation-status-status.ts
39990
+ var TenantTokenRotationStatusStatus = /* @__PURE__ */ ((TenantTokenRotationStatusStatus2) => {
39991
+ TenantTokenRotationStatusStatus2["Active"] = "ACTIVE";
39992
+ TenantTokenRotationStatusStatus2["Inactive"] = "INACTIVE";
39993
+ return TenantTokenRotationStatusStatus2;
39994
+ })(TenantTokenRotationStatusStatus || {});
39995
+
39788
39996
  // packages/client/classic-environment-v2/src/lib/models/update-java-script-mapping-file-metadata-alias-query-file-type.ts
39789
39997
  var UpdateJavaScriptMappingFileMetadataAliasQueryFileType = /* @__PURE__ */ ((UpdateJavaScriptMappingFileMetadataAliasQueryFileType2) => {
39790
39998
  UpdateJavaScriptMappingFileMetadataAliasQueryFileType2["Minified"] = "MINIFIED";
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "dynagen": {
3
- "version": "0.20.10",
3
+ "version": "0.23.0",
4
4
  "template": {
5
5
  "name": "@dynatrace-sdk/template-typescript-client",
6
- "version": "0.35.4"
6
+ "version": "0.36.1"
7
7
  },
8
8
  "featureFlags": {}
9
9
  },