@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frontendEndpoints.js","sourceRoot":"","sources":["../../../src/operations/frontendEndpoints.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,iB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,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;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 { FrontendEndpoints } 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 FrontendEndpoint,\n FrontendEndpointsListByFrontDoorNextOptionalParams,\n FrontendEndpointsListByFrontDoorOptionalParams,\n FrontendEndpointsListByFrontDoorResponse,\n FrontendEndpointsGetOptionalParams,\n FrontendEndpointsGetResponse,\n CustomHttpsConfiguration,\n FrontendEndpointsEnableHttpsOptionalParams,\n FrontendEndpointsDisableHttpsOptionalParams,\n FrontendEndpointsListByFrontDoorNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing FrontendEndpoints operations. */\nexport class FrontendEndpointsImpl implements FrontendEndpoints {\n private readonly client: FrontDoorManagementClient;\n\n /**\n * Initialize a new instance of the class FrontendEndpoints 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 frontend endpoints 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?: FrontendEndpointsListByFrontDoorOptionalParams,\n ): PagedAsyncIterableIterator<FrontendEndpoint> {\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?: FrontendEndpointsListByFrontDoorOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<FrontendEndpoint[]> {\n let result: FrontendEndpointsListByFrontDoorResponse;\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?: FrontendEndpointsListByFrontDoorOptionalParams,\n ): AsyncIterableIterator<FrontendEndpoint> {\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 frontend endpoints 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?: FrontendEndpointsListByFrontDoorOptionalParams,\n ): Promise<FrontendEndpointsListByFrontDoorResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, frontDoorName, options },\n listByFrontDoorOperationSpec,\n );\n }\n\n /**\n * Gets a Frontend endpoint 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 frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n frontDoorName: string,\n frontendEndpointName: string,\n options?: FrontendEndpointsGetOptionalParams,\n ): Promise<FrontendEndpointsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, frontDoorName, frontendEndpointName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Enables a frontendEndpoint for HTTPS traffic\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 frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.\n * @param customHttpsConfiguration The configuration specifying how to enable HTTPS\n * @param options The options parameters.\n */\n async beginEnableHttps(\n resourceGroupName: string,\n frontDoorName: string,\n frontendEndpointName: string,\n customHttpsConfiguration: CustomHttpsConfiguration,\n options?: FrontendEndpointsEnableHttpsOptionalParams,\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: {\n resourceGroupName,\n frontDoorName,\n frontendEndpointName,\n customHttpsConfiguration,\n options,\n },\n spec: enableHttpsOperationSpec,\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 * Enables a frontendEndpoint for HTTPS traffic\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 frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.\n * @param customHttpsConfiguration The configuration specifying how to enable HTTPS\n * @param options The options parameters.\n */\n async beginEnableHttpsAndWait(\n resourceGroupName: string,\n frontDoorName: string,\n frontendEndpointName: string,\n customHttpsConfiguration: CustomHttpsConfiguration,\n options?: FrontendEndpointsEnableHttpsOptionalParams,\n ): Promise<void> {\n const poller = await this.beginEnableHttps(\n resourceGroupName,\n frontDoorName,\n frontendEndpointName,\n customHttpsConfiguration,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Disables a frontendEndpoint for HTTPS traffic\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 frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.\n * @param options The options parameters.\n */\n async beginDisableHttps(\n resourceGroupName: string,\n frontDoorName: string,\n frontendEndpointName: string,\n options?: FrontendEndpointsDisableHttpsOptionalParams,\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, frontendEndpointName, options },\n spec: disableHttpsOperationSpec,\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 * Disables a frontendEndpoint for HTTPS traffic\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 frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.\n * @param options The options parameters.\n */\n async beginDisableHttpsAndWait(\n resourceGroupName: string,\n frontDoorName: string,\n frontendEndpointName: string,\n options?: FrontendEndpointsDisableHttpsOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDisableHttps(\n resourceGroupName,\n frontDoorName,\n frontendEndpointName,\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?: FrontendEndpointsListByFrontDoorNextOptionalParams,\n ): Promise<FrontendEndpointsListByFrontDoorNextResponse> {\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}/frontendEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FrontendEndpointsListResult,\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}/frontendEndpoints/{frontendEndpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FrontendEndpoint,\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.frontendEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst enableHttpsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.customHttpsConfiguration,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.frontDoorName,\n Parameters.frontendEndpointName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst disableHttpsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps\",\n httpMethod: \"POST\",\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.frontendEndpointName,\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.FrontendEndpointsListResult,\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":"frontendEndpoints.js","sourceRoot":"","sources":["../../../src/operations/frontendEndpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,o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BAA2B;SAChD;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 { FrontendEndpoints } 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 FrontendEndpoint,\n FrontendEndpointsListByFrontDoorNextOptionalParams,\n FrontendEndpointsListByFrontDoorOptionalParams,\n FrontendEndpointsListByFrontDoorResponse,\n FrontendEndpointsGetOptionalParams,\n FrontendEndpointsGetResponse,\n CustomHttpsConfiguration,\n FrontendEndpointsEnableHttpsOptionalParams,\n FrontendEndpointsDisableHttpsOptionalParams,\n FrontendEndpointsListByFrontDoorNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing FrontendEndpoints operations. */\nexport class FrontendEndpointsImpl implements FrontendEndpoints {\n private readonly client: FrontDoorManagementClient;\n\n /**\n * Initialize a new instance of the class FrontendEndpoints 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 frontend endpoints 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?: FrontendEndpointsListByFrontDoorOptionalParams,\n ): PagedAsyncIterableIterator<FrontendEndpoint> {\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?: FrontendEndpointsListByFrontDoorOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<FrontendEndpoint[]> {\n let result: FrontendEndpointsListByFrontDoorResponse;\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?: FrontendEndpointsListByFrontDoorOptionalParams,\n ): AsyncIterableIterator<FrontendEndpoint> {\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 frontend endpoints 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?: FrontendEndpointsListByFrontDoorOptionalParams,\n ): Promise<FrontendEndpointsListByFrontDoorResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, frontDoorName, options },\n listByFrontDoorOperationSpec,\n );\n }\n\n /**\n * Gets a Frontend endpoint 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 frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n frontDoorName: string,\n frontendEndpointName: string,\n options?: FrontendEndpointsGetOptionalParams,\n ): Promise<FrontendEndpointsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, frontDoorName, frontendEndpointName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Enables a frontendEndpoint for HTTPS traffic\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 frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.\n * @param customHttpsConfiguration The configuration specifying how to enable HTTPS\n * @param options The options parameters.\n */\n async beginEnableHttps(\n resourceGroupName: string,\n frontDoorName: string,\n frontendEndpointName: string,\n customHttpsConfiguration: CustomHttpsConfiguration,\n options?: FrontendEndpointsEnableHttpsOptionalParams,\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: {\n resourceGroupName,\n frontDoorName,\n frontendEndpointName,\n customHttpsConfiguration,\n options,\n },\n spec: enableHttpsOperationSpec,\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 * Enables a frontendEndpoint for HTTPS traffic\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 frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.\n * @param customHttpsConfiguration The configuration specifying how to enable HTTPS\n * @param options The options parameters.\n */\n async beginEnableHttpsAndWait(\n resourceGroupName: string,\n frontDoorName: string,\n frontendEndpointName: string,\n customHttpsConfiguration: CustomHttpsConfiguration,\n options?: FrontendEndpointsEnableHttpsOptionalParams,\n ): Promise<void> {\n const poller = await this.beginEnableHttps(\n resourceGroupName,\n frontDoorName,\n frontendEndpointName,\n customHttpsConfiguration,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Disables a frontendEndpoint for HTTPS traffic\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 frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.\n * @param options The options parameters.\n */\n async beginDisableHttps(\n resourceGroupName: string,\n frontDoorName: string,\n frontendEndpointName: string,\n options?: FrontendEndpointsDisableHttpsOptionalParams,\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, frontendEndpointName, options },\n spec: disableHttpsOperationSpec,\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 * Disables a frontendEndpoint for HTTPS traffic\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 frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.\n * @param options The options parameters.\n */\n async beginDisableHttpsAndWait(\n resourceGroupName: string,\n frontDoorName: string,\n frontendEndpointName: string,\n options?: FrontendEndpointsDisableHttpsOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDisableHttps(\n resourceGroupName,\n frontDoorName,\n frontendEndpointName,\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?: FrontendEndpointsListByFrontDoorNextOptionalParams,\n ): Promise<FrontendEndpointsListByFrontDoorNextResponse> {\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}/frontendEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FrontendEndpointsListResult,\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}/frontendEndpoints/{frontendEndpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FrontendEndpoint,\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.frontendEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst enableHttpsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.customHttpsConfiguration,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.frontDoorName,\n Parameters.frontendEndpointName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst disableHttpsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps\",\n httpMethod: \"POST\",\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.frontendEndpointName,\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.FrontendEndpointsListResult,\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"]}
|
|
@@ -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 ManagedRuleSets operations. */
|
|
15
14
|
export class ManagedRuleSetsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ManagedRuleSets class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -34,52 +34,35 @@ export class ManagedRuleSetsImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listPagingPage(options, settings);
|
|
41
41
|
},
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listPagingPage(options, settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
});
|
|
44
|
+
async *listPagingPage(options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._list(options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listNext(continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
63
61
|
}
|
|
64
|
-
listPagingAll(options) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
69
|
-
_c = _f.value;
|
|
70
|
-
_d = false;
|
|
71
|
-
const page = _c;
|
|
72
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
76
|
-
finally {
|
|
77
|
-
try {
|
|
78
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
79
|
-
}
|
|
80
|
-
finally { if (e_1) throw e_1.error; }
|
|
81
|
-
}
|
|
82
|
-
});
|
|
62
|
+
async *listPagingAll(options) {
|
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
83
66
|
}
|
|
84
67
|
/**
|
|
85
68
|
* Lists all available managed rule sets.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managedRuleSets.js","sourceRoot":"","sources":["../../../src/operations/managedRuleSets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"managedRuleSets.js","sourceRoot":"","sources":["../../../src/operations/managedRuleSets.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,MAA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,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;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 { ManagedRuleSets } 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 ManagedRuleSetDefinition,\n ManagedRuleSetsListNextOptionalParams,\n ManagedRuleSetsListOptionalParams,\n ManagedRuleSetsListResponse,\n ManagedRuleSetsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ManagedRuleSets operations. */\nexport class ManagedRuleSetsImpl implements ManagedRuleSets {\n private readonly client: FrontDoorManagementClient;\n\n /**\n * Initialize a new instance of the class ManagedRuleSets class.\n * @param client Reference to the service client\n */\n constructor(client: FrontDoorManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all available managed rule sets.\n * @param options The options parameters.\n */\n public list(\n options?: ManagedRuleSetsListOptionalParams,\n ): PagedAsyncIterableIterator<ManagedRuleSetDefinition> {\n const iter = this.listPagingAll(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(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: ManagedRuleSetsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ManagedRuleSetDefinition[]> {\n let result: ManagedRuleSetsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ManagedRuleSetsListOptionalParams,\n ): AsyncIterableIterator<ManagedRuleSetDefinition> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all available managed rule sets.\n * @param options The options parameters.\n */\n private _list(\n options?: ManagedRuleSetsListOptionalParams,\n ): Promise<ManagedRuleSetsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\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 nextLink: string,\n options?: ManagedRuleSetsListNextOptionalParams,\n ): Promise<ManagedRuleSetsListNextResponse> {\n return this.client.sendOperationRequest(\n { 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}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedRuleSetDefinitionList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedRuleSetDefinitionList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\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 NetworkExperimentProfiles operations. */
|
|
17
16
|
export class NetworkExperimentProfilesImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class NetworkExperimentProfiles class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class NetworkExperimentProfilesImpl {
|
|
|
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(options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listPagingPage(options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listPagingPage(options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._list(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(continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listPagingAll(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(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(options) {
|
|
65
|
+
for await (const page of this.listPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Gets a list of Network Experiment Profiles within a resource group under a subscription
|
|
@@ -98,52 +81,35 @@ export class NetworkExperimentProfilesImpl {
|
|
|
98
81
|
return this;
|
|
99
82
|
},
|
|
100
83
|
byPage: (settings) => {
|
|
101
|
-
if (settings
|
|
84
|
+
if (settings?.maxPageSize) {
|
|
102
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
86
|
}
|
|
104
87
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
88
|
},
|
|
106
89
|
};
|
|
107
90
|
}
|
|
108
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
});
|
|
91
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
101
|
+
while (continuationToken) {
|
|
102
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
127
108
|
}
|
|
128
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
-
_c = _f.value;
|
|
134
|
-
_d = false;
|
|
135
|
-
const page = _c;
|
|
136
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
-
finally {
|
|
141
|
-
try {
|
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
-
}
|
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
|
145
|
-
}
|
|
146
|
-
});
|
|
109
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
110
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
147
113
|
}
|
|
148
114
|
/**
|
|
149
115
|
* Gets a list of Network Experiment Profiles under a subscription
|
|
@@ -181,14 +147,19 @@ export class NetworkExperimentProfilesImpl {
|
|
|
181
147
|
return this.client.sendOperationRequest(args, spec);
|
|
182
148
|
};
|
|
183
149
|
const sendOperationFn = async (args, spec) => {
|
|
184
|
-
var _a;
|
|
185
150
|
let currentRawResponse = undefined;
|
|
186
|
-
const providedCallback =
|
|
151
|
+
const providedCallback = args.options?.onResponse;
|
|
187
152
|
const callback = (rawResponse, flatResponse) => {
|
|
188
153
|
currentRawResponse = rawResponse;
|
|
189
|
-
providedCallback
|
|
154
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
155
|
+
};
|
|
156
|
+
const updatedArgs = {
|
|
157
|
+
...args,
|
|
158
|
+
options: {
|
|
159
|
+
...args.options,
|
|
160
|
+
onResponse: callback,
|
|
161
|
+
},
|
|
190
162
|
};
|
|
191
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
192
163
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
193
164
|
return {
|
|
194
165
|
flatResponse,
|
|
@@ -205,8 +176,8 @@ export class NetworkExperimentProfilesImpl {
|
|
|
205
176
|
spec: createOrUpdateOperationSpec,
|
|
206
177
|
});
|
|
207
178
|
const poller = await createHttpPoller(lro, {
|
|
208
|
-
restoreFrom: options
|
|
209
|
-
intervalInMs: options
|
|
179
|
+
restoreFrom: options?.resumeFrom,
|
|
180
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
210
181
|
});
|
|
211
182
|
await poller.poll();
|
|
212
183
|
return poller;
|
|
@@ -234,14 +205,19 @@ export class NetworkExperimentProfilesImpl {
|
|
|
234
205
|
return this.client.sendOperationRequest(args, spec);
|
|
235
206
|
};
|
|
236
207
|
const sendOperationFn = async (args, spec) => {
|
|
237
|
-
var _a;
|
|
238
208
|
let currentRawResponse = undefined;
|
|
239
|
-
const providedCallback =
|
|
209
|
+
const providedCallback = args.options?.onResponse;
|
|
240
210
|
const callback = (rawResponse, flatResponse) => {
|
|
241
211
|
currentRawResponse = rawResponse;
|
|
242
|
-
providedCallback
|
|
212
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
213
|
+
};
|
|
214
|
+
const updatedArgs = {
|
|
215
|
+
...args,
|
|
216
|
+
options: {
|
|
217
|
+
...args.options,
|
|
218
|
+
onResponse: callback,
|
|
219
|
+
},
|
|
243
220
|
};
|
|
244
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
245
221
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
246
222
|
return {
|
|
247
223
|
flatResponse,
|
|
@@ -258,8 +234,8 @@ export class NetworkExperimentProfilesImpl {
|
|
|
258
234
|
spec: updateOperationSpec,
|
|
259
235
|
});
|
|
260
236
|
const poller = await createHttpPoller(lro, {
|
|
261
|
-
restoreFrom: options
|
|
262
|
-
intervalInMs: options
|
|
237
|
+
restoreFrom: options?.resumeFrom,
|
|
238
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
263
239
|
});
|
|
264
240
|
await poller.poll();
|
|
265
241
|
return poller;
|
|
@@ -286,14 +262,19 @@ export class NetworkExperimentProfilesImpl {
|
|
|
286
262
|
return this.client.sendOperationRequest(args, spec);
|
|
287
263
|
};
|
|
288
264
|
const sendOperationFn = async (args, spec) => {
|
|
289
|
-
var _a;
|
|
290
265
|
let currentRawResponse = undefined;
|
|
291
|
-
const providedCallback =
|
|
266
|
+
const providedCallback = args.options?.onResponse;
|
|
292
267
|
const callback = (rawResponse, flatResponse) => {
|
|
293
268
|
currentRawResponse = rawResponse;
|
|
294
|
-
providedCallback
|
|
269
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
270
|
+
};
|
|
271
|
+
const updatedArgs = {
|
|
272
|
+
...args,
|
|
273
|
+
options: {
|
|
274
|
+
...args.options,
|
|
275
|
+
onResponse: callback,
|
|
276
|
+
},
|
|
295
277
|
};
|
|
296
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
297
278
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
298
279
|
return {
|
|
299
280
|
flatResponse,
|
|
@@ -310,8 +291,8 @@ export class NetworkExperimentProfilesImpl {
|
|
|
310
291
|
spec: deleteOperationSpec,
|
|
311
292
|
});
|
|
312
293
|
const poller = await createHttpPoller(lro, {
|
|
313
|
-
restoreFrom: options
|
|
314
|
-
intervalInMs: options
|
|
294
|
+
restoreFrom: options?.resumeFrom,
|
|
295
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
315
296
|
});
|
|
316
297
|
await poller.poll();
|
|
317
298
|
return poller;
|