@azure/arm-frontdoor 5.3.1-alpha.20250619.1 → 5.3.1-alpha.20250729.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/frontDoorManagementClient.js +24 -5
- package/dist/browser/frontDoorManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +314 -146
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/endpoints.js +12 -6
- package/dist/browser/operations/endpoints.js.map +1 -1
- package/dist/browser/operations/experiments.js +56 -58
- package/dist/browser/operations/experiments.js.map +1 -1
- package/dist/browser/operations/frontDoorNameAvailability.js +1 -0
- package/dist/browser/operations/frontDoorNameAvailability.js.map +1 -1
- package/dist/browser/operations/frontDoorNameAvailabilityWithSubscription.js +1 -0
- package/dist/browser/operations/frontDoorNameAvailabilityWithSubscription.js.map +1 -1
- package/dist/browser/operations/frontDoors.js +67 -91
- package/dist/browser/operations/frontDoors.js.map +1 -1
- package/dist/browser/operations/frontendEndpoints.js +45 -52
- package/dist/browser/operations/frontendEndpoints.js.map +1 -1
- package/dist/browser/operations/managedRuleSets.js +23 -40
- package/dist/browser/operations/managedRuleSets.js.map +1 -1
- package/dist/browser/operations/networkExperimentProfiles.js +78 -97
- package/dist/browser/operations/networkExperimentProfiles.js.map +1 -1
- package/dist/browser/operations/policies.js +78 -97
- package/dist/browser/operations/policies.js.map +1 -1
- package/dist/browser/operations/preconfiguredEndpoints.js +23 -40
- package/dist/browser/operations/preconfiguredEndpoints.js.map +1 -1
- package/dist/browser/operations/reports.js +1 -0
- package/dist/browser/operations/reports.js.map +1 -1
- package/dist/browser/operations/rulesEngines.js +45 -52
- package/dist/browser/operations/rulesEngines.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/frontDoorManagementClient.js +24 -5
- package/dist/commonjs/frontDoorManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +314 -146
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/endpoints.js +12 -6
- package/dist/commonjs/operations/endpoints.js.map +1 -1
- package/dist/commonjs/operations/experiments.js +56 -57
- package/dist/commonjs/operations/experiments.js.map +1 -1
- package/dist/commonjs/operations/frontDoorNameAvailability.js +1 -0
- package/dist/commonjs/operations/frontDoorNameAvailability.js.map +1 -1
- package/dist/commonjs/operations/frontDoorNameAvailabilityWithSubscription.js +1 -0
- package/dist/commonjs/operations/frontDoorNameAvailabilityWithSubscription.js.map +1 -1
- package/dist/commonjs/operations/frontDoors.js +67 -90
- package/dist/commonjs/operations/frontDoors.js.map +1 -1
- package/dist/commonjs/operations/frontendEndpoints.js +45 -51
- package/dist/commonjs/operations/frontendEndpoints.js.map +1 -1
- package/dist/commonjs/operations/managedRuleSets.js +23 -39
- package/dist/commonjs/operations/managedRuleSets.js.map +1 -1
- package/dist/commonjs/operations/networkExperimentProfiles.js +78 -96
- package/dist/commonjs/operations/networkExperimentProfiles.js.map +1 -1
- package/dist/commonjs/operations/policies.js +78 -96
- package/dist/commonjs/operations/policies.js.map +1 -1
- package/dist/commonjs/operations/preconfiguredEndpoints.js +23 -39
- package/dist/commonjs/operations/preconfiguredEndpoints.js.map +1 -1
- package/dist/commonjs/operations/reports.js +1 -0
- package/dist/commonjs/operations/reports.js.map +1 -1
- package/dist/commonjs/operations/rulesEngines.js +45 -51
- package/dist/commonjs/operations/rulesEngines.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/frontDoorManagementClient.js +24 -5
- package/dist/esm/frontDoorManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +314 -146
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/endpoints.js +12 -6
- package/dist/esm/operations/endpoints.js.map +1 -1
- package/dist/esm/operations/experiments.js +56 -58
- package/dist/esm/operations/experiments.js.map +1 -1
- package/dist/esm/operations/frontDoorNameAvailability.js +1 -0
- package/dist/esm/operations/frontDoorNameAvailability.js.map +1 -1
- package/dist/esm/operations/frontDoorNameAvailabilityWithSubscription.js +1 -0
- package/dist/esm/operations/frontDoorNameAvailabilityWithSubscription.js.map +1 -1
- package/dist/esm/operations/frontDoors.js +67 -91
- package/dist/esm/operations/frontDoors.js.map +1 -1
- package/dist/esm/operations/frontendEndpoints.js +45 -52
- package/dist/esm/operations/frontendEndpoints.js.map +1 -1
- package/dist/esm/operations/managedRuleSets.js +23 -40
- package/dist/esm/operations/managedRuleSets.js.map +1 -1
- package/dist/esm/operations/networkExperimentProfiles.js +78 -97
- package/dist/esm/operations/networkExperimentProfiles.js.map +1 -1
- package/dist/esm/operations/policies.js +78 -97
- package/dist/esm/operations/policies.js.map +1 -1
- package/dist/esm/operations/preconfiguredEndpoints.js +23 -40
- package/dist/esm/operations/preconfiguredEndpoints.js.map +1 -1
- package/dist/esm/operations/reports.js +1 -0
- package/dist/esm/operations/reports.js.map +1 -1
- package/dist/esm/operations/rulesEngines.js +45 -52
- package/dist/esm/operations/rulesEngines.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/frontDoorManagementClient.js +24 -5
- package/dist/react-native/frontDoorManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +314 -146
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/endpoints.js +12 -6
- package/dist/react-native/operations/endpoints.js.map +1 -1
- package/dist/react-native/operations/experiments.js +56 -58
- package/dist/react-native/operations/experiments.js.map +1 -1
- package/dist/react-native/operations/frontDoorNameAvailability.js +1 -0
- package/dist/react-native/operations/frontDoorNameAvailability.js.map +1 -1
- package/dist/react-native/operations/frontDoorNameAvailabilityWithSubscription.js +1 -0
- package/dist/react-native/operations/frontDoorNameAvailabilityWithSubscription.js.map +1 -1
- package/dist/react-native/operations/frontDoors.js +67 -91
- package/dist/react-native/operations/frontDoors.js.map +1 -1
- package/dist/react-native/operations/frontendEndpoints.js +45 -52
- package/dist/react-native/operations/frontendEndpoints.js.map +1 -1
- package/dist/react-native/operations/managedRuleSets.js +23 -40
- package/dist/react-native/operations/managedRuleSets.js.map +1 -1
- package/dist/react-native/operations/networkExperimentProfiles.js +78 -97
- package/dist/react-native/operations/networkExperimentProfiles.js.map +1 -1
- package/dist/react-native/operations/policies.js +78 -97
- package/dist/react-native/operations/policies.js.map +1 -1
- package/dist/react-native/operations/preconfiguredEndpoints.js +23 -40
- package/dist/react-native/operations/preconfiguredEndpoints.js.map +1 -1
- package/dist/react-native/operations/reports.js +1 -0
- package/dist/react-native/operations/reports.js.map +1 -1
- package/dist/react-native/operations/rulesEngines.js +45 -52
- package/dist/react-native/operations/rulesEngines.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-frontdoor.api.md → arm-frontdoor-node.api.md} +0 -0
|
@@ -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 PreconfiguredEndpoints operations. */
|
|
15
14
|
export class PreconfiguredEndpointsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class PreconfiguredEndpoints class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class PreconfiguredEndpointsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listPagingPage(resourceGroupName, profileName, options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listPagingPage(resourceGroupName, profileName, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listPagingPage(resourceGroupName, profileName, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._list(resourceGroupName, profileName, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listNext(resourceGroupName, profileName, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listPagingAll(resourceGroupName, profileName, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, profileName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listPagingAll(resourceGroupName, profileName, options) {
|
|
65
|
+
for await (const page of this.listPagingPage(resourceGroupName, profileName, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Gets a list of Preconfigured Endpoints
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preconfiguredEndpoints.js","sourceRoot":"","sources":["../../../src/operations/preconfiguredEndpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"preconfiguredEndpoints.js","sourceRoot":"","sources":["../../../src/operations/preconfiguredEndpoints.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,0DAA0D;AAC1D,MAAM,OAAO,0BAA0B;I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B;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,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,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;KACvB;IACD,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 { PreconfiguredEndpoints } 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 { FrontDoorManagementClient } from \"../frontDoorManagementClient.js\";\nimport {\n PreconfiguredEndpoint,\n PreconfiguredEndpointsListNextOptionalParams,\n PreconfiguredEndpointsListOptionalParams,\n PreconfiguredEndpointsListResponse,\n PreconfiguredEndpointsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PreconfiguredEndpoints operations. */\nexport class PreconfiguredEndpointsImpl implements PreconfiguredEndpoints {\n private readonly client: FrontDoorManagementClient;\n\n /**\n * Initialize a new instance of the class PreconfiguredEndpoints class.\n * @param client Reference to the service client\n */\n constructor(client: FrontDoorManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of Preconfigured Endpoints\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName The Profile identifier associated with the Tenant and Partner\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n profileName: string,\n options?: PreconfiguredEndpointsListOptionalParams,\n ): PagedAsyncIterableIterator<PreconfiguredEndpoint> {\n const iter = this.listPagingAll(resourceGroupName, profileName, 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 resourceGroupName,\n profileName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n profileName: string,\n options?: PreconfiguredEndpointsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PreconfiguredEndpoint[]> {\n let result: PreconfiguredEndpointsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, profileName, 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 resourceGroupName,\n profileName,\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 resourceGroupName: string,\n profileName: string,\n options?: PreconfiguredEndpointsListOptionalParams,\n ): AsyncIterableIterator<PreconfiguredEndpoint> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n profileName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of Preconfigured Endpoints\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName The Profile identifier associated with the Tenant and Partner\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n profileName: string,\n options?: PreconfiguredEndpointsListOptionalParams,\n ): Promise<PreconfiguredEndpointsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName The Profile identifier associated with the Tenant and Partner\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 resourceGroupName: string,\n profileName: string,\n nextLink: string,\n options?: PreconfiguredEndpointsListNextOptionalParams,\n ): Promise<PreconfiguredEndpointsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/PreconfiguredEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PreconfiguredEndpointList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.profileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PreconfiguredEndpointList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.profileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Reports operations. */
|
|
12
12
|
export class ReportsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Reports class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../../../src/operations/reports.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;
|
|
1
|
+
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../../../src/operations/reports.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IACL,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,oBAAoB,CAClB,iBAAyB,EACzB,WAAmB,EACnB,cAAsB,EACtB,mBAAwD,EACxD,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,WAAW;YACX,cAAc;YACd,mBAAmB;YACnB,OAAO;SACR,E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,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,eAAe;QAC1B,UAAU,CAAC,oBAAoB;QAC/B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;KAC1B;IACD,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 { Reports } 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 { FrontDoorManagementClient } from \"../frontDoorManagementClient.js\";\nimport {\n LatencyScorecardAggregationInterval,\n ReportsGetLatencyScorecardsOptionalParams,\n ReportsGetLatencyScorecardsResponse,\n TimeseriesAggregationInterval,\n TimeseriesType,\n ReportsGetTimeseriesOptionalParams,\n ReportsGetTimeseriesResponse,\n} from \"../models/index.js\";\n\n/** Class containing Reports operations. */\nexport class ReportsImpl implements Reports {\n private readonly client: FrontDoorManagementClient;\n\n /**\n * Initialize a new instance of the class Reports class.\n * @param client Reference to the service client\n */\n constructor(client: FrontDoorManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a Latency Scorecard for a given Experiment\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName The Profile identifier associated with the Tenant and Partner\n * @param experimentName The Experiment identifier associated with the Experiment\n * @param aggregationInterval The aggregation interval of the Latency Scorecard\n * @param options The options parameters.\n */\n getLatencyScorecards(\n resourceGroupName: string,\n profileName: string,\n experimentName: string,\n aggregationInterval: LatencyScorecardAggregationInterval,\n options?: ReportsGetLatencyScorecardsOptionalParams,\n ): Promise<ReportsGetLatencyScorecardsResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n profileName,\n experimentName,\n aggregationInterval,\n options,\n },\n getLatencyScorecardsOperationSpec,\n );\n }\n\n /**\n * Gets a Timeseries for a given Experiment\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName The Profile identifier associated with the Tenant and Partner\n * @param experimentName The Experiment identifier associated with the Experiment\n * @param startDateTimeUTC The start DateTime of the Timeseries in UTC\n * @param endDateTimeUTC The end DateTime of the Timeseries in UTC\n * @param aggregationInterval The aggregation interval of the Timeseries\n * @param timeseriesType The type of Timeseries\n * @param options The options parameters.\n */\n getTimeseries(\n resourceGroupName: string,\n profileName: string,\n experimentName: string,\n startDateTimeUTC: Date,\n endDateTimeUTC: Date,\n aggregationInterval: TimeseriesAggregationInterval,\n timeseriesType: TimeseriesType,\n options?: ReportsGetTimeseriesOptionalParams,\n ): Promise<ReportsGetTimeseriesResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n profileName,\n experimentName,\n startDateTimeUTC,\n endDateTimeUTC,\n aggregationInterval,\n timeseriesType,\n options,\n },\n getTimeseriesOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getLatencyScorecardsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/LatencyScorecard\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LatencyScorecard,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion2,\n Parameters.endDateTimeUTC,\n Parameters.country,\n Parameters.aggregationInterval,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.profileName,\n Parameters.experimentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getTimeseriesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/Timeseries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Timeseries,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion2,\n Parameters.country,\n Parameters.startDateTimeUTC,\n Parameters.endDateTimeUTC1,\n Parameters.aggregationInterval1,\n Parameters.timeseriesType,\n Parameters.endpoint,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.profileName,\n Parameters.experimentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -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";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing RulesEngines operations. */
|
|
17
16
|
export class RulesEnginesImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class RulesEngines class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class RulesEnginesImpl {
|
|
|
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.listByFrontDoorPagingPage(resourceGroupName, frontDoorName, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByFrontDoorPagingPage(resourceGroupName, frontDoorName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listByFrontDoorPagingPage(resourceGroupName, frontDoorName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listByFrontDoor(resourceGroupName, frontDoorName, 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._listByFrontDoorNext(resourceGroupName, frontDoorName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listByFrontDoorPagingAll(resourceGroupName, frontDoorName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByFrontDoorPagingPage(resourceGroupName, frontDoorName, 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 *listByFrontDoorPagingAll(resourceGroupName, frontDoorName, options) {
|
|
67
|
+
for await (const page of this.listByFrontDoorPagingPage(resourceGroupName, frontDoorName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* Lists all of the Rules Engine Configurations within a Front Door.
|
|
@@ -118,14 +101,19 @@ export class RulesEnginesImpl {
|
|
|
118
101
|
return this.client.sendOperationRequest(args, spec);
|
|
119
102
|
};
|
|
120
103
|
const sendOperationFn = async (args, spec) => {
|
|
121
|
-
var _a;
|
|
122
104
|
let currentRawResponse = undefined;
|
|
123
|
-
const providedCallback =
|
|
105
|
+
const providedCallback = args.options?.onResponse;
|
|
124
106
|
const callback = (rawResponse, flatResponse) => {
|
|
125
107
|
currentRawResponse = rawResponse;
|
|
126
|
-
providedCallback
|
|
108
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
109
|
+
};
|
|
110
|
+
const updatedArgs = {
|
|
111
|
+
...args,
|
|
112
|
+
options: {
|
|
113
|
+
...args.options,
|
|
114
|
+
onResponse: callback,
|
|
115
|
+
},
|
|
127
116
|
};
|
|
128
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
129
117
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
130
118
|
return {
|
|
131
119
|
flatResponse,
|
|
@@ -148,8 +136,8 @@ export class RulesEnginesImpl {
|
|
|
148
136
|
spec: createOrUpdateOperationSpec,
|
|
149
137
|
});
|
|
150
138
|
const poller = await createHttpPoller(lro, {
|
|
151
|
-
restoreFrom: options
|
|
152
|
-
intervalInMs: options
|
|
139
|
+
restoreFrom: options?.resumeFrom,
|
|
140
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
153
141
|
resourceLocationConfig: "azure-async-operation",
|
|
154
142
|
});
|
|
155
143
|
await poller.poll();
|
|
@@ -180,14 +168,19 @@ export class RulesEnginesImpl {
|
|
|
180
168
|
return this.client.sendOperationRequest(args, spec);
|
|
181
169
|
};
|
|
182
170
|
const sendOperationFn = async (args, spec) => {
|
|
183
|
-
var _a;
|
|
184
171
|
let currentRawResponse = undefined;
|
|
185
|
-
const providedCallback =
|
|
172
|
+
const providedCallback = args.options?.onResponse;
|
|
186
173
|
const callback = (rawResponse, flatResponse) => {
|
|
187
174
|
currentRawResponse = rawResponse;
|
|
188
|
-
providedCallback
|
|
175
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
176
|
+
};
|
|
177
|
+
const updatedArgs = {
|
|
178
|
+
...args,
|
|
179
|
+
options: {
|
|
180
|
+
...args.options,
|
|
181
|
+
onResponse: callback,
|
|
182
|
+
},
|
|
189
183
|
};
|
|
190
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
191
184
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
192
185
|
return {
|
|
193
186
|
flatResponse,
|
|
@@ -204,8 +197,8 @@ export class RulesEnginesImpl {
|
|
|
204
197
|
spec: deleteOperationSpec,
|
|
205
198
|
});
|
|
206
199
|
const poller = await createHttpPoller(lro, {
|
|
207
|
-
restoreFrom: options
|
|
208
|
-
intervalInMs: options
|
|
200
|
+
restoreFrom: options?.resumeFrom,
|
|
201
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
209
202
|
resourceLocationConfig: "azure-async-operation",
|
|
210
203
|
});
|
|
211
204
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rulesEngines.js","sourceRoot":"","sources":["../../../src/operations/rulesEngines.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;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAc9C,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAAmD;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,aAAa,EACb,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,yBAAyB,CACnC,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,QAAQ,CACT,CAAC;YACJ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AAI,EAAE,0JAA0J;IAChK,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,aAAa;KACzB;IACD,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 { RulesEngines } 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 { FrontDoorManagementClient } from \"../frontDoorManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n RulesEngine,\n RulesEnginesListByFrontDoorNextOptionalParams,\n RulesEnginesListByFrontDoorOptionalParams,\n RulesEnginesListByFrontDoorResponse,\n RulesEnginesGetOptionalParams,\n RulesEnginesGetResponse,\n RulesEnginesCreateOrUpdateOptionalParams,\n RulesEnginesCreateOrUpdateResponse,\n RulesEnginesDeleteOptionalParams,\n RulesEnginesListByFrontDoorNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RulesEngines operations. */\nexport class RulesEnginesImpl implements RulesEngines {\n private readonly client: FrontDoorManagementClient;\n\n /**\n * Initialize a new instance of the class RulesEngines class.\n * @param client Reference to the service client\n */\n constructor(client: FrontDoorManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the Rules Engine Configurations within a Front Door.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param options The options parameters.\n */\n public listByFrontDoor(\n resourceGroupName: string,\n frontDoorName: string,\n options?: RulesEnginesListByFrontDoorOptionalParams,\n ): PagedAsyncIterableIterator<RulesEngine> {\n const iter = this.listByFrontDoorPagingAll(\n resourceGroupName,\n frontDoorName,\n options,\n );\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.listByFrontDoorPagingPage(\n resourceGroupName,\n frontDoorName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByFrontDoorPagingPage(\n resourceGroupName: string,\n frontDoorName: string,\n options?: RulesEnginesListByFrontDoorOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RulesEngine[]> {\n let result: RulesEnginesListByFrontDoorResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByFrontDoor(\n resourceGroupName,\n frontDoorName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByFrontDoorNext(\n resourceGroupName,\n frontDoorName,\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 *listByFrontDoorPagingAll(\n resourceGroupName: string,\n frontDoorName: string,\n options?: RulesEnginesListByFrontDoorOptionalParams,\n ): AsyncIterableIterator<RulesEngine> {\n for await (const page of this.listByFrontDoorPagingPage(\n resourceGroupName,\n frontDoorName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the Rules Engine Configurations within a Front Door.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param options The options parameters.\n */\n private _listByFrontDoor(\n resourceGroupName: string,\n frontDoorName: string,\n options?: RulesEnginesListByFrontDoorOptionalParams,\n ): Promise<RulesEnginesListByFrontDoorResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, frontDoorName, options },\n listByFrontDoorOperationSpec,\n );\n }\n\n /**\n * Gets a Rules Engine Configuration with the specified name within the specified Front Door.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n frontDoorName: string,\n rulesEngineName: string,\n options?: RulesEnginesGetOptionalParams,\n ): Promise<RulesEnginesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, frontDoorName, rulesEngineName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new Rules Engine Configuration with the specified name within the specified Front Door.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.\n * @param rulesEngineParameters Rules Engine Configuration properties needed to create a new Rules\n * Engine Configuration.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n frontDoorName: string,\n rulesEngineName: string,\n rulesEngineParameters: RulesEngine,\n options?: RulesEnginesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<RulesEnginesCreateOrUpdateResponse>,\n RulesEnginesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RulesEnginesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n frontDoorName,\n rulesEngineName,\n rulesEngineParameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n RulesEnginesCreateOrUpdateResponse,\n OperationState<RulesEnginesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new Rules Engine Configuration with the specified name within the specified Front Door.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.\n * @param rulesEngineParameters Rules Engine Configuration properties needed to create a new Rules\n * Engine Configuration.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n frontDoorName: string,\n rulesEngineName: string,\n rulesEngineParameters: RulesEngine,\n options?: RulesEnginesCreateOrUpdateOptionalParams,\n ): Promise<RulesEnginesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n frontDoorName,\n rulesEngineName,\n rulesEngineParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing Rules Engine Configuration with the specified parameters.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n frontDoorName: string,\n rulesEngineName: string,\n options?: RulesEnginesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, frontDoorName, rulesEngineName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing Rules Engine Configuration with the specified parameters.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n frontDoorName: string,\n rulesEngineName: string,\n options?: RulesEnginesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n frontDoorName,\n rulesEngineName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByFrontDoorNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param nextLink The nextLink from the previous successful call to the ListByFrontDoor method.\n * @param options The options parameters.\n */\n private _listByFrontDoorNext(\n resourceGroupName: string,\n frontDoorName: string,\n nextLink: string,\n options?: RulesEnginesListByFrontDoorNextOptionalParams,\n ): Promise<RulesEnginesListByFrontDoorNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, frontDoorName, nextLink, options },\n listByFrontDoorNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByFrontDoorOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RulesEngineListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.frontDoorName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RulesEngine,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.frontDoorName,\n Parameters.rulesEngineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RulesEngine,\n },\n 201: {\n bodyMapper: Mappers.RulesEngine,\n },\n 202: {\n bodyMapper: Mappers.RulesEngine,\n },\n 204: {\n bodyMapper: Mappers.RulesEngine,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.rulesEngineParameters,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.frontDoorName,\n Parameters.rulesEngineName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.frontDoorName,\n Parameters.rulesEngineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByFrontDoorNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RulesEngineListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.frontDoorName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"rulesEngines.js","sourceRoot":"","sources":["../../../src/operations/rulesEngines.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;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAc9C,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IACV,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAAmD;QAEnD,MAAM,IAAI,GA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C,aAAa;QACxB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,0JAA0J;IAChK,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,aAAa;KACzB;IACD,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 { RulesEngines } 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 { FrontDoorManagementClient } from \"../frontDoorManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n RulesEngine,\n RulesEnginesListByFrontDoorNextOptionalParams,\n RulesEnginesListByFrontDoorOptionalParams,\n RulesEnginesListByFrontDoorResponse,\n RulesEnginesGetOptionalParams,\n RulesEnginesGetResponse,\n RulesEnginesCreateOrUpdateOptionalParams,\n RulesEnginesCreateOrUpdateResponse,\n RulesEnginesDeleteOptionalParams,\n RulesEnginesListByFrontDoorNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RulesEngines operations. */\nexport class RulesEnginesImpl implements RulesEngines {\n private readonly client: FrontDoorManagementClient;\n\n /**\n * Initialize a new instance of the class RulesEngines class.\n * @param client Reference to the service client\n */\n constructor(client: FrontDoorManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the Rules Engine Configurations within a Front Door.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param options The options parameters.\n */\n public listByFrontDoor(\n resourceGroupName: string,\n frontDoorName: string,\n options?: RulesEnginesListByFrontDoorOptionalParams,\n ): PagedAsyncIterableIterator<RulesEngine> {\n const iter = this.listByFrontDoorPagingAll(\n resourceGroupName,\n frontDoorName,\n options,\n );\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.listByFrontDoorPagingPage(\n resourceGroupName,\n frontDoorName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByFrontDoorPagingPage(\n resourceGroupName: string,\n frontDoorName: string,\n options?: RulesEnginesListByFrontDoorOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RulesEngine[]> {\n let result: RulesEnginesListByFrontDoorResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByFrontDoor(\n resourceGroupName,\n frontDoorName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByFrontDoorNext(\n resourceGroupName,\n frontDoorName,\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 *listByFrontDoorPagingAll(\n resourceGroupName: string,\n frontDoorName: string,\n options?: RulesEnginesListByFrontDoorOptionalParams,\n ): AsyncIterableIterator<RulesEngine> {\n for await (const page of this.listByFrontDoorPagingPage(\n resourceGroupName,\n frontDoorName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the Rules Engine Configurations within a Front Door.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param options The options parameters.\n */\n private _listByFrontDoor(\n resourceGroupName: string,\n frontDoorName: string,\n options?: RulesEnginesListByFrontDoorOptionalParams,\n ): Promise<RulesEnginesListByFrontDoorResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, frontDoorName, options },\n listByFrontDoorOperationSpec,\n );\n }\n\n /**\n * Gets a Rules Engine Configuration with the specified name within the specified Front Door.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n frontDoorName: string,\n rulesEngineName: string,\n options?: RulesEnginesGetOptionalParams,\n ): Promise<RulesEnginesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, frontDoorName, rulesEngineName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new Rules Engine Configuration with the specified name within the specified Front Door.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.\n * @param rulesEngineParameters Rules Engine Configuration properties needed to create a new Rules\n * Engine Configuration.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n frontDoorName: string,\n rulesEngineName: string,\n rulesEngineParameters: RulesEngine,\n options?: RulesEnginesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<RulesEnginesCreateOrUpdateResponse>,\n RulesEnginesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RulesEnginesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n frontDoorName,\n rulesEngineName,\n rulesEngineParameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n RulesEnginesCreateOrUpdateResponse,\n OperationState<RulesEnginesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new Rules Engine Configuration with the specified name within the specified Front Door.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.\n * @param rulesEngineParameters Rules Engine Configuration properties needed to create a new Rules\n * Engine Configuration.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n frontDoorName: string,\n rulesEngineName: string,\n rulesEngineParameters: RulesEngine,\n options?: RulesEnginesCreateOrUpdateOptionalParams,\n ): Promise<RulesEnginesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n frontDoorName,\n rulesEngineName,\n rulesEngineParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing Rules Engine Configuration with the specified parameters.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n frontDoorName: string,\n rulesEngineName: string,\n options?: RulesEnginesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, frontDoorName, rulesEngineName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing Rules Engine Configuration with the specified parameters.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n frontDoorName: string,\n rulesEngineName: string,\n options?: RulesEnginesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n frontDoorName,\n rulesEngineName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByFrontDoorNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param frontDoorName Name of the Front Door which is globally unique.\n * @param nextLink The nextLink from the previous successful call to the ListByFrontDoor method.\n * @param options The options parameters.\n */\n private _listByFrontDoorNext(\n resourceGroupName: string,\n frontDoorName: string,\n nextLink: string,\n options?: RulesEnginesListByFrontDoorNextOptionalParams,\n ): Promise<RulesEnginesListByFrontDoorNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, frontDoorName, nextLink, options },\n listByFrontDoorNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByFrontDoorOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RulesEngineListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.frontDoorName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RulesEngine,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.frontDoorName,\n Parameters.rulesEngineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RulesEngine,\n },\n 201: {\n bodyMapper: Mappers.RulesEngine,\n },\n 202: {\n bodyMapper: Mappers.RulesEngine,\n },\n 204: {\n bodyMapper: Mappers.RulesEngine,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.rulesEngineParameters,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.frontDoorName,\n Parameters.rulesEngineName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.frontDoorName,\n Parameters.rulesEngineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByFrontDoorNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RulesEngineListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.frontDoorName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
package/dist/esm/pagingHelper.js
CHANGED
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
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 the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\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"]}
|
|
@@ -9,8 +9,9 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { PoliciesImpl, ManagedRuleSetsImpl, FrontDoorNameAvailabilityImpl, FrontDoorNameAvailabilityWithSubscriptionImpl, FrontDoorsImpl, FrontendEndpointsImpl, EndpointsImpl, RulesEnginesImpl, NetworkExperimentProfilesImpl, PreconfiguredEndpointsImpl, ExperimentsImpl, ReportsImpl, } from "./operations/index.js";
|
|
11
11
|
export class FrontDoorManagementClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
subscriptionId;
|
|
12
14
|
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
13
|
-
var _a, _b, _c;
|
|
14
15
|
if (credentials === undefined) {
|
|
15
16
|
throw new Error("'credentials' cannot be null");
|
|
16
17
|
}
|
|
@@ -33,12 +34,17 @@ export class FrontDoorManagementClient extends coreClient.ServiceClient {
|
|
|
33
34
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
34
35
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
35
36
|
: `${packageDetails}`;
|
|
36
|
-
const optionsWithDefaults =
|
|
37
|
+
const optionsWithDefaults = {
|
|
38
|
+
...defaults,
|
|
39
|
+
...options,
|
|
40
|
+
userAgentOptions: {
|
|
37
41
|
userAgentPrefix,
|
|
38
|
-
},
|
|
42
|
+
},
|
|
43
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
44
|
+
};
|
|
39
45
|
super(optionsWithDefaults);
|
|
40
46
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
41
|
-
if (
|
|
47
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
42
48
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
43
49
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
44
50
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -52,7 +58,8 @@ export class FrontDoorManagementClient extends coreClient.ServiceClient {
|
|
|
52
58
|
});
|
|
53
59
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
54
60
|
credential: credentials,
|
|
55
|
-
scopes:
|
|
61
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
62
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
56
63
|
challengeCallbacks: {
|
|
57
64
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
58
65
|
},
|
|
@@ -76,5 +83,17 @@ export class FrontDoorManagementClient extends coreClient.ServiceClient {
|
|
|
76
83
|
this.experiments = new ExperimentsImpl(this);
|
|
77
84
|
this.reports = new ReportsImpl(this);
|
|
78
85
|
}
|
|
86
|
+
policies;
|
|
87
|
+
managedRuleSets;
|
|
88
|
+
frontDoorNameAvailability;
|
|
89
|
+
frontDoorNameAvailabilityWithSubscription;
|
|
90
|
+
frontDoors;
|
|
91
|
+
frontendEndpoints;
|
|
92
|
+
endpoints;
|
|
93
|
+
rulesEngines;
|
|
94
|
+
networkExperimentProfiles;
|
|
95
|
+
preconfiguredEndpoints;
|
|
96
|
+
experiments;
|
|
97
|
+
reports;
|
|
79
98
|
}
|
|
80
99
|
//# sourceMappingURL=frontDoorManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frontDoorManagementClient.js","sourceRoot":"","sources":["../../src/frontDoorManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,6BAA6B,EAC7B,6CAA6C,EAC7C,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,6BAA6B,EAC7B,0BAA0B,EAC1B,eAAe,EACf,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAiB/B,MAAM,OAAO,yBAA0B,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"frontDoorManagementClient.js","sourceRoot":"","sources":["../../src/frontDoorManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,6BAA6B,EAC7B,6CAA6C,EAC7C,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,6BAA6B,EAC7B,0BAA0B,EAC1B,eAAe,EACf,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAiB/B,MAAM,OAAO,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,CAAS;IACd,cAAc,CAAU;IAkBxB,YACE,WAAqC,EACrC,uBAA0E,EAC1E,OAAiD;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BA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Y,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,sBAAsB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,WAAW,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,yBAAyB,CAA4B;IACrD,yCAAyC,CAA4C;IACrF,UAAU,CAAa;IACvB,iBAAiB,CAAoB;IACrC,SAAS,CAAY;IACrB,YAAY,CAAe;IAC3B,yBAAyB,CAA4B;IACrD,sBAAsB,CAAyB;IAC/C,WAAW,CAAc;IACzB,OAAO,CAAU;CAClB","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 * as coreAuth from \"@azure/core-auth\";\nimport {\n PoliciesImpl,\n ManagedRuleSetsImpl,\n FrontDoorNameAvailabilityImpl,\n FrontDoorNameAvailabilityWithSubscriptionImpl,\n FrontDoorsImpl,\n FrontendEndpointsImpl,\n EndpointsImpl,\n RulesEnginesImpl,\n NetworkExperimentProfilesImpl,\n PreconfiguredEndpointsImpl,\n ExperimentsImpl,\n ReportsImpl,\n} from \"./operations/index.js\";\nimport {\n Policies,\n ManagedRuleSets,\n FrontDoorNameAvailability,\n FrontDoorNameAvailabilityWithSubscription,\n FrontDoors,\n FrontendEndpoints,\n Endpoints,\n RulesEngines,\n NetworkExperimentProfiles,\n PreconfiguredEndpoints,\n Experiments,\n Reports,\n} from \"./operationsInterfaces/index.js\";\nimport { FrontDoorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class FrontDoorManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the FrontDoorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: FrontDoorManagementClientOptionalParams | string,\n options?: FrontDoorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: FrontDoorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-frontdoor/5.3.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[] =\n 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.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.frontDoorNameAvailability = new FrontDoorNameAvailabilityImpl(this);\n this.frontDoorNameAvailabilityWithSubscription =\n new FrontDoorNameAvailabilityWithSubscriptionImpl(this);\n this.frontDoors = new FrontDoorsImpl(this);\n this.frontendEndpoints = new FrontendEndpointsImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.rulesEngines = new RulesEnginesImpl(this);\n this.networkExperimentProfiles = new NetworkExperimentProfilesImpl(this);\n this.preconfiguredEndpoints = new PreconfiguredEndpointsImpl(this);\n this.experiments = new ExperimentsImpl(this);\n this.reports = new ReportsImpl(this);\n }\n\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n frontDoorNameAvailability: FrontDoorNameAvailability;\n frontDoorNameAvailabilityWithSubscription: FrontDoorNameAvailabilityWithSubscription;\n frontDoors: FrontDoors;\n frontendEndpoints: FrontendEndpoints;\n endpoints: Endpoints;\n rulesEngines: RulesEngines;\n networkExperimentProfiles: NetworkExperimentProfiles;\n preconfiguredEndpoints: PreconfiguredEndpoints;\n experiments: Experiments;\n reports: Reports;\n}\n"]}
|