@azure/arm-changeanalysis 2.1.1-alpha.20250717.1 → 2.1.1-alpha.20250718.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/azureChangeAnalysisManagementClient.js +16 -5
- package/dist/browser/azureChangeAnalysisManagementClient.js.map +1 -1
- package/dist/browser/models/mappers.js +8 -3
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/changes.js +45 -79
- package/dist/browser/operations/changes.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/resourceChanges.js +23 -40
- package/dist/browser/operations/resourceChanges.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/azureChangeAnalysisManagementClient.js +16 -5
- package/dist/commonjs/azureChangeAnalysisManagementClient.js.map +1 -1
- package/dist/commonjs/models/mappers.js +8 -3
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/changes.js +45 -78
- package/dist/commonjs/operations/changes.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/resourceChanges.js +23 -39
- package/dist/commonjs/operations/resourceChanges.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/azureChangeAnalysisManagementClient.js +16 -5
- package/dist/esm/azureChangeAnalysisManagementClient.js.map +1 -1
- package/dist/esm/models/mappers.js +8 -3
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/changes.js +45 -79
- package/dist/esm/operations/changes.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/resourceChanges.js +23 -40
- package/dist/esm/operations/resourceChanges.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/azureChangeAnalysisManagementClient.js +16 -5
- package/dist/react-native/azureChangeAnalysisManagementClient.js.map +1 -1
- package/dist/react-native/models/mappers.js +8 -3
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/changes.js +45 -79
- package/dist/react-native/operations/changes.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/resourceChanges.js +23 -40
- package/dist/react-native/operations/resourceChanges.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-changeanalysis-node.api.md +228 -228
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing ResourceChanges operations. */
|
|
15
14
|
export class ResourceChangesImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ResourceChanges class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class ResourceChangesImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listPagingPage(resourceId, startTime, endTime, options, settings);
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listPagingPage(resourceId, startTime, endTime, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listPagingPage(resourceId, startTime, endTime, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._list(resourceId, startTime, endTime, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listNext(resourceId, startTime, endTime, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listPagingAll(resourceId, startTime, endTime, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceId, startTime, endTime, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *listPagingAll(resourceId, startTime, endTime, options) {
|
|
67
|
+
for await (const page of this.listPagingPage(resourceId, startTime, endTime, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* List the changes of a resource within the specified time range. Customer data will be masked if the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceChanges.js","sourceRoot":"","sources":["../../../src/operations/resourceChanges.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"resourceChanges.js","sourceRoot":"","sources":["../../../src/operations/resourceChanges.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IACb,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,UAAkB,EAClB,SAAe,EACf,OAAa,EACb,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;g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AC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,OAAO;KACnB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC;IAC7E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ResourceChanges } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureChangeAnalysisManagementClient } from \"../azureChangeAnalysisManagementClient.js\";\nimport {\n Change,\n ResourceChangesListNextOptionalParams,\n ResourceChangesListOptionalParams,\n ResourceChangesListResponse,\n ResourceChangesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ResourceChanges operations. */\nexport class ResourceChangesImpl implements ResourceChanges {\n private readonly client: AzureChangeAnalysisManagementClient;\n\n /**\n * Initialize a new instance of the class ResourceChanges class.\n * @param client Reference to the service client\n */\n constructor(client: AzureChangeAnalysisManagementClient) {\n this.client = client;\n }\n\n /**\n * List the changes of a resource within the specified time range. Customer data will be masked if the\n * user doesn't have access.\n * @param resourceId The identifier of the resource.\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param options The options parameters.\n */\n public list(\n resourceId: string,\n startTime: Date,\n endTime: Date,\n options?: ResourceChangesListOptionalParams\n ): PagedAsyncIterableIterator<Change> {\n const iter = this.listPagingAll(resourceId, startTime, endTime, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceId,\n startTime,\n endTime,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceId: string,\n startTime: Date,\n endTime: Date,\n options?: ResourceChangesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Change[]> {\n let result: ResourceChangesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceId, startTime, endTime, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceId,\n startTime,\n endTime,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceId: string,\n startTime: Date,\n endTime: Date,\n options?: ResourceChangesListOptionalParams\n ): AsyncIterableIterator<Change> {\n for await (const page of this.listPagingPage(\n resourceId,\n startTime,\n endTime,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List the changes of a resource within the specified time range. Customer data will be masked if the\n * user doesn't have access.\n * @param resourceId The identifier of the resource.\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param options The options parameters.\n */\n private _list(\n resourceId: string,\n startTime: Date,\n endTime: Date,\n options?: ResourceChangesListOptionalParams\n ): Promise<ResourceChangesListResponse> {\n return this.client.sendOperationRequest(\n { resourceId, startTime, endTime, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceId The identifier of the resource.\n * @param startTime Specifies the start time of the changes request.\n * @param endTime Specifies the end time of the changes request.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceId: string,\n startTime: Date,\n endTime: Date,\n nextLink: string,\n options?: ResourceChangesListNextOptionalParams\n ): Promise<ResourceChangesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceId, startTime, endTime, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.ChangeAnalysis/resourceChanges\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skipToken,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [Parameters.$host, Parameters.resourceId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skipToken,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.resourceId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage().
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given a result page from a pageable operation, returns a\n * continuation token that can be used to begin paging from\n * that point later.\n * @param page A result object from calling .byPage() on a paged operation.\n * @returns The continuation token that can be passed into byPage().\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -13,6 +13,9 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
|
13
13
|
const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
|
|
14
14
|
const index_js_1 = require("./operations/index.js");
|
|
15
15
|
class AzureChangeAnalysisManagementClient extends coreClient.ServiceClient {
|
|
16
|
+
$host;
|
|
17
|
+
apiVersion;
|
|
18
|
+
subscriptionId;
|
|
16
19
|
/**
|
|
17
20
|
* Initializes a new instance of the AzureChangeAnalysisManagementClient class.
|
|
18
21
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -20,7 +23,6 @@ class AzureChangeAnalysisManagementClient extends coreClient.ServiceClient {
|
|
|
20
23
|
* @param options The parameter options
|
|
21
24
|
*/
|
|
22
25
|
constructor(credentials, subscriptionId, options) {
|
|
23
|
-
var _a, _b, _c;
|
|
24
26
|
if (credentials === undefined) {
|
|
25
27
|
throw new Error("'credentials' cannot be null");
|
|
26
28
|
}
|
|
@@ -39,12 +41,17 @@ class AzureChangeAnalysisManagementClient extends coreClient.ServiceClient {
|
|
|
39
41
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
40
42
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
41
43
|
: `${packageDetails}`;
|
|
42
|
-
const optionsWithDefaults =
|
|
44
|
+
const optionsWithDefaults = {
|
|
45
|
+
...defaults,
|
|
46
|
+
...options,
|
|
47
|
+
userAgentOptions: {
|
|
43
48
|
userAgentPrefix
|
|
44
|
-
},
|
|
49
|
+
},
|
|
50
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
51
|
+
};
|
|
45
52
|
super(optionsWithDefaults);
|
|
46
53
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
47
|
-
if (
|
|
54
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
48
55
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
49
56
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
50
57
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -58,7 +65,8 @@ class AzureChangeAnalysisManagementClient extends coreClient.ServiceClient {
|
|
|
58
65
|
});
|
|
59
66
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
60
67
|
credential: credentials,
|
|
61
|
-
scopes:
|
|
68
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
69
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
62
70
|
challengeCallbacks: {
|
|
63
71
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
64
72
|
}
|
|
@@ -99,6 +107,9 @@ class AzureChangeAnalysisManagementClient extends coreClient.ServiceClient {
|
|
|
99
107
|
};
|
|
100
108
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
101
109
|
}
|
|
110
|
+
operations;
|
|
111
|
+
resourceChanges;
|
|
112
|
+
changes;
|
|
102
113
|
}
|
|
103
114
|
exports.AzureChangeAnalysisManagementClient = AzureChangeAnalysisManagementClient;
|
|
104
115
|
//# sourceMappingURL=azureChangeAnalysisManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azureChangeAnalysisManagementClient.js","sourceRoot":"","sources":["../../src/azureChangeAnalysisManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAAyF;AAIzF,MAAa,mCAAoC,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"azureChangeAnalysisManagementClient.js","sourceRoot":"","sources":["../../src/azureChangeAnalysisManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAAyF;AAIzF,MAAa,mCAAoC,SAAQ,UAAU,CAAC,aAAa;IAC/E,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA2D;QAE3D,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAsD;YAClE,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;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C;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,eAAe,CAAkB;IACjC,OAAO,CAAU;CAClB;AA3HD,kFA2HC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { OperationsImpl, ResourceChangesImpl, ChangesImpl } from \"./operations/index.js\";\nimport { Operations, ResourceChanges, Changes } from \"./operationsInterfaces/index.js\";\nimport { AzureChangeAnalysisManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AzureChangeAnalysisManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureChangeAnalysisManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureChangeAnalysisManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AzureChangeAnalysisManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-changeanalysis/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-04-01\";\n this.operations = new OperationsImpl(this);\n this.resourceChanges = new ResourceChangesImpl(this);\n this.changes = new ChangesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n resourceChanges: ResourceChanges;\n changes: Changes;\n}\n"]}
|
|
@@ -351,20 +351,25 @@ exports.ProxyResource = {
|
|
|
351
351
|
type: {
|
|
352
352
|
name: "Composite",
|
|
353
353
|
className: "ProxyResource",
|
|
354
|
-
modelProperties:
|
|
354
|
+
modelProperties: {
|
|
355
|
+
...exports.Resource.type.modelProperties
|
|
356
|
+
}
|
|
355
357
|
}
|
|
356
358
|
};
|
|
357
359
|
exports.Change = {
|
|
358
360
|
type: {
|
|
359
361
|
name: "Composite",
|
|
360
362
|
className: "Change",
|
|
361
|
-
modelProperties:
|
|
363
|
+
modelProperties: {
|
|
364
|
+
...exports.ProxyResource.type.modelProperties,
|
|
365
|
+
properties: {
|
|
362
366
|
serializedName: "properties",
|
|
363
367
|
type: {
|
|
364
368
|
name: "Composite",
|
|
365
369
|
className: "ChangeProperties"
|
|
366
370
|
}
|
|
367
|
-
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
368
373
|
}
|
|
369
374
|
};
|
|
370
375
|
//# sourceMappingURL=mappers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,6BAA6B,GAA+B;IACvE,IAAI,EAAE;Q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ACjB,SAAS,EAAE,kBAAkB;iBAC9B;aACF,GACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const ResourceProviderOperationList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDefinition\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ResourceProviderOperationDefinition: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDefinition\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const ResourceProviderOperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\"\n }\n }\n }\n }\n};\n\nexport const ErrorDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\"\n }\n }\n }\n },\n additionalInfo: {\n serializedName: \"additionalInfo\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ErrorAdditionalInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n info: {\n serializedName: \"info\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const ChangeList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChangeList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Change\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ChangeProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChangeProperties\",\n modelProperties: {\n resourceId: {\n serializedName: \"resourceId\",\n type: {\n name: \"String\"\n }\n },\n timeStamp: {\n serializedName: \"timeStamp\",\n type: {\n name: \"DateTime\"\n }\n },\n initiatedByList: {\n serializedName: \"initiatedByList\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n changeType: {\n serializedName: \"changeType\",\n type: {\n name: \"String\"\n }\n },\n propertyChanges: {\n serializedName: \"propertyChanges\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"PropertyChange\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const PropertyChange: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PropertyChange\",\n modelProperties: {\n changeType: {\n serializedName: \"changeType\",\n type: {\n name: \"String\"\n }\n },\n changeCategory: {\n serializedName: \"changeCategory\",\n type: {\n name: \"Enum\",\n allowedValues: [\"User\", \"System\"]\n }\n },\n jsonPath: {\n serializedName: \"jsonPath\",\n type: {\n name: \"String\"\n }\n },\n displayName: {\n serializedName: \"displayName\",\n type: {\n name: \"String\"\n }\n },\n level: {\n serializedName: \"level\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n },\n oldValue: {\n serializedName: \"oldValue\",\n type: {\n name: \"String\"\n }\n },\n newValue: {\n serializedName: \"newValue\",\n type: {\n name: \"String\"\n }\n },\n isDataMasked: {\n serializedName: \"isDataMasked\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ProxyResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProxyResource\",\n modelProperties: {\n ...Resource.type.modelProperties\n }\n }\n};\n\nexport const Change: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Change\",\n modelProperties: {\n ...ProxyResource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"ChangeProperties\"\n }\n }\n }\n }\n};\n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B,SAAS,EAAE,QAAQ;QACnB,eAAe,EAAE;YACf,GAAG,qBAAa,CAAC,IAAI,CAAC,eAAe;YACrC,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,kBAAkB;iBAC9B;aACF;SACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const ResourceProviderOperationList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDefinition\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ResourceProviderOperationDefinition: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDefinition\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const ResourceProviderOperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\"\n }\n }\n }\n }\n};\n\nexport const ErrorDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\"\n }\n }\n }\n },\n additionalInfo: {\n serializedName: \"additionalInfo\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ErrorAdditionalInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n info: {\n serializedName: \"info\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const ChangeList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChangeList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Change\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ChangeProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChangeProperties\",\n modelProperties: {\n resourceId: {\n serializedName: \"resourceId\",\n type: {\n name: \"String\"\n }\n },\n timeStamp: {\n serializedName: \"timeStamp\",\n type: {\n name: \"DateTime\"\n }\n },\n initiatedByList: {\n serializedName: \"initiatedByList\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n changeType: {\n serializedName: \"changeType\",\n type: {\n name: \"String\"\n }\n },\n propertyChanges: {\n serializedName: \"propertyChanges\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"PropertyChange\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const PropertyChange: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PropertyChange\",\n modelProperties: {\n changeType: {\n serializedName: \"changeType\",\n type: {\n name: \"String\"\n }\n },\n changeCategory: {\n serializedName: \"changeCategory\",\n type: {\n name: \"Enum\",\n allowedValues: [\"User\", \"System\"]\n }\n },\n jsonPath: {\n serializedName: \"jsonPath\",\n type: {\n name: \"String\"\n }\n },\n displayName: {\n serializedName: \"displayName\",\n type: {\n name: \"String\"\n }\n },\n level: {\n serializedName: \"level\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n },\n oldValue: {\n serializedName: \"oldValue\",\n type: {\n name: \"String\"\n }\n },\n newValue: {\n serializedName: \"newValue\",\n type: {\n name: \"String\"\n }\n },\n isDataMasked: {\n serializedName: \"isDataMasked\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ProxyResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProxyResource\",\n modelProperties: {\n ...Resource.type.modelProperties\n }\n }\n};\n\nexport const Change: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Change\",\n modelProperties: {\n ...ProxyResource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"ChangeProperties\"\n }\n }\n }\n }\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Changes operations. */
|
|
18
18
|
class ChangesImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Changes class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -41,52 +42,35 @@ class ChangesImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options, settings);
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
52
|
+
async *listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._listChangesByResourceGroup(resourceGroupName, startTime, endTime, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = await this._listChangesByResourceGroupNext(resourceGroupName, startTime, endTime, continuationToken, options);
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
67
|
+
yield page;
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
|
-
listChangesByResourceGroupPagingAll(resourceGroupName, startTime, endTime, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
70
|
+
async *listChangesByResourceGroupPagingAll(resourceGroupName, startTime, endTime, options) {
|
|
71
|
+
for await (const page of this.listChangesByResourceGroupPagingPage(resourceGroupName, startTime, endTime, options)) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
90
74
|
}
|
|
91
75
|
/**
|
|
92
76
|
* List the changes of a subscription within the specified time range. Customer data will always be
|
|
@@ -105,52 +89,35 @@ class ChangesImpl {
|
|
|
105
89
|
return this;
|
|
106
90
|
},
|
|
107
91
|
byPage: (settings) => {
|
|
108
|
-
if (settings
|
|
92
|
+
if (settings?.maxPageSize) {
|
|
109
93
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
110
94
|
}
|
|
111
95
|
return this.listChangesBySubscriptionPagingPage(startTime, endTime, options, settings);
|
|
112
96
|
}
|
|
113
97
|
};
|
|
114
98
|
}
|
|
115
|
-
listChangesBySubscriptionPagingPage(startTime, endTime, options, settings) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
});
|
|
99
|
+
async *listChangesBySubscriptionPagingPage(startTime, endTime, options, settings) {
|
|
100
|
+
let result;
|
|
101
|
+
let continuationToken = settings?.continuationToken;
|
|
102
|
+
if (!continuationToken) {
|
|
103
|
+
result = await this._listChangesBySubscription(startTime, endTime, options);
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
107
|
+
yield page;
|
|
108
|
+
}
|
|
109
|
+
while (continuationToken) {
|
|
110
|
+
result = await this._listChangesBySubscriptionNext(startTime, endTime, continuationToken, options);
|
|
111
|
+
continuationToken = result.nextLink;
|
|
112
|
+
let page = result.value || [];
|
|
113
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
114
|
+
yield page;
|
|
115
|
+
}
|
|
134
116
|
}
|
|
135
|
-
listChangesBySubscriptionPagingAll(startTime, endTime, options) {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listChangesBySubscriptionPagingPage(startTime, endTime, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
140
|
-
_c = _f.value;
|
|
141
|
-
_d = false;
|
|
142
|
-
const page = _c;
|
|
143
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
147
|
-
finally {
|
|
148
|
-
try {
|
|
149
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
150
|
-
}
|
|
151
|
-
finally { if (e_2) throw e_2.error; }
|
|
152
|
-
}
|
|
153
|
-
});
|
|
117
|
+
async *listChangesBySubscriptionPagingAll(startTime, endTime, options) {
|
|
118
|
+
for await (const page of this.listChangesBySubscriptionPagingPage(startTime, endTime, options)) {
|
|
119
|
+
yield* page;
|
|
120
|
+
}
|
|
154
121
|
}
|
|
155
122
|
/**
|
|
156
123
|
* List the changes of a resource group within the specified time range. Customer data will always be
|