@dynatrace-sdk/client-classic-environment-v2 7.0.0 → 8.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/CHANGELOG.md +35 -15
- package/README.md +3278 -3140
- package/cjs/index.js +201 -2
- package/dynatrace-metadata.json +2 -2
- package/esm/index.js +201 -2
- package/package.json +1 -1
- package/types/index.d.ts +1113 -37
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,
|
|
@@ -3199,6 +3201,173 @@ var AccessTokensTenantTokensClient = class {
|
|
|
3199
3201
|
}
|
|
3200
3202
|
}
|
|
3201
3203
|
}
|
|
3204
|
+
/**
|
|
3205
|
+
* Gets tenant token rotation status
|
|
3206
|
+
*
|
|
3207
|
+
* **One of the following scopes is required:**
|
|
3208
|
+
* + environment-api:tenant-token-rotation:write
|
|
3209
|
+
* + fleet-management:tenant-token:rotate
|
|
3210
|
+
*
|
|
3211
|
+
* <br/>**One of the following permissions is required:**
|
|
3212
|
+
* + environment:roles:manage-settings
|
|
3213
|
+
* + fleet-management:tenant-token:rotate
|
|
3214
|
+
*
|
|
3215
|
+
* <br/><br/>To learn how to rotate tokens, see [Token rotation](https://dt-url.net/1543sf6) in Dynatrace Documentation.
|
|
3216
|
+
*
|
|
3217
|
+
* @returns {Promise<TenantTokenRotationStatus>} Success. Returns rotation status.
|
|
3218
|
+
*
|
|
3219
|
+
* @example <caption>Code example</caption>
|
|
3220
|
+
* import { accessTokensTenantTokensClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
3221
|
+
*
|
|
3222
|
+
* const data =
|
|
3223
|
+
* await accessTokensTenantTokensClient.getRotationStatus();
|
|
3224
|
+
*
|
|
3225
|
+
* @throws {ErrorEnvelopeError} Failed. Tenant token configuration is unavailable. | Client side error. | Server side error.
|
|
3226
|
+
* @throws {InvalidResponseError}
|
|
3227
|
+
* @throws {ApiClientError}
|
|
3228
|
+
* @throws {ClientRequestError}
|
|
3229
|
+
*/
|
|
3230
|
+
async getRotationStatus(config = {}) {
|
|
3231
|
+
try {
|
|
3232
|
+
const response = await this.httpClient.send({
|
|
3233
|
+
url: `/platform/classic/environment-api/v2/tenantTokenRotation/status`,
|
|
3234
|
+
method: "GET",
|
|
3235
|
+
headers: {
|
|
3236
|
+
Accept: "application/json; charset=utf-8, application/json"
|
|
3237
|
+
},
|
|
3238
|
+
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
3239
|
+
statusValidator: (status) => {
|
|
3240
|
+
return [200].includes(status);
|
|
3241
|
+
}
|
|
3242
|
+
});
|
|
3243
|
+
const responseValue = await response.body("json");
|
|
3244
|
+
try {
|
|
3245
|
+
return this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
3246
|
+
} catch (err) {
|
|
3247
|
+
throw new import_shared_errors6.InvalidResponseError(
|
|
3248
|
+
`AccessTokensTenantTokensClient.getRotationStatus:200`,
|
|
3249
|
+
err,
|
|
3250
|
+
responseValue,
|
|
3251
|
+
void 0,
|
|
3252
|
+
void 0,
|
|
3253
|
+
response
|
|
3254
|
+
);
|
|
3255
|
+
}
|
|
3256
|
+
} catch (e) {
|
|
3257
|
+
if ((0, import_http_client4.isHttpClientAbortError)(e) || (0, import_shared_errors6.isInvalidResponseError)(e)) {
|
|
3258
|
+
throw e;
|
|
3259
|
+
}
|
|
3260
|
+
if (!(0, import_http_client4.isHttpClientResponseError)(e)) {
|
|
3261
|
+
throw new import_shared_errors6.ApiClientError("UnexpectedError", "Unexpected error", e);
|
|
3262
|
+
}
|
|
3263
|
+
const response = e.response;
|
|
3264
|
+
await apiGatewayErrorsHandler(response);
|
|
3265
|
+
switch (response.status) {
|
|
3266
|
+
case 503: {
|
|
3267
|
+
const responseValue = await response.body("json");
|
|
3268
|
+
try {
|
|
3269
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
3270
|
+
throw new ErrorEnvelopeError(
|
|
3271
|
+
`503`,
|
|
3272
|
+
response,
|
|
3273
|
+
errorBody,
|
|
3274
|
+
getErrorMessage(errorBody, "Failed. Tenant token configuration is unavailable."),
|
|
3275
|
+
e
|
|
3276
|
+
);
|
|
3277
|
+
} catch (err) {
|
|
3278
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
3279
|
+
throw err;
|
|
3280
|
+
}
|
|
3281
|
+
throw new import_shared_errors6.InvalidResponseError(
|
|
3282
|
+
`AccessTokensTenantTokensClient.getRotationStatus:503`,
|
|
3283
|
+
err,
|
|
3284
|
+
responseValue,
|
|
3285
|
+
"ErrorEnvelope",
|
|
3286
|
+
void 0,
|
|
3287
|
+
response
|
|
3288
|
+
);
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
default: {
|
|
3292
|
+
if (response.status >= 400 && response.status <= 499) {
|
|
3293
|
+
const responseValue = await response.body("json");
|
|
3294
|
+
try {
|
|
3295
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
3296
|
+
throw new ErrorEnvelopeError(
|
|
3297
|
+
`${response.status}`,
|
|
3298
|
+
response,
|
|
3299
|
+
errorBody,
|
|
3300
|
+
getErrorMessage(errorBody, "Client side error."),
|
|
3301
|
+
e
|
|
3302
|
+
);
|
|
3303
|
+
} catch (err) {
|
|
3304
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
3305
|
+
throw err;
|
|
3306
|
+
}
|
|
3307
|
+
throw new import_shared_errors6.InvalidResponseError(
|
|
3308
|
+
`AccessTokensTenantTokensClient.getRotationStatus:${response.status}`,
|
|
3309
|
+
err,
|
|
3310
|
+
responseValue,
|
|
3311
|
+
"ErrorEnvelope",
|
|
3312
|
+
void 0,
|
|
3313
|
+
response
|
|
3314
|
+
);
|
|
3315
|
+
}
|
|
3316
|
+
} else if (response.status >= 500 && response.status <= 599) {
|
|
3317
|
+
const responseValue = await response.body("json");
|
|
3318
|
+
try {
|
|
3319
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
3320
|
+
throw new ErrorEnvelopeError(
|
|
3321
|
+
`${response.status}`,
|
|
3322
|
+
response,
|
|
3323
|
+
errorBody,
|
|
3324
|
+
getErrorMessage(errorBody, "Server side error."),
|
|
3325
|
+
e
|
|
3326
|
+
);
|
|
3327
|
+
} catch (err) {
|
|
3328
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
3329
|
+
throw err;
|
|
3330
|
+
}
|
|
3331
|
+
throw new import_shared_errors6.InvalidResponseError(
|
|
3332
|
+
`AccessTokensTenantTokensClient.getRotationStatus:${response.status}`,
|
|
3333
|
+
err,
|
|
3334
|
+
responseValue,
|
|
3335
|
+
"ErrorEnvelope",
|
|
3336
|
+
void 0,
|
|
3337
|
+
response
|
|
3338
|
+
);
|
|
3339
|
+
}
|
|
3340
|
+
} else {
|
|
3341
|
+
try {
|
|
3342
|
+
const responseValue = await response.body("json");
|
|
3343
|
+
throw new import_shared_errors6.ClientRequestError(
|
|
3344
|
+
`${response.status}`,
|
|
3345
|
+
response,
|
|
3346
|
+
responseValue,
|
|
3347
|
+
getErrorMessage(
|
|
3348
|
+
responseValue,
|
|
3349
|
+
`Unexpected api response: code=${response.status} body="${responseValue}"`
|
|
3350
|
+
)
|
|
3351
|
+
);
|
|
3352
|
+
} catch (error) {
|
|
3353
|
+
if (error instanceof import_shared_errors6.ClientRequestError) {
|
|
3354
|
+
throw error;
|
|
3355
|
+
}
|
|
3356
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
3357
|
+
throw new import_shared_errors6.InvalidResponseError(
|
|
3358
|
+
`${response.status}`,
|
|
3359
|
+
error,
|
|
3360
|
+
responseValue,
|
|
3361
|
+
"json",
|
|
3362
|
+
"Unexpected api response",
|
|
3363
|
+
response
|
|
3364
|
+
);
|
|
3365
|
+
}
|
|
3366
|
+
}
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
}
|
|
3370
|
+
}
|
|
3202
3371
|
};
|
|
3203
3372
|
var accessTokensTenantTokensClient = /* @__PURE__ */ new AccessTokensTenantTokensClient(import_http_client4.httpClient);
|
|
3204
3373
|
|
|
@@ -3229,6 +3398,10 @@ var ActiveGatesActiveGateGroupsClient = class {
|
|
|
3229
3398
|
* + environment:roles:manage-settings
|
|
3230
3399
|
* + fleet-management:activegates:read
|
|
3231
3400
|
*
|
|
3401
|
+
* <br/><br/>Deprecated since version 1.343. Use DQL Smartscape nodes to query ActiveGate data instead. See https://dt-url.net/mf03894
|
|
3402
|
+
*
|
|
3403
|
+
* @deprecated
|
|
3404
|
+
*
|
|
3232
3405
|
* @returns {Promise<ActiveGateGroups>} Success
|
|
3233
3406
|
*
|
|
3234
3407
|
* @example <caption>Code example</caption>
|
|
@@ -3531,7 +3704,9 @@ var ActiveGatesClient = class {
|
|
|
3531
3704
|
* + environment:roles:manage-settings
|
|
3532
3705
|
* + fleet-management:activegates:read
|
|
3533
3706
|
*
|
|
3534
|
-
* <br/><br/>The response includes all ActiveGates that are currently connected to the environment or have been connected during last 2 hours.
|
|
3707
|
+
* <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
|
|
3708
|
+
*
|
|
3709
|
+
* @deprecated
|
|
3535
3710
|
*
|
|
3536
3711
|
* @returns {Promise<ActiveGateList>} Success
|
|
3537
3712
|
*
|
|
@@ -3721,6 +3896,10 @@ var ActiveGatesClient = class {
|
|
|
3721
3896
|
* + environment:roles:manage-settings
|
|
3722
3897
|
* + fleet-management:activegates:read
|
|
3723
3898
|
*
|
|
3899
|
+
* <br/><br/>Deprecated since version 1.343. Use DQL Smartscape nodes to query ActiveGate data instead. See https://dt-url.net/mf03894
|
|
3900
|
+
*
|
|
3901
|
+
* @deprecated
|
|
3902
|
+
*
|
|
3724
3903
|
* @returns {Promise<ActiveGate>} Success
|
|
3725
3904
|
*
|
|
3726
3905
|
* @example <caption>Code example</caption>
|
|
@@ -15801,6 +15980,8 @@ var FleetManagementContainerImagesClient = class {
|
|
|
15801
15980
|
* + environment:roles:agent-install
|
|
15802
15981
|
* + fleet-management:container-images:read
|
|
15803
15982
|
*
|
|
15983
|
+
* <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.
|
|
15984
|
+
*
|
|
15804
15985
|
* @returns {Promise<ContainerImageData>} Container images data returned
|
|
15805
15986
|
*
|
|
15806
15987
|
* @example <caption>Code example</caption>
|
|
@@ -20942,7 +21123,7 @@ var MonitoredEntitiesClient = class {
|
|
|
20942
21123
|
* const data =
|
|
20943
21124
|
* await monitoredEntitiesClient.setSecurityContext({
|
|
20944
21125
|
* entitySelector: "...",
|
|
20945
|
-
* body: {},
|
|
21126
|
+
* body: { securityContext: ["..."] },
|
|
20946
21127
|
* });
|
|
20947
21128
|
*
|
|
20948
21129
|
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
@@ -37697,6 +37878,7 @@ var ApiTokenUpdateScopesItem = /* @__PURE__ */ ((ApiTokenUpdateScopesItem2) => {
|
|
|
37697
37878
|
var AssessmentAccuracyDetailsReducedReasonsItem = /* @__PURE__ */ ((AssessmentAccuracyDetailsReducedReasonsItem2) => {
|
|
37698
37879
|
AssessmentAccuracyDetailsReducedReasonsItem2["LimitedAgentSupport"] = "LIMITED_AGENT_SUPPORT";
|
|
37699
37880
|
AssessmentAccuracyDetailsReducedReasonsItem2["LimitedByConfiguration"] = "LIMITED_BY_CONFIGURATION";
|
|
37881
|
+
AssessmentAccuracyDetailsReducedReasonsItem2["LimitedByServiceDetectionV2"] = "LIMITED_BY_SERVICE_DETECTION_V2";
|
|
37700
37882
|
return AssessmentAccuracyDetailsReducedReasonsItem2;
|
|
37701
37883
|
})(AssessmentAccuracyDetailsReducedReasonsItem || {});
|
|
37702
37884
|
|
|
@@ -37905,6 +38087,7 @@ var ContainerImageComponentType = /* @__PURE__ */ ((ContainerImageComponentType2
|
|
|
37905
38087
|
ContainerImageComponentType2["Activegate"] = "activegate";
|
|
37906
38088
|
ContainerImageComponentType2["Codemodules"] = "codemodules";
|
|
37907
38089
|
ContainerImageComponentType2["DatabaseDatasourceExecutor"] = "database-datasource-executor";
|
|
38090
|
+
ContainerImageComponentType2["SqlExtensionExecutor"] = "sql-extension-executor";
|
|
37908
38091
|
ContainerImageComponentType2["DynatraceSqlExtensionExecutor"] = "dynatrace-sql-extension-executor";
|
|
37909
38092
|
ContainerImageComponentType2["Eec"] = "eec";
|
|
37910
38093
|
ContainerImageComponentType2["Logmodule"] = "logmodule";
|
|
@@ -38900,6 +39083,15 @@ var PrivateSyntheticLocationFipsMode = /* @__PURE__ */ ((PrivateSyntheticLocatio
|
|
|
38900
39083
|
return PrivateSyntheticLocationFipsMode2;
|
|
38901
39084
|
})(PrivateSyntheticLocationFipsMode || {});
|
|
38902
39085
|
|
|
39086
|
+
// packages/client/classic-environment-v2/src/lib/models/private-synthetic-location-node-size.ts
|
|
39087
|
+
var PrivateSyntheticLocationNodeSize = /* @__PURE__ */ ((PrivateSyntheticLocationNodeSize2) => {
|
|
39088
|
+
PrivateSyntheticLocationNodeSize2["M"] = "M";
|
|
39089
|
+
PrivateSyntheticLocationNodeSize2["S"] = "S";
|
|
39090
|
+
PrivateSyntheticLocationNodeSize2["Unsupported"] = "UNSUPPORTED";
|
|
39091
|
+
PrivateSyntheticLocationNodeSize2["Xs"] = "XS";
|
|
39092
|
+
return PrivateSyntheticLocationNodeSize2;
|
|
39093
|
+
})(PrivateSyntheticLocationNodeSize || {});
|
|
39094
|
+
|
|
38903
39095
|
// packages/client/classic-environment-v2/src/lib/models/private-synthetic-location-status.ts
|
|
38904
39096
|
var PrivateSyntheticLocationStatus = /* @__PURE__ */ ((PrivateSyntheticLocationStatus2) => {
|
|
38905
39097
|
PrivateSyntheticLocationStatus2["Disabled"] = "DISABLED";
|
|
@@ -39785,6 +39977,13 @@ var SyntheticTagWithSourceDtoSource = /* @__PURE__ */ ((SyntheticTagWithSourceDt
|
|
|
39785
39977
|
return SyntheticTagWithSourceDtoSource2;
|
|
39786
39978
|
})(SyntheticTagWithSourceDtoSource || {});
|
|
39787
39979
|
|
|
39980
|
+
// packages/client/classic-environment-v2/src/lib/models/tenant-token-rotation-status-status.ts
|
|
39981
|
+
var TenantTokenRotationStatusStatus = /* @__PURE__ */ ((TenantTokenRotationStatusStatus2) => {
|
|
39982
|
+
TenantTokenRotationStatusStatus2["Active"] = "ACTIVE";
|
|
39983
|
+
TenantTokenRotationStatusStatus2["Inactive"] = "INACTIVE";
|
|
39984
|
+
return TenantTokenRotationStatusStatus2;
|
|
39985
|
+
})(TenantTokenRotationStatusStatus || {});
|
|
39986
|
+
|
|
39788
39987
|
// packages/client/classic-environment-v2/src/lib/models/update-java-script-mapping-file-metadata-alias-query-file-type.ts
|
|
39789
39988
|
var UpdateJavaScriptMappingFileMetadataAliasQueryFileType = /* @__PURE__ */ ((UpdateJavaScriptMappingFileMetadataAliasQueryFileType2) => {
|
|
39790
39989
|
UpdateJavaScriptMappingFileMetadataAliasQueryFileType2["Minified"] = "MINIFIED";
|
package/dynatrace-metadata.json
CHANGED
package/esm/index.js
CHANGED
|
@@ -2853,6 +2853,173 @@ var AccessTokensTenantTokensClient = class {
|
|
|
2853
2853
|
}
|
|
2854
2854
|
}
|
|
2855
2855
|
}
|
|
2856
|
+
/**
|
|
2857
|
+
* Gets tenant token rotation status
|
|
2858
|
+
*
|
|
2859
|
+
* **One of the following scopes is required:**
|
|
2860
|
+
* + environment-api:tenant-token-rotation:write
|
|
2861
|
+
* + fleet-management:tenant-token:rotate
|
|
2862
|
+
*
|
|
2863
|
+
* <br/>**One of the following permissions is required:**
|
|
2864
|
+
* + environment:roles:manage-settings
|
|
2865
|
+
* + fleet-management:tenant-token:rotate
|
|
2866
|
+
*
|
|
2867
|
+
* <br/><br/>To learn how to rotate tokens, see [Token rotation](https://dt-url.net/1543sf6) in Dynatrace Documentation.
|
|
2868
|
+
*
|
|
2869
|
+
* @returns {Promise<TenantTokenRotationStatus>} Success. Returns rotation status.
|
|
2870
|
+
*
|
|
2871
|
+
* @example <caption>Code example</caption>
|
|
2872
|
+
* import { accessTokensTenantTokensClient } from "@dynatrace-sdk/client-classic-environment-v2";
|
|
2873
|
+
*
|
|
2874
|
+
* const data =
|
|
2875
|
+
* await accessTokensTenantTokensClient.getRotationStatus();
|
|
2876
|
+
*
|
|
2877
|
+
* @throws {ErrorEnvelopeError} Failed. Tenant token configuration is unavailable. | Client side error. | Server side error.
|
|
2878
|
+
* @throws {InvalidResponseError}
|
|
2879
|
+
* @throws {ApiClientError}
|
|
2880
|
+
* @throws {ClientRequestError}
|
|
2881
|
+
*/
|
|
2882
|
+
async getRotationStatus(config = {}) {
|
|
2883
|
+
try {
|
|
2884
|
+
const response = await this.httpClient.send({
|
|
2885
|
+
url: `/platform/classic/environment-api/v2/tenantTokenRotation/status`,
|
|
2886
|
+
method: "GET",
|
|
2887
|
+
headers: {
|
|
2888
|
+
Accept: "application/json; charset=utf-8, application/json"
|
|
2889
|
+
},
|
|
2890
|
+
abortSignal: config instanceof EventTarget ? config : config.abortSignal,
|
|
2891
|
+
statusValidator: (status) => {
|
|
2892
|
+
return [200].includes(status);
|
|
2893
|
+
}
|
|
2894
|
+
});
|
|
2895
|
+
const responseValue = await response.body("json");
|
|
2896
|
+
try {
|
|
2897
|
+
return this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
2898
|
+
} catch (err) {
|
|
2899
|
+
throw new InvalidResponseError4(
|
|
2900
|
+
`AccessTokensTenantTokensClient.getRotationStatus:200`,
|
|
2901
|
+
err,
|
|
2902
|
+
responseValue,
|
|
2903
|
+
void 0,
|
|
2904
|
+
void 0,
|
|
2905
|
+
response
|
|
2906
|
+
);
|
|
2907
|
+
}
|
|
2908
|
+
} catch (e) {
|
|
2909
|
+
if (isHttpClientAbortError4(e) || isInvalidResponseError4(e)) {
|
|
2910
|
+
throw e;
|
|
2911
|
+
}
|
|
2912
|
+
if (!isHttpClientResponseError4(e)) {
|
|
2913
|
+
throw new ApiClientError4("UnexpectedError", "Unexpected error", e);
|
|
2914
|
+
}
|
|
2915
|
+
const response = e.response;
|
|
2916
|
+
await apiGatewayErrorsHandler(response);
|
|
2917
|
+
switch (response.status) {
|
|
2918
|
+
case 503: {
|
|
2919
|
+
const responseValue = await response.body("json");
|
|
2920
|
+
try {
|
|
2921
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
2922
|
+
throw new ErrorEnvelopeError(
|
|
2923
|
+
`503`,
|
|
2924
|
+
response,
|
|
2925
|
+
errorBody,
|
|
2926
|
+
getErrorMessage(errorBody, "Failed. Tenant token configuration is unavailable."),
|
|
2927
|
+
e
|
|
2928
|
+
);
|
|
2929
|
+
} catch (err) {
|
|
2930
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
2931
|
+
throw err;
|
|
2932
|
+
}
|
|
2933
|
+
throw new InvalidResponseError4(
|
|
2934
|
+
`AccessTokensTenantTokensClient.getRotationStatus:503`,
|
|
2935
|
+
err,
|
|
2936
|
+
responseValue,
|
|
2937
|
+
"ErrorEnvelope",
|
|
2938
|
+
void 0,
|
|
2939
|
+
response
|
|
2940
|
+
);
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
default: {
|
|
2944
|
+
if (response.status >= 400 && response.status <= 499) {
|
|
2945
|
+
const responseValue = await response.body("json");
|
|
2946
|
+
try {
|
|
2947
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
2948
|
+
throw new ErrorEnvelopeError(
|
|
2949
|
+
`${response.status}`,
|
|
2950
|
+
response,
|
|
2951
|
+
errorBody,
|
|
2952
|
+
getErrorMessage(errorBody, "Client side error."),
|
|
2953
|
+
e
|
|
2954
|
+
);
|
|
2955
|
+
} catch (err) {
|
|
2956
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
2957
|
+
throw err;
|
|
2958
|
+
}
|
|
2959
|
+
throw new InvalidResponseError4(
|
|
2960
|
+
`AccessTokensTenantTokensClient.getRotationStatus:${response.status}`,
|
|
2961
|
+
err,
|
|
2962
|
+
responseValue,
|
|
2963
|
+
"ErrorEnvelope",
|
|
2964
|
+
void 0,
|
|
2965
|
+
response
|
|
2966
|
+
);
|
|
2967
|
+
}
|
|
2968
|
+
} else if (response.status >= 500 && response.status <= 599) {
|
|
2969
|
+
const responseValue = await response.body("json");
|
|
2970
|
+
try {
|
|
2971
|
+
const errorBody = this.shouldTransformDates ? transformResponse(responseValue, []) : responseValue;
|
|
2972
|
+
throw new ErrorEnvelopeError(
|
|
2973
|
+
`${response.status}`,
|
|
2974
|
+
response,
|
|
2975
|
+
errorBody,
|
|
2976
|
+
getErrorMessage(errorBody, "Server side error."),
|
|
2977
|
+
e
|
|
2978
|
+
);
|
|
2979
|
+
} catch (err) {
|
|
2980
|
+
if (err instanceof ErrorEnvelopeError) {
|
|
2981
|
+
throw err;
|
|
2982
|
+
}
|
|
2983
|
+
throw new InvalidResponseError4(
|
|
2984
|
+
`AccessTokensTenantTokensClient.getRotationStatus:${response.status}`,
|
|
2985
|
+
err,
|
|
2986
|
+
responseValue,
|
|
2987
|
+
"ErrorEnvelope",
|
|
2988
|
+
void 0,
|
|
2989
|
+
response
|
|
2990
|
+
);
|
|
2991
|
+
}
|
|
2992
|
+
} else {
|
|
2993
|
+
try {
|
|
2994
|
+
const responseValue = await response.body("json");
|
|
2995
|
+
throw new ClientRequestError5(
|
|
2996
|
+
`${response.status}`,
|
|
2997
|
+
response,
|
|
2998
|
+
responseValue,
|
|
2999
|
+
getErrorMessage(
|
|
3000
|
+
responseValue,
|
|
3001
|
+
`Unexpected api response: code=${response.status} body="${responseValue}"`
|
|
3002
|
+
)
|
|
3003
|
+
);
|
|
3004
|
+
} catch (error) {
|
|
3005
|
+
if (error instanceof ClientRequestError5) {
|
|
3006
|
+
throw error;
|
|
3007
|
+
}
|
|
3008
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
3009
|
+
throw new InvalidResponseError4(
|
|
3010
|
+
`${response.status}`,
|
|
3011
|
+
error,
|
|
3012
|
+
responseValue,
|
|
3013
|
+
"json",
|
|
3014
|
+
"Unexpected api response",
|
|
3015
|
+
response
|
|
3016
|
+
);
|
|
3017
|
+
}
|
|
3018
|
+
}
|
|
3019
|
+
}
|
|
3020
|
+
}
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
2856
3023
|
};
|
|
2857
3024
|
var accessTokensTenantTokensClient = /* @__PURE__ */ new AccessTokensTenantTokensClient(defaultHttpClient4);
|
|
2858
3025
|
|
|
@@ -2892,6 +3059,10 @@ var ActiveGatesActiveGateGroupsClient = class {
|
|
|
2892
3059
|
* + environment:roles:manage-settings
|
|
2893
3060
|
* + fleet-management:activegates:read
|
|
2894
3061
|
*
|
|
3062
|
+
* <br/><br/>Deprecated since version 1.343. Use DQL Smartscape nodes to query ActiveGate data instead. See https://dt-url.net/mf03894
|
|
3063
|
+
*
|
|
3064
|
+
* @deprecated
|
|
3065
|
+
*
|
|
2895
3066
|
* @returns {Promise<ActiveGateGroups>} Success
|
|
2896
3067
|
*
|
|
2897
3068
|
* @example <caption>Code example</caption>
|
|
@@ -3212,7 +3383,9 @@ var ActiveGatesClient = class {
|
|
|
3212
3383
|
* + environment:roles:manage-settings
|
|
3213
3384
|
* + fleet-management:activegates:read
|
|
3214
3385
|
*
|
|
3215
|
-
* <br/><br/>The response includes all ActiveGates that are currently connected to the environment or have been connected during last 2 hours.
|
|
3386
|
+
* <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
|
|
3387
|
+
*
|
|
3388
|
+
* @deprecated
|
|
3216
3389
|
*
|
|
3217
3390
|
* @returns {Promise<ActiveGateList>} Success
|
|
3218
3391
|
*
|
|
@@ -3402,6 +3575,10 @@ var ActiveGatesClient = class {
|
|
|
3402
3575
|
* + environment:roles:manage-settings
|
|
3403
3576
|
* + fleet-management:activegates:read
|
|
3404
3577
|
*
|
|
3578
|
+
* <br/><br/>Deprecated since version 1.343. Use DQL Smartscape nodes to query ActiveGate data instead. See https://dt-url.net/mf03894
|
|
3579
|
+
*
|
|
3580
|
+
* @deprecated
|
|
3581
|
+
*
|
|
3405
3582
|
* @returns {Promise<ActiveGate>} Success
|
|
3406
3583
|
*
|
|
3407
3584
|
* @example <caption>Code example</caption>
|
|
@@ -15588,6 +15765,8 @@ var FleetManagementContainerImagesClient = class {
|
|
|
15588
15765
|
* + environment:roles:agent-install
|
|
15589
15766
|
* + fleet-management:container-images:read
|
|
15590
15767
|
*
|
|
15768
|
+
* <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.
|
|
15769
|
+
*
|
|
15591
15770
|
* @returns {Promise<ContainerImageData>} Container images data returned
|
|
15592
15771
|
*
|
|
15593
15772
|
* @example <caption>Code example</caption>
|
|
@@ -20787,7 +20966,7 @@ var MonitoredEntitiesClient = class {
|
|
|
20787
20966
|
* const data =
|
|
20788
20967
|
* await monitoredEntitiesClient.setSecurityContext({
|
|
20789
20968
|
* entitySelector: "...",
|
|
20790
|
-
* body: {},
|
|
20969
|
+
* body: { securityContext: ["..."] },
|
|
20791
20970
|
* });
|
|
20792
20971
|
*
|
|
20793
20972
|
* @throws {ErrorEnvelopeError} Client side error. | Server side error.
|
|
@@ -37700,6 +37879,7 @@ var ApiTokenUpdateScopesItem = /* @__PURE__ */ ((ApiTokenUpdateScopesItem2) => {
|
|
|
37700
37879
|
var AssessmentAccuracyDetailsReducedReasonsItem = /* @__PURE__ */ ((AssessmentAccuracyDetailsReducedReasonsItem2) => {
|
|
37701
37880
|
AssessmentAccuracyDetailsReducedReasonsItem2["LimitedAgentSupport"] = "LIMITED_AGENT_SUPPORT";
|
|
37702
37881
|
AssessmentAccuracyDetailsReducedReasonsItem2["LimitedByConfiguration"] = "LIMITED_BY_CONFIGURATION";
|
|
37882
|
+
AssessmentAccuracyDetailsReducedReasonsItem2["LimitedByServiceDetectionV2"] = "LIMITED_BY_SERVICE_DETECTION_V2";
|
|
37703
37883
|
return AssessmentAccuracyDetailsReducedReasonsItem2;
|
|
37704
37884
|
})(AssessmentAccuracyDetailsReducedReasonsItem || {});
|
|
37705
37885
|
|
|
@@ -37908,6 +38088,7 @@ var ContainerImageComponentType = /* @__PURE__ */ ((ContainerImageComponentType2
|
|
|
37908
38088
|
ContainerImageComponentType2["Activegate"] = "activegate";
|
|
37909
38089
|
ContainerImageComponentType2["Codemodules"] = "codemodules";
|
|
37910
38090
|
ContainerImageComponentType2["DatabaseDatasourceExecutor"] = "database-datasource-executor";
|
|
38091
|
+
ContainerImageComponentType2["SqlExtensionExecutor"] = "sql-extension-executor";
|
|
37911
38092
|
ContainerImageComponentType2["DynatraceSqlExtensionExecutor"] = "dynatrace-sql-extension-executor";
|
|
37912
38093
|
ContainerImageComponentType2["Eec"] = "eec";
|
|
37913
38094
|
ContainerImageComponentType2["Logmodule"] = "logmodule";
|
|
@@ -38903,6 +39084,15 @@ var PrivateSyntheticLocationFipsMode = /* @__PURE__ */ ((PrivateSyntheticLocatio
|
|
|
38903
39084
|
return PrivateSyntheticLocationFipsMode2;
|
|
38904
39085
|
})(PrivateSyntheticLocationFipsMode || {});
|
|
38905
39086
|
|
|
39087
|
+
// packages/client/classic-environment-v2/src/lib/models/private-synthetic-location-node-size.ts
|
|
39088
|
+
var PrivateSyntheticLocationNodeSize = /* @__PURE__ */ ((PrivateSyntheticLocationNodeSize2) => {
|
|
39089
|
+
PrivateSyntheticLocationNodeSize2["M"] = "M";
|
|
39090
|
+
PrivateSyntheticLocationNodeSize2["S"] = "S";
|
|
39091
|
+
PrivateSyntheticLocationNodeSize2["Unsupported"] = "UNSUPPORTED";
|
|
39092
|
+
PrivateSyntheticLocationNodeSize2["Xs"] = "XS";
|
|
39093
|
+
return PrivateSyntheticLocationNodeSize2;
|
|
39094
|
+
})(PrivateSyntheticLocationNodeSize || {});
|
|
39095
|
+
|
|
38906
39096
|
// packages/client/classic-environment-v2/src/lib/models/private-synthetic-location-status.ts
|
|
38907
39097
|
var PrivateSyntheticLocationStatus = /* @__PURE__ */ ((PrivateSyntheticLocationStatus2) => {
|
|
38908
39098
|
PrivateSyntheticLocationStatus2["Disabled"] = "DISABLED";
|
|
@@ -39788,6 +39978,13 @@ var SyntheticTagWithSourceDtoSource = /* @__PURE__ */ ((SyntheticTagWithSourceDt
|
|
|
39788
39978
|
return SyntheticTagWithSourceDtoSource2;
|
|
39789
39979
|
})(SyntheticTagWithSourceDtoSource || {});
|
|
39790
39980
|
|
|
39981
|
+
// packages/client/classic-environment-v2/src/lib/models/tenant-token-rotation-status-status.ts
|
|
39982
|
+
var TenantTokenRotationStatusStatus = /* @__PURE__ */ ((TenantTokenRotationStatusStatus2) => {
|
|
39983
|
+
TenantTokenRotationStatusStatus2["Active"] = "ACTIVE";
|
|
39984
|
+
TenantTokenRotationStatusStatus2["Inactive"] = "INACTIVE";
|
|
39985
|
+
return TenantTokenRotationStatusStatus2;
|
|
39986
|
+
})(TenantTokenRotationStatusStatus || {});
|
|
39987
|
+
|
|
39791
39988
|
// packages/client/classic-environment-v2/src/lib/models/update-java-script-mapping-file-metadata-alias-query-file-type.ts
|
|
39792
39989
|
var UpdateJavaScriptMappingFileMetadataAliasQueryFileType = /* @__PURE__ */ ((UpdateJavaScriptMappingFileMetadataAliasQueryFileType2) => {
|
|
39793
39990
|
UpdateJavaScriptMappingFileMetadataAliasQueryFileType2["Minified"] = "MINIFIED";
|
|
@@ -40075,6 +40272,7 @@ export {
|
|
|
40075
40272
|
PreconditionType,
|
|
40076
40273
|
PrivateSyntheticLocationDeploymentType,
|
|
40077
40274
|
PrivateSyntheticLocationFipsMode,
|
|
40275
|
+
PrivateSyntheticLocationNodeSize,
|
|
40078
40276
|
PrivateSyntheticLocationStatus,
|
|
40079
40277
|
PrivateSyntheticLocationType,
|
|
40080
40278
|
ProblemImpactLevel,
|
|
@@ -40195,6 +40393,7 @@ export {
|
|
|
40195
40393
|
SyntheticOnDemandFailedExecutionStatusExecutionStage,
|
|
40196
40394
|
SyntheticOnDemandMonitorExecutionsClient,
|
|
40197
40395
|
SyntheticTagWithSourceDtoSource,
|
|
40396
|
+
TenantTokenRotationStatusStatus,
|
|
40198
40397
|
UpdateJavaScriptMappingFileMetadataAliasQueryFileType,
|
|
40199
40398
|
UpdateJavaScriptMappingFileMetadataPathFileType,
|
|
40200
40399
|
UpdateJobAgType,
|