@azure-rest/load-testing 1.1.0-beta.1 → 1.2.0-beta.1
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 +12 -0
- package/LICENSE +1 -1
- package/README.md +12 -13
- package/dist/browser/azureLoadTesting.js +14 -12
- package/dist/browser/azureLoadTesting.js.map +1 -1
- package/dist/browser/clientDefinitions.d.ts +66 -34
- package/dist/browser/clientDefinitions.js.map +1 -1
- package/dist/browser/getFileValidationPoller.js +16 -11
- package/dist/browser/getFileValidationPoller.js.map +1 -1
- package/dist/browser/getTestProfileRunCompletionPoller.js +16 -11
- package/dist/browser/getTestProfileRunCompletionPoller.js.map +1 -1
- package/dist/browser/getTestRunCompletionPoller.js +16 -11
- package/dist/browser/getTestRunCompletionPoller.js.map +1 -1
- package/dist/browser/index.d.ts +6 -6
- package/dist/browser/index.js +1 -7
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/isUnexpected.d.ts +15 -9
- package/dist/browser/isUnexpected.js +21 -13
- package/dist/browser/isUnexpected.js.map +1 -1
- package/dist/browser/models.d.ts +205 -172
- package/dist/browser/models.js.map +1 -1
- package/dist/browser/outputModels.d.ts +290 -208
- package/dist/browser/outputModels.js.map +1 -1
- package/dist/browser/paginateHelper.js +43 -73
- package/dist/browser/paginateHelper.js.map +1 -1
- package/dist/browser/parameters.d.ts +107 -66
- package/dist/browser/parameters.js.map +1 -1
- package/dist/browser/pollingHelper.d.ts +82 -4
- package/dist/browser/pollingHelper.js +119 -15
- package/dist/browser/pollingHelper.js.map +1 -1
- package/dist/browser/responses.d.ts +234 -121
- package/dist/browser/responses.js.map +1 -1
- package/dist/commonjs/azureLoadTesting.js +53 -45
- package/dist/commonjs/azureLoadTesting.js.map +7 -1
- package/dist/commonjs/clientDefinitions.d.ts +66 -34
- package/dist/commonjs/clientDefinitions.js +15 -5
- package/dist/commonjs/clientDefinitions.js.map +7 -1
- package/dist/commonjs/getFileValidationPoller.js +151 -137
- package/dist/commonjs/getFileValidationPoller.js.map +7 -1
- package/dist/commonjs/getTestProfileRunCompletionPoller.js +139 -127
- package/dist/commonjs/getTestProfileRunCompletionPoller.js.map +7 -1
- package/dist/commonjs/getTestRunCompletionPoller.js +139 -125
- package/dist/commonjs/getTestRunCompletionPoller.js.map +7 -1
- package/dist/commonjs/index.d.ts +6 -6
- package/dist/commonjs/index.js +46 -20
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/isUnexpected.d.ts +15 -9
- package/dist/commonjs/isUnexpected.js +118 -105
- package/dist/commonjs/isUnexpected.js.map +7 -1
- package/dist/commonjs/logger.js +28 -8
- package/dist/commonjs/logger.js.map +7 -1
- package/dist/commonjs/models.d.ts +205 -172
- package/dist/commonjs/models.js +15 -5
- package/dist/commonjs/models.js.map +7 -1
- package/dist/commonjs/outputModels.d.ts +290 -208
- package/dist/commonjs/outputModels.js +15 -5
- package/dist/commonjs/outputModels.js.map +7 -1
- package/dist/commonjs/paginateHelper.js +118 -158
- package/dist/commonjs/paginateHelper.js.map +7 -1
- package/dist/commonjs/parameters.d.ts +107 -66
- package/dist/commonjs/parameters.js +15 -5
- package/dist/commonjs/parameters.js.map +7 -1
- package/dist/commonjs/pollingHelper.d.ts +82 -4
- package/dist/commonjs/pollingHelper.js +143 -24
- package/dist/commonjs/pollingHelper.js.map +7 -1
- package/dist/commonjs/responses.d.ts +234 -121
- package/dist/commonjs/responses.js +15 -5
- package/dist/commonjs/responses.js.map +7 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/commonjs/util/LROUtil.js +76 -54
- package/dist/commonjs/util/LROUtil.js.map +7 -1
- package/dist/esm/azureLoadTesting.js +32 -40
- package/dist/esm/azureLoadTesting.js.map +7 -1
- package/dist/esm/clientDefinitions.d.ts +66 -34
- package/dist/esm/clientDefinitions.js +0 -4
- package/dist/esm/clientDefinitions.js.map +7 -1
- package/dist/esm/getFileValidationPoller.js +126 -132
- package/dist/esm/getFileValidationPoller.js.map +7 -1
- package/dist/esm/getTestProfileRunCompletionPoller.js +114 -122
- package/dist/esm/getTestProfileRunCompletionPoller.js.map +7 -1
- package/dist/esm/getTestRunCompletionPoller.js +114 -120
- package/dist/esm/getTestRunCompletionPoller.js.map +7 -1
- package/dist/esm/index.d.ts +6 -6
- package/dist/esm/index.js +5 -11
- package/dist/esm/index.js.map +7 -1
- package/dist/esm/isUnexpected.d.ts +15 -9
- package/dist/esm/isUnexpected.js +96 -103
- package/dist/esm/isUnexpected.js.map +7 -1
- package/dist/esm/logger.js +4 -4
- package/dist/esm/logger.js.map +7 -1
- package/dist/esm/models.d.ts +205 -172
- package/dist/esm/models.js +0 -4
- package/dist/esm/models.js.map +7 -1
- package/dist/esm/outputModels.d.ts +290 -208
- package/dist/esm/outputModels.js +0 -4
- package/dist/esm/outputModels.js.map +7 -1
- package/dist/esm/paginateHelper.js +95 -155
- package/dist/esm/paginateHelper.js.map +7 -1
- package/dist/esm/parameters.d.ts +107 -66
- package/dist/esm/parameters.js +0 -4
- package/dist/esm/parameters.js.map +7 -1
- package/dist/esm/pollingHelper.d.ts +82 -4
- package/dist/esm/pollingHelper.js +117 -18
- package/dist/esm/pollingHelper.js.map +7 -1
- package/dist/esm/responses.d.ts +234 -121
- package/dist/esm/responses.js +0 -4
- package/dist/esm/responses.js.map +7 -1
- package/dist/esm/util/LROUtil.js +52 -50
- package/dist/esm/util/LROUtil.js.map +7 -1
- package/dist/react-native/azureLoadTesting.js +14 -12
- package/dist/react-native/azureLoadTesting.js.map +1 -1
- package/dist/react-native/clientDefinitions.d.ts +66 -34
- package/dist/react-native/clientDefinitions.js.map +1 -1
- package/dist/react-native/getFileValidationPoller.js +16 -11
- package/dist/react-native/getFileValidationPoller.js.map +1 -1
- package/dist/react-native/getTestProfileRunCompletionPoller.js +16 -11
- package/dist/react-native/getTestProfileRunCompletionPoller.js.map +1 -1
- package/dist/react-native/getTestRunCompletionPoller.js +16 -11
- package/dist/react-native/getTestRunCompletionPoller.js.map +1 -1
- package/dist/react-native/index.d.ts +6 -6
- package/dist/react-native/index.js +1 -7
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/isUnexpected.d.ts +15 -9
- package/dist/react-native/isUnexpected.js +21 -13
- package/dist/react-native/isUnexpected.js.map +1 -1
- package/dist/react-native/models.d.ts +205 -172
- package/dist/react-native/models.js.map +1 -1
- package/dist/react-native/outputModels.d.ts +290 -208
- package/dist/react-native/outputModels.js.map +1 -1
- package/dist/react-native/paginateHelper.js +43 -73
- package/dist/react-native/paginateHelper.js.map +1 -1
- package/dist/react-native/parameters.d.ts +107 -66
- package/dist/react-native/parameters.js.map +1 -1
- package/dist/react-native/pollingHelper.d.ts +82 -4
- package/dist/react-native/pollingHelper.js +119 -15
- package/dist/react-native/pollingHelper.js.map +1 -1
- package/dist/react-native/responses.d.ts +234 -121
- package/dist/react-native/responses.js.map +1 -1
- package/package.json +69 -86
- package/review/{load-testing.api.md → load-testing-node.api.md} +420 -23
- package/dist/browser/azureLoadTesting.d.ts.map +0 -1
- package/dist/browser/clientDefinitions.d.ts.map +0 -1
- package/dist/browser/getFileValidationPoller.d.ts.map +0 -1
- package/dist/browser/getTestProfileRunCompletionPoller.d.ts.map +0 -1
- package/dist/browser/getTestRunCompletionPoller.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/isUnexpected.d.ts.map +0 -1
- package/dist/browser/logger.d.ts.map +0 -1
- package/dist/browser/models.d.ts.map +0 -1
- package/dist/browser/outputModels.d.ts.map +0 -1
- package/dist/browser/paginateHelper.d.ts.map +0 -1
- package/dist/browser/parameters.d.ts.map +0 -1
- package/dist/browser/pollingHelper.d.ts.map +0 -1
- package/dist/browser/responses.d.ts.map +0 -1
- package/dist/browser/util/LROUtil.d.ts.map +0 -1
- package/dist/commonjs/azureLoadTesting.d.ts.map +0 -1
- package/dist/commonjs/clientDefinitions.d.ts.map +0 -1
- package/dist/commonjs/getFileValidationPoller.d.ts.map +0 -1
- package/dist/commonjs/getTestProfileRunCompletionPoller.d.ts.map +0 -1
- package/dist/commonjs/getTestRunCompletionPoller.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/isUnexpected.d.ts.map +0 -1
- package/dist/commonjs/logger.d.ts.map +0 -1
- package/dist/commonjs/models.d.ts.map +0 -1
- package/dist/commonjs/outputModels.d.ts.map +0 -1
- package/dist/commonjs/paginateHelper.d.ts.map +0 -1
- package/dist/commonjs/parameters.d.ts.map +0 -1
- package/dist/commonjs/pollingHelper.d.ts.map +0 -1
- package/dist/commonjs/responses.d.ts.map +0 -1
- package/dist/commonjs/util/LROUtil.d.ts.map +0 -1
- package/dist/esm/azureLoadTesting.d.ts.map +0 -1
- package/dist/esm/clientDefinitions.d.ts.map +0 -1
- package/dist/esm/getFileValidationPoller.d.ts.map +0 -1
- package/dist/esm/getTestProfileRunCompletionPoller.d.ts.map +0 -1
- package/dist/esm/getTestRunCompletionPoller.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/isUnexpected.d.ts.map +0 -1
- package/dist/esm/logger.d.ts.map +0 -1
- package/dist/esm/models.d.ts.map +0 -1
- package/dist/esm/outputModels.d.ts.map +0 -1
- package/dist/esm/paginateHelper.d.ts.map +0 -1
- package/dist/esm/parameters.d.ts.map +0 -1
- package/dist/esm/pollingHelper.d.ts.map +0 -1
- package/dist/esm/responses.d.ts.map +0 -1
- package/dist/esm/util/LROUtil.d.ts.map +0 -1
- package/dist/react-native/azureLoadTesting.d.ts.map +0 -1
- package/dist/react-native/clientDefinitions.d.ts.map +0 -1
- package/dist/react-native/getFileValidationPoller.d.ts.map +0 -1
- package/dist/react-native/getTestProfileRunCompletionPoller.d.ts.map +0 -1
- package/dist/react-native/getTestRunCompletionPoller.d.ts.map +0 -1
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/isUnexpected.d.ts.map +0 -1
- package/dist/react-native/logger.d.ts.map +0 -1
- package/dist/react-native/models.d.ts.map +0 -1
- package/dist/react-native/outputModels.d.ts.map +0 -1
- package/dist/react-native/paginateHelper.d.ts.map +0 -1
- package/dist/react-native/parameters.d.ts.map +0 -1
- package/dist/react-native/pollingHelper.d.ts.map +0 -1
- package/dist/react-native/responses.d.ts.map +0 -1
- package/dist/react-native/util/LROUtil.d.ts.map +0 -1
package/dist/esm/responses.d.ts
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import type { RawHttpHeaders } from "@azure/core-rest-pipeline";
|
|
2
2
|
import type { HttpResponse, ErrorResponse } from "@azure-rest/core-client";
|
|
3
|
-
import type { TestOutput, PagedTestOutput, TestFileInfoOutput, PagedTestFileInfoOutput, TestAppComponentsOutput, TestServerMetricsConfigurationOutput, TestProfileOutput, PagedTestProfileOutput, TestRunOutput, PagedTestRunOutput, TestRunFileInfoOutput, MetricNamespaceCollectionOutput, MetricDefinitionCollectionOutput, MetricsOutput, DimensionValueListOutput, TestRunAppComponentsOutput, TestRunServerMetricsConfigurationOutput, TestProfileRunOutput, PagedTestProfileRunOutput
|
|
3
|
+
import type { OperationStatusOutput, TestOutput, PagedTestOutput, ResourceOperationStatusTestErrorOutput, TestFileInfoOutput, PagedTestFileInfoOutput, TestAppComponentsOutput, TestServerMetricsConfigurationOutput, TestProfileOutput, PagedTestProfileOutput, TriggerOutput, PagedTriggerOutput, NotificationRuleOutput, PagedNotificationRuleOutput, TestRunOutput, PagedTestRunOutput, TestRunFileInfoOutput, TestRunInsightsOutput, MetricNamespaceCollectionOutput, MetricDefinitionCollectionOutput, MetricsOutput, DimensionValueListOutput, TestRunAppComponentsOutput, TestRunServerMetricsConfigurationOutput, TestProfileRunOutput, PagedTestProfileRunOutput } from "./outputModels.js";
|
|
4
|
+
/** The request has succeeded. */
|
|
5
|
+
export interface OperationsGetStatus200Response extends HttpResponse {
|
|
6
|
+
status: "200";
|
|
7
|
+
body: OperationStatusOutput;
|
|
8
|
+
}
|
|
9
|
+
export interface OperationsGetStatusDefaultHeaders {
|
|
10
|
+
/** String error code indicating what went wrong. */
|
|
11
|
+
"x-ms-error-code"?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface OperationsGetStatusDefaultResponse extends HttpResponse {
|
|
14
|
+
status: string;
|
|
15
|
+
body: ErrorResponse;
|
|
16
|
+
headers: RawHttpHeaders & OperationsGetStatusDefaultHeaders;
|
|
17
|
+
}
|
|
4
18
|
/** The request has succeeded. */
|
|
5
19
|
export interface LoadTestAdministrationCreateOrUpdateTest200Response extends HttpResponse {
|
|
6
20
|
status: "200";
|
|
@@ -61,6 +75,54 @@ export interface LoadTestAdministrationListTestsDefaultResponse extends HttpResp
|
|
|
61
75
|
body: ErrorResponse;
|
|
62
76
|
headers: RawHttpHeaders & LoadTestAdministrationListTestsDefaultHeaders;
|
|
63
77
|
}
|
|
78
|
+
export interface LoadTestAdministrationCloneTest202Headers {
|
|
79
|
+
/** The location for monitoring the operation state. */
|
|
80
|
+
"operation-location": string;
|
|
81
|
+
}
|
|
82
|
+
/** The request has been accepted for processing, but processing has not yet completed. */
|
|
83
|
+
export interface LoadTestAdministrationCloneTest202Response extends HttpResponse {
|
|
84
|
+
status: "202";
|
|
85
|
+
body: ResourceOperationStatusTestErrorOutput;
|
|
86
|
+
headers: RawHttpHeaders & LoadTestAdministrationCloneTest202Headers;
|
|
87
|
+
}
|
|
88
|
+
export interface LoadTestAdministrationCloneTestDefaultHeaders {
|
|
89
|
+
/** String error code indicating what went wrong. */
|
|
90
|
+
"x-ms-error-code"?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface LoadTestAdministrationCloneTestDefaultResponse extends HttpResponse {
|
|
93
|
+
status: string;
|
|
94
|
+
body: ErrorResponse;
|
|
95
|
+
headers: RawHttpHeaders & LoadTestAdministrationCloneTestDefaultHeaders;
|
|
96
|
+
}
|
|
97
|
+
/** The final response for long-running cloneTest operation */
|
|
98
|
+
export interface LoadTestAdministrationCloneTestLogicalResponse extends HttpResponse {
|
|
99
|
+
status: "200";
|
|
100
|
+
body: ResourceOperationStatusTestErrorOutput;
|
|
101
|
+
}
|
|
102
|
+
export interface LoadTestAdministrationGenerateTestPlanRecommendations202Headers {
|
|
103
|
+
/** The location for monitoring the operation state. */
|
|
104
|
+
"operation-location": string;
|
|
105
|
+
}
|
|
106
|
+
/** The request has been accepted for processing, but processing has not yet completed. */
|
|
107
|
+
export interface LoadTestAdministrationGenerateTestPlanRecommendations202Response extends HttpResponse {
|
|
108
|
+
status: "202";
|
|
109
|
+
body: ResourceOperationStatusTestErrorOutput;
|
|
110
|
+
headers: RawHttpHeaders & LoadTestAdministrationGenerateTestPlanRecommendations202Headers;
|
|
111
|
+
}
|
|
112
|
+
export interface LoadTestAdministrationGenerateTestPlanRecommendationsDefaultHeaders {
|
|
113
|
+
/** String error code indicating what went wrong. */
|
|
114
|
+
"x-ms-error-code"?: string;
|
|
115
|
+
}
|
|
116
|
+
export interface LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse extends HttpResponse {
|
|
117
|
+
status: string;
|
|
118
|
+
body: ErrorResponse;
|
|
119
|
+
headers: RawHttpHeaders & LoadTestAdministrationGenerateTestPlanRecommendationsDefaultHeaders;
|
|
120
|
+
}
|
|
121
|
+
/** The final response for long-running generateTestPlanRecommendations operation */
|
|
122
|
+
export interface LoadTestAdministrationGenerateTestPlanRecommendationsLogicalResponse extends HttpResponse {
|
|
123
|
+
status: "200";
|
|
124
|
+
body: ResourceOperationStatusTestErrorOutput;
|
|
125
|
+
}
|
|
64
126
|
/** The request has succeeded and a new resource has been created as a result. */
|
|
65
127
|
export interface LoadTestAdministrationUploadTestFile201Response extends HttpResponse {
|
|
66
128
|
status: "201";
|
|
@@ -243,6 +305,126 @@ export interface TestProfileAdministrationListTestProfilesDefaultResponse extend
|
|
|
243
305
|
headers: RawHttpHeaders & TestProfileAdministrationListTestProfilesDefaultHeaders;
|
|
244
306
|
}
|
|
245
307
|
/** The request has succeeded. */
|
|
308
|
+
export interface TriggerAdministrationGetTrigger200Response extends HttpResponse {
|
|
309
|
+
status: "200";
|
|
310
|
+
body: TriggerOutput;
|
|
311
|
+
}
|
|
312
|
+
export interface TriggerAdministrationGetTriggerDefaultHeaders {
|
|
313
|
+
/** String error code indicating what went wrong. */
|
|
314
|
+
"x-ms-error-code"?: string;
|
|
315
|
+
}
|
|
316
|
+
export interface TriggerAdministrationGetTriggerDefaultResponse extends HttpResponse {
|
|
317
|
+
status: string;
|
|
318
|
+
body: ErrorResponse;
|
|
319
|
+
headers: RawHttpHeaders & TriggerAdministrationGetTriggerDefaultHeaders;
|
|
320
|
+
}
|
|
321
|
+
/** The request has succeeded. */
|
|
322
|
+
export interface TriggerAdministrationCreateOrUpdateTrigger200Response extends HttpResponse {
|
|
323
|
+
status: "200";
|
|
324
|
+
body: TriggerOutput;
|
|
325
|
+
}
|
|
326
|
+
/** The request has succeeded and a new resource has been created as a result. */
|
|
327
|
+
export interface TriggerAdministrationCreateOrUpdateTrigger201Response extends HttpResponse {
|
|
328
|
+
status: "201";
|
|
329
|
+
body: TriggerOutput;
|
|
330
|
+
}
|
|
331
|
+
export interface TriggerAdministrationCreateOrUpdateTriggerDefaultHeaders {
|
|
332
|
+
/** String error code indicating what went wrong. */
|
|
333
|
+
"x-ms-error-code"?: string;
|
|
334
|
+
}
|
|
335
|
+
export interface TriggerAdministrationCreateOrUpdateTriggerDefaultResponse extends HttpResponse {
|
|
336
|
+
status: string;
|
|
337
|
+
body: ErrorResponse;
|
|
338
|
+
headers: RawHttpHeaders & TriggerAdministrationCreateOrUpdateTriggerDefaultHeaders;
|
|
339
|
+
}
|
|
340
|
+
/** There is no content to send for this request, but the headers may be useful. */
|
|
341
|
+
export interface TriggerAdministrationDeleteTrigger204Response extends HttpResponse {
|
|
342
|
+
status: "204";
|
|
343
|
+
}
|
|
344
|
+
export interface TriggerAdministrationDeleteTriggerDefaultHeaders {
|
|
345
|
+
/** String error code indicating what went wrong. */
|
|
346
|
+
"x-ms-error-code"?: string;
|
|
347
|
+
}
|
|
348
|
+
export interface TriggerAdministrationDeleteTriggerDefaultResponse extends HttpResponse {
|
|
349
|
+
status: string;
|
|
350
|
+
body: ErrorResponse;
|
|
351
|
+
headers: RawHttpHeaders & TriggerAdministrationDeleteTriggerDefaultHeaders;
|
|
352
|
+
}
|
|
353
|
+
/** The request has succeeded. */
|
|
354
|
+
export interface TriggerAdministrationListTrigger200Response extends HttpResponse {
|
|
355
|
+
status: "200";
|
|
356
|
+
body: PagedTriggerOutput;
|
|
357
|
+
}
|
|
358
|
+
export interface TriggerAdministrationListTriggerDefaultHeaders {
|
|
359
|
+
/** String error code indicating what went wrong. */
|
|
360
|
+
"x-ms-error-code"?: string;
|
|
361
|
+
}
|
|
362
|
+
export interface TriggerAdministrationListTriggerDefaultResponse extends HttpResponse {
|
|
363
|
+
status: string;
|
|
364
|
+
body: ErrorResponse;
|
|
365
|
+
headers: RawHttpHeaders & TriggerAdministrationListTriggerDefaultHeaders;
|
|
366
|
+
}
|
|
367
|
+
/** The request has succeeded. */
|
|
368
|
+
export interface NotificationRuleAdministrationGetNotificationRule200Response extends HttpResponse {
|
|
369
|
+
status: "200";
|
|
370
|
+
body: NotificationRuleOutput;
|
|
371
|
+
}
|
|
372
|
+
export interface NotificationRuleAdministrationGetNotificationRuleDefaultHeaders {
|
|
373
|
+
/** String error code indicating what went wrong. */
|
|
374
|
+
"x-ms-error-code"?: string;
|
|
375
|
+
}
|
|
376
|
+
export interface NotificationRuleAdministrationGetNotificationRuleDefaultResponse extends HttpResponse {
|
|
377
|
+
status: string;
|
|
378
|
+
body: ErrorResponse;
|
|
379
|
+
headers: RawHttpHeaders & NotificationRuleAdministrationGetNotificationRuleDefaultHeaders;
|
|
380
|
+
}
|
|
381
|
+
/** The request has succeeded. */
|
|
382
|
+
export interface NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response extends HttpResponse {
|
|
383
|
+
status: "200";
|
|
384
|
+
body: NotificationRuleOutput;
|
|
385
|
+
}
|
|
386
|
+
/** The request has succeeded and a new resource has been created as a result. */
|
|
387
|
+
export interface NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response extends HttpResponse {
|
|
388
|
+
status: "201";
|
|
389
|
+
body: NotificationRuleOutput;
|
|
390
|
+
}
|
|
391
|
+
export interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultHeaders {
|
|
392
|
+
/** String error code indicating what went wrong. */
|
|
393
|
+
"x-ms-error-code"?: string;
|
|
394
|
+
}
|
|
395
|
+
export interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse extends HttpResponse {
|
|
396
|
+
status: string;
|
|
397
|
+
body: ErrorResponse;
|
|
398
|
+
headers: RawHttpHeaders & NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultHeaders;
|
|
399
|
+
}
|
|
400
|
+
/** There is no content to send for this request, but the headers may be useful. */
|
|
401
|
+
export interface NotificationRuleAdministrationDeleteNotificationRule204Response extends HttpResponse {
|
|
402
|
+
status: "204";
|
|
403
|
+
}
|
|
404
|
+
export interface NotificationRuleAdministrationDeleteNotificationRuleDefaultHeaders {
|
|
405
|
+
/** String error code indicating what went wrong. */
|
|
406
|
+
"x-ms-error-code"?: string;
|
|
407
|
+
}
|
|
408
|
+
export interface NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse extends HttpResponse {
|
|
409
|
+
status: string;
|
|
410
|
+
body: ErrorResponse;
|
|
411
|
+
headers: RawHttpHeaders & NotificationRuleAdministrationDeleteNotificationRuleDefaultHeaders;
|
|
412
|
+
}
|
|
413
|
+
/** The request has succeeded. */
|
|
414
|
+
export interface NotificationRuleAdministrationListNotificationRule200Response extends HttpResponse {
|
|
415
|
+
status: "200";
|
|
416
|
+
body: PagedNotificationRuleOutput;
|
|
417
|
+
}
|
|
418
|
+
export interface NotificationRuleAdministrationListNotificationRuleDefaultHeaders {
|
|
419
|
+
/** String error code indicating what went wrong. */
|
|
420
|
+
"x-ms-error-code"?: string;
|
|
421
|
+
}
|
|
422
|
+
export interface NotificationRuleAdministrationListNotificationRuleDefaultResponse extends HttpResponse {
|
|
423
|
+
status: string;
|
|
424
|
+
body: ErrorResponse;
|
|
425
|
+
headers: RawHttpHeaders & NotificationRuleAdministrationListNotificationRuleDefaultHeaders;
|
|
426
|
+
}
|
|
427
|
+
/** The request has succeeded. */
|
|
246
428
|
export interface LoadTestRunGetTestRun200Response extends HttpResponse {
|
|
247
429
|
status: "200";
|
|
248
430
|
body: TestRunOutput;
|
|
@@ -331,6 +513,57 @@ export interface LoadTestRunStopDefaultResponse extends HttpResponse {
|
|
|
331
513
|
headers: RawHttpHeaders & LoadTestRunStopDefaultHeaders;
|
|
332
514
|
}
|
|
333
515
|
/** The request has succeeded. */
|
|
516
|
+
export interface LoadTestRunGetLatestInsights200Response extends HttpResponse {
|
|
517
|
+
status: "200";
|
|
518
|
+
body: TestRunInsightsOutput;
|
|
519
|
+
}
|
|
520
|
+
export interface LoadTestRunGetLatestInsightsDefaultHeaders {
|
|
521
|
+
/** String error code indicating what went wrong. */
|
|
522
|
+
"x-ms-error-code"?: string;
|
|
523
|
+
}
|
|
524
|
+
export interface LoadTestRunGetLatestInsightsDefaultResponse extends HttpResponse {
|
|
525
|
+
status: string;
|
|
526
|
+
body: ErrorResponse;
|
|
527
|
+
headers: RawHttpHeaders & LoadTestRunGetLatestInsightsDefaultHeaders;
|
|
528
|
+
}
|
|
529
|
+
/** The request has succeeded. */
|
|
530
|
+
export interface LoadTestRunUpdateLatestInsights200Response extends HttpResponse {
|
|
531
|
+
status: "200";
|
|
532
|
+
body: TestRunInsightsOutput;
|
|
533
|
+
}
|
|
534
|
+
export interface LoadTestRunUpdateLatestInsightsDefaultHeaders {
|
|
535
|
+
/** String error code indicating what went wrong. */
|
|
536
|
+
"x-ms-error-code"?: string;
|
|
537
|
+
}
|
|
538
|
+
export interface LoadTestRunUpdateLatestInsightsDefaultResponse extends HttpResponse {
|
|
539
|
+
status: string;
|
|
540
|
+
body: ErrorResponse;
|
|
541
|
+
headers: RawHttpHeaders & LoadTestRunUpdateLatestInsightsDefaultHeaders;
|
|
542
|
+
}
|
|
543
|
+
export interface LoadTestRunGenerateInsights202Headers {
|
|
544
|
+
"operation-location": string;
|
|
545
|
+
}
|
|
546
|
+
/** The request has been accepted for processing, but processing has not yet completed. */
|
|
547
|
+
export interface LoadTestRunGenerateInsights202Response extends HttpResponse {
|
|
548
|
+
status: "202";
|
|
549
|
+
body: OperationStatusOutput;
|
|
550
|
+
headers: RawHttpHeaders & LoadTestRunGenerateInsights202Headers;
|
|
551
|
+
}
|
|
552
|
+
export interface LoadTestRunGenerateInsightsDefaultHeaders {
|
|
553
|
+
/** String error code indicating what went wrong. */
|
|
554
|
+
"x-ms-error-code"?: string;
|
|
555
|
+
}
|
|
556
|
+
export interface LoadTestRunGenerateInsightsDefaultResponse extends HttpResponse {
|
|
557
|
+
status: string;
|
|
558
|
+
body: ErrorResponse;
|
|
559
|
+
headers: RawHttpHeaders & LoadTestRunGenerateInsightsDefaultHeaders;
|
|
560
|
+
}
|
|
561
|
+
/** The final response for long-running generateInsights operation */
|
|
562
|
+
export interface LoadTestRunGenerateInsightsLogicalResponse extends HttpResponse {
|
|
563
|
+
status: "200";
|
|
564
|
+
body: OperationStatusOutput;
|
|
565
|
+
}
|
|
566
|
+
/** The request has succeeded. */
|
|
334
567
|
export interface LoadTestRunListMetricNamespaces200Response extends HttpResponse {
|
|
335
568
|
status: "200";
|
|
336
569
|
body: MetricNamespaceCollectionOutput;
|
|
@@ -526,124 +759,4 @@ export interface TestProfileRunAdministrationListTestProfileRunsDefaultResponse
|
|
|
526
759
|
body: ErrorResponse;
|
|
527
760
|
headers: RawHttpHeaders & TestProfileRunAdministrationListTestProfileRunsDefaultHeaders;
|
|
528
761
|
}
|
|
529
|
-
/** The request has succeeded. */
|
|
530
|
-
export interface TriggerAdministrationGetTrigger200Response extends HttpResponse {
|
|
531
|
-
status: "200";
|
|
532
|
-
body: TriggerOutput;
|
|
533
|
-
}
|
|
534
|
-
export interface TriggerAdministrationGetTriggerDefaultHeaders {
|
|
535
|
-
/** String error code indicating what went wrong. */
|
|
536
|
-
"x-ms-error-code"?: string;
|
|
537
|
-
}
|
|
538
|
-
export interface TriggerAdministrationGetTriggerDefaultResponse extends HttpResponse {
|
|
539
|
-
status: string;
|
|
540
|
-
body: ErrorResponse;
|
|
541
|
-
headers: RawHttpHeaders & TriggerAdministrationGetTriggerDefaultHeaders;
|
|
542
|
-
}
|
|
543
|
-
/** The request has succeeded. */
|
|
544
|
-
export interface TriggerAdministrationCreateOrUpdateTrigger200Response extends HttpResponse {
|
|
545
|
-
status: "200";
|
|
546
|
-
body: TriggerOutput;
|
|
547
|
-
}
|
|
548
|
-
/** The request has succeeded and a new resource has been created as a result. */
|
|
549
|
-
export interface TriggerAdministrationCreateOrUpdateTrigger201Response extends HttpResponse {
|
|
550
|
-
status: "201";
|
|
551
|
-
body: TriggerOutput;
|
|
552
|
-
}
|
|
553
|
-
export interface TriggerAdministrationCreateOrUpdateTriggerDefaultHeaders {
|
|
554
|
-
/** String error code indicating what went wrong. */
|
|
555
|
-
"x-ms-error-code"?: string;
|
|
556
|
-
}
|
|
557
|
-
export interface TriggerAdministrationCreateOrUpdateTriggerDefaultResponse extends HttpResponse {
|
|
558
|
-
status: string;
|
|
559
|
-
body: ErrorResponse;
|
|
560
|
-
headers: RawHttpHeaders & TriggerAdministrationCreateOrUpdateTriggerDefaultHeaders;
|
|
561
|
-
}
|
|
562
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
563
|
-
export interface TriggerAdministrationDeleteTrigger204Response extends HttpResponse {
|
|
564
|
-
status: "204";
|
|
565
|
-
}
|
|
566
|
-
export interface TriggerAdministrationDeleteTriggerDefaultHeaders {
|
|
567
|
-
/** String error code indicating what went wrong. */
|
|
568
|
-
"x-ms-error-code"?: string;
|
|
569
|
-
}
|
|
570
|
-
export interface TriggerAdministrationDeleteTriggerDefaultResponse extends HttpResponse {
|
|
571
|
-
status: string;
|
|
572
|
-
body: ErrorResponse;
|
|
573
|
-
headers: RawHttpHeaders & TriggerAdministrationDeleteTriggerDefaultHeaders;
|
|
574
|
-
}
|
|
575
|
-
/** The request has succeeded. */
|
|
576
|
-
export interface TriggerAdministrationListTrigger200Response extends HttpResponse {
|
|
577
|
-
status: "200";
|
|
578
|
-
body: PagedTriggerOutput;
|
|
579
|
-
}
|
|
580
|
-
export interface TriggerAdministrationListTriggerDefaultHeaders {
|
|
581
|
-
/** String error code indicating what went wrong. */
|
|
582
|
-
"x-ms-error-code"?: string;
|
|
583
|
-
}
|
|
584
|
-
export interface TriggerAdministrationListTriggerDefaultResponse extends HttpResponse {
|
|
585
|
-
status: string;
|
|
586
|
-
body: ErrorResponse;
|
|
587
|
-
headers: RawHttpHeaders & TriggerAdministrationListTriggerDefaultHeaders;
|
|
588
|
-
}
|
|
589
|
-
/** The request has succeeded. */
|
|
590
|
-
export interface NotificationRuleAdministrationGetNotificationRule200Response extends HttpResponse {
|
|
591
|
-
status: "200";
|
|
592
|
-
body: NotificationRuleOutput;
|
|
593
|
-
}
|
|
594
|
-
export interface NotificationRuleAdministrationGetNotificationRuleDefaultHeaders {
|
|
595
|
-
/** String error code indicating what went wrong. */
|
|
596
|
-
"x-ms-error-code"?: string;
|
|
597
|
-
}
|
|
598
|
-
export interface NotificationRuleAdministrationGetNotificationRuleDefaultResponse extends HttpResponse {
|
|
599
|
-
status: string;
|
|
600
|
-
body: ErrorResponse;
|
|
601
|
-
headers: RawHttpHeaders & NotificationRuleAdministrationGetNotificationRuleDefaultHeaders;
|
|
602
|
-
}
|
|
603
|
-
/** The request has succeeded. */
|
|
604
|
-
export interface NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response extends HttpResponse {
|
|
605
|
-
status: "200";
|
|
606
|
-
body: NotificationRuleOutput;
|
|
607
|
-
}
|
|
608
|
-
/** The request has succeeded and a new resource has been created as a result. */
|
|
609
|
-
export interface NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response extends HttpResponse {
|
|
610
|
-
status: "201";
|
|
611
|
-
body: NotificationRuleOutput;
|
|
612
|
-
}
|
|
613
|
-
export interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultHeaders {
|
|
614
|
-
/** String error code indicating what went wrong. */
|
|
615
|
-
"x-ms-error-code"?: string;
|
|
616
|
-
}
|
|
617
|
-
export interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse extends HttpResponse {
|
|
618
|
-
status: string;
|
|
619
|
-
body: ErrorResponse;
|
|
620
|
-
headers: RawHttpHeaders & NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultHeaders;
|
|
621
|
-
}
|
|
622
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
623
|
-
export interface NotificationRuleAdministrationDeleteNotificationRule204Response extends HttpResponse {
|
|
624
|
-
status: "204";
|
|
625
|
-
}
|
|
626
|
-
export interface NotificationRuleAdministrationDeleteNotificationRuleDefaultHeaders {
|
|
627
|
-
/** String error code indicating what went wrong. */
|
|
628
|
-
"x-ms-error-code"?: string;
|
|
629
|
-
}
|
|
630
|
-
export interface NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse extends HttpResponse {
|
|
631
|
-
status: string;
|
|
632
|
-
body: ErrorResponse;
|
|
633
|
-
headers: RawHttpHeaders & NotificationRuleAdministrationDeleteNotificationRuleDefaultHeaders;
|
|
634
|
-
}
|
|
635
|
-
/** The request has succeeded. */
|
|
636
|
-
export interface NotificationRuleAdministrationListNotificationRule200Response extends HttpResponse {
|
|
637
|
-
status: "200";
|
|
638
|
-
body: PagedNotificationRuleOutput;
|
|
639
|
-
}
|
|
640
|
-
export interface NotificationRuleAdministrationListNotificationRuleDefaultHeaders {
|
|
641
|
-
/** String error code indicating what went wrong. */
|
|
642
|
-
"x-ms-error-code"?: string;
|
|
643
|
-
}
|
|
644
|
-
export interface NotificationRuleAdministrationListNotificationRuleDefaultResponse extends HttpResponse {
|
|
645
|
-
status: string;
|
|
646
|
-
body: ErrorResponse;
|
|
647
|
-
headers: RawHttpHeaders & NotificationRuleAdministrationListNotificationRuleDefaultHeaders;
|
|
648
|
-
}
|
|
649
762
|
//# sourceMappingURL=responses.d.ts.map
|
package/dist/esm/responses.js
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport type { HttpResponse, ErrorResponse } from \"@azure-rest/core-client\";\nimport type {\n TestOutput,\n PagedTestOutput,\n TestFileInfoOutput,\n PagedTestFileInfoOutput,\n TestAppComponentsOutput,\n TestServerMetricsConfigurationOutput,\n TestProfileOutput,\n PagedTestProfileOutput,\n TestRunOutput,\n PagedTestRunOutput,\n TestRunFileInfoOutput,\n MetricNamespaceCollectionOutput,\n MetricDefinitionCollectionOutput,\n MetricsOutput,\n DimensionValueListOutput,\n TestRunAppComponentsOutput,\n TestRunServerMetricsConfigurationOutput,\n TestProfileRunOutput,\n PagedTestProfileRunOutput,\n TriggerOutput,\n PagedTriggerOutput,\n NotificationRuleOutput,\n PagedNotificationRuleOutput,\n} from \"./outputModels.js\";\n\n/** The request has succeeded. */\nexport interface LoadTestAdministrationCreateOrUpdateTest200Response extends HttpResponse {\n status: \"200\";\n body: TestOutput;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface LoadTestAdministrationCreateOrUpdateTest201Response extends HttpResponse {\n status: \"201\";\n body: TestOutput;\n}\n\nexport interface LoadTestAdministrationCreateOrUpdateTestDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestAdministrationCreateOrUpdateTestDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestAdministrationCreateOrUpdateTestDefaultHeaders;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface LoadTestAdministrationDeleteTest204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface LoadTestAdministrationDeleteTestDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestAdministrationDeleteTestDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestAdministrationDeleteTestDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestAdministrationGetTest200Response extends HttpResponse {\n status: \"200\";\n body: TestOutput;\n}\n\nexport interface LoadTestAdministrationGetTestDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestAdministrationGetTestDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestAdministrationGetTestDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestAdministrationListTests200Response extends HttpResponse {\n status: \"200\";\n body: PagedTestOutput;\n}\n\nexport interface LoadTestAdministrationListTestsDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestAdministrationListTestsDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestAdministrationListTestsDefaultHeaders;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface LoadTestAdministrationUploadTestFile201Response extends HttpResponse {\n status: \"201\";\n body: TestFileInfoOutput;\n}\n\nexport interface LoadTestAdministrationUploadTestFileDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestAdministrationUploadTestFileDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestAdministrationUploadTestFileDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestAdministrationGetTestFile200Response extends HttpResponse {\n status: \"200\";\n body: TestFileInfoOutput;\n}\n\nexport interface LoadTestAdministrationGetTestFileDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestAdministrationGetTestFileDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestAdministrationGetTestFileDefaultHeaders;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface LoadTestAdministrationDeleteTestFile204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface LoadTestAdministrationDeleteTestFileDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestAdministrationDeleteTestFileDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestAdministrationDeleteTestFileDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestAdministrationListTestFiles200Response extends HttpResponse {\n status: \"200\";\n body: PagedTestFileInfoOutput;\n}\n\nexport interface LoadTestAdministrationListTestFilesDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestAdministrationListTestFilesDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestAdministrationListTestFilesDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestAdministrationCreateOrUpdateAppComponents200Response extends HttpResponse {\n status: \"200\";\n body: TestAppComponentsOutput;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface LoadTestAdministrationCreateOrUpdateAppComponents201Response extends HttpResponse {\n status: \"201\";\n body: TestAppComponentsOutput;\n}\n\nexport interface LoadTestAdministrationCreateOrUpdateAppComponentsDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestAdministrationCreateOrUpdateAppComponentsDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestAdministrationGetAppComponents200Response extends HttpResponse {\n status: \"200\";\n body: TestAppComponentsOutput;\n}\n\nexport interface LoadTestAdministrationGetAppComponentsDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestAdministrationGetAppComponentsDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestAdministrationGetAppComponentsDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response\n extends HttpResponse {\n status: \"200\";\n body: TestServerMetricsConfigurationOutput;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response\n extends HttpResponse {\n status: \"201\";\n body: TestServerMetricsConfigurationOutput;\n}\n\nexport interface LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestAdministrationGetServerMetricsConfig200Response extends HttpResponse {\n status: \"200\";\n body: TestServerMetricsConfigurationOutput;\n}\n\nexport interface LoadTestAdministrationGetServerMetricsConfigDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestAdministrationGetServerMetricsConfigDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestAdministrationGetServerMetricsConfigDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface TestProfileAdministrationCreateOrUpdateTestProfile200Response\n extends HttpResponse {\n status: \"200\";\n body: TestProfileOutput;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface TestProfileAdministrationCreateOrUpdateTestProfile201Response\n extends HttpResponse {\n status: \"201\";\n body: TestProfileOutput;\n}\n\nexport interface TestProfileAdministrationCreateOrUpdateTestProfileDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & TestProfileAdministrationCreateOrUpdateTestProfileDefaultHeaders;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface TestProfileAdministrationDeleteTestProfile204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface TestProfileAdministrationDeleteTestProfileDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface TestProfileAdministrationDeleteTestProfileDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & TestProfileAdministrationDeleteTestProfileDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface TestProfileAdministrationGetTestProfile200Response extends HttpResponse {\n status: \"200\";\n body: TestProfileOutput;\n}\n\nexport interface TestProfileAdministrationGetTestProfileDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface TestProfileAdministrationGetTestProfileDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & TestProfileAdministrationGetTestProfileDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface TestProfileAdministrationListTestProfiles200Response extends HttpResponse {\n status: \"200\";\n body: PagedTestProfileOutput;\n}\n\nexport interface TestProfileAdministrationListTestProfilesDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface TestProfileAdministrationListTestProfilesDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & TestProfileAdministrationListTestProfilesDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestRunGetTestRun200Response extends HttpResponse {\n status: \"200\";\n body: TestRunOutput;\n}\n\nexport interface LoadTestRunGetTestRunDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunGetTestRunDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunGetTestRunDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestRunCreateOrUpdateTestRun200Response extends HttpResponse {\n status: \"200\";\n body: TestRunOutput;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface LoadTestRunCreateOrUpdateTestRun201Response extends HttpResponse {\n status: \"201\";\n body: TestRunOutput;\n}\n\nexport interface LoadTestRunCreateOrUpdateTestRunDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunCreateOrUpdateTestRunDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunCreateOrUpdateTestRunDefaultHeaders;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface LoadTestRunDeleteTestRun204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface LoadTestRunDeleteTestRunDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunDeleteTestRunDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunDeleteTestRunDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestRunListTestRuns200Response extends HttpResponse {\n status: \"200\";\n body: PagedTestRunOutput;\n}\n\nexport interface LoadTestRunListTestRunsDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunListTestRunsDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunListTestRunsDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestRunGetTestRunFile200Response extends HttpResponse {\n status: \"200\";\n body: TestRunFileInfoOutput;\n}\n\nexport interface LoadTestRunGetTestRunFileDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunGetTestRunFileDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunGetTestRunFileDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestRunStop200Response extends HttpResponse {\n status: \"200\";\n body: TestRunOutput;\n}\n\nexport interface LoadTestRunStopDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunStopDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunStopDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestRunListMetricNamespaces200Response extends HttpResponse {\n status: \"200\";\n body: MetricNamespaceCollectionOutput;\n}\n\nexport interface LoadTestRunListMetricNamespacesDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunListMetricNamespacesDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunListMetricNamespacesDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestRunListMetricDefinitions200Response extends HttpResponse {\n status: \"200\";\n body: MetricDefinitionCollectionOutput;\n}\n\nexport interface LoadTestRunListMetricDefinitionsDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunListMetricDefinitionsDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunListMetricDefinitionsDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestRunListMetrics200Response extends HttpResponse {\n status: \"200\";\n body: MetricsOutput;\n}\n\nexport interface LoadTestRunListMetricsDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunListMetricsDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunListMetricsDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestRunListMetricDimensionValues200Response extends HttpResponse {\n status: \"200\";\n body: DimensionValueListOutput;\n}\n\nexport interface LoadTestRunListMetricDimensionValuesDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunListMetricDimensionValuesDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunListMetricDimensionValuesDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestRunCreateOrUpdateAppComponents200Response extends HttpResponse {\n status: \"200\";\n body: TestRunAppComponentsOutput;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface LoadTestRunCreateOrUpdateAppComponents201Response extends HttpResponse {\n status: \"201\";\n body: TestRunAppComponentsOutput;\n}\n\nexport interface LoadTestRunCreateOrUpdateAppComponentsDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunCreateOrUpdateAppComponentsDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunCreateOrUpdateAppComponentsDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestRunGetAppComponents200Response extends HttpResponse {\n status: \"200\";\n body: TestRunAppComponentsOutput;\n}\n\nexport interface LoadTestRunGetAppComponentsDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunGetAppComponentsDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunGetAppComponentsDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestRunCreateOrUpdateServerMetricsConfig200Response extends HttpResponse {\n status: \"200\";\n body: TestRunServerMetricsConfigurationOutput;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface LoadTestRunCreateOrUpdateServerMetricsConfig201Response extends HttpResponse {\n status: \"201\";\n body: TestRunServerMetricsConfigurationOutput;\n}\n\nexport interface LoadTestRunCreateOrUpdateServerMetricsConfigDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunCreateOrUpdateServerMetricsConfigDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface LoadTestRunGetServerMetricsConfig200Response extends HttpResponse {\n status: \"200\";\n body: TestRunServerMetricsConfigurationOutput;\n}\n\nexport interface LoadTestRunGetServerMetricsConfigDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface LoadTestRunGetServerMetricsConfigDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & LoadTestRunGetServerMetricsConfigDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface TestProfileRunAdministrationGetTestProfileRun200Response extends HttpResponse {\n status: \"200\";\n body: TestProfileRunOutput;\n}\n\nexport interface TestProfileRunAdministrationGetTestProfileRunDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface TestProfileRunAdministrationGetTestProfileRunDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & TestProfileRunAdministrationGetTestProfileRunDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response\n extends HttpResponse {\n status: \"200\";\n body: TestProfileRunOutput;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response\n extends HttpResponse {\n status: \"201\";\n body: TestProfileRunOutput;\n}\n\nexport interface TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultHeaders;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface TestProfileRunAdministrationDeleteTestProfileRun204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface TestProfileRunAdministrationDeleteTestProfileRunDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & TestProfileRunAdministrationDeleteTestProfileRunDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface TestProfileRunAdministrationStop200Response extends HttpResponse {\n status: \"200\";\n body: TestProfileRunOutput;\n}\n\nexport interface TestProfileRunAdministrationStopDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface TestProfileRunAdministrationStopDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & TestProfileRunAdministrationStopDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface TestProfileRunAdministrationListTestProfileRuns200Response extends HttpResponse {\n status: \"200\";\n body: PagedTestProfileRunOutput;\n}\n\nexport interface TestProfileRunAdministrationListTestProfileRunsDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface TestProfileRunAdministrationListTestProfileRunsDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & TestProfileRunAdministrationListTestProfileRunsDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface TriggerAdministrationGetTrigger200Response extends HttpResponse {\n status: \"200\";\n body: TriggerOutput;\n}\n\nexport interface TriggerAdministrationGetTriggerDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface TriggerAdministrationGetTriggerDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & TriggerAdministrationGetTriggerDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface TriggerAdministrationCreateOrUpdateTrigger200Response extends HttpResponse {\n status: \"200\";\n body: TriggerOutput;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface TriggerAdministrationCreateOrUpdateTrigger201Response extends HttpResponse {\n status: \"201\";\n body: TriggerOutput;\n}\n\nexport interface TriggerAdministrationCreateOrUpdateTriggerDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface TriggerAdministrationCreateOrUpdateTriggerDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & TriggerAdministrationCreateOrUpdateTriggerDefaultHeaders;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface TriggerAdministrationDeleteTrigger204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface TriggerAdministrationDeleteTriggerDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface TriggerAdministrationDeleteTriggerDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & TriggerAdministrationDeleteTriggerDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface TriggerAdministrationListTrigger200Response extends HttpResponse {\n status: \"200\";\n body: PagedTriggerOutput;\n}\n\nexport interface TriggerAdministrationListTriggerDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface TriggerAdministrationListTriggerDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & TriggerAdministrationListTriggerDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface NotificationRuleAdministrationGetNotificationRule200Response extends HttpResponse {\n status: \"200\";\n body: NotificationRuleOutput;\n}\n\nexport interface NotificationRuleAdministrationGetNotificationRuleDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface NotificationRuleAdministrationGetNotificationRuleDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & NotificationRuleAdministrationGetNotificationRuleDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response\n extends HttpResponse {\n status: \"200\";\n body: NotificationRuleOutput;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response\n extends HttpResponse {\n status: \"201\";\n body: NotificationRuleOutput;\n}\n\nexport interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders &\n NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultHeaders;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface NotificationRuleAdministrationDeleteNotificationRule204Response\n extends HttpResponse {\n status: \"204\";\n}\n\nexport interface NotificationRuleAdministrationDeleteNotificationRuleDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & NotificationRuleAdministrationDeleteNotificationRuleDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface NotificationRuleAdministrationListNotificationRule200Response\n extends HttpResponse {\n status: \"200\";\n body: PagedNotificationRuleOutput;\n}\n\nexport interface NotificationRuleAdministrationListNotificationRuleDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface NotificationRuleAdministrationListNotificationRuleDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & NotificationRuleAdministrationListNotificationRuleDefaultHeaders;\n}\n"]}
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": [],
|
|
4
|
+
"sourcesContent": [],
|
|
5
|
+
"mappings": "",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/esm/util/LROUtil.js
CHANGED
|
@@ -1,55 +1,57 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
1
|
import { AbortError } from "@azure/abort-controller";
|
|
4
2
|
const REJECTED_ERR = new AbortError("The polling was aborted.");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
const id = setTimeout(() => {
|
|
12
|
-
signal.removeEventListener("abort", onAbort);
|
|
13
|
-
if (signal.aborted) {
|
|
14
|
-
reject(REJECTED_ERR);
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
resolve();
|
|
18
|
-
}, ms);
|
|
19
|
-
signal.addEventListener("abort", onAbort, { once: true });
|
|
20
|
-
function onAbort() {
|
|
21
|
-
clearTimeout(id);
|
|
22
|
-
reject(REJECTED_ERR);
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
export function isTestRunInProgress(testRunOutput) {
|
|
27
|
-
switch (testRunOutput.status) {
|
|
28
|
-
case "ACCEPTED":
|
|
29
|
-
case "NOTSTARTED":
|
|
30
|
-
case "PROVISIONING":
|
|
31
|
-
case "PROVISIONED":
|
|
32
|
-
case "CONFIGURING":
|
|
33
|
-
case "CONFIGURED":
|
|
34
|
-
case "EXECUTING":
|
|
35
|
-
case "EXECUTED":
|
|
36
|
-
case "DEPROVISIONING":
|
|
37
|
-
case "DEPROVISIONED":
|
|
38
|
-
case "CANCELLING":
|
|
39
|
-
return true;
|
|
40
|
-
default:
|
|
41
|
-
return false;
|
|
3
|
+
function sleep(ms, signal) {
|
|
4
|
+
return new Promise((resolve, reject) => {
|
|
5
|
+
if (signal.aborted) {
|
|
6
|
+
reject(REJECTED_ERR);
|
|
7
|
+
return;
|
|
42
8
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
9
|
+
const id = setTimeout(() => {
|
|
10
|
+
signal.removeEventListener("abort", onAbort);
|
|
11
|
+
if (signal.aborted) {
|
|
12
|
+
reject(REJECTED_ERR);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
resolve();
|
|
16
|
+
}, ms);
|
|
17
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
18
|
+
function onAbort() {
|
|
19
|
+
clearTimeout(id);
|
|
20
|
+
reject(REJECTED_ERR);
|
|
53
21
|
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function isTestRunInProgress(testRunOutput) {
|
|
25
|
+
switch (testRunOutput.status) {
|
|
26
|
+
case "ACCEPTED":
|
|
27
|
+
case "NOTSTARTED":
|
|
28
|
+
case "PROVISIONING":
|
|
29
|
+
case "PROVISIONED":
|
|
30
|
+
case "CONFIGURING":
|
|
31
|
+
case "CONFIGURED":
|
|
32
|
+
case "EXECUTING":
|
|
33
|
+
case "EXECUTED":
|
|
34
|
+
case "DEPROVISIONING":
|
|
35
|
+
case "DEPROVISIONED":
|
|
36
|
+
case "CANCELLING":
|
|
37
|
+
return true;
|
|
38
|
+
default:
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function isTestProfileRunInProgress(testProfileRunOutput) {
|
|
43
|
+
switch (testProfileRunOutput.status) {
|
|
44
|
+
case "ACCEPTED":
|
|
45
|
+
case "NOTSTARTED":
|
|
46
|
+
case "EXECUTING":
|
|
47
|
+
case "CANCELLING":
|
|
48
|
+
return true;
|
|
49
|
+
default:
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
54
52
|
}
|
|
55
|
-
|
|
53
|
+
export {
|
|
54
|
+
isTestProfileRunInProgress,
|
|
55
|
+
isTestRunInProgress,
|
|
56
|
+
sleep
|
|
57
|
+
};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/loadtesting/load-testing-rest/src/util/LROUtil.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport { AbortError } from \"@azure/abort-controller\";\nimport type { TestRunOutput, TestProfileRunOutput } from \"../outputModels.js\";\n\nconst REJECTED_ERR = new AbortError(\"The polling was aborted.\");\n\nexport function sleep(ms: number, signal: AbortSignalLike): Promise<void> {\n return new Promise<void>((resolve, reject) => {\n if (signal.aborted) {\n reject(REJECTED_ERR);\n return;\n }\n\n const id = setTimeout(() => {\n signal.removeEventListener(\"abort\", onAbort);\n\n if (signal.aborted) {\n reject(REJECTED_ERR);\n return;\n }\n\n resolve();\n }, ms);\n\n signal.addEventListener(\"abort\", onAbort, { once: true });\n\n function onAbort(): void {\n clearTimeout(id);\n reject(REJECTED_ERR);\n }\n });\n}\n\nexport function isTestRunInProgress(testRunOutput: TestRunOutput): boolean {\n switch (testRunOutput.status) {\n case \"ACCEPTED\":\n case \"NOTSTARTED\":\n case \"PROVISIONING\":\n case \"PROVISIONED\":\n case \"CONFIGURING\":\n case \"CONFIGURED\":\n case \"EXECUTING\":\n case \"EXECUTED\":\n case \"DEPROVISIONING\":\n case \"DEPROVISIONED\":\n case \"CANCELLING\":\n return true;\n default:\n return false;\n }\n}\n\nexport function isTestProfileRunInProgress(testProfileRunOutput: TestProfileRunOutput): boolean {\n switch (testProfileRunOutput.status) {\n case \"ACCEPTED\":\n case \"NOTSTARTED\":\n case \"EXECUTING\":\n case \"CANCELLING\":\n return true;\n default:\n return false;\n }\n}\n"],
|
|
5
|
+
"mappings": "AAIA,SAAS,kBAAkB;AAG3B,MAAM,eAAe,IAAI,WAAW,0BAA0B;AAEvD,SAAS,MAAM,IAAY,QAAwC;AACxE,SAAO,IAAI,QAAc,CAAC,SAAS,WAAW;AAC5C,QAAI,OAAO,SAAS;AAClB,aAAO,YAAY;AACnB;AAAA,IACF;AAEA,UAAM,KAAK,WAAW,MAAM;AAC1B,aAAO,oBAAoB,SAAS,OAAO;AAE3C,UAAI,OAAO,SAAS;AAClB,eAAO,YAAY;AACnB;AAAA,MACF;AAEA,cAAQ;AAAA,IACV,GAAG,EAAE;AAEL,WAAO,iBAAiB,SAAS,SAAS,EAAE,MAAM,KAAK,CAAC;AAExD,aAAS,UAAgB;AACvB,mBAAa,EAAE;AACf,aAAO,YAAY;AAAA,IACrB;AAAA,EACF,CAAC;AACH;AAEO,SAAS,oBAAoB,eAAuC;AACzE,UAAQ,cAAc,QAAQ;AAAA,IAC5B,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF;AAEO,SAAS,2BAA2B,sBAAqD;AAC9F,UAAQ,qBAAqB,QAAQ;AAAA,IACnC,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { __rest } from "tslib";
|
|
4
3
|
import { getClient } from "@azure-rest/core-client";
|
|
5
4
|
import { logger } from "./logger.js";
|
|
6
5
|
/**
|
|
@@ -9,21 +8,24 @@ import { logger } from "./logger.js";
|
|
|
9
8
|
* @param credentials - uniquely identify client credential
|
|
10
9
|
* @param options - the parameter for all optional parameters
|
|
11
10
|
*/
|
|
12
|
-
export default function createClient(endpointParam, credentials,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `https://${endpointParam}`;
|
|
16
|
-
const userAgentInfo = `azsdk-js-load-testing-rest/1.0.1`;
|
|
11
|
+
export default function createClient(endpointParam, credentials, { apiVersion = "2025-11-01-preview", ...options } = {}) {
|
|
12
|
+
const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://${endpointParam}`;
|
|
13
|
+
const userAgentInfo = `azsdk-js-load-testing-rest/1.2.0-beta.1`;
|
|
17
14
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
18
15
|
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
19
16
|
: `${userAgentInfo}`;
|
|
20
|
-
options =
|
|
17
|
+
options = {
|
|
18
|
+
...options,
|
|
19
|
+
userAgentOptions: {
|
|
21
20
|
userAgentPrefix,
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
},
|
|
22
|
+
loggingOptions: {
|
|
23
|
+
logger: options.loggingOptions?.logger ?? logger.info,
|
|
24
|
+
},
|
|
25
|
+
credentials: {
|
|
26
|
+
scopes: options.credentials?.scopes ?? ["https://cnt-prod.loadtesting.azure.com/.default"],
|
|
27
|
+
},
|
|
28
|
+
};
|
|
27
29
|
const client = getClient(endpointUrl, credentials, options);
|
|
28
30
|
client.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
29
31
|
client.pipeline.addPolicy({
|