@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,297 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Changes } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { ChangesClient } from "../changesClient";
15
+ import {
16
+ ChangeResourceResult,
17
+ ChangesListNextOptionalParams,
18
+ ChangesListOptionalParams,
19
+ ChangesListResponse,
20
+ ChangesGetOptionalParams,
21
+ ChangesGetResponse,
22
+ ChangesListNextResponse
23
+ } from "../models";
24
+
25
+ /// <reference lib="esnext.asynciterable" />
26
+ /** Class containing Changes operations. */
27
+ export class ChangesImpl implements Changes {
28
+ private readonly client: ChangesClient;
29
+
30
+ /**
31
+ * Initialize a new instance of the class Changes class.
32
+ * @param client Reference to the service client
33
+ */
34
+ constructor(client: ChangesClient) {
35
+ this.client = client;
36
+ }
37
+
38
+ /**
39
+ * Obtains a list of change resources from the past 14 days for the target resource
40
+ * @param resourceGroupName The name of the resource group.
41
+ * @param resourceProviderNamespace The name of the resource provider namespace.
42
+ * @param resourceType The name of the resource type.
43
+ * @param resourceName The name of the resource.
44
+ * @param options The options parameters.
45
+ */
46
+ public list(
47
+ resourceGroupName: string,
48
+ resourceProviderNamespace: string,
49
+ resourceType: string,
50
+ resourceName: string,
51
+ options?: ChangesListOptionalParams
52
+ ): PagedAsyncIterableIterator<ChangeResourceResult> {
53
+ const iter = this.listPagingAll(
54
+ resourceGroupName,
55
+ resourceProviderNamespace,
56
+ resourceType,
57
+ resourceName,
58
+ options
59
+ );
60
+ return {
61
+ next() {
62
+ return iter.next();
63
+ },
64
+ [Symbol.asyncIterator]() {
65
+ return this;
66
+ },
67
+ byPage: () => {
68
+ return this.listPagingPage(
69
+ resourceGroupName,
70
+ resourceProviderNamespace,
71
+ resourceType,
72
+ resourceName,
73
+ options
74
+ );
75
+ }
76
+ };
77
+ }
78
+
79
+ private async *listPagingPage(
80
+ resourceGroupName: string,
81
+ resourceProviderNamespace: string,
82
+ resourceType: string,
83
+ resourceName: string,
84
+ options?: ChangesListOptionalParams
85
+ ): AsyncIterableIterator<ChangeResourceResult[]> {
86
+ let result = await this._list(
87
+ resourceGroupName,
88
+ resourceProviderNamespace,
89
+ resourceType,
90
+ resourceName,
91
+ options
92
+ );
93
+ yield result.value || [];
94
+ let continuationToken = result.nextLink;
95
+ while (continuationToken) {
96
+ result = await this._listNext(
97
+ resourceGroupName,
98
+ resourceProviderNamespace,
99
+ resourceType,
100
+ resourceName,
101
+ continuationToken,
102
+ options
103
+ );
104
+ continuationToken = result.nextLink;
105
+ yield result.value || [];
106
+ }
107
+ }
108
+
109
+ private async *listPagingAll(
110
+ resourceGroupName: string,
111
+ resourceProviderNamespace: string,
112
+ resourceType: string,
113
+ resourceName: string,
114
+ options?: ChangesListOptionalParams
115
+ ): AsyncIterableIterator<ChangeResourceResult> {
116
+ for await (const page of this.listPagingPage(
117
+ resourceGroupName,
118
+ resourceProviderNamespace,
119
+ resourceType,
120
+ resourceName,
121
+ options
122
+ )) {
123
+ yield* page;
124
+ }
125
+ }
126
+
127
+ /**
128
+ * Obtains a list of change resources from the past 14 days for the target resource
129
+ * @param resourceGroupName The name of the resource group.
130
+ * @param resourceProviderNamespace The name of the resource provider namespace.
131
+ * @param resourceType The name of the resource type.
132
+ * @param resourceName The name of the resource.
133
+ * @param options The options parameters.
134
+ */
135
+ private _list(
136
+ resourceGroupName: string,
137
+ resourceProviderNamespace: string,
138
+ resourceType: string,
139
+ resourceName: string,
140
+ options?: ChangesListOptionalParams
141
+ ): Promise<ChangesListResponse> {
142
+ return this.client.sendOperationRequest(
143
+ {
144
+ resourceGroupName,
145
+ resourceProviderNamespace,
146
+ resourceType,
147
+ resourceName,
148
+ options
149
+ },
150
+ listOperationSpec
151
+ );
152
+ }
153
+
154
+ /**
155
+ * Obtains the specified change resource for the target resource
156
+ * @param resourceGroupName The name of the resource group.
157
+ * @param resourceProviderNamespace The name of the resource provider namespace.
158
+ * @param resourceType The name of the resource type.
159
+ * @param resourceName The name of the resource.
160
+ * @param changeResourceId The ID of the change resource
161
+ * @param options The options parameters.
162
+ */
163
+ get(
164
+ resourceGroupName: string,
165
+ resourceProviderNamespace: string,
166
+ resourceType: string,
167
+ resourceName: string,
168
+ changeResourceId: string,
169
+ options?: ChangesGetOptionalParams
170
+ ): Promise<ChangesGetResponse> {
171
+ return this.client.sendOperationRequest(
172
+ {
173
+ resourceGroupName,
174
+ resourceProviderNamespace,
175
+ resourceType,
176
+ resourceName,
177
+ changeResourceId,
178
+ options
179
+ },
180
+ getOperationSpec
181
+ );
182
+ }
183
+
184
+ /**
185
+ * ListNext
186
+ * @param resourceGroupName The name of the resource group.
187
+ * @param resourceProviderNamespace The name of the resource provider namespace.
188
+ * @param resourceType The name of the resource type.
189
+ * @param resourceName The name of the resource.
190
+ * @param nextLink The nextLink from the previous successful call to the List method.
191
+ * @param options The options parameters.
192
+ */
193
+ private _listNext(
194
+ resourceGroupName: string,
195
+ resourceProviderNamespace: string,
196
+ resourceType: string,
197
+ resourceName: string,
198
+ nextLink: string,
199
+ options?: ChangesListNextOptionalParams
200
+ ): Promise<ChangesListNextResponse> {
201
+ return this.client.sendOperationRequest(
202
+ {
203
+ resourceGroupName,
204
+ resourceProviderNamespace,
205
+ resourceType,
206
+ resourceName,
207
+ nextLink,
208
+ options
209
+ },
210
+ listNextOperationSpec
211
+ );
212
+ }
213
+ }
214
+ // Operation Specifications
215
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
216
+
217
+ const listOperationSpec: coreClient.OperationSpec = {
218
+ path:
219
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes",
220
+ httpMethod: "GET",
221
+ responses: {
222
+ 200: {
223
+ bodyMapper: Mappers.ChangeResourceListResult
224
+ },
225
+ default: {
226
+ bodyMapper: Mappers.ErrorResponse
227
+ }
228
+ },
229
+ queryParameters: [
230
+ Parameters.apiVersion,
231
+ Parameters.top,
232
+ Parameters.skipToken
233
+ ],
234
+ urlParameters: [
235
+ Parameters.$host,
236
+ Parameters.subscriptionId,
237
+ Parameters.resourceGroupName,
238
+ Parameters.resourceProviderNamespace,
239
+ Parameters.resourceType,
240
+ Parameters.resourceName
241
+ ],
242
+ headerParameters: [Parameters.accept],
243
+ serializer
244
+ };
245
+ const getOperationSpec: coreClient.OperationSpec = {
246
+ path:
247
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes/{changeResourceId}",
248
+ httpMethod: "GET",
249
+ responses: {
250
+ 200: {
251
+ bodyMapper: Mappers.ChangeResourceResult
252
+ },
253
+ default: {
254
+ bodyMapper: Mappers.ErrorResponse
255
+ }
256
+ },
257
+ queryParameters: [Parameters.apiVersion],
258
+ urlParameters: [
259
+ Parameters.$host,
260
+ Parameters.subscriptionId,
261
+ Parameters.resourceGroupName,
262
+ Parameters.resourceProviderNamespace,
263
+ Parameters.resourceType,
264
+ Parameters.resourceName,
265
+ Parameters.changeResourceId
266
+ ],
267
+ headerParameters: [Parameters.accept],
268
+ serializer
269
+ };
270
+ const listNextOperationSpec: coreClient.OperationSpec = {
271
+ path: "{nextLink}",
272
+ httpMethod: "GET",
273
+ responses: {
274
+ 200: {
275
+ bodyMapper: Mappers.ChangeResourceListResult
276
+ },
277
+ default: {
278
+ bodyMapper: Mappers.ErrorResponse
279
+ }
280
+ },
281
+ queryParameters: [
282
+ Parameters.apiVersion,
283
+ Parameters.top,
284
+ Parameters.skipToken
285
+ ],
286
+ urlParameters: [
287
+ Parameters.$host,
288
+ Parameters.subscriptionId,
289
+ Parameters.resourceGroupName,
290
+ Parameters.resourceProviderNamespace,
291
+ Parameters.resourceType,
292
+ Parameters.resourceName,
293
+ Parameters.nextLink
294
+ ],
295
+ headerParameters: [Parameters.accept],
296
+ serializer
297
+ };
@@ -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
+
9
+ export * from "./changes";
@@ -0,0 +1,52 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ ChangeResourceResult,
12
+ ChangesListOptionalParams,
13
+ ChangesGetOptionalParams,
14
+ ChangesGetResponse
15
+ } from "../models";
16
+
17
+ /// <reference lib="esnext.asynciterable" />
18
+ /** Interface representing a Changes. */
19
+ export interface Changes {
20
+ /**
21
+ * Obtains a list of change resources from the past 14 days for the target resource
22
+ * @param resourceGroupName The name of the resource group.
23
+ * @param resourceProviderNamespace The name of the resource provider namespace.
24
+ * @param resourceType The name of the resource type.
25
+ * @param resourceName The name of the resource.
26
+ * @param options The options parameters.
27
+ */
28
+ list(
29
+ resourceGroupName: string,
30
+ resourceProviderNamespace: string,
31
+ resourceType: string,
32
+ resourceName: string,
33
+ options?: ChangesListOptionalParams
34
+ ): PagedAsyncIterableIterator<ChangeResourceResult>;
35
+ /**
36
+ * Obtains the specified change resource for the target resource
37
+ * @param resourceGroupName The name of the resource group.
38
+ * @param resourceProviderNamespace The name of the resource provider namespace.
39
+ * @param resourceType The name of the resource type.
40
+ * @param resourceName The name of the resource.
41
+ * @param changeResourceId The ID of the change resource
42
+ * @param options The options parameters.
43
+ */
44
+ get(
45
+ resourceGroupName: string,
46
+ resourceProviderNamespace: string,
47
+ resourceType: string,
48
+ resourceName: string,
49
+ changeResourceId: string,
50
+ options?: ChangesGetOptionalParams
51
+ ): Promise<ChangesGetResponse>;
52
+ }
@@ -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
+
9
+ export * from "./changes";
package/tsconfig.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "es6",
4
+ "moduleResolution": "node",
5
+ "strict": true,
6
+ "target": "es6",
7
+ "sourceMap": true,
8
+ "declarationMap": true,
9
+ "esModuleInterop": true,
10
+ "allowSyntheticDefaultImports": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "lib": [
13
+ "es6",
14
+ "dom"
15
+ ],
16
+ "declaration": true,
17
+ "outDir": "./dist-esm",
18
+ "importHelpers": true,
19
+ "paths": {
20
+ "@azure/arm-changes": [
21
+ "./src/index"
22
+ ]
23
+ }
24
+ },
25
+ "include": [
26
+ "./src/**/*.ts",
27
+ "./test/**/*.ts",
28
+ "samples-dev/**/*.ts"
29
+ ],
30
+ "exclude": [
31
+ "node_modules"
32
+ ]
33
+ }
@@ -0,0 +1,251 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
+
5
+ /** Details about the change resource */
6
+ export declare interface ChangeAttributes {
7
+ /**
8
+ * The ARM correlation ID of the change resource
9
+ * NOTE: This property will not be serialized. It can only be populated by the server.
10
+ */
11
+ readonly correlationId?: string;
12
+ /**
13
+ * The time the change(s) on the target resource ocurred
14
+ * NOTE: This property will not be serialized. It can only be populated by the server.
15
+ */
16
+ readonly timestamp?: string;
17
+ /**
18
+ * The number of changes this resource captures
19
+ * NOTE: This property will not be serialized. It can only be populated by the server.
20
+ */
21
+ readonly changesCount?: number;
22
+ /**
23
+ * The GUID of the previous snapshot
24
+ * NOTE: This property will not be serialized. It can only be populated by the server.
25
+ */
26
+ readonly previousResourceSnapshotId?: string;
27
+ /**
28
+ * The GUID of the new snapshot
29
+ * NOTE: This property will not be serialized. It can only be populated by the server.
30
+ */
31
+ readonly newResourceSnapshotId?: string;
32
+ }
33
+
34
+ /** An individual change on the target resource */
35
+ export declare interface ChangeBase {
36
+ /**
37
+ * The type of change that occurred
38
+ * NOTE: This property will not be serialized. It can only be populated by the server.
39
+ */
40
+ readonly propertyChangeType?: PropertyChangeType;
41
+ /**
42
+ * The entity that made the change
43
+ * NOTE: This property will not be serialized. It can only be populated by the server.
44
+ */
45
+ readonly changeCategory?: ChangeCategory;
46
+ /**
47
+ * The target resource property value before the change
48
+ * NOTE: This property will not be serialized. It can only be populated by the server.
49
+ */
50
+ readonly previousValue?: string;
51
+ /**
52
+ * The target resource property value after the change
53
+ * NOTE: This property will not be serialized. It can only be populated by the server.
54
+ */
55
+ readonly newValue?: string;
56
+ }
57
+
58
+ /** Defines values for ChangeCategory. */
59
+ export declare type ChangeCategory = "User" | "System";
60
+
61
+ /** The properties of a change */
62
+ export declare interface ChangeProperties {
63
+ /**
64
+ * The fully qualified ID of the target resource that was changed
65
+ * NOTE: This property will not be serialized. It can only be populated by the server.
66
+ */
67
+ readonly targetResourceId?: string;
68
+ /**
69
+ * The namespace and type of the resource
70
+ * NOTE: This property will not be serialized. It can only be populated by the server.
71
+ */
72
+ readonly targetResourceType?: string;
73
+ /**
74
+ * The type of change that was captured in the resource
75
+ * NOTE: This property will not be serialized. It can only be populated by the server.
76
+ */
77
+ readonly changeType?: ChangeType;
78
+ /** Details about the change resource */
79
+ changeAttributes?: ChangeAttributes;
80
+ /** A dictionary with changed property name as a key and the change details as the value */
81
+ changes?: {
82
+ [propertyName: string]: ChangeBase;
83
+ };
84
+ }
85
+
86
+ /** The list of resources */
87
+ export declare interface ChangeResourceListResult {
88
+ /** The link used to get the next page of Change Resources */
89
+ nextLink?: string;
90
+ /** The list of resources */
91
+ value?: ChangeResourceResult[];
92
+ }
93
+
94
+ /** Change Resource */
95
+ export declare type ChangeResourceResult = Resource & {
96
+ /** The properties of a change */
97
+ properties?: ChangeProperties;
98
+ };
99
+
100
+ /** Interface representing a Changes. */
101
+ export declare interface Changes {
102
+ /**
103
+ * Obtains a list of change resources from the past 14 days for the target resource
104
+ * @param resourceGroupName The name of the resource group.
105
+ * @param resourceProviderNamespace The name of the resource provider namespace.
106
+ * @param resourceType The name of the resource type.
107
+ * @param resourceName The name of the resource.
108
+ * @param options The options parameters.
109
+ */
110
+ list(resourceGroupName: string, resourceProviderNamespace: string, resourceType: string, resourceName: string, options?: ChangesListOptionalParams): PagedAsyncIterableIterator<ChangeResourceResult>;
111
+ /**
112
+ * Obtains the specified change resource for the target resource
113
+ * @param resourceGroupName The name of the resource group.
114
+ * @param resourceProviderNamespace The name of the resource provider namespace.
115
+ * @param resourceType The name of the resource type.
116
+ * @param resourceName The name of the resource.
117
+ * @param changeResourceId The ID of the change resource
118
+ * @param options The options parameters.
119
+ */
120
+ get(resourceGroupName: string, resourceProviderNamespace: string, resourceType: string, resourceName: string, changeResourceId: string, options?: ChangesGetOptionalParams): Promise<ChangesGetResponse>;
121
+ }
122
+
123
+ export declare class ChangesClient extends coreClient.ServiceClient {
124
+ $host: string;
125
+ subscriptionId: string;
126
+ apiVersion: string;
127
+ /**
128
+ * Initializes a new instance of the ChangesClient class.
129
+ * @param credentials Subscription credentials which uniquely identify client subscription.
130
+ * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
131
+ * 00000000-0000-0000-0000-000000000000)
132
+ * @param options The parameter options
133
+ */
134
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ChangesClientOptionalParams);
135
+ changes: Changes;
136
+ }
137
+
138
+ /** Optional parameters. */
139
+ export declare interface ChangesClientOptionalParams extends coreClient.ServiceClientOptions {
140
+ /** server parameter */
141
+ $host?: string;
142
+ /** Api Version */
143
+ apiVersion?: string;
144
+ /** Overrides client endpoint. */
145
+ endpoint?: string;
146
+ }
147
+
148
+ /** Optional parameters. */
149
+ export declare interface ChangesGetOptionalParams extends coreClient.OperationOptions {
150
+ }
151
+
152
+ /** Contains response data for the get operation. */
153
+ export declare type ChangesGetResponse = ChangeResourceResult;
154
+
155
+ /** Optional parameters. */
156
+ export declare interface ChangesListNextOptionalParams extends coreClient.OperationOptions {
157
+ /** (Optional) Set the maximum number of results per response. */
158
+ top?: number;
159
+ /** (Optional) The page-continuation token */
160
+ skipToken?: string;
161
+ }
162
+
163
+ /** Contains response data for the listNext operation. */
164
+ export declare type ChangesListNextResponse = ChangeResourceListResult;
165
+
166
+ /** Optional parameters. */
167
+ export declare interface ChangesListOptionalParams extends coreClient.OperationOptions {
168
+ /** (Optional) Set the maximum number of results per response. */
169
+ top?: number;
170
+ /** (Optional) The page-continuation token */
171
+ skipToken?: string;
172
+ }
173
+
174
+ /** Contains response data for the list operation. */
175
+ export declare type ChangesListResponse = ChangeResourceListResult;
176
+
177
+ /** Defines values for ChangeType. */
178
+ export declare type ChangeType = "Update" | "Delete" | "Create";
179
+
180
+ /** The resource management error additional info. */
181
+ export declare interface ErrorAdditionalInfo {
182
+ /**
183
+ * The additional info type.
184
+ * NOTE: This property will not be serialized. It can only be populated by the server.
185
+ */
186
+ readonly type?: string;
187
+ /**
188
+ * The additional info.
189
+ * NOTE: This property will not be serialized. It can only be populated by the server.
190
+ */
191
+ readonly info?: Record<string, unknown>;
192
+ }
193
+
194
+ /** The error detail. */
195
+ export declare interface ErrorDetail {
196
+ /**
197
+ * The error code.
198
+ * NOTE: This property will not be serialized. It can only be populated by the server.
199
+ */
200
+ readonly code?: string;
201
+ /**
202
+ * The error message.
203
+ * NOTE: This property will not be serialized. It can only be populated by the server.
204
+ */
205
+ readonly message?: string;
206
+ /**
207
+ * The error target.
208
+ * NOTE: This property will not be serialized. It can only be populated by the server.
209
+ */
210
+ readonly target?: string;
211
+ /**
212
+ * The error details.
213
+ * NOTE: This property will not be serialized. It can only be populated by the server.
214
+ */
215
+ readonly details?: ErrorDetail[];
216
+ /**
217
+ * The error additional info.
218
+ * NOTE: This property will not be serialized. It can only be populated by the server.
219
+ */
220
+ readonly additionalInfo?: ErrorAdditionalInfo[];
221
+ }
222
+
223
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
224
+ export declare interface ErrorResponse {
225
+ /** The error object. */
226
+ error?: ErrorDetail;
227
+ }
228
+
229
+ /** Defines values for PropertyChangeType. */
230
+ export declare type PropertyChangeType = "Update" | "Insert" | "Remove";
231
+
232
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
233
+ export declare interface Resource {
234
+ /**
235
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
236
+ * NOTE: This property will not be serialized. It can only be populated by the server.
237
+ */
238
+ readonly id?: string;
239
+ /**
240
+ * The name of the resource
241
+ * NOTE: This property will not be serialized. It can only be populated by the server.
242
+ */
243
+ readonly name?: string;
244
+ /**
245
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
246
+ * NOTE: This property will not be serialized. It can only be populated by the server.
247
+ */
248
+ readonly type?: string;
249
+ }
250
+
251
+ export { }
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.18.11"
9
+ }
10
+ ]
11
+ }