@azure/arm-changeanalysis 1.1.1 → 2.0.0-alpha.20211230.3
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 +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -81
- package/dist/index.js +1099 -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/src/azureChangeAnalysisManagementClient.d.ts +20 -0
- package/dist-esm/src/azureChangeAnalysisManagementClient.d.ts.map +1 -0
- package/dist-esm/src/azureChangeAnalysisManagementClient.js +53 -0
- package/dist-esm/src/azureChangeAnalysisManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +240 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +22 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +14 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +172 -228
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +12 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +51 -46
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/changes.d.ts +71 -0
- package/dist-esm/src/operations/changes.d.ts.map +1 -0
- package/dist-esm/src/operations/changes.js +269 -0
- package/dist-esm/src/operations/changes.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +34 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +122 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/resourceChanges.d.ts +43 -0
- package/dist-esm/src/operations/resourceChanges.d.ts.map +1 -0
- package/dist-esm/src/operations/resourceChanges.js +141 -0
- package/dist-esm/src/operations/resourceChanges.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/changes.d.ts +23 -0
- package/dist-esm/src/operationsInterfaces/changes.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/changes.js} +2 -1
- package/dist-esm/src/operationsInterfaces/changes.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/operations.d.ts +12 -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/resourceChanges.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/resourceChanges.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/resourceChanges.js +9 -0
- package/dist-esm/src/operationsInterfaces/resourceChanges.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +63 -22
- package/review/arm-changeanalysis.api.md +230 -0
- package/rollup.config.js +181 -30
- package/src/azureChangeAnalysisManagementClient.ts +64 -36
- package/src/index.ts +12 -0
- package/src/models/index.ts +191 -455
- package/src/models/mappers.ts +175 -240
- package/src/models/parameters.ts +65 -47
- package/src/operations/changes.ts +267 -173
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +89 -79
- package/src/operations/resourceChanges.ts +126 -95
- package/src/operationsInterfaces/changes.ts +45 -0
- package/src/{models/operationsMappers.ts → operationsInterfaces/index.ts} +3 -8
- package/src/operationsInterfaces/operations.ts +26 -0
- package/src/operationsInterfaces/resourceChanges.ts +29 -0
- package/tsconfig.json +3 -3
- package/types/arm-changeanalysis.d.ts +337 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-changeanalysis.js +0 -1107
- package/dist/arm-changeanalysis.js.map +0 -1
- package/dist/arm-changeanalysis.min.js +0 -1
- package/dist/arm-changeanalysis.min.js.map +0 -1
- package/esm/azureChangeAnalysisManagementClient.d.ts +0 -26
- package/esm/azureChangeAnalysisManagementClient.d.ts.map +0 -1
- package/esm/azureChangeAnalysisManagementClient.js +0 -39
- package/esm/azureChangeAnalysisManagementClient.js.map +0 -1
- package/esm/azureChangeAnalysisManagementClientContext.d.ts +0 -22
- package/esm/azureChangeAnalysisManagementClientContext.d.ts.map +0 -1
- package/esm/azureChangeAnalysisManagementClientContext.js +0 -60
- package/esm/azureChangeAnalysisManagementClientContext.js.map +0 -1
- package/esm/models/changesMappers.d.ts +0 -2
- package/esm/models/changesMappers.d.ts.map +0 -1
- package/esm/models/changesMappers.js +0 -9
- package/esm/models/changesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -505
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -18
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -11
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/resourceChangesMappers.d.ts +0 -2
- package/esm/models/resourceChangesMappers.d.ts.map +0 -1
- package/esm/models/resourceChangesMappers.js +0 -9
- package/esm/models/resourceChangesMappers.js.map +0 -1
- package/esm/operations/changes.d.ts +0 -110
- package/esm/operations/changes.d.ts.map +0 -1
- package/esm/operations/changes.js +0 -160
- package/esm/operations/changes.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -48
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -81
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/resourceChanges.d.ts +0 -63
- package/esm/operations/resourceChanges.d.ts.map +0 -1
- package/esm/operations/resourceChanges.js +0 -93
- package/esm/operations/resourceChanges.js.map +0 -1
- package/src/azureChangeAnalysisManagementClientContext.ts +0 -67
- package/src/models/changesMappers.ts +0 -22
- package/src/models/resourceChangesMappers.ts +0 -22
package/dist/index.js
ADDED
|
@@ -0,0 +1,1099 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Copyright (c) Microsoft Corporation.
|
|
10
|
+
* Licensed under the MIT License.
|
|
11
|
+
*
|
|
12
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
13
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
14
|
+
*/
|
|
15
|
+
(function (KnownChangeType) {
|
|
16
|
+
KnownChangeType["Add"] = "Add";
|
|
17
|
+
KnownChangeType["Remove"] = "Remove";
|
|
18
|
+
KnownChangeType["Update"] = "Update";
|
|
19
|
+
})(exports.KnownChangeType || (exports.KnownChangeType = {}));
|
|
20
|
+
(function (KnownLevel) {
|
|
21
|
+
KnownLevel["Noisy"] = "Noisy";
|
|
22
|
+
KnownLevel["Normal"] = "Normal";
|
|
23
|
+
KnownLevel["Important"] = "Important";
|
|
24
|
+
})(exports.KnownLevel || (exports.KnownLevel = {}));
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
* Copyright (c) Microsoft Corporation.
|
|
28
|
+
* Licensed under the MIT License.
|
|
29
|
+
*
|
|
30
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
31
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
32
|
+
*/
|
|
33
|
+
const ResourceProviderOperationList = {
|
|
34
|
+
type: {
|
|
35
|
+
name: "Composite",
|
|
36
|
+
className: "ResourceProviderOperationList",
|
|
37
|
+
modelProperties: {
|
|
38
|
+
value: {
|
|
39
|
+
serializedName: "value",
|
|
40
|
+
type: {
|
|
41
|
+
name: "Sequence",
|
|
42
|
+
element: {
|
|
43
|
+
type: {
|
|
44
|
+
name: "Composite",
|
|
45
|
+
className: "ResourceProviderOperationDefinition"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
nextLink: {
|
|
51
|
+
serializedName: "nextLink",
|
|
52
|
+
type: {
|
|
53
|
+
name: "String"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const ResourceProviderOperationDefinition = {
|
|
60
|
+
type: {
|
|
61
|
+
name: "Composite",
|
|
62
|
+
className: "ResourceProviderOperationDefinition",
|
|
63
|
+
modelProperties: {
|
|
64
|
+
name: {
|
|
65
|
+
serializedName: "name",
|
|
66
|
+
type: {
|
|
67
|
+
name: "String"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
display: {
|
|
71
|
+
serializedName: "display",
|
|
72
|
+
type: {
|
|
73
|
+
name: "Composite",
|
|
74
|
+
className: "ResourceProviderOperationDisplay"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const ResourceProviderOperationDisplay = {
|
|
81
|
+
type: {
|
|
82
|
+
name: "Composite",
|
|
83
|
+
className: "ResourceProviderOperationDisplay",
|
|
84
|
+
modelProperties: {
|
|
85
|
+
provider: {
|
|
86
|
+
serializedName: "provider",
|
|
87
|
+
type: {
|
|
88
|
+
name: "String"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
resource: {
|
|
92
|
+
serializedName: "resource",
|
|
93
|
+
type: {
|
|
94
|
+
name: "String"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
operation: {
|
|
98
|
+
serializedName: "operation",
|
|
99
|
+
type: {
|
|
100
|
+
name: "String"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
description: {
|
|
104
|
+
serializedName: "description",
|
|
105
|
+
type: {
|
|
106
|
+
name: "String"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
const ErrorResponse = {
|
|
113
|
+
type: {
|
|
114
|
+
name: "Composite",
|
|
115
|
+
className: "ErrorResponse",
|
|
116
|
+
modelProperties: {
|
|
117
|
+
error: {
|
|
118
|
+
serializedName: "error",
|
|
119
|
+
type: {
|
|
120
|
+
name: "Composite",
|
|
121
|
+
className: "ErrorDetail"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const ErrorDetail = {
|
|
128
|
+
type: {
|
|
129
|
+
name: "Composite",
|
|
130
|
+
className: "ErrorDetail",
|
|
131
|
+
modelProperties: {
|
|
132
|
+
code: {
|
|
133
|
+
serializedName: "code",
|
|
134
|
+
readOnly: true,
|
|
135
|
+
type: {
|
|
136
|
+
name: "String"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
message: {
|
|
140
|
+
serializedName: "message",
|
|
141
|
+
readOnly: true,
|
|
142
|
+
type: {
|
|
143
|
+
name: "String"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
target: {
|
|
147
|
+
serializedName: "target",
|
|
148
|
+
readOnly: true,
|
|
149
|
+
type: {
|
|
150
|
+
name: "String"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
details: {
|
|
154
|
+
serializedName: "details",
|
|
155
|
+
readOnly: true,
|
|
156
|
+
type: {
|
|
157
|
+
name: "Sequence",
|
|
158
|
+
element: {
|
|
159
|
+
type: {
|
|
160
|
+
name: "Composite",
|
|
161
|
+
className: "ErrorDetail"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
additionalInfo: {
|
|
167
|
+
serializedName: "additionalInfo",
|
|
168
|
+
readOnly: true,
|
|
169
|
+
type: {
|
|
170
|
+
name: "Sequence",
|
|
171
|
+
element: {
|
|
172
|
+
type: {
|
|
173
|
+
name: "Composite",
|
|
174
|
+
className: "ErrorAdditionalInfo"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
const ErrorAdditionalInfo = {
|
|
183
|
+
type: {
|
|
184
|
+
name: "Composite",
|
|
185
|
+
className: "ErrorAdditionalInfo",
|
|
186
|
+
modelProperties: {
|
|
187
|
+
type: {
|
|
188
|
+
serializedName: "type",
|
|
189
|
+
readOnly: true,
|
|
190
|
+
type: {
|
|
191
|
+
name: "String"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
info: {
|
|
195
|
+
serializedName: "info",
|
|
196
|
+
readOnly: true,
|
|
197
|
+
type: {
|
|
198
|
+
name: "Dictionary",
|
|
199
|
+
value: { type: { name: "any" } }
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
const ChangeList = {
|
|
206
|
+
type: {
|
|
207
|
+
name: "Composite",
|
|
208
|
+
className: "ChangeList",
|
|
209
|
+
modelProperties: {
|
|
210
|
+
value: {
|
|
211
|
+
serializedName: "value",
|
|
212
|
+
type: {
|
|
213
|
+
name: "Sequence",
|
|
214
|
+
element: {
|
|
215
|
+
type: {
|
|
216
|
+
name: "Composite",
|
|
217
|
+
className: "Change"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
nextLink: {
|
|
223
|
+
serializedName: "nextLink",
|
|
224
|
+
type: {
|
|
225
|
+
name: "String"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
const ChangeProperties = {
|
|
232
|
+
type: {
|
|
233
|
+
name: "Composite",
|
|
234
|
+
className: "ChangeProperties",
|
|
235
|
+
modelProperties: {
|
|
236
|
+
resourceId: {
|
|
237
|
+
serializedName: "resourceId",
|
|
238
|
+
type: {
|
|
239
|
+
name: "String"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
timeStamp: {
|
|
243
|
+
serializedName: "timeStamp",
|
|
244
|
+
type: {
|
|
245
|
+
name: "DateTime"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
initiatedByList: {
|
|
249
|
+
serializedName: "initiatedByList",
|
|
250
|
+
type: {
|
|
251
|
+
name: "Sequence",
|
|
252
|
+
element: {
|
|
253
|
+
type: {
|
|
254
|
+
name: "String"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
changeType: {
|
|
260
|
+
serializedName: "changeType",
|
|
261
|
+
type: {
|
|
262
|
+
name: "String"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
propertyChanges: {
|
|
266
|
+
serializedName: "propertyChanges",
|
|
267
|
+
type: {
|
|
268
|
+
name: "Sequence",
|
|
269
|
+
element: {
|
|
270
|
+
type: {
|
|
271
|
+
name: "Composite",
|
|
272
|
+
className: "PropertyChange"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
const PropertyChange = {
|
|
281
|
+
type: {
|
|
282
|
+
name: "Composite",
|
|
283
|
+
className: "PropertyChange",
|
|
284
|
+
modelProperties: {
|
|
285
|
+
changeType: {
|
|
286
|
+
serializedName: "changeType",
|
|
287
|
+
type: {
|
|
288
|
+
name: "String"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
changeCategory: {
|
|
292
|
+
serializedName: "changeCategory",
|
|
293
|
+
type: {
|
|
294
|
+
name: "Enum",
|
|
295
|
+
allowedValues: ["User", "System"]
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
jsonPath: {
|
|
299
|
+
serializedName: "jsonPath",
|
|
300
|
+
type: {
|
|
301
|
+
name: "String"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
displayName: {
|
|
305
|
+
serializedName: "displayName",
|
|
306
|
+
type: {
|
|
307
|
+
name: "String"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
level: {
|
|
311
|
+
serializedName: "level",
|
|
312
|
+
type: {
|
|
313
|
+
name: "String"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
description: {
|
|
317
|
+
serializedName: "description",
|
|
318
|
+
type: {
|
|
319
|
+
name: "String"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
oldValue: {
|
|
323
|
+
serializedName: "oldValue",
|
|
324
|
+
type: {
|
|
325
|
+
name: "String"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
newValue: {
|
|
329
|
+
serializedName: "newValue",
|
|
330
|
+
type: {
|
|
331
|
+
name: "String"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
isDataMasked: {
|
|
335
|
+
serializedName: "isDataMasked",
|
|
336
|
+
type: {
|
|
337
|
+
name: "Boolean"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
const Resource = {
|
|
344
|
+
type: {
|
|
345
|
+
name: "Composite",
|
|
346
|
+
className: "Resource",
|
|
347
|
+
modelProperties: {
|
|
348
|
+
id: {
|
|
349
|
+
serializedName: "id",
|
|
350
|
+
readOnly: true,
|
|
351
|
+
type: {
|
|
352
|
+
name: "String"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
name: {
|
|
356
|
+
serializedName: "name",
|
|
357
|
+
readOnly: true,
|
|
358
|
+
type: {
|
|
359
|
+
name: "String"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
type: {
|
|
363
|
+
serializedName: "type",
|
|
364
|
+
readOnly: true,
|
|
365
|
+
type: {
|
|
366
|
+
name: "String"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
const ProxyResource = {
|
|
373
|
+
type: {
|
|
374
|
+
name: "Composite",
|
|
375
|
+
className: "ProxyResource",
|
|
376
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
const Change = {
|
|
380
|
+
type: {
|
|
381
|
+
name: "Composite",
|
|
382
|
+
className: "Change",
|
|
383
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
|
|
384
|
+
serializedName: "properties",
|
|
385
|
+
type: {
|
|
386
|
+
name: "Composite",
|
|
387
|
+
className: "ChangeProperties"
|
|
388
|
+
}
|
|
389
|
+
} })
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
394
|
+
__proto__: null,
|
|
395
|
+
ResourceProviderOperationList: ResourceProviderOperationList,
|
|
396
|
+
ResourceProviderOperationDefinition: ResourceProviderOperationDefinition,
|
|
397
|
+
ResourceProviderOperationDisplay: ResourceProviderOperationDisplay,
|
|
398
|
+
ErrorResponse: ErrorResponse,
|
|
399
|
+
ErrorDetail: ErrorDetail,
|
|
400
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
401
|
+
ChangeList: ChangeList,
|
|
402
|
+
ChangeProperties: ChangeProperties,
|
|
403
|
+
PropertyChange: PropertyChange,
|
|
404
|
+
Resource: Resource,
|
|
405
|
+
ProxyResource: ProxyResource,
|
|
406
|
+
Change: Change
|
|
407
|
+
});
|
|
408
|
+
|
|
409
|
+
/*
|
|
410
|
+
* Copyright (c) Microsoft Corporation.
|
|
411
|
+
* Licensed under the MIT License.
|
|
412
|
+
*
|
|
413
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
414
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
415
|
+
*/
|
|
416
|
+
const accept = {
|
|
417
|
+
parameterPath: "accept",
|
|
418
|
+
mapper: {
|
|
419
|
+
defaultValue: "application/json",
|
|
420
|
+
isConstant: true,
|
|
421
|
+
serializedName: "Accept",
|
|
422
|
+
type: {
|
|
423
|
+
name: "String"
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
const $host = {
|
|
428
|
+
parameterPath: "$host",
|
|
429
|
+
mapper: {
|
|
430
|
+
serializedName: "$host",
|
|
431
|
+
required: true,
|
|
432
|
+
type: {
|
|
433
|
+
name: "String"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
skipEncoding: true
|
|
437
|
+
};
|
|
438
|
+
const apiVersion = {
|
|
439
|
+
parameterPath: "apiVersion",
|
|
440
|
+
mapper: {
|
|
441
|
+
defaultValue: "2021-04-01",
|
|
442
|
+
isConstant: true,
|
|
443
|
+
serializedName: "api-version",
|
|
444
|
+
type: {
|
|
445
|
+
name: "String"
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
const skipToken = {
|
|
450
|
+
parameterPath: ["options", "skipToken"],
|
|
451
|
+
mapper: {
|
|
452
|
+
serializedName: "$skipToken",
|
|
453
|
+
type: {
|
|
454
|
+
name: "String"
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
const nextLink = {
|
|
459
|
+
parameterPath: "nextLink",
|
|
460
|
+
mapper: {
|
|
461
|
+
serializedName: "nextLink",
|
|
462
|
+
required: true,
|
|
463
|
+
type: {
|
|
464
|
+
name: "String"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
skipEncoding: true
|
|
468
|
+
};
|
|
469
|
+
const resourceId = {
|
|
470
|
+
parameterPath: "resourceId",
|
|
471
|
+
mapper: {
|
|
472
|
+
serializedName: "resourceId",
|
|
473
|
+
required: true,
|
|
474
|
+
type: {
|
|
475
|
+
name: "String"
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
const startTime = {
|
|
480
|
+
parameterPath: "startTime",
|
|
481
|
+
mapper: {
|
|
482
|
+
serializedName: "$startTime",
|
|
483
|
+
required: true,
|
|
484
|
+
type: {
|
|
485
|
+
name: "DateTime"
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
};
|
|
489
|
+
const endTime = {
|
|
490
|
+
parameterPath: "endTime",
|
|
491
|
+
mapper: {
|
|
492
|
+
serializedName: "$endTime",
|
|
493
|
+
required: true,
|
|
494
|
+
type: {
|
|
495
|
+
name: "DateTime"
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
const subscriptionId = {
|
|
500
|
+
parameterPath: "subscriptionId",
|
|
501
|
+
mapper: {
|
|
502
|
+
constraints: {
|
|
503
|
+
MinLength: 1
|
|
504
|
+
},
|
|
505
|
+
serializedName: "subscriptionId",
|
|
506
|
+
required: true,
|
|
507
|
+
type: {
|
|
508
|
+
name: "String"
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
const resourceGroupName = {
|
|
513
|
+
parameterPath: "resourceGroupName",
|
|
514
|
+
mapper: {
|
|
515
|
+
constraints: {
|
|
516
|
+
MaxLength: 90,
|
|
517
|
+
MinLength: 1
|
|
518
|
+
},
|
|
519
|
+
serializedName: "resourceGroupName",
|
|
520
|
+
required: true,
|
|
521
|
+
type: {
|
|
522
|
+
name: "String"
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
/*
|
|
528
|
+
* Copyright (c) Microsoft Corporation.
|
|
529
|
+
* Licensed under the MIT License.
|
|
530
|
+
*
|
|
531
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
532
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
533
|
+
*/
|
|
534
|
+
/// <reference lib="esnext.asynciterable" />
|
|
535
|
+
/** Class containing Operations operations. */
|
|
536
|
+
class OperationsImpl {
|
|
537
|
+
/**
|
|
538
|
+
* Initialize a new instance of the class Operations class.
|
|
539
|
+
* @param client Reference to the service client
|
|
540
|
+
*/
|
|
541
|
+
constructor(client) {
|
|
542
|
+
this.client = client;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
|
|
546
|
+
* their descriptions.
|
|
547
|
+
* @param options The options parameters.
|
|
548
|
+
*/
|
|
549
|
+
list(options) {
|
|
550
|
+
const iter = this.listPagingAll(options);
|
|
551
|
+
return {
|
|
552
|
+
next() {
|
|
553
|
+
return iter.next();
|
|
554
|
+
},
|
|
555
|
+
[Symbol.asyncIterator]() {
|
|
556
|
+
return this;
|
|
557
|
+
},
|
|
558
|
+
byPage: () => {
|
|
559
|
+
return this.listPagingPage(options);
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
listPagingPage(options) {
|
|
564
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
565
|
+
let result = yield tslib.__await(this._list(options));
|
|
566
|
+
yield yield tslib.__await(result.value || []);
|
|
567
|
+
let continuationToken = result.nextLink;
|
|
568
|
+
while (continuationToken) {
|
|
569
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
570
|
+
continuationToken = result.nextLink;
|
|
571
|
+
yield yield tslib.__await(result.value || []);
|
|
572
|
+
}
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
listPagingAll(options) {
|
|
576
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
577
|
+
var e_1, _a;
|
|
578
|
+
try {
|
|
579
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
580
|
+
const page = _c.value;
|
|
581
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
585
|
+
finally {
|
|
586
|
+
try {
|
|
587
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
588
|
+
}
|
|
589
|
+
finally { if (e_1) throw e_1.error; }
|
|
590
|
+
}
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with
|
|
595
|
+
* their descriptions.
|
|
596
|
+
* @param options The options parameters.
|
|
597
|
+
*/
|
|
598
|
+
_list(options) {
|
|
599
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* ListNext
|
|
603
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
604
|
+
* @param options The options parameters.
|
|
605
|
+
*/
|
|
606
|
+
_listNext(nextLink, options) {
|
|
607
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
// Operation Specifications
|
|
611
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
612
|
+
const listOperationSpec = {
|
|
613
|
+
path: "/providers/Microsoft.ChangeAnalysis/operations",
|
|
614
|
+
httpMethod: "GET",
|
|
615
|
+
responses: {
|
|
616
|
+
200: {
|
|
617
|
+
bodyMapper: ResourceProviderOperationList
|
|
618
|
+
},
|
|
619
|
+
default: {
|
|
620
|
+
bodyMapper: ErrorResponse
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
queryParameters: [apiVersion, skipToken],
|
|
624
|
+
urlParameters: [$host],
|
|
625
|
+
headerParameters: [accept],
|
|
626
|
+
serializer
|
|
627
|
+
};
|
|
628
|
+
const listNextOperationSpec = {
|
|
629
|
+
path: "{nextLink}",
|
|
630
|
+
httpMethod: "GET",
|
|
631
|
+
responses: {
|
|
632
|
+
200: {
|
|
633
|
+
bodyMapper: ResourceProviderOperationList
|
|
634
|
+
},
|
|
635
|
+
default: {
|
|
636
|
+
bodyMapper: ErrorResponse
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
queryParameters: [apiVersion, skipToken],
|
|
640
|
+
urlParameters: [$host, nextLink],
|
|
641
|
+
headerParameters: [accept],
|
|
642
|
+
serializer
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
/*
|
|
646
|
+
* Copyright (c) Microsoft Corporation.
|
|
647
|
+
* Licensed under the MIT License.
|
|
648
|
+
*
|
|
649
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
650
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
651
|
+
*/
|
|
652
|
+
/// <reference lib="esnext.asynciterable" />
|
|
653
|
+
/** Class containing ResourceChanges operations. */
|
|
654
|
+
class ResourceChangesImpl {
|
|
655
|
+
/**
|
|
656
|
+
* Initialize a new instance of the class ResourceChanges class.
|
|
657
|
+
* @param client Reference to the service client
|
|
658
|
+
*/
|
|
659
|
+
constructor(client) {
|
|
660
|
+
this.client = client;
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* List the changes of a resource within the specified time range. Customer data will be masked if the
|
|
664
|
+
* user doesn't have access.
|
|
665
|
+
* @param resourceId The identifier of the resource.
|
|
666
|
+
* @param startTime Specifies the start time of the changes request.
|
|
667
|
+
* @param endTime Specifies the end time of the changes request.
|
|
668
|
+
* @param options The options parameters.
|
|
669
|
+
*/
|
|
670
|
+
list(resourceId, startTime, endTime, options) {
|
|
671
|
+
const iter = this.listPagingAll(resourceId, startTime, endTime, options);
|
|
672
|
+
return {
|
|
673
|
+
next() {
|
|
674
|
+
return iter.next();
|
|
675
|
+
},
|
|
676
|
+
[Symbol.asyncIterator]() {
|
|
677
|
+
return this;
|
|
678
|
+
},
|
|
679
|
+
byPage: () => {
|
|
680
|
+
return this.listPagingPage(resourceId, startTime, endTime, options);
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
listPagingPage(resourceId, startTime, endTime, options) {
|
|
685
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
686
|
+
let result = yield tslib.__await(this._list(resourceId, startTime, endTime, options));
|
|
687
|
+
yield yield tslib.__await(result.value || []);
|
|
688
|
+
let continuationToken = result.nextLink;
|
|
689
|
+
while (continuationToken) {
|
|
690
|
+
result = yield tslib.__await(this._listNext(resourceId, startTime, endTime, continuationToken, options));
|
|
691
|
+
continuationToken = result.nextLink;
|
|
692
|
+
yield yield tslib.__await(result.value || []);
|
|
693
|
+
}
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
listPagingAll(resourceId, startTime, endTime, options) {
|
|
697
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
698
|
+
var e_1, _a;
|
|
699
|
+
try {
|
|
700
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceId, startTime, endTime, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
701
|
+
const page = _c.value;
|
|
702
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
706
|
+
finally {
|
|
707
|
+
try {
|
|
708
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
709
|
+
}
|
|
710
|
+
finally { if (e_1) throw e_1.error; }
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* List the changes of a resource within the specified time range. Customer data will be masked if the
|
|
716
|
+
* user doesn't have access.
|
|
717
|
+
* @param resourceId The identifier of the resource.
|
|
718
|
+
* @param startTime Specifies the start time of the changes request.
|
|
719
|
+
* @param endTime Specifies the end time of the changes request.
|
|
720
|
+
* @param options The options parameters.
|
|
721
|
+
*/
|
|
722
|
+
_list(resourceId, startTime, endTime, options) {
|
|
723
|
+
return this.client.sendOperationRequest({ resourceId, startTime, endTime, options }, listOperationSpec$1);
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* ListNext
|
|
727
|
+
* @param resourceId The identifier of the resource.
|
|
728
|
+
* @param startTime Specifies the start time of the changes request.
|
|
729
|
+
* @param endTime Specifies the end time of the changes request.
|
|
730
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
731
|
+
* @param options The options parameters.
|
|
732
|
+
*/
|
|
733
|
+
_listNext(resourceId, startTime, endTime, nextLink, options) {
|
|
734
|
+
return this.client.sendOperationRequest({ resourceId, startTime, endTime, nextLink, options }, listNextOperationSpec$1);
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
// Operation Specifications
|
|
738
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
739
|
+
const listOperationSpec$1 = {
|
|
740
|
+
path: "/{resourceId}/providers/Microsoft.ChangeAnalysis/resourceChanges",
|
|
741
|
+
httpMethod: "POST",
|
|
742
|
+
responses: {
|
|
743
|
+
200: {
|
|
744
|
+
bodyMapper: ChangeList
|
|
745
|
+
},
|
|
746
|
+
default: {
|
|
747
|
+
bodyMapper: ErrorResponse
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
queryParameters: [
|
|
751
|
+
apiVersion,
|
|
752
|
+
skipToken,
|
|
753
|
+
startTime,
|
|
754
|
+
endTime
|
|
755
|
+
],
|
|
756
|
+
urlParameters: [$host, resourceId],
|
|
757
|
+
headerParameters: [accept],
|
|
758
|
+
serializer: serializer$1
|
|
759
|
+
};
|
|
760
|
+
const listNextOperationSpec$1 = {
|
|
761
|
+
path: "{nextLink}",
|
|
762
|
+
httpMethod: "GET",
|
|
763
|
+
responses: {
|
|
764
|
+
200: {
|
|
765
|
+
bodyMapper: ChangeList
|
|
766
|
+
},
|
|
767
|
+
default: {
|
|
768
|
+
bodyMapper: ErrorResponse
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
queryParameters: [
|
|
772
|
+
apiVersion,
|
|
773
|
+
skipToken,
|
|
774
|
+
startTime,
|
|
775
|
+
endTime
|
|
776
|
+
],
|
|
777
|
+
urlParameters: [$host, nextLink, resourceId],
|
|
778
|
+
headerParameters: [accept],
|
|
779
|
+
serializer: serializer$1
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
/*
|
|
783
|
+
* Copyright (c) Microsoft Corporation.
|
|
784
|
+
* Licensed under the MIT License.
|
|
785
|
+
*
|
|
786
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
787
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
788
|
+
*/
|
|
789
|
+
/// <reference lib="esnext.asynciterable" />
|
|
790
|
+
/** Class containing Changes operations. */
|
|
791
|
+
class ChangesImpl {
|
|
792
|
+
/**
|
|
793
|
+
* Initialize a new instance of the class Changes class.
|
|
794
|
+
* @param client Reference to the service client
|
|
795
|
+
*/
|
|
796
|
+
constructor(client) {
|
|
797
|
+
this.client = client;
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* List the changes of a resource group within the specified time range. Customer data will always be
|
|
801
|
+
* masked.
|
|
802
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
803
|
+
* @param startTime Specifies the start time of the changes request.
|
|
804
|
+
* @param endTime Specifies the end time of the changes request.
|
|
805
|
+
* @param options The options parameters.
|
|
806
|
+
*/
|
|
807
|
+
listChangesByResourceGroup(resourceGroupName, startTime, endTime, options) {
|
|
808
|
+
const iter = this.listChangesByResourceGroupPagingAll(resourceGroupName, startTime, endTime, options);
|
|
809
|
+
return {
|
|
810
|
+
next() {
|
|
811
|
+
return iter.next();
|
|
812
|
+
},
|
|
813
|
+
[Symbol.asyncIterator]() {
|
|
814
|
+
return this;
|
|
815
|
+
},
|
|
816
|
+
byPage: () => {
|
|
817
|
+
return this.listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options);
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options) {
|
|
822
|
+
return tslib.__asyncGenerator(this, arguments, function* listChangesByResourceGroupPagingPage_1() {
|
|
823
|
+
let result = yield tslib.__await(this._listChangesByResourceGroup(resourceGroupName, startTime, endTime, options));
|
|
824
|
+
yield yield tslib.__await(result.value || []);
|
|
825
|
+
let continuationToken = result.nextLink;
|
|
826
|
+
while (continuationToken) {
|
|
827
|
+
result = yield tslib.__await(this._listChangesByResourceGroupNext(resourceGroupName, startTime, endTime, continuationToken, options));
|
|
828
|
+
continuationToken = result.nextLink;
|
|
829
|
+
yield yield tslib.__await(result.value || []);
|
|
830
|
+
}
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
listChangesByResourceGroupPagingAll(resourceGroupName, startTime, endTime, options) {
|
|
834
|
+
return tslib.__asyncGenerator(this, arguments, function* listChangesByResourceGroupPagingAll_1() {
|
|
835
|
+
var e_1, _a;
|
|
836
|
+
try {
|
|
837
|
+
for (var _b = tslib.__asyncValues(this.listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
838
|
+
const page = _c.value;
|
|
839
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
843
|
+
finally {
|
|
844
|
+
try {
|
|
845
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
846
|
+
}
|
|
847
|
+
finally { if (e_1) throw e_1.error; }
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* List the changes of a subscription within the specified time range. Customer data will always be
|
|
853
|
+
* masked.
|
|
854
|
+
* @param startTime Specifies the start time of the changes request.
|
|
855
|
+
* @param endTime Specifies the end time of the changes request.
|
|
856
|
+
* @param options The options parameters.
|
|
857
|
+
*/
|
|
858
|
+
listChangesBySubscription(startTime, endTime, options) {
|
|
859
|
+
const iter = this.listChangesBySubscriptionPagingAll(startTime, endTime, options);
|
|
860
|
+
return {
|
|
861
|
+
next() {
|
|
862
|
+
return iter.next();
|
|
863
|
+
},
|
|
864
|
+
[Symbol.asyncIterator]() {
|
|
865
|
+
return this;
|
|
866
|
+
},
|
|
867
|
+
byPage: () => {
|
|
868
|
+
return this.listChangesBySubscriptionPagingPage(startTime, endTime, options);
|
|
869
|
+
}
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
listChangesBySubscriptionPagingPage(startTime, endTime, options) {
|
|
873
|
+
return tslib.__asyncGenerator(this, arguments, function* listChangesBySubscriptionPagingPage_1() {
|
|
874
|
+
let result = yield tslib.__await(this._listChangesBySubscription(startTime, endTime, options));
|
|
875
|
+
yield yield tslib.__await(result.value || []);
|
|
876
|
+
let continuationToken = result.nextLink;
|
|
877
|
+
while (continuationToken) {
|
|
878
|
+
result = yield tslib.__await(this._listChangesBySubscriptionNext(startTime, endTime, continuationToken, options));
|
|
879
|
+
continuationToken = result.nextLink;
|
|
880
|
+
yield yield tslib.__await(result.value || []);
|
|
881
|
+
}
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
listChangesBySubscriptionPagingAll(startTime, endTime, options) {
|
|
885
|
+
return tslib.__asyncGenerator(this, arguments, function* listChangesBySubscriptionPagingAll_1() {
|
|
886
|
+
var e_2, _a;
|
|
887
|
+
try {
|
|
888
|
+
for (var _b = tslib.__asyncValues(this.listChangesBySubscriptionPagingPage(startTime, endTime, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
889
|
+
const page = _c.value;
|
|
890
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
894
|
+
finally {
|
|
895
|
+
try {
|
|
896
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
897
|
+
}
|
|
898
|
+
finally { if (e_2) throw e_2.error; }
|
|
899
|
+
}
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* List the changes of a resource group within the specified time range. Customer data will always be
|
|
904
|
+
* masked.
|
|
905
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
906
|
+
* @param startTime Specifies the start time of the changes request.
|
|
907
|
+
* @param endTime Specifies the end time of the changes request.
|
|
908
|
+
* @param options The options parameters.
|
|
909
|
+
*/
|
|
910
|
+
_listChangesByResourceGroup(resourceGroupName, startTime, endTime, options) {
|
|
911
|
+
return this.client.sendOperationRequest({ resourceGroupName, startTime, endTime, options }, listChangesByResourceGroupOperationSpec);
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* List the changes of a subscription within the specified time range. Customer data will always be
|
|
915
|
+
* masked.
|
|
916
|
+
* @param startTime Specifies the start time of the changes request.
|
|
917
|
+
* @param endTime Specifies the end time of the changes request.
|
|
918
|
+
* @param options The options parameters.
|
|
919
|
+
*/
|
|
920
|
+
_listChangesBySubscription(startTime, endTime, options) {
|
|
921
|
+
return this.client.sendOperationRequest({ startTime, endTime, options }, listChangesBySubscriptionOperationSpec);
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* ListChangesByResourceGroupNext
|
|
925
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
926
|
+
* @param startTime Specifies the start time of the changes request.
|
|
927
|
+
* @param endTime Specifies the end time of the changes request.
|
|
928
|
+
* @param nextLink The nextLink from the previous successful call to the ListChangesByResourceGroup
|
|
929
|
+
* method.
|
|
930
|
+
* @param options The options parameters.
|
|
931
|
+
*/
|
|
932
|
+
_listChangesByResourceGroupNext(resourceGroupName, startTime, endTime, nextLink, options) {
|
|
933
|
+
return this.client.sendOperationRequest({ resourceGroupName, startTime, endTime, nextLink, options }, listChangesByResourceGroupNextOperationSpec);
|
|
934
|
+
}
|
|
935
|
+
/**
|
|
936
|
+
* ListChangesBySubscriptionNext
|
|
937
|
+
* @param startTime Specifies the start time of the changes request.
|
|
938
|
+
* @param endTime Specifies the end time of the changes request.
|
|
939
|
+
* @param nextLink The nextLink from the previous successful call to the ListChangesBySubscription
|
|
940
|
+
* method.
|
|
941
|
+
* @param options The options parameters.
|
|
942
|
+
*/
|
|
943
|
+
_listChangesBySubscriptionNext(startTime, endTime, nextLink, options) {
|
|
944
|
+
return this.client.sendOperationRequest({ startTime, endTime, nextLink, options }, listChangesBySubscriptionNextOperationSpec);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
// Operation Specifications
|
|
948
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
949
|
+
const listChangesByResourceGroupOperationSpec = {
|
|
950
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeAnalysis/changes",
|
|
951
|
+
httpMethod: "GET",
|
|
952
|
+
responses: {
|
|
953
|
+
200: {
|
|
954
|
+
bodyMapper: ChangeList
|
|
955
|
+
},
|
|
956
|
+
default: {
|
|
957
|
+
bodyMapper: ErrorResponse
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
queryParameters: [
|
|
961
|
+
apiVersion,
|
|
962
|
+
skipToken,
|
|
963
|
+
startTime,
|
|
964
|
+
endTime
|
|
965
|
+
],
|
|
966
|
+
urlParameters: [
|
|
967
|
+
$host,
|
|
968
|
+
subscriptionId,
|
|
969
|
+
resourceGroupName
|
|
970
|
+
],
|
|
971
|
+
headerParameters: [accept],
|
|
972
|
+
serializer: serializer$2
|
|
973
|
+
};
|
|
974
|
+
const listChangesBySubscriptionOperationSpec = {
|
|
975
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ChangeAnalysis/changes",
|
|
976
|
+
httpMethod: "GET",
|
|
977
|
+
responses: {
|
|
978
|
+
200: {
|
|
979
|
+
bodyMapper: ChangeList
|
|
980
|
+
},
|
|
981
|
+
default: {
|
|
982
|
+
bodyMapper: ErrorResponse
|
|
983
|
+
}
|
|
984
|
+
},
|
|
985
|
+
queryParameters: [
|
|
986
|
+
apiVersion,
|
|
987
|
+
skipToken,
|
|
988
|
+
startTime,
|
|
989
|
+
endTime
|
|
990
|
+
],
|
|
991
|
+
urlParameters: [$host, subscriptionId],
|
|
992
|
+
headerParameters: [accept],
|
|
993
|
+
serializer: serializer$2
|
|
994
|
+
};
|
|
995
|
+
const listChangesByResourceGroupNextOperationSpec = {
|
|
996
|
+
path: "{nextLink}",
|
|
997
|
+
httpMethod: "GET",
|
|
998
|
+
responses: {
|
|
999
|
+
200: {
|
|
1000
|
+
bodyMapper: ChangeList
|
|
1001
|
+
},
|
|
1002
|
+
default: {
|
|
1003
|
+
bodyMapper: ErrorResponse
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
queryParameters: [
|
|
1007
|
+
apiVersion,
|
|
1008
|
+
skipToken,
|
|
1009
|
+
startTime,
|
|
1010
|
+
endTime
|
|
1011
|
+
],
|
|
1012
|
+
urlParameters: [
|
|
1013
|
+
$host,
|
|
1014
|
+
nextLink,
|
|
1015
|
+
subscriptionId,
|
|
1016
|
+
resourceGroupName
|
|
1017
|
+
],
|
|
1018
|
+
headerParameters: [accept],
|
|
1019
|
+
serializer: serializer$2
|
|
1020
|
+
};
|
|
1021
|
+
const listChangesBySubscriptionNextOperationSpec = {
|
|
1022
|
+
path: "{nextLink}",
|
|
1023
|
+
httpMethod: "GET",
|
|
1024
|
+
responses: {
|
|
1025
|
+
200: {
|
|
1026
|
+
bodyMapper: ChangeList
|
|
1027
|
+
},
|
|
1028
|
+
default: {
|
|
1029
|
+
bodyMapper: ErrorResponse
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
queryParameters: [
|
|
1033
|
+
apiVersion,
|
|
1034
|
+
skipToken,
|
|
1035
|
+
startTime,
|
|
1036
|
+
endTime
|
|
1037
|
+
],
|
|
1038
|
+
urlParameters: [
|
|
1039
|
+
$host,
|
|
1040
|
+
nextLink,
|
|
1041
|
+
subscriptionId
|
|
1042
|
+
],
|
|
1043
|
+
headerParameters: [accept],
|
|
1044
|
+
serializer: serializer$2
|
|
1045
|
+
};
|
|
1046
|
+
|
|
1047
|
+
/*
|
|
1048
|
+
* Copyright (c) Microsoft Corporation.
|
|
1049
|
+
* Licensed under the MIT License.
|
|
1050
|
+
*
|
|
1051
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1052
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1053
|
+
*/
|
|
1054
|
+
class AzureChangeAnalysisManagementClient extends coreClient.ServiceClient {
|
|
1055
|
+
/**
|
|
1056
|
+
* Initializes a new instance of the AzureChangeAnalysisManagementClient class.
|
|
1057
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1058
|
+
* @param subscriptionId The ID of the target subscription.
|
|
1059
|
+
* @param options The parameter options
|
|
1060
|
+
*/
|
|
1061
|
+
constructor(credentials, subscriptionId, options) {
|
|
1062
|
+
if (credentials === undefined) {
|
|
1063
|
+
throw new Error("'credentials' cannot be null");
|
|
1064
|
+
}
|
|
1065
|
+
if (subscriptionId === undefined) {
|
|
1066
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
1067
|
+
}
|
|
1068
|
+
// Initializing default values for options
|
|
1069
|
+
if (!options) {
|
|
1070
|
+
options = {};
|
|
1071
|
+
}
|
|
1072
|
+
const defaults = {
|
|
1073
|
+
requestContentType: "application/json; charset=utf-8",
|
|
1074
|
+
credential: credentials
|
|
1075
|
+
};
|
|
1076
|
+
const packageDetails = `azsdk-js-arm-changeanalysis/2.0.0`;
|
|
1077
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1078
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1079
|
+
: `${packageDetails}`;
|
|
1080
|
+
if (!options.credentialScopes) {
|
|
1081
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
1082
|
+
}
|
|
1083
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1084
|
+
userAgentPrefix
|
|
1085
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
1086
|
+
super(optionsWithDefaults);
|
|
1087
|
+
// Parameter assignments
|
|
1088
|
+
this.subscriptionId = subscriptionId;
|
|
1089
|
+
// Assigning values to Constant parameters
|
|
1090
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
1091
|
+
this.apiVersion = options.apiVersion || "2021-04-01";
|
|
1092
|
+
this.operations = new OperationsImpl(this);
|
|
1093
|
+
this.resourceChanges = new ResourceChangesImpl(this);
|
|
1094
|
+
this.changes = new ChangesImpl(this);
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
exports.AzureChangeAnalysisManagementClient = AzureChangeAnalysisManagementClient;
|
|
1099
|
+
//# sourceMappingURL=index.js.map
|