@azure-rest/load-testing 1.0.0-beta.2 → 1.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/README.md CHANGED
@@ -100,12 +100,13 @@ In the above example, `eus` represents the Azure region `East US`.
100
100
 
101
101
  ```javascript
102
102
  import { AzureLoadTestingClient } from "@azure-rest/load-testing";
103
+ import AzureLoadTesting from "@azure-rest/load-testing";
103
104
  import { DefaultAzureCredential } from "@azure/identity";
104
105
 
105
106
  var TEST_ID = "some-test-id";
106
107
  var DISPLAY_NAME = "my-load-test";
107
108
 
108
- const client: AzureLoadTestingClient = AzureLoadTesting(Endpoint, new DefaultAzureCredential());
109
+ const client: AzureLoadTestingClient = AzureLoadTesting("<Endpoint>", new DefaultAzureCredential());
109
110
 
110
111
  await client.path("/tests/{testId}", TEST_ID).patch({
111
112
  contentType: "application/merge-patch+json",
@@ -126,11 +127,13 @@ await client.path("/tests/{testId}", TEST_ID).patch({
126
127
  ### Uploading .jmx file to a Test
127
128
 
128
129
  ```javascript
129
- import { AzureLoadTestingClient, getLongRunningPoller } from "@azure-rest/load-testing";
130
+ import { AzureLoadTestingClient, getLongRunningPoller, isUnexpected } from "@azure-rest/load-testing";
131
+ import AzureLoadTesting from "@azure-rest/load-testing";
132
+ import { AbortController } from "@azure/abort-controller";
130
133
  import { DefaultAzureCredential } from "@azure/identity";
131
134
  import { createReadStream } from "fs";
132
135
 
133
- const client: AzureLoadTestingClient = AzureLoadTesting(Endpoint, new DefaultAzureCredential());
136
+ const client: AzureLoadTestingClient = AzureLoadTesting("<Endpoint>", new DefaultAzureCredential());
134
137
 
135
138
  var TEST_ID = "some-test-id";
136
139
  const readStream = createReadStream("./sample.jmx");
@@ -155,7 +158,7 @@ fileValidateResult = await fileValidatePoller.pollUntilDone({
155
158
  new Error("Error in polling file Validation" + ex.message); //polling timed out
156
159
  }
157
160
 
158
- if (fileUploadPoller.getOperationState().status != "succeeded" && fileValidateResult)
161
+ if (fileValidatePoller.getOperationState().status != "succeeded" && fileValidateResult)
159
162
  throw new Error(
160
163
  "There is some issue in validation, please make sure uploaded file is a valid JMX." +
161
164
  fileValidateResult.body.validationFailureDetails
@@ -165,10 +168,12 @@ if (fileUploadPoller.getOperationState().status != "succeeded" && fileValidateRe
165
168
  ### Running a Test and fetching Metrics
166
169
 
167
170
  ```javascript
168
- import { AzureLoadTestingClient, getLongRunningPoller } from "@azure-rest/load-testing";
171
+ import { AzureLoadTestingClient, getLongRunningPoller, isUnexpected } from "@azure-rest/load-testing";
172
+ import AzureLoadTesting from "@azure-rest/load-testing";
169
173
  import { DefaultAzureCredential } from "@azure/identity";
174
+ import { AbortController } from "@azure/abort-controller";
170
175
 
171
- const client: AzureLoadTestingClient = AzureLoadTesting(Endpoint, new DefaultAzureCredential());
176
+ const client: AzureLoadTestingClient = AzureLoadTesting("<Endpoint>", new DefaultAzureCredential());
172
177
 
173
178
  var TEST_ID = "some-test-id";
174
179
  var DISPLAY_NAME = "my-load-test";
@@ -210,7 +215,7 @@ const testRunPoller = await getLongRunningPoller(client, testRunCreationResult);
210
215
 
211
216
  // get list of all metric namespaces and pick the first one
212
217
  const metricNamespaces = await client
213
- .path("/test-runs/{testRunId}/metric-namespaces", testRunId)
218
+ .path("/test-runs/{testRunId}/metric-namespaces", TEST_RUN_ID)
214
219
  .get();
215
220
 
216
221
  if (isUnexpected(metricNamespaces)) {
@@ -225,7 +230,7 @@ const testRunPoller = await getLongRunningPoller(client, testRunCreationResult);
225
230
 
226
231
  // get list of all metric definitions and pick the first one
227
232
  const metricDefinitions = await client
228
- .path("/test-runs/{testRunId}/metric-definitions", testRunId)
233
+ .path("/test-runs/{testRunId}/metric-definitions", TEST_RUN_ID)
229
234
  .get({
230
235
  queryParameters: {
231
236
  metricNamespace: metricNamespace.name,
@@ -243,7 +248,7 @@ const testRunPoller = await getLongRunningPoller(client, testRunCreationResult);
243
248
  }
244
249
 
245
250
  // fetch client metrics using metric namespace and metric name
246
- const metricsResult = await client.path("/test-runs/{testRunId}/metrics", testRunId).post({
251
+ const metricsResult = await client.path("/test-runs/{testRunId}/metrics", TEST_RUN_ID).post({
247
252
  queryParameters: {
248
253
  metricname: metricDefinition.name,
249
254
  metricNamespace: metricNamespace.name,
@@ -288,8 +293,8 @@ For details on contributing to this repository, see the [contributing guide](htt
288
293
 
289
294
  <!-- LINKS -->
290
295
 
291
- [source_code]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/loadtestservice/load-testing-rest/src
292
- [sample_code]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/loadtestservice/load-testing-rest/samples/v1-beta
296
+ [source_code]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/loadtesting/load-testing-rest/src
297
+ [sample_code]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/loadtesting/load-testing-rest/samples/v1-beta
293
298
  [api_reference_doc]: https://docs.microsoft.com/rest/api/loadtesting/
294
299
  [product_documentation]: https://azure.microsoft.com/services/load-testing/
295
300
  [azure_subscription]: https://azure.microsoft.com/free/
@@ -15,7 +15,7 @@ function createClient(Endpoint, credentials, options = {}) {
15
15
  options = Object.assign(Object.assign({}, options), { credentials: {
16
16
  scopes: ["https://cnt-prod.loadtesting.azure.com/.default"],
17
17
  } });
18
- const userAgentInfo = `azsdk-js-load-testing-rest/1.0.0-beta.2`;
18
+ const userAgentInfo = `azsdk-js-load-testing-rest/1.0.0`;
19
19
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
20
20
  ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
21
21
  : `${userAgentInfo}`;
@@ -1 +1 @@
1
- {"version":3,"file":"azureLoadTesting.js","sourceRoot":"","sources":["../../src/azureLoadTesting.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,yDAAmE;AAInE;;;;GAIG;AACH,SAAwB,YAAY,CAClC,QAAgB,EAChB,WAA4B,EAC5B,UAAyB,EAAE;;IAE3B,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,WAAW,QAAQ,EAAE,CAAC;IACzD,OAAO,CAAC,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,YAAY,CAAC;IACxD,OAAO,mCACF,OAAO,KACV,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,iDAAiD,CAAC;SAC5D,GACF,CAAC;IAEF,MAAM,aAAa,GAAG,yCAAyC,CAAC;IAChE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,GACF,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAA2B,CAAC;IAElF,OAAO,MAAM,CAAC;AAChB,CAAC;AA7BD,+BA6BC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { getClient, ClientOptions } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { AzureLoadTestingClient } from \"./clientDefinitions\";\n\n/**\n * Initialize a new instance of the class AzureLoadTestingClient class.\n * @param Endpoint type: string URL to perform data plane API operations on the resource.\n * @param credentials type: TokenCredential\n */\nexport default function createClient(\n Endpoint: string,\n credentials: TokenCredential,\n options: ClientOptions = {}\n): AzureLoadTestingClient {\n const baseUrl = options.baseUrl ?? `https://${Endpoint}`;\n options.apiVersion = options.apiVersion ?? \"2022-11-01\";\n options = {\n ...options,\n credentials: {\n scopes: [\"https://cnt-prod.loadtesting.azure.com/.default\"],\n },\n };\n\n const userAgentInfo = `azsdk-js-load-testing-rest/1.0.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n };\n\n const client = getClient(baseUrl, credentials, options) as AzureLoadTestingClient;\n\n return client;\n}\n"]}
1
+ {"version":3,"file":"azureLoadTesting.js","sourceRoot":"","sources":["../../src/azureLoadTesting.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,yDAAmE;AAInE;;;;GAIG;AACH,SAAwB,YAAY,CAClC,QAAgB,EAChB,WAA4B,EAC5B,UAAyB,EAAE;;IAE3B,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,WAAW,QAAQ,EAAE,CAAC;IACzD,OAAO,CAAC,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,YAAY,CAAC;IACxD,OAAO,mCACF,OAAO,KACV,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,iDAAiD,CAAC;SAC5D,GACF,CAAC;IAEF,MAAM,aAAa,GAAG,kCAAkC,CAAC;IACzD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,GACF,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAA2B,CAAC;IAElF,OAAO,MAAM,CAAC;AAChB,CAAC;AA7BD,+BA6BC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { getClient, ClientOptions } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { AzureLoadTestingClient } from \"./clientDefinitions\";\n\n/**\n * Initialize a new instance of the class AzureLoadTestingClient class.\n * @param Endpoint type: string URL to perform data plane API operations on the resource.\n * @param credentials type: TokenCredential\n */\nexport default function createClient(\n Endpoint: string,\n credentials: TokenCredential,\n options: ClientOptions = {}\n): AzureLoadTestingClient {\n const baseUrl = options.baseUrl ?? `https://${Endpoint}`;\n options.apiVersion = options.apiVersion ?? \"2022-11-01\";\n options = {\n ...options,\n credentials: {\n scopes: [\"https://cnt-prod.loadtesting.azure.com/.default\"],\n },\n };\n\n const userAgentInfo = `azsdk-js-load-testing-rest/1.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n };\n\n const client = getClient(baseUrl, credentials, options) as AzureLoadTestingClient;\n\n return client;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport {\n Test,\n TestAppComponents,\n TestServerMetricConfig,\n TestRun,\n MetricRequestPayload,\n TestRunAppComponents,\n TestRunServerMetricConfig,\n} from \"./models\";\n\nexport interface TestCreateOrUpdateBodyParam {\n /** Load test model */\n body: Test;\n}\n\nexport interface TestCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type TestCreateOrUpdateParameters = TestCreateOrUpdateMediaTypesParam &\n TestCreateOrUpdateBodyParam &\n RequestParameters;\nexport type TestDeleteParameters = RequestParameters;\nexport type TestGetParameters = RequestParameters;\n\nexport interface TestListQueryParamProperties {\n /** Sort on the supported fields in (field asc/desc) format. eg: lastModifiedDateTime asc. Supported fields - lastModifiedDateTime */\n orderby?: string;\n /** Prefix based, case sensitive search on searchable fields - displayName, createdBy. For example, to search for a test, with display name is Login Test, the search parameter can be Login. */\n search?: string;\n /** Start DateTime(ISO 8601 literal format) of the last updated time range to filter tests. */\n lastModifiedStartTime?: Date | string;\n /** End DateTime(ISO 8601 literal format) of the last updated time range to filter tests. */\n lastModifiedEndTime?: Date | string;\n /** Continuation token to get the next page of response */\n continuationToken?: string;\n /** Number of results in response. */\n maxpagesize?: number;\n}\n\nexport interface TestListQueryParam {\n queryParameters?: TestListQueryParamProperties;\n}\n\nexport type TestListParameters = TestListQueryParam & RequestParameters;\n\nexport interface TestUploadFileBodyParam {\n /**\n * The file content as application/octet-stream.\n *\n * Value may contain any sequence of octets\n */\n body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;\n}\n\nexport interface TestUploadFileQueryParamProperties {\n /** File type */\n fileType?: \"JMX_FILE\" | \"USER_PROPERTIES\" | \"ADDITIONAL_ARTIFACTS\";\n}\n\nexport interface TestUploadFileQueryParam {\n queryParameters?: TestUploadFileQueryParamProperties;\n}\n\nexport interface TestUploadFileMediaTypesParam {\n /** Request content type */\n contentType?: \"application/octet-stream\";\n}\n\nexport type TestUploadFileParameters = TestUploadFileQueryParam &\n TestUploadFileMediaTypesParam &\n TestUploadFileBodyParam &\n RequestParameters;\nexport type TestGetFileParameters = RequestParameters;\nexport type TestDeleteFileParameters = RequestParameters;\n\nexport interface TestListFilesQueryParamProperties {\n /** Continuation token to get the next page of response */\n continuationToken?: string;\n}\n\nexport interface TestListFilesQueryParam {\n queryParameters?: TestListFilesQueryParamProperties;\n}\n\nexport type TestListFilesParameters = TestListFilesQueryParam & RequestParameters;\n\nexport interface TestCreateOrUpdateAppComponentsBodyParam {\n /** App Component model. */\n body: TestAppComponents;\n}\n\nexport interface TestCreateOrUpdateAppComponentsMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type TestCreateOrUpdateAppComponentsParameters = TestCreateOrUpdateAppComponentsMediaTypesParam &\n TestCreateOrUpdateAppComponentsBodyParam &\n RequestParameters;\nexport type TestListAppComponentsParameters = RequestParameters;\n\nexport interface TestCreateOrUpdateServerMetricsConfigBodyParam {\n /** Server metric configuration model. */\n body: TestServerMetricConfig;\n}\n\nexport interface TestCreateOrUpdateServerMetricsConfigMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type TestCreateOrUpdateServerMetricsConfigParameters = TestCreateOrUpdateServerMetricsConfigMediaTypesParam &\n TestCreateOrUpdateServerMetricsConfigBodyParam &\n RequestParameters;\nexport type TestListServerMetricsConfigParameters = RequestParameters;\nexport type TestRunDeleteParameters = RequestParameters;\n\nexport interface TestRunCreateOrUpdateBodyParam {\n /** Load test run model */\n body: TestRun;\n}\n\nexport interface TestRunCreateOrUpdateQueryParamProperties {\n /** Existing test run identifier that should be rerun, if this is provided, the test will run with the JMX file, configuration and app components from the existing test run. You can override the configuration values for new test run in the request body. */\n oldTestRunId?: string;\n}\n\nexport interface TestRunCreateOrUpdateQueryParam {\n queryParameters?: TestRunCreateOrUpdateQueryParamProperties;\n}\n\nexport interface TestRunCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type TestRunCreateOrUpdateParameters = TestRunCreateOrUpdateQueryParam &\n TestRunCreateOrUpdateMediaTypesParam &\n TestRunCreateOrUpdateBodyParam &\n RequestParameters;\nexport type TestRunGetParameters = RequestParameters;\nexport type TestRunGetFileParameters = RequestParameters;\n\nexport interface TestRunListQueryParamProperties {\n /** Sort on the supported fields in (field asc/desc) format. eg: executedDateTime asc. Supported fields - executedDateTime */\n orderby?: string;\n /** Continuation token to get the next page of response */\n continuationToken?: string;\n /** Prefix based, case sensitive search on searchable fields - description, executedUser. For example, to search for a test run, with description 500 VUs, the search parameter can be 500. */\n search?: string;\n /** Unique name of an existing load test. */\n testId?: string;\n /** Start DateTime(ISO 8601 literal format) of test-run execution time filter range. */\n executionFrom?: Date | string;\n /** End DateTime(ISO 8601 literal format) of test-run execution time filter range. */\n executionTo?: Date | string;\n /** Comma separated list of test run status. */\n status?: string;\n /** Number of results in response. */\n maxpagesize?: number;\n}\n\nexport interface TestRunListQueryParam {\n queryParameters?: TestRunListQueryParamProperties;\n}\n\nexport type TestRunListParameters = TestRunListQueryParam & RequestParameters;\nexport type TestRunStopParameters = RequestParameters;\nexport type TestRunListMetricNamespacesParameters = RequestParameters;\n\nexport interface TestRunListMetricDefinitionsQueryParamProperties {\n /** Metric namespace to query metric definitions for. */\n metricNamespace: string;\n}\n\nexport interface TestRunListMetricDefinitionsQueryParam {\n queryParameters: TestRunListMetricDefinitionsQueryParamProperties;\n}\n\nexport type TestRunListMetricDefinitionsParameters = TestRunListMetricDefinitionsQueryParam &\n RequestParameters;\n\nexport interface TestRunListMetricsBodyParam {\n /** Metric dimension filter */\n body?: MetricRequestPayload;\n}\n\nexport interface TestRunListMetricsQueryParamProperties {\n /** The aggregation */\n aggregation?: string;\n /** The interval (i.e. timegrain) of the query. */\n interval?: \"PT5S\" | \"PT10S\" | \"PT1M\" | \"PT5M\" | \"PT1H\";\n /** Metric name */\n metricname: string;\n /** Metric namespace to query metric definitions for. */\n metricNamespace: string;\n /** The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. */\n timespan: string;\n}\n\nexport interface TestRunListMetricsQueryParam {\n queryParameters: TestRunListMetricsQueryParamProperties;\n}\n\nexport interface TestRunListMetricsMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type TestRunListMetricsParameters = TestRunListMetricsQueryParam &\n TestRunListMetricsMediaTypesParam &\n TestRunListMetricsBodyParam &\n RequestParameters;\n\nexport interface TestRunListMetricDimensionValuesQueryParamProperties {\n /** The interval (i.e. timegrain) of the query. */\n interval?: \"PT5S\" | \"PT10S\" | \"PT1M\" | \"PT5M\" | \"PT1H\";\n /** Metric name */\n metricname: string;\n /** Metric namespace to query metric definitions for. */\n metricNamespace: string;\n /** The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. */\n timespan: string;\n}\n\nexport interface TestRunListMetricDimensionValuesQueryParam {\n queryParameters: TestRunListMetricDimensionValuesQueryParamProperties;\n}\n\nexport type TestRunListMetricDimensionValuesParameters = TestRunListMetricDimensionValuesQueryParam &\n RequestParameters;\n\nexport interface TestRunCreateOrUpdateAppComponentsBodyParam {\n /** App Component model. */\n body: TestRunAppComponents;\n}\n\nexport interface TestRunCreateOrUpdateAppComponentsMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type TestRunCreateOrUpdateAppComponentsParameters = TestRunCreateOrUpdateAppComponentsMediaTypesParam &\n TestRunCreateOrUpdateAppComponentsBodyParam &\n RequestParameters;\nexport type TestRunListAppComponentsParameters = RequestParameters;\n\nexport interface TestRunCreateOrUpdateServerMetricsConfigBodyParam {\n /** Server metric configuration model. */\n body: TestRunServerMetricConfig;\n}\n\nexport interface TestRunCreateOrUpdateServerMetricsConfigMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type TestRunCreateOrUpdateServerMetricsConfigParameters = TestRunCreateOrUpdateServerMetricsConfigMediaTypesParam &\n TestRunCreateOrUpdateServerMetricsConfigBodyParam &\n RequestParameters;\nexport type TestRunListServerMetricsConfigParameters = RequestParameters;\n"]}
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport {\n Test,\n TestAppComponents,\n TestServerMetricConfig,\n TestRun,\n MetricRequestPayload,\n TestRunAppComponents,\n TestRunServerMetricConfig,\n} from \"./models\";\n\nexport interface TestCreateOrUpdateBodyParam {\n /** Load test model */\n body: Test;\n}\n\nexport interface TestCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type TestCreateOrUpdateParameters = TestCreateOrUpdateMediaTypesParam &\n TestCreateOrUpdateBodyParam &\n RequestParameters;\nexport type TestDeleteParameters = RequestParameters;\nexport type TestGetParameters = RequestParameters;\n\nexport interface TestListQueryParamProperties {\n /** Sort on the supported fields in (field asc/desc) format. eg: lastModifiedDateTime asc. Supported fields - lastModifiedDateTime */\n orderby?: string;\n /** Prefix based, case sensitive search on searchable fields - displayName, createdBy. For example, to search for a test, with display name is Login Test, the search parameter can be Login. */\n search?: string;\n /** Start DateTime(ISO 8601 literal format) of the last updated time range to filter tests. */\n lastModifiedStartTime?: Date | string;\n /** End DateTime(ISO 8601 literal format) of the last updated time range to filter tests. */\n lastModifiedEndTime?: Date | string;\n /** Continuation token to get the next page of response */\n continuationToken?: string;\n /** Number of results in response. */\n maxpagesize?: number;\n}\n\nexport interface TestListQueryParam {\n queryParameters?: TestListQueryParamProperties;\n}\n\nexport type TestListParameters = TestListQueryParam & RequestParameters;\n\nexport interface TestUploadFileBodyParam {\n /**\n * The file content as application/octet-stream.\n *\n * Value may contain any sequence of octets\n */\n body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;\n}\n\nexport interface TestUploadFileQueryParamProperties {\n /** File type */\n fileType?: \"JMX_FILE\" | \"USER_PROPERTIES\" | \"ADDITIONAL_ARTIFACTS\";\n}\n\nexport interface TestUploadFileQueryParam {\n queryParameters?: TestUploadFileQueryParamProperties;\n}\n\nexport interface TestUploadFileMediaTypesParam {\n /** Request content type */\n contentType?: \"application/octet-stream\";\n}\n\nexport type TestUploadFileParameters = TestUploadFileQueryParam &\n TestUploadFileMediaTypesParam &\n TestUploadFileBodyParam &\n RequestParameters;\nexport type TestGetFileParameters = RequestParameters;\nexport type TestDeleteFileParameters = RequestParameters;\n\nexport interface TestListFilesQueryParamProperties {\n /** Continuation token to get the next page of response */\n continuationToken?: string;\n}\n\nexport interface TestListFilesQueryParam {\n queryParameters?: TestListFilesQueryParamProperties;\n}\n\nexport type TestListFilesParameters = TestListFilesQueryParam & RequestParameters;\n\nexport interface TestCreateOrUpdateAppComponentsBodyParam {\n /** App Component model. */\n body: TestAppComponents;\n}\n\nexport interface TestCreateOrUpdateAppComponentsMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type TestCreateOrUpdateAppComponentsParameters =\n TestCreateOrUpdateAppComponentsMediaTypesParam &\n TestCreateOrUpdateAppComponentsBodyParam &\n RequestParameters;\nexport type TestListAppComponentsParameters = RequestParameters;\n\nexport interface TestCreateOrUpdateServerMetricsConfigBodyParam {\n /** Server metric configuration model. */\n body: TestServerMetricConfig;\n}\n\nexport interface TestCreateOrUpdateServerMetricsConfigMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type TestCreateOrUpdateServerMetricsConfigParameters =\n TestCreateOrUpdateServerMetricsConfigMediaTypesParam &\n TestCreateOrUpdateServerMetricsConfigBodyParam &\n RequestParameters;\nexport type TestListServerMetricsConfigParameters = RequestParameters;\nexport type TestRunDeleteParameters = RequestParameters;\n\nexport interface TestRunCreateOrUpdateBodyParam {\n /** Load test run model */\n body: TestRun;\n}\n\nexport interface TestRunCreateOrUpdateQueryParamProperties {\n /** Existing test run identifier that should be rerun, if this is provided, the test will run with the JMX file, configuration and app components from the existing test run. You can override the configuration values for new test run in the request body. */\n oldTestRunId?: string;\n}\n\nexport interface TestRunCreateOrUpdateQueryParam {\n queryParameters?: TestRunCreateOrUpdateQueryParamProperties;\n}\n\nexport interface TestRunCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type TestRunCreateOrUpdateParameters = TestRunCreateOrUpdateQueryParam &\n TestRunCreateOrUpdateMediaTypesParam &\n TestRunCreateOrUpdateBodyParam &\n RequestParameters;\nexport type TestRunGetParameters = RequestParameters;\nexport type TestRunGetFileParameters = RequestParameters;\n\nexport interface TestRunListQueryParamProperties {\n /** Sort on the supported fields in (field asc/desc) format. eg: executedDateTime asc. Supported fields - executedDateTime */\n orderby?: string;\n /** Continuation token to get the next page of response */\n continuationToken?: string;\n /** Prefix based, case sensitive search on searchable fields - description, executedUser. For example, to search for a test run, with description 500 VUs, the search parameter can be 500. */\n search?: string;\n /** Unique name of an existing load test. */\n testId?: string;\n /** Start DateTime(ISO 8601 literal format) of test-run execution time filter range. */\n executionFrom?: Date | string;\n /** End DateTime(ISO 8601 literal format) of test-run execution time filter range. */\n executionTo?: Date | string;\n /** Comma separated list of test run status. */\n status?: string;\n /** Number of results in response. */\n maxpagesize?: number;\n}\n\nexport interface TestRunListQueryParam {\n queryParameters?: TestRunListQueryParamProperties;\n}\n\nexport type TestRunListParameters = TestRunListQueryParam & RequestParameters;\nexport type TestRunStopParameters = RequestParameters;\nexport type TestRunListMetricNamespacesParameters = RequestParameters;\n\nexport interface TestRunListMetricDefinitionsQueryParamProperties {\n /** Metric namespace to query metric definitions for. */\n metricNamespace: string;\n}\n\nexport interface TestRunListMetricDefinitionsQueryParam {\n queryParameters: TestRunListMetricDefinitionsQueryParamProperties;\n}\n\nexport type TestRunListMetricDefinitionsParameters = TestRunListMetricDefinitionsQueryParam &\n RequestParameters;\n\nexport interface TestRunListMetricsBodyParam {\n /** Metric dimension filter */\n body?: MetricRequestPayload;\n}\n\nexport interface TestRunListMetricsQueryParamProperties {\n /** The aggregation */\n aggregation?: string;\n /** The interval (i.e. timegrain) of the query. */\n interval?: \"PT5S\" | \"PT10S\" | \"PT1M\" | \"PT5M\" | \"PT1H\";\n /** Metric name */\n metricname: string;\n /** Metric namespace to query metric definitions for. */\n metricNamespace: string;\n /** The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. */\n timespan: string;\n}\n\nexport interface TestRunListMetricsQueryParam {\n queryParameters: TestRunListMetricsQueryParamProperties;\n}\n\nexport interface TestRunListMetricsMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type TestRunListMetricsParameters = TestRunListMetricsQueryParam &\n TestRunListMetricsMediaTypesParam &\n TestRunListMetricsBodyParam &\n RequestParameters;\n\nexport interface TestRunListMetricDimensionValuesQueryParamProperties {\n /** The interval (i.e. timegrain) of the query. */\n interval?: \"PT5S\" | \"PT10S\" | \"PT1M\" | \"PT5M\" | \"PT1H\";\n /** Metric name */\n metricname: string;\n /** Metric namespace to query metric definitions for. */\n metricNamespace: string;\n /** The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. */\n timespan: string;\n}\n\nexport interface TestRunListMetricDimensionValuesQueryParam {\n queryParameters: TestRunListMetricDimensionValuesQueryParamProperties;\n}\n\nexport type TestRunListMetricDimensionValuesParameters =\n TestRunListMetricDimensionValuesQueryParam & RequestParameters;\n\nexport interface TestRunCreateOrUpdateAppComponentsBodyParam {\n /** App Component model. */\n body: TestRunAppComponents;\n}\n\nexport interface TestRunCreateOrUpdateAppComponentsMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type TestRunCreateOrUpdateAppComponentsParameters =\n TestRunCreateOrUpdateAppComponentsMediaTypesParam &\n TestRunCreateOrUpdateAppComponentsBodyParam &\n RequestParameters;\nexport type TestRunListAppComponentsParameters = RequestParameters;\n\nexport interface TestRunCreateOrUpdateServerMetricsConfigBodyParam {\n /** Server metric configuration model. */\n body: TestRunServerMetricConfig;\n}\n\nexport interface TestRunCreateOrUpdateServerMetricsConfigMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type TestRunCreateOrUpdateServerMetricsConfigParameters =\n TestRunCreateOrUpdateServerMetricsConfigMediaTypesParam &\n TestRunCreateOrUpdateServerMetricsConfigBodyParam &\n RequestParameters;\nexport type TestRunListServerMetricsConfigParameters = RequestParameters;\n"]}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@azure-rest/load-testing",
3
3
  "sdk-type": "client",
4
4
  "author": "Microsoft Corporation",
5
- "version": "1.0.0-beta.2",
5
+ "version": "1.0.0",
6
6
  "description": "This package contains Microsoft Azure LoadTestingClient client library.",
7
7
  "keywords": [
8
8
  "node",
@@ -82,9 +82,9 @@
82
82
  },
83
83
  "devDependencies": {
84
84
  "@azure-tools/test-credential": "~1.0.0",
85
- "@azure-tools/test-recorder": "^2.0.0",
85
+ "@azure-tools/test-recorder": "^3.0.0",
86
86
  "@azure/identity": "^2.0.1",
87
- "@microsoft/api-extractor": "7.18.11",
87
+ "@microsoft/api-extractor": "^7.31.1",
88
88
  "@azure/dev-tool": "^1.0.0",
89
89
  "@azure/eslint-plugin-azure-sdk": "^3.0.0",
90
90
  "@types/chai": "^4.2.8",
@@ -94,15 +94,13 @@
94
94
  "autorest": "latest",
95
95
  "chai": "^4.2.0",
96
96
  "cross-env": "^7.0.2",
97
- "dotenv": "^8.2.0",
97
+ "dotenv": "^16.0.0",
98
98
  "eslint": "^8.0.0",
99
99
  "karma": "^6.2.0",
100
100
  "karma-chrome-launcher": "^3.0.0",
101
101
  "karma-coverage": "^2.0.0",
102
- "karma-edge-launcher": "^0.4.2",
103
102
  "karma-env-preprocessor": "^0.1.1",
104
103
  "karma-firefox-launcher": "^1.1.0",
105
- "karma-ie-launcher": "^1.0.0",
106
104
  "karma-junit-reporter": "^2.0.1",
107
105
  "karma-mocha": "^2.0.1",
108
106
  "karma-mocha-reporter": "^2.2.5",
@@ -112,13 +110,13 @@
112
110
  "mocha": "^7.1.1",
113
111
  "mocha-junit-reporter": "^1.18.0",
114
112
  "nyc": "^14.0.0",
115
- "prettier": "2.2.1",
113
+ "prettier": "^2.5.1",
116
114
  "rimraf": "^3.0.0",
117
115
  "source-map-support": "^0.5.9",
118
116
  "uuid": "^9.0.0",
119
- "typescript": "~4.6.0"
117
+ "typescript": "~4.8.0"
120
118
  },
121
- "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/loadtestservice/load-testing-rest/README.md",
119
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/loadtesting/load-testing-rest/README.md",
122
120
  "//metadata": {
123
121
  "constantPaths": [
124
122
  {