@azure/arm-loadtesting 1.0.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 +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +2209 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/loadTestsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/loadTestsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/loadTestsCreateOrUpdateSample.js +49 -0
- package/dist-esm/samples-dev/loadTestsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/loadTestsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/loadTestsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/loadTestsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/loadTestsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/loadTestsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/loadTestsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/loadTestsGetSample.js +31 -0
- package/dist-esm/samples-dev/loadTestsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/loadTestsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/loadTestsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/loadTestsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/loadTestsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/loadTestsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/loadTestsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/loadTestsListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/loadTestsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/loadTestsListOutboundNetworkDependenciesEndpointsSample.d.ts +2 -0
- package/dist-esm/samples-dev/loadTestsListOutboundNetworkDependenciesEndpointsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/loadTestsListOutboundNetworkDependenciesEndpointsSample.js +45 -0
- package/dist-esm/samples-dev/loadTestsListOutboundNetworkDependenciesEndpointsSample.js.map +1 -0
- package/dist-esm/samples-dev/loadTestsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/loadTestsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/loadTestsUpdateSample.js +45 -0
- package/dist-esm/samples-dev/loadTestsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/quotasCheckAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/quotasCheckAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/quotasCheckAvailabilitySample.js +37 -0
- package/dist-esm/samples-dev/quotasCheckAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/quotasGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/quotasGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/quotasGetSample.js +31 -0
- package/dist-esm/samples-dev/quotasGetSample.js.map +1 -0
- package/dist-esm/samples-dev/quotasListSample.d.ts +2 -0
- package/dist-esm/samples-dev/quotasListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/quotasListSample.js +44 -0
- package/dist-esm/samples-dev/quotasListSample.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/loadTestClient.d.ts +22 -0
- package/dist-esm/src/loadTestClient.d.ts.map +1 -0
- package/dist-esm/src/loadTestClient.js +102 -0
- package/dist-esm/src/loadTestClient.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +568 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +68 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +30 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +800 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +15 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +136 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/loadTests.d.ts +132 -0
- package/dist-esm/src/operations/loadTests.d.ts.map +1 -0
- package/dist-esm/src/operations/loadTests.js +661 -0
- package/dist-esm/src/operations/loadTests.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +132 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/quotas.d.ts +50 -0
- package/dist-esm/src/operations/quotas.d.ts.map +1 -0
- package/dist-esm/src/operations/quotas.js +207 -0
- package/dist-esm/src/operations/quotas.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/loadTests.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/loadTests.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/loadTests.js +9 -0
- package/dist-esm/src/operationsInterfaces/loadTests.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/quotas.d.ts +27 -0
- package/dist-esm/src/operationsInterfaces/quotas.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/quotas.js +9 -0
- package/dist-esm/src/operationsInterfaces/quotas.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/loadtesting_example.spec.d.ts +4 -0
- package/dist-esm/test/loadtesting_example.spec.d.ts.map +1 -0
- package/dist-esm/test/loadtesting_example.spec.js +108 -0
- package/dist-esm/test/loadtesting_example.spec.js.map +1 -0
- package/package.json +122 -0
- package/review/arm-loadtesting.api.md +437 -0
- package/rollup.config.js +122 -0
- package/src/index.ts +13 -0
- package/src/loadTestClient.ts +144 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +645 -0
- package/src/models/mappers.ts +855 -0
- package/src/models/parameters.ts +158 -0
- package/src/operations/index.ts +11 -0
- package/src/operations/loadTests.ts +887 -0
- package/src/operations/operations.ts +150 -0
- package/src/operations/quotas.ts +258 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/loadTests.ts +152 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/quotas.ts +56 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-loadtesting.d.ts +781 -0
- package/types/tsdoc-metadata.json +11 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,2209 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
var coreClient = require('@azure/core-client');
|
|
7
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
+
var coreLro = require('@azure/core-lro');
|
|
9
|
+
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given a result page from a pageable operation, returns a
|
|
41
|
+
* continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage().
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/*
|
|
64
|
+
* Copyright (c) Microsoft Corporation.
|
|
65
|
+
* Licensed under the MIT License.
|
|
66
|
+
*
|
|
67
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
68
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
69
|
+
*/
|
|
70
|
+
/** Known values of {@link Origin} that the service accepts. */
|
|
71
|
+
exports.KnownOrigin = void 0;
|
|
72
|
+
(function (KnownOrigin) {
|
|
73
|
+
/** User */
|
|
74
|
+
KnownOrigin["User"] = "user";
|
|
75
|
+
/** System */
|
|
76
|
+
KnownOrigin["System"] = "system";
|
|
77
|
+
/** UserSystem */
|
|
78
|
+
KnownOrigin["UserSystem"] = "user,system";
|
|
79
|
+
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
80
|
+
/** Known values of {@link ActionType} that the service accepts. */
|
|
81
|
+
exports.KnownActionType = void 0;
|
|
82
|
+
(function (KnownActionType) {
|
|
83
|
+
/** Internal */
|
|
84
|
+
KnownActionType["Internal"] = "Internal";
|
|
85
|
+
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
86
|
+
/** Known values of {@link ResourceState} that the service accepts. */
|
|
87
|
+
exports.KnownResourceState = void 0;
|
|
88
|
+
(function (KnownResourceState) {
|
|
89
|
+
/** Succeeded */
|
|
90
|
+
KnownResourceState["Succeeded"] = "Succeeded";
|
|
91
|
+
/** Failed */
|
|
92
|
+
KnownResourceState["Failed"] = "Failed";
|
|
93
|
+
/** Canceled */
|
|
94
|
+
KnownResourceState["Canceled"] = "Canceled";
|
|
95
|
+
/** Deleted */
|
|
96
|
+
KnownResourceState["Deleted"] = "Deleted";
|
|
97
|
+
})(exports.KnownResourceState || (exports.KnownResourceState = {}));
|
|
98
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
99
|
+
exports.KnownCreatedByType = void 0;
|
|
100
|
+
(function (KnownCreatedByType) {
|
|
101
|
+
/** User */
|
|
102
|
+
KnownCreatedByType["User"] = "User";
|
|
103
|
+
/** Application */
|
|
104
|
+
KnownCreatedByType["Application"] = "Application";
|
|
105
|
+
/** ManagedIdentity */
|
|
106
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
107
|
+
/** Key */
|
|
108
|
+
KnownCreatedByType["Key"] = "Key";
|
|
109
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
110
|
+
/** Known values of {@link Type} that the service accepts. */
|
|
111
|
+
exports.KnownType = void 0;
|
|
112
|
+
(function (KnownType) {
|
|
113
|
+
/** SystemAssigned */
|
|
114
|
+
KnownType["SystemAssigned"] = "SystemAssigned";
|
|
115
|
+
/** UserAssigned */
|
|
116
|
+
KnownType["UserAssigned"] = "UserAssigned";
|
|
117
|
+
})(exports.KnownType || (exports.KnownType = {}));
|
|
118
|
+
/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
|
|
119
|
+
exports.KnownManagedServiceIdentityType = void 0;
|
|
120
|
+
(function (KnownManagedServiceIdentityType) {
|
|
121
|
+
/** None */
|
|
122
|
+
KnownManagedServiceIdentityType["None"] = "None";
|
|
123
|
+
/** SystemAssigned */
|
|
124
|
+
KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
125
|
+
/** UserAssigned */
|
|
126
|
+
KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
|
|
127
|
+
/** SystemAssignedUserAssigned */
|
|
128
|
+
KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
|
|
129
|
+
})(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
|
|
130
|
+
|
|
131
|
+
/*
|
|
132
|
+
* Copyright (c) Microsoft Corporation.
|
|
133
|
+
* Licensed under the MIT License.
|
|
134
|
+
*
|
|
135
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
136
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
137
|
+
*/
|
|
138
|
+
const OperationListResult = {
|
|
139
|
+
type: {
|
|
140
|
+
name: "Composite",
|
|
141
|
+
className: "OperationListResult",
|
|
142
|
+
modelProperties: {
|
|
143
|
+
value: {
|
|
144
|
+
serializedName: "value",
|
|
145
|
+
readOnly: true,
|
|
146
|
+
type: {
|
|
147
|
+
name: "Sequence",
|
|
148
|
+
element: {
|
|
149
|
+
type: {
|
|
150
|
+
name: "Composite",
|
|
151
|
+
className: "Operation"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
nextLink: {
|
|
157
|
+
serializedName: "nextLink",
|
|
158
|
+
readOnly: true,
|
|
159
|
+
type: {
|
|
160
|
+
name: "String"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
const Operation = {
|
|
167
|
+
type: {
|
|
168
|
+
name: "Composite",
|
|
169
|
+
className: "Operation",
|
|
170
|
+
modelProperties: {
|
|
171
|
+
name: {
|
|
172
|
+
serializedName: "name",
|
|
173
|
+
readOnly: true,
|
|
174
|
+
type: {
|
|
175
|
+
name: "String"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
isDataAction: {
|
|
179
|
+
serializedName: "isDataAction",
|
|
180
|
+
readOnly: true,
|
|
181
|
+
type: {
|
|
182
|
+
name: "Boolean"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
display: {
|
|
186
|
+
serializedName: "display",
|
|
187
|
+
type: {
|
|
188
|
+
name: "Composite",
|
|
189
|
+
className: "OperationDisplay"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
origin: {
|
|
193
|
+
serializedName: "origin",
|
|
194
|
+
readOnly: true,
|
|
195
|
+
type: {
|
|
196
|
+
name: "String"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
actionType: {
|
|
200
|
+
serializedName: "actionType",
|
|
201
|
+
readOnly: true,
|
|
202
|
+
type: {
|
|
203
|
+
name: "String"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
const OperationDisplay = {
|
|
210
|
+
type: {
|
|
211
|
+
name: "Composite",
|
|
212
|
+
className: "OperationDisplay",
|
|
213
|
+
modelProperties: {
|
|
214
|
+
provider: {
|
|
215
|
+
serializedName: "provider",
|
|
216
|
+
readOnly: true,
|
|
217
|
+
type: {
|
|
218
|
+
name: "String"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
resource: {
|
|
222
|
+
serializedName: "resource",
|
|
223
|
+
readOnly: true,
|
|
224
|
+
type: {
|
|
225
|
+
name: "String"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
operation: {
|
|
229
|
+
serializedName: "operation",
|
|
230
|
+
readOnly: true,
|
|
231
|
+
type: {
|
|
232
|
+
name: "String"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
description: {
|
|
236
|
+
serializedName: "description",
|
|
237
|
+
readOnly: true,
|
|
238
|
+
type: {
|
|
239
|
+
name: "String"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
const ErrorResponse = {
|
|
246
|
+
type: {
|
|
247
|
+
name: "Composite",
|
|
248
|
+
className: "ErrorResponse",
|
|
249
|
+
modelProperties: {
|
|
250
|
+
error: {
|
|
251
|
+
serializedName: "error",
|
|
252
|
+
type: {
|
|
253
|
+
name: "Composite",
|
|
254
|
+
className: "ErrorDetail"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
const ErrorDetail = {
|
|
261
|
+
type: {
|
|
262
|
+
name: "Composite",
|
|
263
|
+
className: "ErrorDetail",
|
|
264
|
+
modelProperties: {
|
|
265
|
+
code: {
|
|
266
|
+
serializedName: "code",
|
|
267
|
+
readOnly: true,
|
|
268
|
+
type: {
|
|
269
|
+
name: "String"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
message: {
|
|
273
|
+
serializedName: "message",
|
|
274
|
+
readOnly: true,
|
|
275
|
+
type: {
|
|
276
|
+
name: "String"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
target: {
|
|
280
|
+
serializedName: "target",
|
|
281
|
+
readOnly: true,
|
|
282
|
+
type: {
|
|
283
|
+
name: "String"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
details: {
|
|
287
|
+
serializedName: "details",
|
|
288
|
+
readOnly: true,
|
|
289
|
+
type: {
|
|
290
|
+
name: "Sequence",
|
|
291
|
+
element: {
|
|
292
|
+
type: {
|
|
293
|
+
name: "Composite",
|
|
294
|
+
className: "ErrorDetail"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
additionalInfo: {
|
|
300
|
+
serializedName: "additionalInfo",
|
|
301
|
+
readOnly: true,
|
|
302
|
+
type: {
|
|
303
|
+
name: "Sequence",
|
|
304
|
+
element: {
|
|
305
|
+
type: {
|
|
306
|
+
name: "Composite",
|
|
307
|
+
className: "ErrorAdditionalInfo"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
const ErrorAdditionalInfo = {
|
|
316
|
+
type: {
|
|
317
|
+
name: "Composite",
|
|
318
|
+
className: "ErrorAdditionalInfo",
|
|
319
|
+
modelProperties: {
|
|
320
|
+
type: {
|
|
321
|
+
serializedName: "type",
|
|
322
|
+
readOnly: true,
|
|
323
|
+
type: {
|
|
324
|
+
name: "String"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
info: {
|
|
328
|
+
serializedName: "info",
|
|
329
|
+
readOnly: true,
|
|
330
|
+
type: {
|
|
331
|
+
name: "Dictionary",
|
|
332
|
+
value: { type: { name: "any" } }
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
const QuotaResourceList = {
|
|
339
|
+
type: {
|
|
340
|
+
name: "Composite",
|
|
341
|
+
className: "QuotaResourceList",
|
|
342
|
+
modelProperties: {
|
|
343
|
+
value: {
|
|
344
|
+
serializedName: "value",
|
|
345
|
+
readOnly: true,
|
|
346
|
+
type: {
|
|
347
|
+
name: "Sequence",
|
|
348
|
+
element: {
|
|
349
|
+
type: {
|
|
350
|
+
name: "Composite",
|
|
351
|
+
className: "QuotaResource"
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
nextLink: {
|
|
357
|
+
serializedName: "nextLink",
|
|
358
|
+
readOnly: true,
|
|
359
|
+
type: {
|
|
360
|
+
name: "String"
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
const Resource = {
|
|
367
|
+
type: {
|
|
368
|
+
name: "Composite",
|
|
369
|
+
className: "Resource",
|
|
370
|
+
modelProperties: {
|
|
371
|
+
id: {
|
|
372
|
+
serializedName: "id",
|
|
373
|
+
readOnly: true,
|
|
374
|
+
type: {
|
|
375
|
+
name: "String"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
name: {
|
|
379
|
+
serializedName: "name",
|
|
380
|
+
readOnly: true,
|
|
381
|
+
type: {
|
|
382
|
+
name: "String"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
type: {
|
|
386
|
+
serializedName: "type",
|
|
387
|
+
readOnly: true,
|
|
388
|
+
type: {
|
|
389
|
+
name: "String"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
systemData: {
|
|
393
|
+
serializedName: "systemData",
|
|
394
|
+
type: {
|
|
395
|
+
name: "Composite",
|
|
396
|
+
className: "SystemData"
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
const SystemData = {
|
|
403
|
+
type: {
|
|
404
|
+
name: "Composite",
|
|
405
|
+
className: "SystemData",
|
|
406
|
+
modelProperties: {
|
|
407
|
+
createdBy: {
|
|
408
|
+
serializedName: "createdBy",
|
|
409
|
+
type: {
|
|
410
|
+
name: "String"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
createdByType: {
|
|
414
|
+
serializedName: "createdByType",
|
|
415
|
+
type: {
|
|
416
|
+
name: "String"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
createdAt: {
|
|
420
|
+
serializedName: "createdAt",
|
|
421
|
+
type: {
|
|
422
|
+
name: "DateTime"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
lastModifiedBy: {
|
|
426
|
+
serializedName: "lastModifiedBy",
|
|
427
|
+
type: {
|
|
428
|
+
name: "String"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
lastModifiedByType: {
|
|
432
|
+
serializedName: "lastModifiedByType",
|
|
433
|
+
type: {
|
|
434
|
+
name: "String"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
lastModifiedAt: {
|
|
438
|
+
serializedName: "lastModifiedAt",
|
|
439
|
+
type: {
|
|
440
|
+
name: "DateTime"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
const QuotaBucketRequestPropertiesDimensions = {
|
|
447
|
+
type: {
|
|
448
|
+
name: "Composite",
|
|
449
|
+
className: "QuotaBucketRequestPropertiesDimensions",
|
|
450
|
+
modelProperties: {
|
|
451
|
+
subscriptionId: {
|
|
452
|
+
constraints: {
|
|
453
|
+
MinLength: 1
|
|
454
|
+
},
|
|
455
|
+
serializedName: "subscriptionId",
|
|
456
|
+
type: {
|
|
457
|
+
name: "String"
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
location: {
|
|
461
|
+
constraints: {
|
|
462
|
+
MinLength: 1
|
|
463
|
+
},
|
|
464
|
+
serializedName: "location",
|
|
465
|
+
type: {
|
|
466
|
+
name: "String"
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
};
|
|
472
|
+
const LoadTestResourcePageList = {
|
|
473
|
+
type: {
|
|
474
|
+
name: "Composite",
|
|
475
|
+
className: "LoadTestResourcePageList",
|
|
476
|
+
modelProperties: {
|
|
477
|
+
value: {
|
|
478
|
+
serializedName: "value",
|
|
479
|
+
type: {
|
|
480
|
+
name: "Sequence",
|
|
481
|
+
element: {
|
|
482
|
+
type: {
|
|
483
|
+
name: "Composite",
|
|
484
|
+
className: "LoadTestResource"
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
nextLink: {
|
|
490
|
+
serializedName: "nextLink",
|
|
491
|
+
type: {
|
|
492
|
+
name: "String"
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
const EncryptionProperties = {
|
|
499
|
+
type: {
|
|
500
|
+
name: "Composite",
|
|
501
|
+
className: "EncryptionProperties",
|
|
502
|
+
modelProperties: {
|
|
503
|
+
identity: {
|
|
504
|
+
serializedName: "identity",
|
|
505
|
+
type: {
|
|
506
|
+
name: "Composite",
|
|
507
|
+
className: "EncryptionPropertiesIdentity"
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
keyUrl: {
|
|
511
|
+
serializedName: "keyUrl",
|
|
512
|
+
type: {
|
|
513
|
+
name: "String"
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
const EncryptionPropertiesIdentity = {
|
|
520
|
+
type: {
|
|
521
|
+
name: "Composite",
|
|
522
|
+
className: "EncryptionPropertiesIdentity",
|
|
523
|
+
modelProperties: {
|
|
524
|
+
type: {
|
|
525
|
+
serializedName: "type",
|
|
526
|
+
type: {
|
|
527
|
+
name: "String"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
resourceId: {
|
|
531
|
+
serializedName: "resourceId",
|
|
532
|
+
nullable: true,
|
|
533
|
+
type: {
|
|
534
|
+
name: "String"
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
};
|
|
540
|
+
const ManagedServiceIdentity = {
|
|
541
|
+
type: {
|
|
542
|
+
name: "Composite",
|
|
543
|
+
className: "ManagedServiceIdentity",
|
|
544
|
+
modelProperties: {
|
|
545
|
+
principalId: {
|
|
546
|
+
serializedName: "principalId",
|
|
547
|
+
readOnly: true,
|
|
548
|
+
type: {
|
|
549
|
+
name: "Uuid"
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
tenantId: {
|
|
553
|
+
serializedName: "tenantId",
|
|
554
|
+
readOnly: true,
|
|
555
|
+
type: {
|
|
556
|
+
name: "Uuid"
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
type: {
|
|
560
|
+
serializedName: "type",
|
|
561
|
+
required: true,
|
|
562
|
+
type: {
|
|
563
|
+
name: "String"
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
userAssignedIdentities: {
|
|
567
|
+
serializedName: "userAssignedIdentities",
|
|
568
|
+
type: {
|
|
569
|
+
name: "Dictionary",
|
|
570
|
+
value: {
|
|
571
|
+
type: { name: "Composite", className: "UserAssignedIdentity" }
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
const UserAssignedIdentity = {
|
|
579
|
+
type: {
|
|
580
|
+
name: "Composite",
|
|
581
|
+
className: "UserAssignedIdentity",
|
|
582
|
+
modelProperties: {
|
|
583
|
+
principalId: {
|
|
584
|
+
serializedName: "principalId",
|
|
585
|
+
readOnly: true,
|
|
586
|
+
type: {
|
|
587
|
+
name: "Uuid"
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
clientId: {
|
|
591
|
+
serializedName: "clientId",
|
|
592
|
+
readOnly: true,
|
|
593
|
+
type: {
|
|
594
|
+
name: "Uuid"
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
};
|
|
600
|
+
const LoadTestResourcePatchRequestBody = {
|
|
601
|
+
type: {
|
|
602
|
+
name: "Composite",
|
|
603
|
+
className: "LoadTestResourcePatchRequestBody",
|
|
604
|
+
modelProperties: {
|
|
605
|
+
tags: {
|
|
606
|
+
serializedName: "tags",
|
|
607
|
+
nullable: true,
|
|
608
|
+
type: {
|
|
609
|
+
name: "Dictionary",
|
|
610
|
+
value: { type: { name: "String" } }
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
identity: {
|
|
614
|
+
serializedName: "identity",
|
|
615
|
+
type: {
|
|
616
|
+
name: "Composite",
|
|
617
|
+
className: "ManagedServiceIdentity"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
description: {
|
|
621
|
+
constraints: {
|
|
622
|
+
MaxLength: 512
|
|
623
|
+
},
|
|
624
|
+
serializedName: "properties.description",
|
|
625
|
+
type: {
|
|
626
|
+
name: "String"
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
encryption: {
|
|
630
|
+
serializedName: "properties.encryption",
|
|
631
|
+
type: {
|
|
632
|
+
name: "Composite",
|
|
633
|
+
className: "EncryptionProperties"
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
const OutboundEnvironmentEndpointCollection = {
|
|
640
|
+
type: {
|
|
641
|
+
name: "Composite",
|
|
642
|
+
className: "OutboundEnvironmentEndpointCollection",
|
|
643
|
+
modelProperties: {
|
|
644
|
+
value: {
|
|
645
|
+
serializedName: "value",
|
|
646
|
+
readOnly: true,
|
|
647
|
+
type: {
|
|
648
|
+
name: "Sequence",
|
|
649
|
+
element: {
|
|
650
|
+
type: {
|
|
651
|
+
name: "Composite",
|
|
652
|
+
className: "OutboundEnvironmentEndpoint"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
nextLink: {
|
|
658
|
+
serializedName: "nextLink",
|
|
659
|
+
type: {
|
|
660
|
+
name: "String"
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
};
|
|
666
|
+
const OutboundEnvironmentEndpoint = {
|
|
667
|
+
type: {
|
|
668
|
+
name: "Composite",
|
|
669
|
+
className: "OutboundEnvironmentEndpoint",
|
|
670
|
+
modelProperties: {
|
|
671
|
+
category: {
|
|
672
|
+
serializedName: "category",
|
|
673
|
+
readOnly: true,
|
|
674
|
+
type: {
|
|
675
|
+
name: "String"
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
endpoints: {
|
|
679
|
+
serializedName: "endpoints",
|
|
680
|
+
readOnly: true,
|
|
681
|
+
type: {
|
|
682
|
+
name: "Sequence",
|
|
683
|
+
element: {
|
|
684
|
+
type: {
|
|
685
|
+
name: "Composite",
|
|
686
|
+
className: "EndpointDependency"
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
};
|
|
694
|
+
const EndpointDependency = {
|
|
695
|
+
type: {
|
|
696
|
+
name: "Composite",
|
|
697
|
+
className: "EndpointDependency",
|
|
698
|
+
modelProperties: {
|
|
699
|
+
domainName: {
|
|
700
|
+
serializedName: "domainName",
|
|
701
|
+
readOnly: true,
|
|
702
|
+
type: {
|
|
703
|
+
name: "String"
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
description: {
|
|
707
|
+
serializedName: "description",
|
|
708
|
+
readOnly: true,
|
|
709
|
+
type: {
|
|
710
|
+
name: "String"
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
endpointDetails: {
|
|
714
|
+
serializedName: "endpointDetails",
|
|
715
|
+
readOnly: true,
|
|
716
|
+
type: {
|
|
717
|
+
name: "Sequence",
|
|
718
|
+
element: {
|
|
719
|
+
type: {
|
|
720
|
+
name: "Composite",
|
|
721
|
+
className: "EndpointDetail"
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
const EndpointDetail = {
|
|
730
|
+
type: {
|
|
731
|
+
name: "Composite",
|
|
732
|
+
className: "EndpointDetail",
|
|
733
|
+
modelProperties: {
|
|
734
|
+
port: {
|
|
735
|
+
serializedName: "port",
|
|
736
|
+
readOnly: true,
|
|
737
|
+
type: {
|
|
738
|
+
name: "Number"
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
const QuotaResource = {
|
|
745
|
+
type: {
|
|
746
|
+
name: "Composite",
|
|
747
|
+
className: "QuotaResource",
|
|
748
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { limit: {
|
|
749
|
+
constraints: {
|
|
750
|
+
InclusiveMinimum: 0
|
|
751
|
+
},
|
|
752
|
+
serializedName: "properties.limit",
|
|
753
|
+
type: {
|
|
754
|
+
name: "Number"
|
|
755
|
+
}
|
|
756
|
+
}, usage: {
|
|
757
|
+
constraints: {
|
|
758
|
+
InclusiveMinimum: 0
|
|
759
|
+
},
|
|
760
|
+
serializedName: "properties.usage",
|
|
761
|
+
type: {
|
|
762
|
+
name: "Number"
|
|
763
|
+
}
|
|
764
|
+
}, provisioningState: {
|
|
765
|
+
serializedName: "properties.provisioningState",
|
|
766
|
+
readOnly: true,
|
|
767
|
+
type: {
|
|
768
|
+
name: "String"
|
|
769
|
+
}
|
|
770
|
+
} })
|
|
771
|
+
}
|
|
772
|
+
};
|
|
773
|
+
const QuotaBucketRequest = {
|
|
774
|
+
type: {
|
|
775
|
+
name: "Composite",
|
|
776
|
+
className: "QuotaBucketRequest",
|
|
777
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { currentUsage: {
|
|
778
|
+
constraints: {
|
|
779
|
+
InclusiveMinimum: 0
|
|
780
|
+
},
|
|
781
|
+
serializedName: "properties.currentUsage",
|
|
782
|
+
type: {
|
|
783
|
+
name: "Number"
|
|
784
|
+
}
|
|
785
|
+
}, currentQuota: {
|
|
786
|
+
constraints: {
|
|
787
|
+
InclusiveMinimum: 0
|
|
788
|
+
},
|
|
789
|
+
serializedName: "properties.currentQuota",
|
|
790
|
+
type: {
|
|
791
|
+
name: "Number"
|
|
792
|
+
}
|
|
793
|
+
}, newQuota: {
|
|
794
|
+
constraints: {
|
|
795
|
+
InclusiveMinimum: 0
|
|
796
|
+
},
|
|
797
|
+
serializedName: "properties.newQuota",
|
|
798
|
+
type: {
|
|
799
|
+
name: "Number"
|
|
800
|
+
}
|
|
801
|
+
}, dimensions: {
|
|
802
|
+
serializedName: "properties.dimensions",
|
|
803
|
+
type: {
|
|
804
|
+
name: "Composite",
|
|
805
|
+
className: "QuotaBucketRequestPropertiesDimensions"
|
|
806
|
+
}
|
|
807
|
+
} })
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
const CheckQuotaAvailabilityResponse = {
|
|
811
|
+
type: {
|
|
812
|
+
name: "Composite",
|
|
813
|
+
className: "CheckQuotaAvailabilityResponse",
|
|
814
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { isAvailable: {
|
|
815
|
+
serializedName: "properties.isAvailable",
|
|
816
|
+
type: {
|
|
817
|
+
name: "Boolean"
|
|
818
|
+
}
|
|
819
|
+
}, availabilityStatus: {
|
|
820
|
+
serializedName: "properties.availabilityStatus",
|
|
821
|
+
type: {
|
|
822
|
+
name: "String"
|
|
823
|
+
}
|
|
824
|
+
} })
|
|
825
|
+
}
|
|
826
|
+
};
|
|
827
|
+
const TrackedResource = {
|
|
828
|
+
type: {
|
|
829
|
+
name: "Composite",
|
|
830
|
+
className: "TrackedResource",
|
|
831
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
832
|
+
serializedName: "tags",
|
|
833
|
+
type: {
|
|
834
|
+
name: "Dictionary",
|
|
835
|
+
value: { type: { name: "String" } }
|
|
836
|
+
}
|
|
837
|
+
}, location: {
|
|
838
|
+
serializedName: "location",
|
|
839
|
+
required: true,
|
|
840
|
+
type: {
|
|
841
|
+
name: "String"
|
|
842
|
+
}
|
|
843
|
+
} })
|
|
844
|
+
}
|
|
845
|
+
};
|
|
846
|
+
const LoadTestResource = {
|
|
847
|
+
type: {
|
|
848
|
+
name: "Composite",
|
|
849
|
+
className: "LoadTestResource",
|
|
850
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
|
|
851
|
+
serializedName: "identity",
|
|
852
|
+
type: {
|
|
853
|
+
name: "Composite",
|
|
854
|
+
className: "ManagedServiceIdentity"
|
|
855
|
+
}
|
|
856
|
+
}, description: {
|
|
857
|
+
constraints: {
|
|
858
|
+
MaxLength: 512
|
|
859
|
+
},
|
|
860
|
+
serializedName: "properties.description",
|
|
861
|
+
type: {
|
|
862
|
+
name: "String"
|
|
863
|
+
}
|
|
864
|
+
}, provisioningState: {
|
|
865
|
+
serializedName: "properties.provisioningState",
|
|
866
|
+
readOnly: true,
|
|
867
|
+
type: {
|
|
868
|
+
name: "String"
|
|
869
|
+
}
|
|
870
|
+
}, dataPlaneURI: {
|
|
871
|
+
constraints: {
|
|
872
|
+
MaxLength: 2083
|
|
873
|
+
},
|
|
874
|
+
serializedName: "properties.dataPlaneURI",
|
|
875
|
+
readOnly: true,
|
|
876
|
+
type: {
|
|
877
|
+
name: "String"
|
|
878
|
+
}
|
|
879
|
+
}, encryption: {
|
|
880
|
+
serializedName: "properties.encryption",
|
|
881
|
+
type: {
|
|
882
|
+
name: "Composite",
|
|
883
|
+
className: "EncryptionProperties"
|
|
884
|
+
}
|
|
885
|
+
} })
|
|
886
|
+
}
|
|
887
|
+
};
|
|
888
|
+
const LoadTestsCreateOrUpdateHeaders = {
|
|
889
|
+
type: {
|
|
890
|
+
name: "Composite",
|
|
891
|
+
className: "LoadTestsCreateOrUpdateHeaders",
|
|
892
|
+
modelProperties: {
|
|
893
|
+
azureAsyncOperation: {
|
|
894
|
+
serializedName: "azure-asyncoperation",
|
|
895
|
+
type: {
|
|
896
|
+
name: "String"
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
};
|
|
902
|
+
const LoadTestsUpdateHeaders = {
|
|
903
|
+
type: {
|
|
904
|
+
name: "Composite",
|
|
905
|
+
className: "LoadTestsUpdateHeaders",
|
|
906
|
+
modelProperties: {
|
|
907
|
+
azureAsyncOperation: {
|
|
908
|
+
serializedName: "azure-asyncoperation",
|
|
909
|
+
type: {
|
|
910
|
+
name: "String"
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
const LoadTestsDeleteHeaders = {
|
|
917
|
+
type: {
|
|
918
|
+
name: "Composite",
|
|
919
|
+
className: "LoadTestsDeleteHeaders",
|
|
920
|
+
modelProperties: {
|
|
921
|
+
location: {
|
|
922
|
+
serializedName: "location",
|
|
923
|
+
type: {
|
|
924
|
+
name: "String"
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
932
|
+
__proto__: null,
|
|
933
|
+
OperationListResult: OperationListResult,
|
|
934
|
+
Operation: Operation,
|
|
935
|
+
OperationDisplay: OperationDisplay,
|
|
936
|
+
ErrorResponse: ErrorResponse,
|
|
937
|
+
ErrorDetail: ErrorDetail,
|
|
938
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
939
|
+
QuotaResourceList: QuotaResourceList,
|
|
940
|
+
Resource: Resource,
|
|
941
|
+
SystemData: SystemData,
|
|
942
|
+
QuotaBucketRequestPropertiesDimensions: QuotaBucketRequestPropertiesDimensions,
|
|
943
|
+
LoadTestResourcePageList: LoadTestResourcePageList,
|
|
944
|
+
EncryptionProperties: EncryptionProperties,
|
|
945
|
+
EncryptionPropertiesIdentity: EncryptionPropertiesIdentity,
|
|
946
|
+
ManagedServiceIdentity: ManagedServiceIdentity,
|
|
947
|
+
UserAssignedIdentity: UserAssignedIdentity,
|
|
948
|
+
LoadTestResourcePatchRequestBody: LoadTestResourcePatchRequestBody,
|
|
949
|
+
OutboundEnvironmentEndpointCollection: OutboundEnvironmentEndpointCollection,
|
|
950
|
+
OutboundEnvironmentEndpoint: OutboundEnvironmentEndpoint,
|
|
951
|
+
EndpointDependency: EndpointDependency,
|
|
952
|
+
EndpointDetail: EndpointDetail,
|
|
953
|
+
QuotaResource: QuotaResource,
|
|
954
|
+
QuotaBucketRequest: QuotaBucketRequest,
|
|
955
|
+
CheckQuotaAvailabilityResponse: CheckQuotaAvailabilityResponse,
|
|
956
|
+
TrackedResource: TrackedResource,
|
|
957
|
+
LoadTestResource: LoadTestResource,
|
|
958
|
+
LoadTestsCreateOrUpdateHeaders: LoadTestsCreateOrUpdateHeaders,
|
|
959
|
+
LoadTestsUpdateHeaders: LoadTestsUpdateHeaders,
|
|
960
|
+
LoadTestsDeleteHeaders: LoadTestsDeleteHeaders
|
|
961
|
+
});
|
|
962
|
+
|
|
963
|
+
/*
|
|
964
|
+
* Copyright (c) Microsoft Corporation.
|
|
965
|
+
* Licensed under the MIT License.
|
|
966
|
+
*
|
|
967
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
968
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
969
|
+
*/
|
|
970
|
+
const accept = {
|
|
971
|
+
parameterPath: "accept",
|
|
972
|
+
mapper: {
|
|
973
|
+
defaultValue: "application/json",
|
|
974
|
+
isConstant: true,
|
|
975
|
+
serializedName: "Accept",
|
|
976
|
+
type: {
|
|
977
|
+
name: "String"
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
};
|
|
981
|
+
const $host = {
|
|
982
|
+
parameterPath: "$host",
|
|
983
|
+
mapper: {
|
|
984
|
+
serializedName: "$host",
|
|
985
|
+
required: true,
|
|
986
|
+
type: {
|
|
987
|
+
name: "String"
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
skipEncoding: true
|
|
991
|
+
};
|
|
992
|
+
const apiVersion = {
|
|
993
|
+
parameterPath: "apiVersion",
|
|
994
|
+
mapper: {
|
|
995
|
+
defaultValue: "2022-12-01",
|
|
996
|
+
isConstant: true,
|
|
997
|
+
serializedName: "api-version",
|
|
998
|
+
type: {
|
|
999
|
+
name: "String"
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
};
|
|
1003
|
+
const nextLink = {
|
|
1004
|
+
parameterPath: "nextLink",
|
|
1005
|
+
mapper: {
|
|
1006
|
+
serializedName: "nextLink",
|
|
1007
|
+
required: true,
|
|
1008
|
+
type: {
|
|
1009
|
+
name: "String"
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
skipEncoding: true
|
|
1013
|
+
};
|
|
1014
|
+
const subscriptionId = {
|
|
1015
|
+
parameterPath: "subscriptionId",
|
|
1016
|
+
mapper: {
|
|
1017
|
+
constraints: {
|
|
1018
|
+
MinLength: 1
|
|
1019
|
+
},
|
|
1020
|
+
serializedName: "subscriptionId",
|
|
1021
|
+
required: true,
|
|
1022
|
+
type: {
|
|
1023
|
+
name: "String"
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
};
|
|
1027
|
+
const location = {
|
|
1028
|
+
parameterPath: "location",
|
|
1029
|
+
mapper: {
|
|
1030
|
+
constraints: {
|
|
1031
|
+
MinLength: 1
|
|
1032
|
+
},
|
|
1033
|
+
serializedName: "location",
|
|
1034
|
+
required: true,
|
|
1035
|
+
type: {
|
|
1036
|
+
name: "String"
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
};
|
|
1040
|
+
const quotaBucketName = {
|
|
1041
|
+
parameterPath: "quotaBucketName",
|
|
1042
|
+
mapper: {
|
|
1043
|
+
serializedName: "quotaBucketName",
|
|
1044
|
+
required: true,
|
|
1045
|
+
type: {
|
|
1046
|
+
name: "String"
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
};
|
|
1050
|
+
const contentType = {
|
|
1051
|
+
parameterPath: ["options", "contentType"],
|
|
1052
|
+
mapper: {
|
|
1053
|
+
defaultValue: "application/json",
|
|
1054
|
+
isConstant: true,
|
|
1055
|
+
serializedName: "Content-Type",
|
|
1056
|
+
type: {
|
|
1057
|
+
name: "String"
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
};
|
|
1061
|
+
const quotaBucketRequest = {
|
|
1062
|
+
parameterPath: "quotaBucketRequest",
|
|
1063
|
+
mapper: QuotaBucketRequest
|
|
1064
|
+
};
|
|
1065
|
+
const resourceGroupName = {
|
|
1066
|
+
parameterPath: "resourceGroupName",
|
|
1067
|
+
mapper: {
|
|
1068
|
+
constraints: {
|
|
1069
|
+
MaxLength: 90,
|
|
1070
|
+
MinLength: 1
|
|
1071
|
+
},
|
|
1072
|
+
serializedName: "resourceGroupName",
|
|
1073
|
+
required: true,
|
|
1074
|
+
type: {
|
|
1075
|
+
name: "String"
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
};
|
|
1079
|
+
const loadTestName = {
|
|
1080
|
+
parameterPath: "loadTestName",
|
|
1081
|
+
mapper: {
|
|
1082
|
+
serializedName: "loadTestName",
|
|
1083
|
+
required: true,
|
|
1084
|
+
type: {
|
|
1085
|
+
name: "String"
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
};
|
|
1089
|
+
const loadTestResource = {
|
|
1090
|
+
parameterPath: "loadTestResource",
|
|
1091
|
+
mapper: LoadTestResource
|
|
1092
|
+
};
|
|
1093
|
+
const loadTestResourcePatchRequestBody = {
|
|
1094
|
+
parameterPath: "loadTestResourcePatchRequestBody",
|
|
1095
|
+
mapper: LoadTestResourcePatchRequestBody
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
/*
|
|
1099
|
+
* Copyright (c) Microsoft Corporation.
|
|
1100
|
+
* Licensed under the MIT License.
|
|
1101
|
+
*
|
|
1102
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1103
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1104
|
+
*/
|
|
1105
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1106
|
+
/** Class containing Operations operations. */
|
|
1107
|
+
class OperationsImpl {
|
|
1108
|
+
/**
|
|
1109
|
+
* Initialize a new instance of the class Operations class.
|
|
1110
|
+
* @param client Reference to the service client
|
|
1111
|
+
*/
|
|
1112
|
+
constructor(client) {
|
|
1113
|
+
this.client = client;
|
|
1114
|
+
}
|
|
1115
|
+
/**
|
|
1116
|
+
* Lists all the available API operations for Load Test Resource.
|
|
1117
|
+
* @param options The options parameters.
|
|
1118
|
+
*/
|
|
1119
|
+
list(options) {
|
|
1120
|
+
const iter = this.listPagingAll(options);
|
|
1121
|
+
return {
|
|
1122
|
+
next() {
|
|
1123
|
+
return iter.next();
|
|
1124
|
+
},
|
|
1125
|
+
[Symbol.asyncIterator]() {
|
|
1126
|
+
return this;
|
|
1127
|
+
},
|
|
1128
|
+
byPage: (settings) => {
|
|
1129
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1130
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1131
|
+
}
|
|
1132
|
+
return this.listPagingPage(options, settings);
|
|
1133
|
+
}
|
|
1134
|
+
};
|
|
1135
|
+
}
|
|
1136
|
+
listPagingPage(options, settings) {
|
|
1137
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1138
|
+
let result;
|
|
1139
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1140
|
+
if (!continuationToken) {
|
|
1141
|
+
result = yield tslib.__await(this._list(options));
|
|
1142
|
+
let page = result.value || [];
|
|
1143
|
+
continuationToken = result.nextLink;
|
|
1144
|
+
setContinuationToken(page, continuationToken);
|
|
1145
|
+
yield yield tslib.__await(page);
|
|
1146
|
+
}
|
|
1147
|
+
while (continuationToken) {
|
|
1148
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1149
|
+
continuationToken = result.nextLink;
|
|
1150
|
+
let page = result.value || [];
|
|
1151
|
+
setContinuationToken(page, continuationToken);
|
|
1152
|
+
yield yield tslib.__await(page);
|
|
1153
|
+
}
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
listPagingAll(options) {
|
|
1157
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1158
|
+
var e_1, _a;
|
|
1159
|
+
try {
|
|
1160
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1161
|
+
const page = _c.value;
|
|
1162
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1166
|
+
finally {
|
|
1167
|
+
try {
|
|
1168
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1169
|
+
}
|
|
1170
|
+
finally { if (e_1) throw e_1.error; }
|
|
1171
|
+
}
|
|
1172
|
+
});
|
|
1173
|
+
}
|
|
1174
|
+
/**
|
|
1175
|
+
* Lists all the available API operations for Load Test Resource.
|
|
1176
|
+
* @param options The options parameters.
|
|
1177
|
+
*/
|
|
1178
|
+
_list(options) {
|
|
1179
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
* ListNext
|
|
1183
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1184
|
+
* @param options The options parameters.
|
|
1185
|
+
*/
|
|
1186
|
+
_listNext(nextLink, options) {
|
|
1187
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
// Operation Specifications
|
|
1191
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1192
|
+
const listOperationSpec$1 = {
|
|
1193
|
+
path: "/providers/Microsoft.LoadTestService/operations",
|
|
1194
|
+
httpMethod: "GET",
|
|
1195
|
+
responses: {
|
|
1196
|
+
200: {
|
|
1197
|
+
bodyMapper: OperationListResult
|
|
1198
|
+
},
|
|
1199
|
+
default: {
|
|
1200
|
+
bodyMapper: ErrorResponse
|
|
1201
|
+
}
|
|
1202
|
+
},
|
|
1203
|
+
queryParameters: [apiVersion],
|
|
1204
|
+
urlParameters: [$host],
|
|
1205
|
+
headerParameters: [accept],
|
|
1206
|
+
serializer: serializer$2
|
|
1207
|
+
};
|
|
1208
|
+
const listNextOperationSpec$1 = {
|
|
1209
|
+
path: "{nextLink}",
|
|
1210
|
+
httpMethod: "GET",
|
|
1211
|
+
responses: {
|
|
1212
|
+
200: {
|
|
1213
|
+
bodyMapper: OperationListResult
|
|
1214
|
+
},
|
|
1215
|
+
default: {
|
|
1216
|
+
bodyMapper: ErrorResponse
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
queryParameters: [apiVersion],
|
|
1220
|
+
urlParameters: [$host, nextLink],
|
|
1221
|
+
headerParameters: [accept],
|
|
1222
|
+
serializer: serializer$2
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
/*
|
|
1226
|
+
* Copyright (c) Microsoft Corporation.
|
|
1227
|
+
* Licensed under the MIT License.
|
|
1228
|
+
*
|
|
1229
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1230
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1231
|
+
*/
|
|
1232
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1233
|
+
/** Class containing Quotas operations. */
|
|
1234
|
+
class QuotasImpl {
|
|
1235
|
+
/**
|
|
1236
|
+
* Initialize a new instance of the class Quotas class.
|
|
1237
|
+
* @param client Reference to the service client
|
|
1238
|
+
*/
|
|
1239
|
+
constructor(client) {
|
|
1240
|
+
this.client = client;
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Lists all the available quota per region per subscription.
|
|
1244
|
+
* @param location The name of Azure region.
|
|
1245
|
+
* @param options The options parameters.
|
|
1246
|
+
*/
|
|
1247
|
+
list(location, options) {
|
|
1248
|
+
const iter = this.listPagingAll(location, options);
|
|
1249
|
+
return {
|
|
1250
|
+
next() {
|
|
1251
|
+
return iter.next();
|
|
1252
|
+
},
|
|
1253
|
+
[Symbol.asyncIterator]() {
|
|
1254
|
+
return this;
|
|
1255
|
+
},
|
|
1256
|
+
byPage: (settings) => {
|
|
1257
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1258
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1259
|
+
}
|
|
1260
|
+
return this.listPagingPage(location, options, settings);
|
|
1261
|
+
}
|
|
1262
|
+
};
|
|
1263
|
+
}
|
|
1264
|
+
listPagingPage(location, options, settings) {
|
|
1265
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1266
|
+
let result;
|
|
1267
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1268
|
+
if (!continuationToken) {
|
|
1269
|
+
result = yield tslib.__await(this._list(location, options));
|
|
1270
|
+
let page = result.value || [];
|
|
1271
|
+
continuationToken = result.nextLink;
|
|
1272
|
+
setContinuationToken(page, continuationToken);
|
|
1273
|
+
yield yield tslib.__await(page);
|
|
1274
|
+
}
|
|
1275
|
+
while (continuationToken) {
|
|
1276
|
+
result = yield tslib.__await(this._listNext(location, continuationToken, options));
|
|
1277
|
+
continuationToken = result.nextLink;
|
|
1278
|
+
let page = result.value || [];
|
|
1279
|
+
setContinuationToken(page, continuationToken);
|
|
1280
|
+
yield yield tslib.__await(page);
|
|
1281
|
+
}
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
listPagingAll(location, options) {
|
|
1285
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1286
|
+
var e_1, _a;
|
|
1287
|
+
try {
|
|
1288
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(location, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1289
|
+
const page = _c.value;
|
|
1290
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1294
|
+
finally {
|
|
1295
|
+
try {
|
|
1296
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1297
|
+
}
|
|
1298
|
+
finally { if (e_1) throw e_1.error; }
|
|
1299
|
+
}
|
|
1300
|
+
});
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* Lists all the available quota per region per subscription.
|
|
1304
|
+
* @param location The name of Azure region.
|
|
1305
|
+
* @param options The options parameters.
|
|
1306
|
+
*/
|
|
1307
|
+
_list(location, options) {
|
|
1308
|
+
return this.client.sendOperationRequest({ location, options }, listOperationSpec);
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* Get the available quota for a quota bucket per region per subscription.
|
|
1312
|
+
* @param location The name of Azure region.
|
|
1313
|
+
* @param quotaBucketName Quota Bucket name.
|
|
1314
|
+
* @param options The options parameters.
|
|
1315
|
+
*/
|
|
1316
|
+
get(location, quotaBucketName, options) {
|
|
1317
|
+
return this.client.sendOperationRequest({ location, quotaBucketName, options }, getOperationSpec$1);
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* Check Quota Availability on quota bucket per region per subscription.
|
|
1321
|
+
* @param location The name of Azure region.
|
|
1322
|
+
* @param quotaBucketName Quota Bucket name.
|
|
1323
|
+
* @param quotaBucketRequest Quota Bucket Request data
|
|
1324
|
+
* @param options The options parameters.
|
|
1325
|
+
*/
|
|
1326
|
+
checkAvailability(location, quotaBucketName, quotaBucketRequest, options) {
|
|
1327
|
+
return this.client.sendOperationRequest({ location, quotaBucketName, quotaBucketRequest, options }, checkAvailabilityOperationSpec);
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
* ListNext
|
|
1331
|
+
* @param location The name of Azure region.
|
|
1332
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1333
|
+
* @param options The options parameters.
|
|
1334
|
+
*/
|
|
1335
|
+
_listNext(location, nextLink, options) {
|
|
1336
|
+
return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec);
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
// Operation Specifications
|
|
1340
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1341
|
+
const listOperationSpec = {
|
|
1342
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas",
|
|
1343
|
+
httpMethod: "GET",
|
|
1344
|
+
responses: {
|
|
1345
|
+
200: {
|
|
1346
|
+
bodyMapper: QuotaResourceList
|
|
1347
|
+
},
|
|
1348
|
+
default: {
|
|
1349
|
+
bodyMapper: ErrorResponse
|
|
1350
|
+
}
|
|
1351
|
+
},
|
|
1352
|
+
queryParameters: [apiVersion],
|
|
1353
|
+
urlParameters: [
|
|
1354
|
+
$host,
|
|
1355
|
+
subscriptionId,
|
|
1356
|
+
location
|
|
1357
|
+
],
|
|
1358
|
+
headerParameters: [accept],
|
|
1359
|
+
serializer: serializer$1
|
|
1360
|
+
};
|
|
1361
|
+
const getOperationSpec$1 = {
|
|
1362
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}",
|
|
1363
|
+
httpMethod: "GET",
|
|
1364
|
+
responses: {
|
|
1365
|
+
200: {
|
|
1366
|
+
bodyMapper: QuotaResource
|
|
1367
|
+
},
|
|
1368
|
+
default: {
|
|
1369
|
+
bodyMapper: ErrorResponse
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
queryParameters: [apiVersion],
|
|
1373
|
+
urlParameters: [
|
|
1374
|
+
$host,
|
|
1375
|
+
subscriptionId,
|
|
1376
|
+
location,
|
|
1377
|
+
quotaBucketName
|
|
1378
|
+
],
|
|
1379
|
+
headerParameters: [accept],
|
|
1380
|
+
serializer: serializer$1
|
|
1381
|
+
};
|
|
1382
|
+
const checkAvailabilityOperationSpec = {
|
|
1383
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}/checkAvailability",
|
|
1384
|
+
httpMethod: "POST",
|
|
1385
|
+
responses: {
|
|
1386
|
+
200: {
|
|
1387
|
+
bodyMapper: CheckQuotaAvailabilityResponse
|
|
1388
|
+
},
|
|
1389
|
+
default: {
|
|
1390
|
+
bodyMapper: ErrorResponse
|
|
1391
|
+
}
|
|
1392
|
+
},
|
|
1393
|
+
requestBody: quotaBucketRequest,
|
|
1394
|
+
queryParameters: [apiVersion],
|
|
1395
|
+
urlParameters: [
|
|
1396
|
+
$host,
|
|
1397
|
+
subscriptionId,
|
|
1398
|
+
location,
|
|
1399
|
+
quotaBucketName
|
|
1400
|
+
],
|
|
1401
|
+
headerParameters: [accept, contentType],
|
|
1402
|
+
mediaType: "json",
|
|
1403
|
+
serializer: serializer$1
|
|
1404
|
+
};
|
|
1405
|
+
const listNextOperationSpec = {
|
|
1406
|
+
path: "{nextLink}",
|
|
1407
|
+
httpMethod: "GET",
|
|
1408
|
+
responses: {
|
|
1409
|
+
200: {
|
|
1410
|
+
bodyMapper: QuotaResourceList
|
|
1411
|
+
},
|
|
1412
|
+
default: {
|
|
1413
|
+
bodyMapper: ErrorResponse
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1416
|
+
queryParameters: [apiVersion],
|
|
1417
|
+
urlParameters: [
|
|
1418
|
+
$host,
|
|
1419
|
+
nextLink,
|
|
1420
|
+
subscriptionId,
|
|
1421
|
+
location
|
|
1422
|
+
],
|
|
1423
|
+
headerParameters: [accept],
|
|
1424
|
+
serializer: serializer$1
|
|
1425
|
+
};
|
|
1426
|
+
|
|
1427
|
+
/*
|
|
1428
|
+
* Copyright (c) Microsoft Corporation.
|
|
1429
|
+
* Licensed under the MIT License.
|
|
1430
|
+
*
|
|
1431
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1432
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1433
|
+
*/
|
|
1434
|
+
class LroImpl {
|
|
1435
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
1436
|
+
this.sendOperationFn = sendOperationFn;
|
|
1437
|
+
this.args = args;
|
|
1438
|
+
this.spec = spec;
|
|
1439
|
+
this.requestPath = requestPath;
|
|
1440
|
+
this.requestMethod = requestMethod;
|
|
1441
|
+
}
|
|
1442
|
+
sendInitialRequest() {
|
|
1443
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1444
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
1445
|
+
});
|
|
1446
|
+
}
|
|
1447
|
+
sendPollRequest(path) {
|
|
1448
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1449
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1450
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
/*
|
|
1456
|
+
* Copyright (c) Microsoft Corporation.
|
|
1457
|
+
* Licensed under the MIT License.
|
|
1458
|
+
*
|
|
1459
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1460
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1461
|
+
*/
|
|
1462
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1463
|
+
/** Class containing LoadTests operations. */
|
|
1464
|
+
class LoadTestsImpl {
|
|
1465
|
+
/**
|
|
1466
|
+
* Initialize a new instance of the class LoadTests class.
|
|
1467
|
+
* @param client Reference to the service client
|
|
1468
|
+
*/
|
|
1469
|
+
constructor(client) {
|
|
1470
|
+
this.client = client;
|
|
1471
|
+
}
|
|
1472
|
+
/**
|
|
1473
|
+
* Lists loadtests resources in a subscription.
|
|
1474
|
+
* @param options The options parameters.
|
|
1475
|
+
*/
|
|
1476
|
+
listBySubscription(options) {
|
|
1477
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
1478
|
+
return {
|
|
1479
|
+
next() {
|
|
1480
|
+
return iter.next();
|
|
1481
|
+
},
|
|
1482
|
+
[Symbol.asyncIterator]() {
|
|
1483
|
+
return this;
|
|
1484
|
+
},
|
|
1485
|
+
byPage: (settings) => {
|
|
1486
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1487
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1488
|
+
}
|
|
1489
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
1490
|
+
}
|
|
1491
|
+
};
|
|
1492
|
+
}
|
|
1493
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
1494
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1495
|
+
let result;
|
|
1496
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1497
|
+
if (!continuationToken) {
|
|
1498
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
1499
|
+
let page = result.value || [];
|
|
1500
|
+
continuationToken = result.nextLink;
|
|
1501
|
+
setContinuationToken(page, continuationToken);
|
|
1502
|
+
yield yield tslib.__await(page);
|
|
1503
|
+
}
|
|
1504
|
+
while (continuationToken) {
|
|
1505
|
+
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1506
|
+
continuationToken = result.nextLink;
|
|
1507
|
+
let page = result.value || [];
|
|
1508
|
+
setContinuationToken(page, continuationToken);
|
|
1509
|
+
yield yield tslib.__await(page);
|
|
1510
|
+
}
|
|
1511
|
+
});
|
|
1512
|
+
}
|
|
1513
|
+
listBySubscriptionPagingAll(options) {
|
|
1514
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1515
|
+
var e_1, _a;
|
|
1516
|
+
try {
|
|
1517
|
+
for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1518
|
+
const page = _c.value;
|
|
1519
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1523
|
+
finally {
|
|
1524
|
+
try {
|
|
1525
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1526
|
+
}
|
|
1527
|
+
finally { if (e_1) throw e_1.error; }
|
|
1528
|
+
}
|
|
1529
|
+
});
|
|
1530
|
+
}
|
|
1531
|
+
/**
|
|
1532
|
+
* Lists loadtest resources in a resource group.
|
|
1533
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1534
|
+
* @param options The options parameters.
|
|
1535
|
+
*/
|
|
1536
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
1537
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1538
|
+
return {
|
|
1539
|
+
next() {
|
|
1540
|
+
return iter.next();
|
|
1541
|
+
},
|
|
1542
|
+
[Symbol.asyncIterator]() {
|
|
1543
|
+
return this;
|
|
1544
|
+
},
|
|
1545
|
+
byPage: (settings) => {
|
|
1546
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1547
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1548
|
+
}
|
|
1549
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1550
|
+
}
|
|
1551
|
+
};
|
|
1552
|
+
}
|
|
1553
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1554
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1555
|
+
let result;
|
|
1556
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1557
|
+
if (!continuationToken) {
|
|
1558
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1559
|
+
let page = result.value || [];
|
|
1560
|
+
continuationToken = result.nextLink;
|
|
1561
|
+
setContinuationToken(page, continuationToken);
|
|
1562
|
+
yield yield tslib.__await(page);
|
|
1563
|
+
}
|
|
1564
|
+
while (continuationToken) {
|
|
1565
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1566
|
+
continuationToken = result.nextLink;
|
|
1567
|
+
let page = result.value || [];
|
|
1568
|
+
setContinuationToken(page, continuationToken);
|
|
1569
|
+
yield yield tslib.__await(page);
|
|
1570
|
+
}
|
|
1571
|
+
});
|
|
1572
|
+
}
|
|
1573
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1574
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1575
|
+
var e_2, _a;
|
|
1576
|
+
try {
|
|
1577
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1578
|
+
const page = _c.value;
|
|
1579
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1583
|
+
finally {
|
|
1584
|
+
try {
|
|
1585
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1586
|
+
}
|
|
1587
|
+
finally { if (e_2) throw e_2.error; }
|
|
1588
|
+
}
|
|
1589
|
+
});
|
|
1590
|
+
}
|
|
1591
|
+
/**
|
|
1592
|
+
* Lists the endpoints that agents may call as part of load testing.
|
|
1593
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1594
|
+
* @param loadTestName Load Test name.
|
|
1595
|
+
* @param options The options parameters.
|
|
1596
|
+
*/
|
|
1597
|
+
listOutboundNetworkDependenciesEndpoints(resourceGroupName, loadTestName, options) {
|
|
1598
|
+
const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, loadTestName, options);
|
|
1599
|
+
return {
|
|
1600
|
+
next() {
|
|
1601
|
+
return iter.next();
|
|
1602
|
+
},
|
|
1603
|
+
[Symbol.asyncIterator]() {
|
|
1604
|
+
return this;
|
|
1605
|
+
},
|
|
1606
|
+
byPage: (settings) => {
|
|
1607
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1608
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1609
|
+
}
|
|
1610
|
+
return this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, loadTestName, options, settings);
|
|
1611
|
+
}
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, loadTestName, options, settings) {
|
|
1615
|
+
return tslib.__asyncGenerator(this, arguments, function* listOutboundNetworkDependenciesEndpointsPagingPage_1() {
|
|
1616
|
+
let result;
|
|
1617
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1618
|
+
if (!continuationToken) {
|
|
1619
|
+
result = yield tslib.__await(this._listOutboundNetworkDependenciesEndpoints(resourceGroupName, loadTestName, options));
|
|
1620
|
+
let page = result.value || [];
|
|
1621
|
+
continuationToken = result.nextLink;
|
|
1622
|
+
setContinuationToken(page, continuationToken);
|
|
1623
|
+
yield yield tslib.__await(page);
|
|
1624
|
+
}
|
|
1625
|
+
while (continuationToken) {
|
|
1626
|
+
result = yield tslib.__await(this._listOutboundNetworkDependenciesEndpointsNext(resourceGroupName, loadTestName, continuationToken, options));
|
|
1627
|
+
continuationToken = result.nextLink;
|
|
1628
|
+
let page = result.value || [];
|
|
1629
|
+
setContinuationToken(page, continuationToken);
|
|
1630
|
+
yield yield tslib.__await(page);
|
|
1631
|
+
}
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, loadTestName, options) {
|
|
1635
|
+
return tslib.__asyncGenerator(this, arguments, function* listOutboundNetworkDependenciesEndpointsPagingAll_1() {
|
|
1636
|
+
var e_3, _a;
|
|
1637
|
+
try {
|
|
1638
|
+
for (var _b = tslib.__asyncValues(this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, loadTestName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1639
|
+
const page = _c.value;
|
|
1640
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1644
|
+
finally {
|
|
1645
|
+
try {
|
|
1646
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1647
|
+
}
|
|
1648
|
+
finally { if (e_3) throw e_3.error; }
|
|
1649
|
+
}
|
|
1650
|
+
});
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Lists loadtests resources in a subscription.
|
|
1654
|
+
* @param options The options parameters.
|
|
1655
|
+
*/
|
|
1656
|
+
_listBySubscription(options) {
|
|
1657
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1658
|
+
}
|
|
1659
|
+
/**
|
|
1660
|
+
* Lists loadtest resources in a resource group.
|
|
1661
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1662
|
+
* @param options The options parameters.
|
|
1663
|
+
*/
|
|
1664
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
1665
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1666
|
+
}
|
|
1667
|
+
/**
|
|
1668
|
+
* Get a LoadTest resource.
|
|
1669
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1670
|
+
* @param loadTestName Load Test name.
|
|
1671
|
+
* @param options The options parameters.
|
|
1672
|
+
*/
|
|
1673
|
+
get(resourceGroupName, loadTestName, options) {
|
|
1674
|
+
return this.client.sendOperationRequest({ resourceGroupName, loadTestName, options }, getOperationSpec);
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* Create or update LoadTest resource.
|
|
1678
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1679
|
+
* @param loadTestName Load Test name.
|
|
1680
|
+
* @param loadTestResource LoadTest resource data
|
|
1681
|
+
* @param options The options parameters.
|
|
1682
|
+
*/
|
|
1683
|
+
beginCreateOrUpdate(resourceGroupName, loadTestName, loadTestResource, options) {
|
|
1684
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1685
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1686
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1687
|
+
});
|
|
1688
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1689
|
+
var _a;
|
|
1690
|
+
let currentRawResponse = undefined;
|
|
1691
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1692
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1693
|
+
currentRawResponse = rawResponse;
|
|
1694
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1695
|
+
};
|
|
1696
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1697
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1698
|
+
return {
|
|
1699
|
+
flatResponse,
|
|
1700
|
+
rawResponse: {
|
|
1701
|
+
statusCode: currentRawResponse.status,
|
|
1702
|
+
body: currentRawResponse.parsedBody,
|
|
1703
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1704
|
+
}
|
|
1705
|
+
};
|
|
1706
|
+
});
|
|
1707
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, loadTestName, loadTestResource, options }, createOrUpdateOperationSpec);
|
|
1708
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1709
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1710
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1711
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
1712
|
+
});
|
|
1713
|
+
yield poller.poll();
|
|
1714
|
+
return poller;
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* Create or update LoadTest resource.
|
|
1719
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1720
|
+
* @param loadTestName Load Test name.
|
|
1721
|
+
* @param loadTestResource LoadTest resource data
|
|
1722
|
+
* @param options The options parameters.
|
|
1723
|
+
*/
|
|
1724
|
+
beginCreateOrUpdateAndWait(resourceGroupName, loadTestName, loadTestResource, options) {
|
|
1725
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1726
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, loadTestName, loadTestResource, options);
|
|
1727
|
+
return poller.pollUntilDone();
|
|
1728
|
+
});
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
* Update a loadtest resource.
|
|
1732
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1733
|
+
* @param loadTestName Load Test name.
|
|
1734
|
+
* @param loadTestResourcePatchRequestBody LoadTest resource update data
|
|
1735
|
+
* @param options The options parameters.
|
|
1736
|
+
*/
|
|
1737
|
+
beginUpdate(resourceGroupName, loadTestName, loadTestResourcePatchRequestBody, options) {
|
|
1738
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1739
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1740
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1741
|
+
});
|
|
1742
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1743
|
+
var _a;
|
|
1744
|
+
let currentRawResponse = undefined;
|
|
1745
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1746
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1747
|
+
currentRawResponse = rawResponse;
|
|
1748
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1749
|
+
};
|
|
1750
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1751
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1752
|
+
return {
|
|
1753
|
+
flatResponse,
|
|
1754
|
+
rawResponse: {
|
|
1755
|
+
statusCode: currentRawResponse.status,
|
|
1756
|
+
body: currentRawResponse.parsedBody,
|
|
1757
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1758
|
+
}
|
|
1759
|
+
};
|
|
1760
|
+
});
|
|
1761
|
+
const lro = new LroImpl(sendOperation, {
|
|
1762
|
+
resourceGroupName,
|
|
1763
|
+
loadTestName,
|
|
1764
|
+
loadTestResourcePatchRequestBody,
|
|
1765
|
+
options
|
|
1766
|
+
}, updateOperationSpec);
|
|
1767
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1768
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1769
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1770
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
1771
|
+
});
|
|
1772
|
+
yield poller.poll();
|
|
1773
|
+
return poller;
|
|
1774
|
+
});
|
|
1775
|
+
}
|
|
1776
|
+
/**
|
|
1777
|
+
* Update a loadtest resource.
|
|
1778
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1779
|
+
* @param loadTestName Load Test name.
|
|
1780
|
+
* @param loadTestResourcePatchRequestBody LoadTest resource update data
|
|
1781
|
+
* @param options The options parameters.
|
|
1782
|
+
*/
|
|
1783
|
+
beginUpdateAndWait(resourceGroupName, loadTestName, loadTestResourcePatchRequestBody, options) {
|
|
1784
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1785
|
+
const poller = yield this.beginUpdate(resourceGroupName, loadTestName, loadTestResourcePatchRequestBody, options);
|
|
1786
|
+
return poller.pollUntilDone();
|
|
1787
|
+
});
|
|
1788
|
+
}
|
|
1789
|
+
/**
|
|
1790
|
+
* Delete a LoadTest resource.
|
|
1791
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1792
|
+
* @param loadTestName Load Test name.
|
|
1793
|
+
* @param options The options parameters.
|
|
1794
|
+
*/
|
|
1795
|
+
beginDelete(resourceGroupName, loadTestName, options) {
|
|
1796
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1797
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1798
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1799
|
+
});
|
|
1800
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1801
|
+
var _a;
|
|
1802
|
+
let currentRawResponse = undefined;
|
|
1803
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1804
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1805
|
+
currentRawResponse = rawResponse;
|
|
1806
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1807
|
+
};
|
|
1808
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1809
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1810
|
+
return {
|
|
1811
|
+
flatResponse,
|
|
1812
|
+
rawResponse: {
|
|
1813
|
+
statusCode: currentRawResponse.status,
|
|
1814
|
+
body: currentRawResponse.parsedBody,
|
|
1815
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1816
|
+
}
|
|
1817
|
+
};
|
|
1818
|
+
});
|
|
1819
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, loadTestName, options }, deleteOperationSpec);
|
|
1820
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1821
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1822
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1823
|
+
lroResourceLocationConfig: "location"
|
|
1824
|
+
});
|
|
1825
|
+
yield poller.poll();
|
|
1826
|
+
return poller;
|
|
1827
|
+
});
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* Delete a LoadTest resource.
|
|
1831
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1832
|
+
* @param loadTestName Load Test name.
|
|
1833
|
+
* @param options The options parameters.
|
|
1834
|
+
*/
|
|
1835
|
+
beginDeleteAndWait(resourceGroupName, loadTestName, options) {
|
|
1836
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1837
|
+
const poller = yield this.beginDelete(resourceGroupName, loadTestName, options);
|
|
1838
|
+
return poller.pollUntilDone();
|
|
1839
|
+
});
|
|
1840
|
+
}
|
|
1841
|
+
/**
|
|
1842
|
+
* Lists the endpoints that agents may call as part of load testing.
|
|
1843
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1844
|
+
* @param loadTestName Load Test name.
|
|
1845
|
+
* @param options The options parameters.
|
|
1846
|
+
*/
|
|
1847
|
+
_listOutboundNetworkDependenciesEndpoints(resourceGroupName, loadTestName, options) {
|
|
1848
|
+
return this.client.sendOperationRequest({ resourceGroupName, loadTestName, options }, listOutboundNetworkDependenciesEndpointsOperationSpec);
|
|
1849
|
+
}
|
|
1850
|
+
/**
|
|
1851
|
+
* ListBySubscriptionNext
|
|
1852
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
1853
|
+
* @param options The options parameters.
|
|
1854
|
+
*/
|
|
1855
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
1856
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
1857
|
+
}
|
|
1858
|
+
/**
|
|
1859
|
+
* ListByResourceGroupNext
|
|
1860
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1861
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1862
|
+
* @param options The options parameters.
|
|
1863
|
+
*/
|
|
1864
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1865
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1866
|
+
}
|
|
1867
|
+
/**
|
|
1868
|
+
* ListOutboundNetworkDependenciesEndpointsNext
|
|
1869
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1870
|
+
* @param loadTestName Load Test name.
|
|
1871
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
1872
|
+
* ListOutboundNetworkDependenciesEndpoints method.
|
|
1873
|
+
* @param options The options parameters.
|
|
1874
|
+
*/
|
|
1875
|
+
_listOutboundNetworkDependenciesEndpointsNext(resourceGroupName, loadTestName, nextLink, options) {
|
|
1876
|
+
return this.client.sendOperationRequest({ resourceGroupName, loadTestName, nextLink, options }, listOutboundNetworkDependenciesEndpointsNextOperationSpec);
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
// Operation Specifications
|
|
1880
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1881
|
+
const listBySubscriptionOperationSpec = {
|
|
1882
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/loadTests",
|
|
1883
|
+
httpMethod: "GET",
|
|
1884
|
+
responses: {
|
|
1885
|
+
200: {
|
|
1886
|
+
bodyMapper: LoadTestResourcePageList
|
|
1887
|
+
},
|
|
1888
|
+
default: {
|
|
1889
|
+
bodyMapper: ErrorResponse
|
|
1890
|
+
}
|
|
1891
|
+
},
|
|
1892
|
+
queryParameters: [apiVersion],
|
|
1893
|
+
urlParameters: [$host, subscriptionId],
|
|
1894
|
+
headerParameters: [accept],
|
|
1895
|
+
serializer
|
|
1896
|
+
};
|
|
1897
|
+
const listByResourceGroupOperationSpec = {
|
|
1898
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests",
|
|
1899
|
+
httpMethod: "GET",
|
|
1900
|
+
responses: {
|
|
1901
|
+
200: {
|
|
1902
|
+
bodyMapper: LoadTestResourcePageList
|
|
1903
|
+
},
|
|
1904
|
+
default: {
|
|
1905
|
+
bodyMapper: ErrorResponse
|
|
1906
|
+
}
|
|
1907
|
+
},
|
|
1908
|
+
queryParameters: [apiVersion],
|
|
1909
|
+
urlParameters: [
|
|
1910
|
+
$host,
|
|
1911
|
+
subscriptionId,
|
|
1912
|
+
resourceGroupName
|
|
1913
|
+
],
|
|
1914
|
+
headerParameters: [accept],
|
|
1915
|
+
serializer
|
|
1916
|
+
};
|
|
1917
|
+
const getOperationSpec = {
|
|
1918
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
|
|
1919
|
+
httpMethod: "GET",
|
|
1920
|
+
responses: {
|
|
1921
|
+
200: {
|
|
1922
|
+
bodyMapper: LoadTestResource
|
|
1923
|
+
},
|
|
1924
|
+
default: {
|
|
1925
|
+
bodyMapper: ErrorResponse
|
|
1926
|
+
}
|
|
1927
|
+
},
|
|
1928
|
+
queryParameters: [apiVersion],
|
|
1929
|
+
urlParameters: [
|
|
1930
|
+
$host,
|
|
1931
|
+
subscriptionId,
|
|
1932
|
+
resourceGroupName,
|
|
1933
|
+
loadTestName
|
|
1934
|
+
],
|
|
1935
|
+
headerParameters: [accept],
|
|
1936
|
+
serializer
|
|
1937
|
+
};
|
|
1938
|
+
const createOrUpdateOperationSpec = {
|
|
1939
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
|
|
1940
|
+
httpMethod: "PUT",
|
|
1941
|
+
responses: {
|
|
1942
|
+
200: {
|
|
1943
|
+
bodyMapper: LoadTestResource
|
|
1944
|
+
},
|
|
1945
|
+
201: {
|
|
1946
|
+
bodyMapper: LoadTestResource
|
|
1947
|
+
},
|
|
1948
|
+
202: {
|
|
1949
|
+
bodyMapper: LoadTestResource
|
|
1950
|
+
},
|
|
1951
|
+
204: {
|
|
1952
|
+
bodyMapper: LoadTestResource
|
|
1953
|
+
},
|
|
1954
|
+
default: {
|
|
1955
|
+
bodyMapper: ErrorResponse
|
|
1956
|
+
}
|
|
1957
|
+
},
|
|
1958
|
+
requestBody: loadTestResource,
|
|
1959
|
+
queryParameters: [apiVersion],
|
|
1960
|
+
urlParameters: [
|
|
1961
|
+
$host,
|
|
1962
|
+
subscriptionId,
|
|
1963
|
+
resourceGroupName,
|
|
1964
|
+
loadTestName
|
|
1965
|
+
],
|
|
1966
|
+
headerParameters: [accept, contentType],
|
|
1967
|
+
mediaType: "json",
|
|
1968
|
+
serializer
|
|
1969
|
+
};
|
|
1970
|
+
const updateOperationSpec = {
|
|
1971
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
|
|
1972
|
+
httpMethod: "PATCH",
|
|
1973
|
+
responses: {
|
|
1974
|
+
200: {
|
|
1975
|
+
bodyMapper: LoadTestResource
|
|
1976
|
+
},
|
|
1977
|
+
201: {
|
|
1978
|
+
bodyMapper: LoadTestResource
|
|
1979
|
+
},
|
|
1980
|
+
202: {
|
|
1981
|
+
bodyMapper: LoadTestResource
|
|
1982
|
+
},
|
|
1983
|
+
204: {
|
|
1984
|
+
bodyMapper: LoadTestResource
|
|
1985
|
+
},
|
|
1986
|
+
default: {
|
|
1987
|
+
bodyMapper: ErrorResponse
|
|
1988
|
+
}
|
|
1989
|
+
},
|
|
1990
|
+
requestBody: loadTestResourcePatchRequestBody,
|
|
1991
|
+
queryParameters: [apiVersion],
|
|
1992
|
+
urlParameters: [
|
|
1993
|
+
$host,
|
|
1994
|
+
subscriptionId,
|
|
1995
|
+
resourceGroupName,
|
|
1996
|
+
loadTestName
|
|
1997
|
+
],
|
|
1998
|
+
headerParameters: [accept, contentType],
|
|
1999
|
+
mediaType: "json",
|
|
2000
|
+
serializer
|
|
2001
|
+
};
|
|
2002
|
+
const deleteOperationSpec = {
|
|
2003
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
|
|
2004
|
+
httpMethod: "DELETE",
|
|
2005
|
+
responses: {
|
|
2006
|
+
200: {},
|
|
2007
|
+
201: {},
|
|
2008
|
+
202: {},
|
|
2009
|
+
204: {},
|
|
2010
|
+
default: {
|
|
2011
|
+
bodyMapper: ErrorResponse
|
|
2012
|
+
}
|
|
2013
|
+
},
|
|
2014
|
+
queryParameters: [apiVersion],
|
|
2015
|
+
urlParameters: [
|
|
2016
|
+
$host,
|
|
2017
|
+
subscriptionId,
|
|
2018
|
+
resourceGroupName,
|
|
2019
|
+
loadTestName
|
|
2020
|
+
],
|
|
2021
|
+
headerParameters: [accept],
|
|
2022
|
+
serializer
|
|
2023
|
+
};
|
|
2024
|
+
const listOutboundNetworkDependenciesEndpointsOperationSpec = {
|
|
2025
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}/outboundNetworkDependenciesEndpoints",
|
|
2026
|
+
httpMethod: "GET",
|
|
2027
|
+
responses: {
|
|
2028
|
+
200: {
|
|
2029
|
+
bodyMapper: OutboundEnvironmentEndpointCollection
|
|
2030
|
+
},
|
|
2031
|
+
default: {
|
|
2032
|
+
bodyMapper: ErrorResponse
|
|
2033
|
+
}
|
|
2034
|
+
},
|
|
2035
|
+
queryParameters: [apiVersion],
|
|
2036
|
+
urlParameters: [
|
|
2037
|
+
$host,
|
|
2038
|
+
subscriptionId,
|
|
2039
|
+
resourceGroupName,
|
|
2040
|
+
loadTestName
|
|
2041
|
+
],
|
|
2042
|
+
headerParameters: [accept],
|
|
2043
|
+
serializer
|
|
2044
|
+
};
|
|
2045
|
+
const listBySubscriptionNextOperationSpec = {
|
|
2046
|
+
path: "{nextLink}",
|
|
2047
|
+
httpMethod: "GET",
|
|
2048
|
+
responses: {
|
|
2049
|
+
200: {
|
|
2050
|
+
bodyMapper: LoadTestResourcePageList
|
|
2051
|
+
},
|
|
2052
|
+
default: {
|
|
2053
|
+
bodyMapper: ErrorResponse
|
|
2054
|
+
}
|
|
2055
|
+
},
|
|
2056
|
+
queryParameters: [apiVersion],
|
|
2057
|
+
urlParameters: [
|
|
2058
|
+
$host,
|
|
2059
|
+
nextLink,
|
|
2060
|
+
subscriptionId
|
|
2061
|
+
],
|
|
2062
|
+
headerParameters: [accept],
|
|
2063
|
+
serializer
|
|
2064
|
+
};
|
|
2065
|
+
const listByResourceGroupNextOperationSpec = {
|
|
2066
|
+
path: "{nextLink}",
|
|
2067
|
+
httpMethod: "GET",
|
|
2068
|
+
responses: {
|
|
2069
|
+
200: {
|
|
2070
|
+
bodyMapper: LoadTestResourcePageList
|
|
2071
|
+
},
|
|
2072
|
+
default: {
|
|
2073
|
+
bodyMapper: ErrorResponse
|
|
2074
|
+
}
|
|
2075
|
+
},
|
|
2076
|
+
queryParameters: [apiVersion],
|
|
2077
|
+
urlParameters: [
|
|
2078
|
+
$host,
|
|
2079
|
+
nextLink,
|
|
2080
|
+
subscriptionId,
|
|
2081
|
+
resourceGroupName
|
|
2082
|
+
],
|
|
2083
|
+
headerParameters: [accept],
|
|
2084
|
+
serializer
|
|
2085
|
+
};
|
|
2086
|
+
const listOutboundNetworkDependenciesEndpointsNextOperationSpec = {
|
|
2087
|
+
path: "{nextLink}",
|
|
2088
|
+
httpMethod: "GET",
|
|
2089
|
+
responses: {
|
|
2090
|
+
200: {
|
|
2091
|
+
bodyMapper: OutboundEnvironmentEndpointCollection
|
|
2092
|
+
},
|
|
2093
|
+
default: {
|
|
2094
|
+
bodyMapper: ErrorResponse
|
|
2095
|
+
}
|
|
2096
|
+
},
|
|
2097
|
+
queryParameters: [apiVersion],
|
|
2098
|
+
urlParameters: [
|
|
2099
|
+
$host,
|
|
2100
|
+
nextLink,
|
|
2101
|
+
subscriptionId,
|
|
2102
|
+
resourceGroupName,
|
|
2103
|
+
loadTestName
|
|
2104
|
+
],
|
|
2105
|
+
headerParameters: [accept],
|
|
2106
|
+
serializer
|
|
2107
|
+
};
|
|
2108
|
+
|
|
2109
|
+
/*
|
|
2110
|
+
* Copyright (c) Microsoft Corporation.
|
|
2111
|
+
* Licensed under the MIT License.
|
|
2112
|
+
*
|
|
2113
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2114
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2115
|
+
*/
|
|
2116
|
+
class LoadTestClient extends coreClient__namespace.ServiceClient {
|
|
2117
|
+
/**
|
|
2118
|
+
* Initializes a new instance of the LoadTestClient class.
|
|
2119
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
2120
|
+
* @param subscriptionId The ID of the target subscription.
|
|
2121
|
+
* @param options The parameter options
|
|
2122
|
+
*/
|
|
2123
|
+
constructor(credentials, subscriptionId, options) {
|
|
2124
|
+
var _a, _b, _c;
|
|
2125
|
+
if (credentials === undefined) {
|
|
2126
|
+
throw new Error("'credentials' cannot be null");
|
|
2127
|
+
}
|
|
2128
|
+
if (subscriptionId === undefined) {
|
|
2129
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
2130
|
+
}
|
|
2131
|
+
// Initializing default values for options
|
|
2132
|
+
if (!options) {
|
|
2133
|
+
options = {};
|
|
2134
|
+
}
|
|
2135
|
+
const defaults = {
|
|
2136
|
+
requestContentType: "application/json; charset=utf-8",
|
|
2137
|
+
credential: credentials
|
|
2138
|
+
};
|
|
2139
|
+
const packageDetails = `azsdk-js-arm-loadtesting/1.0.0-beta.1`;
|
|
2140
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2141
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2142
|
+
: `${packageDetails}`;
|
|
2143
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2144
|
+
userAgentPrefix
|
|
2145
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
2146
|
+
super(optionsWithDefaults);
|
|
2147
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
2148
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
2149
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
2150
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
2151
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
2152
|
+
}
|
|
2153
|
+
if (!options ||
|
|
2154
|
+
!options.pipeline ||
|
|
2155
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
2156
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
2157
|
+
this.pipeline.removePolicy({
|
|
2158
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
2159
|
+
});
|
|
2160
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
2161
|
+
credential: credentials,
|
|
2162
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
2163
|
+
challengeCallbacks: {
|
|
2164
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
2165
|
+
}
|
|
2166
|
+
}));
|
|
2167
|
+
}
|
|
2168
|
+
// Parameter assignments
|
|
2169
|
+
this.subscriptionId = subscriptionId;
|
|
2170
|
+
// Assigning values to Constant parameters
|
|
2171
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
2172
|
+
this.apiVersion = options.apiVersion || "2022-12-01";
|
|
2173
|
+
this.operations = new OperationsImpl(this);
|
|
2174
|
+
this.quotas = new QuotasImpl(this);
|
|
2175
|
+
this.loadTests = new LoadTestsImpl(this);
|
|
2176
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
2177
|
+
}
|
|
2178
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
2179
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
2180
|
+
if (!apiVersion) {
|
|
2181
|
+
return;
|
|
2182
|
+
}
|
|
2183
|
+
const apiVersionPolicy = {
|
|
2184
|
+
name: "CustomApiVersionPolicy",
|
|
2185
|
+
sendRequest(request, next) {
|
|
2186
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2187
|
+
const param = request.url.split("?");
|
|
2188
|
+
if (param.length > 1) {
|
|
2189
|
+
const newParams = param[1].split("&").map((item) => {
|
|
2190
|
+
if (item.indexOf("api-version") > -1) {
|
|
2191
|
+
return "api-version=" + apiVersion;
|
|
2192
|
+
}
|
|
2193
|
+
else {
|
|
2194
|
+
return item;
|
|
2195
|
+
}
|
|
2196
|
+
});
|
|
2197
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
2198
|
+
}
|
|
2199
|
+
return next(request);
|
|
2200
|
+
});
|
|
2201
|
+
}
|
|
2202
|
+
};
|
|
2203
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
exports.LoadTestClient = LoadTestClient;
|
|
2208
|
+
exports.getContinuationToken = getContinuationToken;
|
|
2209
|
+
//# sourceMappingURL=index.js.map
|