@azure/arm-changes 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +747 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/changesGetSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/changesGetSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/changesGetSample.js +34 -0
  11. package/dist-esm/samples-dev/changesGetSample.js.map +1 -0
  12. package/dist-esm/samples-dev/changesListSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/changesListSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/changesListSample.js +47 -0
  15. package/dist-esm/samples-dev/changesListSample.js.map +1 -0
  16. package/dist-esm/src/changesClient.d.ts +19 -0
  17. package/dist-esm/src/changesClient.d.ts.map +1 -0
  18. package/dist-esm/src/changesClient.js +70 -0
  19. package/dist-esm/src/changesClient.js.map +1 -0
  20. package/dist-esm/src/index.d.ts +5 -0
  21. package/dist-esm/src/index.d.ts.map +1 -0
  22. package/dist-esm/src/index.js +12 -0
  23. package/dist-esm/src/index.js.map +1 -0
  24. package/dist-esm/src/models/index.d.ts +191 -0
  25. package/dist-esm/src/models/index.d.ts.map +1 -0
  26. package/dist-esm/src/models/index.js +9 -0
  27. package/dist-esm/src/models/index.js.map +1 -0
  28. package/dist-esm/src/models/mappers.d.ts +11 -0
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  30. package/dist-esm/src/models/mappers.js +294 -0
  31. package/dist-esm/src/models/mappers.js.map +1 -0
  32. package/dist-esm/src/models/parameters.d.ts +14 -0
  33. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  34. package/dist-esm/src/models/parameters.js +135 -0
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/dist-esm/src/operations/changes.d.ts +54 -0
  37. package/dist-esm/src/operations/changes.d.ts.map +1 -0
  38. package/dist-esm/src/operations/changes.js +211 -0
  39. package/dist-esm/src/operations/changes.js.map +1 -0
  40. package/dist-esm/src/operations/index.d.ts +2 -0
  41. package/dist-esm/src/operations/index.d.ts.map +1 -0
  42. package/dist-esm/src/operations/index.js +9 -0
  43. package/dist-esm/src/operations/index.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/changes.d.ts +25 -0
  45. package/dist-esm/src/operationsInterfaces/changes.d.ts.map +1 -0
  46. package/dist-esm/src/operationsInterfaces/changes.js +9 -0
  47. package/dist-esm/src/operationsInterfaces/changes.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  49. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/index.js +9 -0
  51. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  52. package/dist-esm/test/sampleTest.d.ts +2 -0
  53. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  54. package/dist-esm/test/sampleTest.js +40 -0
  55. package/dist-esm/test/sampleTest.js.map +1 -0
  56. package/package.json +116 -0
  57. package/review/arm-changes.api.md +139 -0
  58. package/rollup.config.js +122 -0
  59. package/src/changesClient.ts +101 -0
  60. package/src/index.ts +12 -0
  61. package/src/models/index.ts +213 -0
  62. package/src/models/mappers.ts +307 -0
  63. package/src/models/parameters.ts +152 -0
  64. package/src/operations/changes.ts +297 -0
  65. package/src/operations/index.ts +9 -0
  66. package/src/operationsInterfaces/changes.ts +52 -0
  67. package/src/operationsInterfaces/index.ts +9 -0
  68. package/tsconfig.json +33 -0
  69. package/types/arm-changes.d.ts +251 -0
  70. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,211 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing Changes operations. */
14
+ export class ChangesImpl {
15
+ /**
16
+ * Initialize a new instance of the class Changes class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Obtains a list of change resources from the past 14 days for the target resource
24
+ * @param resourceGroupName The name of the resource group.
25
+ * @param resourceProviderNamespace The name of the resource provider namespace.
26
+ * @param resourceType The name of the resource type.
27
+ * @param resourceName The name of the resource.
28
+ * @param options The options parameters.
29
+ */
30
+ list(resourceGroupName, resourceProviderNamespace, resourceType, resourceName, options) {
31
+ const iter = this.listPagingAll(resourceGroupName, resourceProviderNamespace, resourceType, resourceName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listPagingPage(resourceGroupName, resourceProviderNamespace, resourceType, resourceName, options);
41
+ }
42
+ };
43
+ }
44
+ listPagingPage(resourceGroupName, resourceProviderNamespace, resourceType, resourceName, options) {
45
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
+ let result = yield __await(this._list(resourceGroupName, resourceProviderNamespace, resourceType, resourceName, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listNext(resourceGroupName, resourceProviderNamespace, resourceType, resourceName, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listPagingAll(resourceGroupName, resourceProviderNamespace, resourceType, resourceName, options) {
57
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, resourceProviderNamespace, resourceType, resourceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
61
+ const page = _c.value;
62
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
+ }
64
+ }
65
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
+ finally {
67
+ try {
68
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ }
70
+ finally { if (e_1) throw e_1.error; }
71
+ }
72
+ });
73
+ }
74
+ /**
75
+ * Obtains a list of change resources from the past 14 days for the target resource
76
+ * @param resourceGroupName The name of the resource group.
77
+ * @param resourceProviderNamespace The name of the resource provider namespace.
78
+ * @param resourceType The name of the resource type.
79
+ * @param resourceName The name of the resource.
80
+ * @param options The options parameters.
81
+ */
82
+ _list(resourceGroupName, resourceProviderNamespace, resourceType, resourceName, options) {
83
+ return this.client.sendOperationRequest({
84
+ resourceGroupName,
85
+ resourceProviderNamespace,
86
+ resourceType,
87
+ resourceName,
88
+ options
89
+ }, listOperationSpec);
90
+ }
91
+ /**
92
+ * Obtains the specified change resource for the target resource
93
+ * @param resourceGroupName The name of the resource group.
94
+ * @param resourceProviderNamespace The name of the resource provider namespace.
95
+ * @param resourceType The name of the resource type.
96
+ * @param resourceName The name of the resource.
97
+ * @param changeResourceId The ID of the change resource
98
+ * @param options The options parameters.
99
+ */
100
+ get(resourceGroupName, resourceProviderNamespace, resourceType, resourceName, changeResourceId, options) {
101
+ return this.client.sendOperationRequest({
102
+ resourceGroupName,
103
+ resourceProviderNamespace,
104
+ resourceType,
105
+ resourceName,
106
+ changeResourceId,
107
+ options
108
+ }, getOperationSpec);
109
+ }
110
+ /**
111
+ * ListNext
112
+ * @param resourceGroupName The name of the resource group.
113
+ * @param resourceProviderNamespace The name of the resource provider namespace.
114
+ * @param resourceType The name of the resource type.
115
+ * @param resourceName The name of the resource.
116
+ * @param nextLink The nextLink from the previous successful call to the List method.
117
+ * @param options The options parameters.
118
+ */
119
+ _listNext(resourceGroupName, resourceProviderNamespace, resourceType, resourceName, nextLink, options) {
120
+ return this.client.sendOperationRequest({
121
+ resourceGroupName,
122
+ resourceProviderNamespace,
123
+ resourceType,
124
+ resourceName,
125
+ nextLink,
126
+ options
127
+ }, listNextOperationSpec);
128
+ }
129
+ }
130
+ // Operation Specifications
131
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
132
+ const listOperationSpec = {
133
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes",
134
+ httpMethod: "GET",
135
+ responses: {
136
+ 200: {
137
+ bodyMapper: Mappers.ChangeResourceListResult
138
+ },
139
+ default: {
140
+ bodyMapper: Mappers.ErrorResponse
141
+ }
142
+ },
143
+ queryParameters: [
144
+ Parameters.apiVersion,
145
+ Parameters.top,
146
+ Parameters.skipToken
147
+ ],
148
+ urlParameters: [
149
+ Parameters.$host,
150
+ Parameters.subscriptionId,
151
+ Parameters.resourceGroupName,
152
+ Parameters.resourceProviderNamespace,
153
+ Parameters.resourceType,
154
+ Parameters.resourceName
155
+ ],
156
+ headerParameters: [Parameters.accept],
157
+ serializer
158
+ };
159
+ const getOperationSpec = {
160
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes/{changeResourceId}",
161
+ httpMethod: "GET",
162
+ responses: {
163
+ 200: {
164
+ bodyMapper: Mappers.ChangeResourceResult
165
+ },
166
+ default: {
167
+ bodyMapper: Mappers.ErrorResponse
168
+ }
169
+ },
170
+ queryParameters: [Parameters.apiVersion],
171
+ urlParameters: [
172
+ Parameters.$host,
173
+ Parameters.subscriptionId,
174
+ Parameters.resourceGroupName,
175
+ Parameters.resourceProviderNamespace,
176
+ Parameters.resourceType,
177
+ Parameters.resourceName,
178
+ Parameters.changeResourceId
179
+ ],
180
+ headerParameters: [Parameters.accept],
181
+ serializer
182
+ };
183
+ const listNextOperationSpec = {
184
+ path: "{nextLink}",
185
+ httpMethod: "GET",
186
+ responses: {
187
+ 200: {
188
+ bodyMapper: Mappers.ChangeResourceListResult
189
+ },
190
+ default: {
191
+ bodyMapper: Mappers.ErrorResponse
192
+ }
193
+ },
194
+ queryParameters: [
195
+ Parameters.apiVersion,
196
+ Parameters.top,
197
+ Parameters.skipToken
198
+ ],
199
+ urlParameters: [
200
+ Parameters.$host,
201
+ Parameters.subscriptionId,
202
+ Parameters.resourceGroupName,
203
+ Parameters.resourceProviderNamespace,
204
+ Parameters.resourceType,
205
+ Parameters.resourceName,
206
+ Parameters.nextLink
207
+ ],
208
+ headerParameters: [Parameters.accept],
209
+ serializer
210
+ };
211
+ //# sourceMappingURL=changes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changes.js","sourceRoot":"","sources":["../../../src/operations/changes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,iBAAyB,EACzB,yBAAiC,EACjC,YAAoB,EACpB,YAAoB,EACpB,OAAmC;QAEnC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,yBAAyB,EACzB,YAAY,EACZ,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,C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AC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./changes";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,WAAW,CAAC"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./changes";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,WAAW,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ChangeResourceResult, ChangesListOptionalParams, ChangesGetOptionalParams, ChangesGetResponse } from "../models";
3
+ /** Interface representing a Changes. */
4
+ export interface Changes {
5
+ /**
6
+ * Obtains a list of change resources from the past 14 days for the target resource
7
+ * @param resourceGroupName The name of the resource group.
8
+ * @param resourceProviderNamespace The name of the resource provider namespace.
9
+ * @param resourceType The name of the resource type.
10
+ * @param resourceName The name of the resource.
11
+ * @param options The options parameters.
12
+ */
13
+ list(resourceGroupName: string, resourceProviderNamespace: string, resourceType: string, resourceName: string, options?: ChangesListOptionalParams): PagedAsyncIterableIterator<ChangeResourceResult>;
14
+ /**
15
+ * Obtains the specified change resource for the target resource
16
+ * @param resourceGroupName The name of the resource group.
17
+ * @param resourceProviderNamespace The name of the resource provider namespace.
18
+ * @param resourceType The name of the resource type.
19
+ * @param resourceName The name of the resource.
20
+ * @param changeResourceId The ID of the change resource
21
+ * @param options The options parameters.
22
+ */
23
+ get(resourceGroupName: string, resourceProviderNamespace: string, resourceType: string, resourceName: string, changeResourceId: string, options?: ChangesGetOptionalParams): Promise<ChangesGetResponse>;
24
+ }
25
+ //# sourceMappingURL=changes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/changes.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAGnB,wCAAwC;AACxC,MAAM,WAAW,OAAO;IACtB;;;;;;;OAOG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,GAClC,0BAA0B,CAAC,oBAAoB,CAAC,CAAC;IACpD;;;;;;;;OAQG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAChC"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=changes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changes.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/changes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,2 @@
1
+ export * from "./changes";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,WAAW,CAAC"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./changes";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sampleTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ import { record } from "@azure-tools/test-recorder";
10
+ const recorderEnvSetup = {
11
+ replaceableVariables: {
12
+ AZURE_CLIENT_ID: "azure_client_id",
13
+ AZURE_CLIENT_SECRET: "azure_client_secret",
14
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
15
+ SUBSCRIPTION_ID: "azure_subscription_id"
16
+ },
17
+ customizationsOnRecordings: [
18
+ (recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
19
+ ],
20
+ queryParametersToSkip: []
21
+ };
22
+ describe("My test", () => {
23
+ let recorder;
24
+ beforeEach(function () {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ recorder = record(this, recorderEnvSetup);
27
+ });
28
+ });
29
+ afterEach(function () {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ yield recorder.stop();
32
+ });
33
+ });
34
+ it("sample test", function () {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ console.log("Hi, I'm a test!");
37
+ });
38
+ });
39
+ });
40
+ //# sourceMappingURL=sampleTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAEL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AAGpC,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAC5C,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,116 @@
1
+ {
2
+ "name": "@azure/arm-changes",
3
+ "sdk-type": "mgmt",
4
+ "author": "Microsoft Corporation",
5
+ "description": "A generated SDK for ChangesClient.",
6
+ "version": "1.0.0",
7
+ "engines": {
8
+ "node": ">=12.0.0"
9
+ },
10
+ "dependencies": {
11
+ "@azure/core-paging": "^1.2.0",
12
+ "@azure/core-client": "^1.5.0",
13
+ "@azure/core-auth": "^1.3.0",
14
+ "@azure/core-rest-pipeline": "^1.8.0",
15
+ "tslib": "^2.2.0"
16
+ },
17
+ "keywords": [
18
+ "node",
19
+ "azure",
20
+ "typescript",
21
+ "browser",
22
+ "isomorphic"
23
+ ],
24
+ "license": "MIT",
25
+ "main": "./dist/index.js",
26
+ "module": "./dist-esm/src/index.js",
27
+ "types": "./types/arm-changes.d.ts",
28
+ "devDependencies": {
29
+ "@microsoft/api-extractor": "7.18.11",
30
+ "@rollup/plugin-commonjs": "^21.0.1",
31
+ "@rollup/plugin-json": "^4.1.0",
32
+ "@rollup/plugin-multi-entry": "^4.1.0",
33
+ "@rollup/plugin-node-resolve": "^13.1.3",
34
+ "mkdirp": "^1.0.4",
35
+ "rollup": "^2.66.1",
36
+ "rollup-plugin-sourcemaps": "^0.6.3",
37
+ "typescript": "~4.2.0",
38
+ "uglify-js": "^3.4.9",
39
+ "rimraf": "^3.0.0",
40
+ "@azure/identity": "^2.0.1",
41
+ "@azure-tools/test-recorder": "^1.0.0",
42
+ "mocha": "^7.1.1",
43
+ "cross-env": "^7.0.2"
44
+ },
45
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/changes/arm-changes",
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
49
+ },
50
+ "bugs": {
51
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
52
+ },
53
+ "files": [
54
+ "dist/**/*.js",
55
+ "dist/**/*.js.map",
56
+ "dist/**/*.d.ts",
57
+ "dist/**/*.d.ts.map",
58
+ "dist-esm/**/*.js",
59
+ "dist-esm/**/*.js.map",
60
+ "dist-esm/**/*.d.ts",
61
+ "dist-esm/**/*.d.ts.map",
62
+ "src/**/*.ts",
63
+ "README.md",
64
+ "LICENSE",
65
+ "rollup.config.js",
66
+ "tsconfig.json",
67
+ "review/*",
68
+ "CHANGELOG.md",
69
+ "types/*"
70
+ ],
71
+ "scripts": {
72
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
73
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
74
+ "prepack": "npm run build",
75
+ "pack": "npm pack 2>&1",
76
+ "extract-api": "api-extractor run --local",
77
+ "lint": "echo skipped",
78
+ "audit": "echo skipped",
79
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
80
+ "build:node": "echo skipped",
81
+ "build:browser": "echo skipped",
82
+ "build:test": "echo skipped",
83
+ "build:samples": "echo skipped.",
84
+ "check-format": "echo skipped",
85
+ "execute:samples": "echo skipped",
86
+ "format": "echo skipped",
87
+ "test": "npm run integration-test",
88
+ "test:node": "echo skipped",
89
+ "test:browser": "echo skipped",
90
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
91
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
92
+ "unit-test:browser": "echo skipped",
93
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
94
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
95
+ "integration-test:browser": "echo skipped",
96
+ "docs": "echo skipped"
97
+ },
98
+ "sideEffects": false,
99
+ "//metadata": {
100
+ "constantPaths": [
101
+ {
102
+ "path": "src/changesClient.ts",
103
+ "prefix": "packageDetails"
104
+ }
105
+ ]
106
+ },
107
+ "autoPublish": true,
108
+ "//sampleConfiguration": {
109
+ "productName": "",
110
+ "productSlugs": [
111
+ "azure"
112
+ ],
113
+ "disableDocsMs": true,
114
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-changes?view=azure-node-preview"
115
+ }
116
+ }
@@ -0,0 +1,139 @@
1
+ ## API Report File for "@azure/arm-changes"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import * as coreAuth from '@azure/core-auth';
8
+ import * as coreClient from '@azure/core-client';
9
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
+
11
+ // @public
12
+ export interface ChangeAttributes {
13
+ readonly changesCount?: number;
14
+ readonly correlationId?: string;
15
+ readonly newResourceSnapshotId?: string;
16
+ readonly previousResourceSnapshotId?: string;
17
+ readonly timestamp?: string;
18
+ }
19
+
20
+ // @public
21
+ export interface ChangeBase {
22
+ readonly changeCategory?: ChangeCategory;
23
+ readonly newValue?: string;
24
+ readonly previousValue?: string;
25
+ readonly propertyChangeType?: PropertyChangeType;
26
+ }
27
+
28
+ // @public
29
+ export type ChangeCategory = "User" | "System";
30
+
31
+ // @public
32
+ export interface ChangeProperties {
33
+ changeAttributes?: ChangeAttributes;
34
+ changes?: {
35
+ [propertyName: string]: ChangeBase;
36
+ };
37
+ readonly changeType?: ChangeType;
38
+ readonly targetResourceId?: string;
39
+ readonly targetResourceType?: string;
40
+ }
41
+
42
+ // @public
43
+ export interface ChangeResourceListResult {
44
+ nextLink?: string;
45
+ value?: ChangeResourceResult[];
46
+ }
47
+
48
+ // @public
49
+ export type ChangeResourceResult = Resource & {
50
+ properties?: ChangeProperties;
51
+ };
52
+
53
+ // @public
54
+ export interface Changes {
55
+ get(resourceGroupName: string, resourceProviderNamespace: string, resourceType: string, resourceName: string, changeResourceId: string, options?: ChangesGetOptionalParams): Promise<ChangesGetResponse>;
56
+ list(resourceGroupName: string, resourceProviderNamespace: string, resourceType: string, resourceName: string, options?: ChangesListOptionalParams): PagedAsyncIterableIterator<ChangeResourceResult>;
57
+ }
58
+
59
+ // @public (undocumented)
60
+ export class ChangesClient extends coreClient.ServiceClient {
61
+ // (undocumented)
62
+ $host: string;
63
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ChangesClientOptionalParams);
64
+ // (undocumented)
65
+ apiVersion: string;
66
+ // (undocumented)
67
+ changes: Changes;
68
+ // (undocumented)
69
+ subscriptionId: string;
70
+ }
71
+
72
+ // @public
73
+ export interface ChangesClientOptionalParams extends coreClient.ServiceClientOptions {
74
+ $host?: string;
75
+ apiVersion?: string;
76
+ endpoint?: string;
77
+ }
78
+
79
+ // @public
80
+ export interface ChangesGetOptionalParams extends coreClient.OperationOptions {
81
+ }
82
+
83
+ // @public
84
+ export type ChangesGetResponse = ChangeResourceResult;
85
+
86
+ // @public
87
+ export interface ChangesListNextOptionalParams extends coreClient.OperationOptions {
88
+ skipToken?: string;
89
+ top?: number;
90
+ }
91
+
92
+ // @public
93
+ export type ChangesListNextResponse = ChangeResourceListResult;
94
+
95
+ // @public
96
+ export interface ChangesListOptionalParams extends coreClient.OperationOptions {
97
+ skipToken?: string;
98
+ top?: number;
99
+ }
100
+
101
+ // @public
102
+ export type ChangesListResponse = ChangeResourceListResult;
103
+
104
+ // @public
105
+ export type ChangeType = "Update" | "Delete" | "Create";
106
+
107
+ // @public
108
+ export interface ErrorAdditionalInfo {
109
+ readonly info?: Record<string, unknown>;
110
+ readonly type?: string;
111
+ }
112
+
113
+ // @public
114
+ export interface ErrorDetail {
115
+ readonly additionalInfo?: ErrorAdditionalInfo[];
116
+ readonly code?: string;
117
+ readonly details?: ErrorDetail[];
118
+ readonly message?: string;
119
+ readonly target?: string;
120
+ }
121
+
122
+ // @public
123
+ export interface ErrorResponse {
124
+ error?: ErrorDetail;
125
+ }
126
+
127
+ // @public
128
+ export type PropertyChangeType = "Update" | "Insert" | "Remove";
129
+
130
+ // @public
131
+ export interface Resource {
132
+ readonly id?: string;
133
+ readonly name?: string;
134
+ readonly type?: string;
135
+ }
136
+
137
+ // (No @packageDocumentation comment for this package)
138
+
139
+ ```