@azure/arm-cdn 9.1.1-alpha.20250718.1 → 9.1.1-alpha.20250721.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.
Files changed (201) hide show
  1. package/dist/browser/cdnManagementClient.js +34 -5
  2. package/dist/browser/cdnManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +663 -294
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/afdCustomDomains.js +67 -64
  8. package/dist/browser/operations/afdCustomDomains.js.map +1 -1
  9. package/dist/browser/operations/afdEndpoints.js +89 -103
  10. package/dist/browser/operations/afdEndpoints.js.map +1 -1
  11. package/dist/browser/operations/afdOriginGroups.js +78 -97
  12. package/dist/browser/operations/afdOriginGroups.js.map +1 -1
  13. package/dist/browser/operations/afdOrigins.js +56 -58
  14. package/dist/browser/operations/afdOrigins.js.map +1 -1
  15. package/dist/browser/operations/afdProfiles.js +34 -46
  16. package/dist/browser/operations/afdProfiles.js.map +1 -1
  17. package/dist/browser/operations/customDomains.js +67 -64
  18. package/dist/browser/operations/customDomains.js.map +1 -1
  19. package/dist/browser/operations/edgeNodes.js +23 -40
  20. package/dist/browser/operations/edgeNodes.js.map +1 -1
  21. package/dist/browser/operations/endpoints.js +122 -121
  22. package/dist/browser/operations/endpoints.js.map +1 -1
  23. package/dist/browser/operations/logAnalytics.js +1 -0
  24. package/dist/browser/operations/logAnalytics.js.map +1 -1
  25. package/dist/browser/operations/managedRuleSets.js +23 -40
  26. package/dist/browser/operations/managedRuleSets.js.map +1 -1
  27. package/dist/browser/operations/operations.js +23 -40
  28. package/dist/browser/operations/operations.js.map +1 -1
  29. package/dist/browser/operations/originGroups.js +56 -58
  30. package/dist/browser/operations/originGroups.js.map +1 -1
  31. package/dist/browser/operations/origins.js +56 -58
  32. package/dist/browser/operations/origins.js.map +1 -1
  33. package/dist/browser/operations/policies.js +45 -52
  34. package/dist/browser/operations/policies.js.map +1 -1
  35. package/dist/browser/operations/profiles.js +133 -154
  36. package/dist/browser/operations/profiles.js.map +1 -1
  37. package/dist/browser/operations/resourceUsageOperations.js +23 -40
  38. package/dist/browser/operations/resourceUsageOperations.js.map +1 -1
  39. package/dist/browser/operations/routes.js +56 -58
  40. package/dist/browser/operations/routes.js.map +1 -1
  41. package/dist/browser/operations/ruleSets.js +56 -85
  42. package/dist/browser/operations/ruleSets.js.map +1 -1
  43. package/dist/browser/operations/rules.js +56 -58
  44. package/dist/browser/operations/rules.js.map +1 -1
  45. package/dist/browser/operations/secrets.js +45 -52
  46. package/dist/browser/operations/secrets.js.map +1 -1
  47. package/dist/browser/operations/securityPolicies.js +56 -58
  48. package/dist/browser/operations/securityPolicies.js.map +1 -1
  49. package/dist/browser/pagingHelper.js +2 -4
  50. package/dist/browser/pagingHelper.js.map +1 -1
  51. package/dist/commonjs/cdnManagementClient.js +34 -5
  52. package/dist/commonjs/cdnManagementClient.js.map +1 -1
  53. package/dist/commonjs/lroImpl.js +7 -3
  54. package/dist/commonjs/lroImpl.js.map +1 -1
  55. package/dist/commonjs/models/mappers.js +663 -294
  56. package/dist/commonjs/models/mappers.js.map +1 -1
  57. package/dist/commonjs/operations/afdCustomDomains.js +67 -63
  58. package/dist/commonjs/operations/afdCustomDomains.js.map +1 -1
  59. package/dist/commonjs/operations/afdEndpoints.js +89 -102
  60. package/dist/commonjs/operations/afdEndpoints.js.map +1 -1
  61. package/dist/commonjs/operations/afdOriginGroups.js +78 -96
  62. package/dist/commonjs/operations/afdOriginGroups.js.map +1 -1
  63. package/dist/commonjs/operations/afdOrigins.js +56 -57
  64. package/dist/commonjs/operations/afdOrigins.js.map +1 -1
  65. package/dist/commonjs/operations/afdProfiles.js +34 -45
  66. package/dist/commonjs/operations/afdProfiles.js.map +1 -1
  67. package/dist/commonjs/operations/customDomains.js +67 -63
  68. package/dist/commonjs/operations/customDomains.js.map +1 -1
  69. package/dist/commonjs/operations/edgeNodes.js +23 -39
  70. package/dist/commonjs/operations/edgeNodes.js.map +1 -1
  71. package/dist/commonjs/operations/endpoints.js +122 -120
  72. package/dist/commonjs/operations/endpoints.js.map +1 -1
  73. package/dist/commonjs/operations/logAnalytics.js +1 -0
  74. package/dist/commonjs/operations/logAnalytics.js.map +1 -1
  75. package/dist/commonjs/operations/managedRuleSets.js +23 -39
  76. package/dist/commonjs/operations/managedRuleSets.js.map +1 -1
  77. package/dist/commonjs/operations/operations.js +23 -39
  78. package/dist/commonjs/operations/operations.js.map +1 -1
  79. package/dist/commonjs/operations/originGroups.js +56 -57
  80. package/dist/commonjs/operations/originGroups.js.map +1 -1
  81. package/dist/commonjs/operations/origins.js +56 -57
  82. package/dist/commonjs/operations/origins.js.map +1 -1
  83. package/dist/commonjs/operations/policies.js +45 -51
  84. package/dist/commonjs/operations/policies.js.map +1 -1
  85. package/dist/commonjs/operations/profiles.js +133 -153
  86. package/dist/commonjs/operations/profiles.js.map +1 -1
  87. package/dist/commonjs/operations/resourceUsageOperations.js +23 -39
  88. package/dist/commonjs/operations/resourceUsageOperations.js.map +1 -1
  89. package/dist/commonjs/operations/routes.js +56 -57
  90. package/dist/commonjs/operations/routes.js.map +1 -1
  91. package/dist/commonjs/operations/ruleSets.js +56 -84
  92. package/dist/commonjs/operations/ruleSets.js.map +1 -1
  93. package/dist/commonjs/operations/rules.js +56 -57
  94. package/dist/commonjs/operations/rules.js.map +1 -1
  95. package/dist/commonjs/operations/secrets.js +45 -51
  96. package/dist/commonjs/operations/secrets.js.map +1 -1
  97. package/dist/commonjs/operations/securityPolicies.js +56 -57
  98. package/dist/commonjs/operations/securityPolicies.js.map +1 -1
  99. package/dist/commonjs/pagingHelper.js +2 -4
  100. package/dist/commonjs/pagingHelper.js.map +1 -1
  101. package/dist/esm/cdnManagementClient.js +34 -5
  102. package/dist/esm/cdnManagementClient.js.map +1 -1
  103. package/dist/esm/lroImpl.js +7 -3
  104. package/dist/esm/lroImpl.js.map +1 -1
  105. package/dist/esm/models/mappers.js +663 -294
  106. package/dist/esm/models/mappers.js.map +1 -1
  107. package/dist/esm/operations/afdCustomDomains.js +67 -64
  108. package/dist/esm/operations/afdCustomDomains.js.map +1 -1
  109. package/dist/esm/operations/afdEndpoints.js +89 -103
  110. package/dist/esm/operations/afdEndpoints.js.map +1 -1
  111. package/dist/esm/operations/afdOriginGroups.js +78 -97
  112. package/dist/esm/operations/afdOriginGroups.js.map +1 -1
  113. package/dist/esm/operations/afdOrigins.js +56 -58
  114. package/dist/esm/operations/afdOrigins.js.map +1 -1
  115. package/dist/esm/operations/afdProfiles.js +34 -46
  116. package/dist/esm/operations/afdProfiles.js.map +1 -1
  117. package/dist/esm/operations/customDomains.js +67 -64
  118. package/dist/esm/operations/customDomains.js.map +1 -1
  119. package/dist/esm/operations/edgeNodes.js +23 -40
  120. package/dist/esm/operations/edgeNodes.js.map +1 -1
  121. package/dist/esm/operations/endpoints.js +122 -121
  122. package/dist/esm/operations/endpoints.js.map +1 -1
  123. package/dist/esm/operations/logAnalytics.js +1 -0
  124. package/dist/esm/operations/logAnalytics.js.map +1 -1
  125. package/dist/esm/operations/managedRuleSets.js +23 -40
  126. package/dist/esm/operations/managedRuleSets.js.map +1 -1
  127. package/dist/esm/operations/operations.js +23 -40
  128. package/dist/esm/operations/operations.js.map +1 -1
  129. package/dist/esm/operations/originGroups.js +56 -58
  130. package/dist/esm/operations/originGroups.js.map +1 -1
  131. package/dist/esm/operations/origins.js +56 -58
  132. package/dist/esm/operations/origins.js.map +1 -1
  133. package/dist/esm/operations/policies.js +45 -52
  134. package/dist/esm/operations/policies.js.map +1 -1
  135. package/dist/esm/operations/profiles.js +133 -154
  136. package/dist/esm/operations/profiles.js.map +1 -1
  137. package/dist/esm/operations/resourceUsageOperations.js +23 -40
  138. package/dist/esm/operations/resourceUsageOperations.js.map +1 -1
  139. package/dist/esm/operations/routes.js +56 -58
  140. package/dist/esm/operations/routes.js.map +1 -1
  141. package/dist/esm/operations/ruleSets.js +56 -85
  142. package/dist/esm/operations/ruleSets.js.map +1 -1
  143. package/dist/esm/operations/rules.js +56 -58
  144. package/dist/esm/operations/rules.js.map +1 -1
  145. package/dist/esm/operations/secrets.js +45 -52
  146. package/dist/esm/operations/secrets.js.map +1 -1
  147. package/dist/esm/operations/securityPolicies.js +56 -58
  148. package/dist/esm/operations/securityPolicies.js.map +1 -1
  149. package/dist/esm/pagingHelper.js +2 -4
  150. package/dist/esm/pagingHelper.js.map +1 -1
  151. package/dist/react-native/cdnManagementClient.js +34 -5
  152. package/dist/react-native/cdnManagementClient.js.map +1 -1
  153. package/dist/react-native/lroImpl.js +7 -3
  154. package/dist/react-native/lroImpl.js.map +1 -1
  155. package/dist/react-native/models/mappers.js +663 -294
  156. package/dist/react-native/models/mappers.js.map +1 -1
  157. package/dist/react-native/operations/afdCustomDomains.js +67 -64
  158. package/dist/react-native/operations/afdCustomDomains.js.map +1 -1
  159. package/dist/react-native/operations/afdEndpoints.js +89 -103
  160. package/dist/react-native/operations/afdEndpoints.js.map +1 -1
  161. package/dist/react-native/operations/afdOriginGroups.js +78 -97
  162. package/dist/react-native/operations/afdOriginGroups.js.map +1 -1
  163. package/dist/react-native/operations/afdOrigins.js +56 -58
  164. package/dist/react-native/operations/afdOrigins.js.map +1 -1
  165. package/dist/react-native/operations/afdProfiles.js +34 -46
  166. package/dist/react-native/operations/afdProfiles.js.map +1 -1
  167. package/dist/react-native/operations/customDomains.js +67 -64
  168. package/dist/react-native/operations/customDomains.js.map +1 -1
  169. package/dist/react-native/operations/edgeNodes.js +23 -40
  170. package/dist/react-native/operations/edgeNodes.js.map +1 -1
  171. package/dist/react-native/operations/endpoints.js +122 -121
  172. package/dist/react-native/operations/endpoints.js.map +1 -1
  173. package/dist/react-native/operations/logAnalytics.js +1 -0
  174. package/dist/react-native/operations/logAnalytics.js.map +1 -1
  175. package/dist/react-native/operations/managedRuleSets.js +23 -40
  176. package/dist/react-native/operations/managedRuleSets.js.map +1 -1
  177. package/dist/react-native/operations/operations.js +23 -40
  178. package/dist/react-native/operations/operations.js.map +1 -1
  179. package/dist/react-native/operations/originGroups.js +56 -58
  180. package/dist/react-native/operations/originGroups.js.map +1 -1
  181. package/dist/react-native/operations/origins.js +56 -58
  182. package/dist/react-native/operations/origins.js.map +1 -1
  183. package/dist/react-native/operations/policies.js +45 -52
  184. package/dist/react-native/operations/policies.js.map +1 -1
  185. package/dist/react-native/operations/profiles.js +133 -154
  186. package/dist/react-native/operations/profiles.js.map +1 -1
  187. package/dist/react-native/operations/resourceUsageOperations.js +23 -40
  188. package/dist/react-native/operations/resourceUsageOperations.js.map +1 -1
  189. package/dist/react-native/operations/routes.js +56 -58
  190. package/dist/react-native/operations/routes.js.map +1 -1
  191. package/dist/react-native/operations/ruleSets.js +56 -85
  192. package/dist/react-native/operations/ruleSets.js.map +1 -1
  193. package/dist/react-native/operations/rules.js +56 -58
  194. package/dist/react-native/operations/rules.js.map +1 -1
  195. package/dist/react-native/operations/secrets.js +45 -52
  196. package/dist/react-native/operations/secrets.js.map +1 -1
  197. package/dist/react-native/operations/securityPolicies.js +56 -58
  198. package/dist/react-native/operations/securityPolicies.js.map +1 -1
  199. package/dist/react-native/pagingHelper.js +2 -4
  200. package/dist/react-native/pagingHelper.js.map +1 -1
  201. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"ruleSets.js","sourceRoot":"","sources":["../../../src/operations/ruleSets.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;AAmB9C,4CAA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;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,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 { RuleSets } 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 { CdnManagementClient } from \"../cdnManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n RuleSet,\n RuleSetsListByProfileNextOptionalParams,\n RuleSetsListByProfileOptionalParams,\n RuleSetsListByProfileResponse,\n Usage,\n RuleSetsListResourceUsageNextOptionalParams,\n RuleSetsListResourceUsageOptionalParams,\n RuleSetsListResourceUsageResponse,\n RuleSetsGetOptionalParams,\n RuleSetsGetResponse,\n RuleSetsCreateOptionalParams,\n RuleSetsCreateResponse,\n RuleSetsDeleteOptionalParams,\n RuleSetsListByProfileNextResponse,\n RuleSetsListResourceUsageNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RuleSets operations. */\nexport class RuleSetsImpl implements RuleSets {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class RuleSets class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists existing AzureFrontDoor rule sets within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param options The options parameters.\n */\n public listByProfile(\n resourceGroupName: string,\n profileName: string,\n options?: RuleSetsListByProfileOptionalParams,\n ): PagedAsyncIterableIterator<RuleSet> {\n const iter = this.listByProfilePagingAll(\n resourceGroupName,\n profileName,\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.listByProfilePagingPage(\n resourceGroupName,\n profileName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByProfilePagingPage(\n resourceGroupName: string,\n profileName: string,\n options?: RuleSetsListByProfileOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RuleSet[]> {\n let result: RuleSetsListByProfileResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByProfile(\n resourceGroupName,\n profileName,\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._listByProfileNext(\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 *listByProfilePagingAll(\n resourceGroupName: string,\n profileName: string,\n options?: RuleSetsListByProfileOptionalParams,\n ): AsyncIterableIterator<RuleSet> {\n for await (const page of this.listByProfilePagingPage(\n resourceGroupName,\n profileName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Checks the quota and actual usage of endpoints under the given Azure Front Door profile..\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally.\n * @param options The options parameters.\n */\n public listResourceUsage(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsListResourceUsageOptionalParams,\n ): PagedAsyncIterableIterator<Usage> {\n const iter = this.listResourceUsagePagingAll(\n resourceGroupName,\n profileName,\n ruleSetName,\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.listResourceUsagePagingPage(\n resourceGroupName,\n profileName,\n ruleSetName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listResourceUsagePagingPage(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsListResourceUsageOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Usage[]> {\n let result: RuleSetsListResourceUsageResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listResourceUsage(\n resourceGroupName,\n profileName,\n ruleSetName,\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._listResourceUsageNext(\n resourceGroupName,\n profileName,\n ruleSetName,\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 *listResourceUsagePagingAll(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsListResourceUsageOptionalParams,\n ): AsyncIterableIterator<Usage> {\n for await (const page of this.listResourceUsagePagingPage(\n resourceGroupName,\n profileName,\n ruleSetName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists existing AzureFrontDoor rule sets within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param options The options parameters.\n */\n private _listByProfile(\n resourceGroupName: string,\n profileName: string,\n options?: RuleSetsListByProfileOptionalParams,\n ): Promise<RuleSetsListByProfileResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, options },\n listByProfileOperationSpec,\n );\n }\n\n /**\n * Gets an existing AzureFrontDoor rule set with the specified rule set name under the specified\n * subscription, resource group and profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsGetOptionalParams,\n ): Promise<RuleSetsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new rule set within the specified profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsCreateOptionalParams,\n ): Promise<RuleSetsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, options },\n createOperationSpec,\n );\n }\n\n /**\n * Deletes an existing AzureFrontDoor rule set with the specified rule set name under the specified\n * subscription, resource group and profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsDeleteOptionalParams,\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, profileName, ruleSetName, 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 AzureFrontDoor rule set with the specified rule set name under the specified\n * subscription, resource group and profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n profileName,\n ruleSetName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Checks the quota and actual usage of endpoints under the given Azure Front Door profile..\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally.\n * @param options The options parameters.\n */\n private _listResourceUsage(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsListResourceUsageOptionalParams,\n ): Promise<RuleSetsListResourceUsageResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, options },\n listResourceUsageOperationSpec,\n );\n }\n\n /**\n * ListByProfileNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByProfile method.\n * @param options The options parameters.\n */\n private _listByProfileNext(\n resourceGroupName: string,\n profileName: string,\n nextLink: string,\n options?: RuleSetsListByProfileNextOptionalParams,\n ): Promise<RuleSetsListByProfileNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, nextLink, options },\n listByProfileNextOperationSpec,\n );\n }\n\n /**\n * ListResourceUsageNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally.\n * @param nextLink The nextLink from the previous successful call to the ListResourceUsage method.\n * @param options The options parameters.\n */\n private _listResourceUsageNext(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n nextLink: string,\n options?: RuleSetsListResourceUsageNextOptionalParams,\n ): Promise<RuleSetsListResourceUsageNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, nextLink, options },\n listResourceUsageNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleSetListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleSet,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleSet,\n },\n 201: {\n bodyMapper: Mappers.RuleSet,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listResourceUsageOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/usages\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsagesListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByProfileNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleSetListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listResourceUsageNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsagesListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.nextLink,\n Parameters.ruleSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"ruleSets.js","sourceRoot":"","sources":["../../../src/operations/ruleSets.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;AAmB9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IACN,MAAM,CAAsB;IAE7C;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;g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gB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,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 { RuleSets } 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 { CdnManagementClient } from \"../cdnManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n RuleSet,\n RuleSetsListByProfileNextOptionalParams,\n RuleSetsListByProfileOptionalParams,\n RuleSetsListByProfileResponse,\n Usage,\n RuleSetsListResourceUsageNextOptionalParams,\n RuleSetsListResourceUsageOptionalParams,\n RuleSetsListResourceUsageResponse,\n RuleSetsGetOptionalParams,\n RuleSetsGetResponse,\n RuleSetsCreateOptionalParams,\n RuleSetsCreateResponse,\n RuleSetsDeleteOptionalParams,\n RuleSetsListByProfileNextResponse,\n RuleSetsListResourceUsageNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RuleSets operations. */\nexport class RuleSetsImpl implements RuleSets {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class RuleSets class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists existing AzureFrontDoor rule sets within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param options The options parameters.\n */\n public listByProfile(\n resourceGroupName: string,\n profileName: string,\n options?: RuleSetsListByProfileOptionalParams,\n ): PagedAsyncIterableIterator<RuleSet> {\n const iter = this.listByProfilePagingAll(\n resourceGroupName,\n profileName,\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.listByProfilePagingPage(\n resourceGroupName,\n profileName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByProfilePagingPage(\n resourceGroupName: string,\n profileName: string,\n options?: RuleSetsListByProfileOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RuleSet[]> {\n let result: RuleSetsListByProfileResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByProfile(\n resourceGroupName,\n profileName,\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._listByProfileNext(\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 *listByProfilePagingAll(\n resourceGroupName: string,\n profileName: string,\n options?: RuleSetsListByProfileOptionalParams,\n ): AsyncIterableIterator<RuleSet> {\n for await (const page of this.listByProfilePagingPage(\n resourceGroupName,\n profileName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Checks the quota and actual usage of endpoints under the given Azure Front Door profile..\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally.\n * @param options The options parameters.\n */\n public listResourceUsage(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsListResourceUsageOptionalParams,\n ): PagedAsyncIterableIterator<Usage> {\n const iter = this.listResourceUsagePagingAll(\n resourceGroupName,\n profileName,\n ruleSetName,\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.listResourceUsagePagingPage(\n resourceGroupName,\n profileName,\n ruleSetName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listResourceUsagePagingPage(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsListResourceUsageOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Usage[]> {\n let result: RuleSetsListResourceUsageResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listResourceUsage(\n resourceGroupName,\n profileName,\n ruleSetName,\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._listResourceUsageNext(\n resourceGroupName,\n profileName,\n ruleSetName,\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 *listResourceUsagePagingAll(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsListResourceUsageOptionalParams,\n ): AsyncIterableIterator<Usage> {\n for await (const page of this.listResourceUsagePagingPage(\n resourceGroupName,\n profileName,\n ruleSetName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists existing AzureFrontDoor rule sets within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param options The options parameters.\n */\n private _listByProfile(\n resourceGroupName: string,\n profileName: string,\n options?: RuleSetsListByProfileOptionalParams,\n ): Promise<RuleSetsListByProfileResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, options },\n listByProfileOperationSpec,\n );\n }\n\n /**\n * Gets an existing AzureFrontDoor rule set with the specified rule set name under the specified\n * subscription, resource group and profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsGetOptionalParams,\n ): Promise<RuleSetsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new rule set within the specified profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsCreateOptionalParams,\n ): Promise<RuleSetsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, options },\n createOperationSpec,\n );\n }\n\n /**\n * Deletes an existing AzureFrontDoor rule set with the specified rule set name under the specified\n * subscription, resource group and profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsDeleteOptionalParams,\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, profileName, ruleSetName, 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 AzureFrontDoor rule set with the specified rule set name under the specified\n * subscription, resource group and profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n profileName,\n ruleSetName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Checks the quota and actual usage of endpoints under the given Azure Front Door profile..\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally.\n * @param options The options parameters.\n */\n private _listResourceUsage(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RuleSetsListResourceUsageOptionalParams,\n ): Promise<RuleSetsListResourceUsageResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, options },\n listResourceUsageOperationSpec,\n );\n }\n\n /**\n * ListByProfileNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByProfile method.\n * @param options The options parameters.\n */\n private _listByProfileNext(\n resourceGroupName: string,\n profileName: string,\n nextLink: string,\n options?: RuleSetsListByProfileNextOptionalParams,\n ): Promise<RuleSetsListByProfileNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, nextLink, options },\n listByProfileNextOperationSpec,\n );\n }\n\n /**\n * ListResourceUsageNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile which is unique globally.\n * @param nextLink The nextLink from the previous successful call to the ListResourceUsage method.\n * @param options The options parameters.\n */\n private _listResourceUsageNext(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n nextLink: string,\n options?: RuleSetsListResourceUsageNextOptionalParams,\n ): Promise<RuleSetsListResourceUsageNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, nextLink, options },\n listResourceUsageNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleSetListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleSet,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleSet,\n },\n 201: {\n bodyMapper: Mappers.RuleSet,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listResourceUsageOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/usages\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsagesListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByProfileNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleSetListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listResourceUsageNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsagesListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.nextLink,\n Parameters.ruleSetName,\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 Rules operations. */
17
16
  export class RulesImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class Rules class.
20
20
  * @param client Reference to the service client
@@ -40,52 +40,35 @@ export class RulesImpl {
40
40
  return this;
41
41
  },
42
42
  byPage: (settings) => {
43
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ if (settings?.maxPageSize) {
44
44
  throw new Error("maxPageSize is not supported by this operation.");
45
45
  }
46
46
  return this.listByRuleSetPagingPage(resourceGroupName, profileName, ruleSetName, options, settings);
47
47
  },
48
48
  };
49
49
  }
50
- listByRuleSetPagingPage(resourceGroupName, profileName, ruleSetName, options, settings) {
51
- return __asyncGenerator(this, arguments, function* listByRuleSetPagingPage_1() {
52
- let result;
53
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
54
- if (!continuationToken) {
55
- result = yield __await(this._listByRuleSet(resourceGroupName, profileName, ruleSetName, options));
56
- let page = result.value || [];
57
- continuationToken = result.nextLink;
58
- setContinuationToken(page, continuationToken);
59
- yield yield __await(page);
60
- }
61
- while (continuationToken) {
62
- result = yield __await(this._listByRuleSetNext(resourceGroupName, profileName, ruleSetName, continuationToken, options));
63
- continuationToken = result.nextLink;
64
- let page = result.value || [];
65
- setContinuationToken(page, continuationToken);
66
- yield yield __await(page);
67
- }
68
- });
50
+ async *listByRuleSetPagingPage(resourceGroupName, profileName, ruleSetName, options, settings) {
51
+ let result;
52
+ let continuationToken = settings?.continuationToken;
53
+ if (!continuationToken) {
54
+ result = await this._listByRuleSet(resourceGroupName, profileName, ruleSetName, options);
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ setContinuationToken(page, continuationToken);
58
+ yield page;
59
+ }
60
+ while (continuationToken) {
61
+ result = await this._listByRuleSetNext(resourceGroupName, profileName, ruleSetName, continuationToken, options);
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ setContinuationToken(page, continuationToken);
65
+ yield page;
66
+ }
69
67
  }
70
- listByRuleSetPagingAll(resourceGroupName, profileName, ruleSetName, options) {
71
- return __asyncGenerator(this, arguments, function* listByRuleSetPagingAll_1() {
72
- var _a, e_1, _b, _c;
73
- try {
74
- for (var _d = true, _e = __asyncValues(this.listByRuleSetPagingPage(resourceGroupName, profileName, ruleSetName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
75
- _c = _f.value;
76
- _d = false;
77
- const page = _c;
78
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
79
- }
80
- }
81
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
82
- finally {
83
- try {
84
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
85
- }
86
- finally { if (e_1) throw e_1.error; }
87
- }
88
- });
68
+ async *listByRuleSetPagingAll(resourceGroupName, profileName, ruleSetName, options) {
69
+ for await (const page of this.listByRuleSetPagingPage(resourceGroupName, profileName, ruleSetName, options)) {
70
+ yield* page;
71
+ }
89
72
  }
90
73
  /**
91
74
  * Lists all of the existing delivery rules within a rule set.
@@ -125,14 +108,19 @@ export class RulesImpl {
125
108
  return this.client.sendOperationRequest(args, spec);
126
109
  };
127
110
  const sendOperationFn = async (args, spec) => {
128
- var _a;
129
111
  let currentRawResponse = undefined;
130
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
112
+ const providedCallback = args.options?.onResponse;
131
113
  const callback = (rawResponse, flatResponse) => {
132
114
  currentRawResponse = rawResponse;
133
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
115
+ providedCallback?.(rawResponse, flatResponse);
116
+ };
117
+ const updatedArgs = {
118
+ ...args,
119
+ options: {
120
+ ...args.options,
121
+ onResponse: callback,
122
+ },
134
123
  };
135
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
136
124
  const flatResponse = await directSendOperation(updatedArgs, spec);
137
125
  return {
138
126
  flatResponse,
@@ -156,8 +144,8 @@ export class RulesImpl {
156
144
  spec: createOperationSpec,
157
145
  });
158
146
  const poller = await createHttpPoller(lro, {
159
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
160
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
147
+ restoreFrom: options?.resumeFrom,
148
+ intervalInMs: options?.updateIntervalInMs,
161
149
  resourceLocationConfig: "azure-async-operation",
162
150
  });
163
151
  await poller.poll();
@@ -192,14 +180,19 @@ export class RulesImpl {
192
180
  return this.client.sendOperationRequest(args, spec);
193
181
  };
194
182
  const sendOperationFn = async (args, spec) => {
195
- var _a;
196
183
  let currentRawResponse = undefined;
197
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
184
+ const providedCallback = args.options?.onResponse;
198
185
  const callback = (rawResponse, flatResponse) => {
199
186
  currentRawResponse = rawResponse;
200
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
187
+ providedCallback?.(rawResponse, flatResponse);
188
+ };
189
+ const updatedArgs = {
190
+ ...args,
191
+ options: {
192
+ ...args.options,
193
+ onResponse: callback,
194
+ },
201
195
  };
202
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
203
196
  const flatResponse = await directSendOperation(updatedArgs, spec);
204
197
  return {
205
198
  flatResponse,
@@ -223,8 +216,8 @@ export class RulesImpl {
223
216
  spec: updateOperationSpec,
224
217
  });
225
218
  const poller = await createHttpPoller(lro, {
226
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
227
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
219
+ restoreFrom: options?.resumeFrom,
220
+ intervalInMs: options?.updateIntervalInMs,
228
221
  resourceLocationConfig: "azure-async-operation",
229
222
  });
230
223
  await poller.poll();
@@ -258,14 +251,19 @@ export class RulesImpl {
258
251
  return this.client.sendOperationRequest(args, spec);
259
252
  };
260
253
  const sendOperationFn = async (args, spec) => {
261
- var _a;
262
254
  let currentRawResponse = undefined;
263
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
255
+ const providedCallback = args.options?.onResponse;
264
256
  const callback = (rawResponse, flatResponse) => {
265
257
  currentRawResponse = rawResponse;
266
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
258
+ providedCallback?.(rawResponse, flatResponse);
259
+ };
260
+ const updatedArgs = {
261
+ ...args,
262
+ options: {
263
+ ...args.options,
264
+ onResponse: callback,
265
+ },
267
266
  };
268
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
269
267
  const flatResponse = await directSendOperation(updatedArgs, spec);
270
268
  return {
271
269
  flatResponse,
@@ -282,8 +280,8 @@ export class RulesImpl {
282
280
  spec: deleteOperationSpec,
283
281
  });
284
282
  const poller = await createHttpPoller(lro, {
285
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
286
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
283
+ restoreFrom: options?.resumeFrom,
284
+ intervalInMs: options?.updateIntervalInMs,
287
285
  resourceLocationConfig: "azure-async-operation",
288
286
  });
289
287
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../src/operations/rules.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;AAiB9C,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,aAAa,CAClB,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AO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,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 { Rules } 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 { CdnManagementClient } from \"../cdnManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Rule,\n RulesListByRuleSetNextOptionalParams,\n RulesListByRuleSetOptionalParams,\n RulesListByRuleSetResponse,\n RulesGetOptionalParams,\n RulesGetResponse,\n RulesCreateOptionalParams,\n RulesCreateResponse,\n RuleUpdateParameters,\n RulesUpdateOptionalParams,\n RulesUpdateResponse,\n RulesDeleteOptionalParams,\n RulesListByRuleSetNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Rules operations. */\nexport class RulesImpl implements Rules {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class Rules class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the existing delivery rules within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param options The options parameters.\n */\n public listByRuleSet(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RulesListByRuleSetOptionalParams,\n ): PagedAsyncIterableIterator<Rule> {\n const iter = this.listByRuleSetPagingAll(\n resourceGroupName,\n profileName,\n ruleSetName,\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.listByRuleSetPagingPage(\n resourceGroupName,\n profileName,\n ruleSetName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByRuleSetPagingPage(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RulesListByRuleSetOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Rule[]> {\n let result: RulesListByRuleSetResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByRuleSet(\n resourceGroupName,\n profileName,\n ruleSetName,\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._listByRuleSetNext(\n resourceGroupName,\n profileName,\n ruleSetName,\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 *listByRuleSetPagingAll(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RulesListByRuleSetOptionalParams,\n ): AsyncIterableIterator<Rule> {\n for await (const page of this.listByRuleSetPagingPage(\n resourceGroupName,\n profileName,\n ruleSetName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the existing delivery rules within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param options The options parameters.\n */\n private _listByRuleSet(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RulesListByRuleSetOptionalParams,\n ): Promise<RulesListByRuleSetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, options },\n listByRuleSetOperationSpec,\n );\n }\n\n /**\n * Gets an existing delivery rule within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n options?: RulesGetOptionalParams,\n ): Promise<RulesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, ruleName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new delivery rule within the specified rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param rule The delivery rule properties.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n rule: Rule,\n options?: RulesCreateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<RulesCreateResponse>, RulesCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RulesCreateResponse> => {\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 profileName,\n ruleSetName,\n ruleName,\n rule,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n RulesCreateResponse,\n OperationState<RulesCreateResponse>\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 delivery rule within the specified rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param rule The delivery rule properties.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n rule: Rule,\n options?: RulesCreateOptionalParams,\n ): Promise<RulesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n profileName,\n ruleSetName,\n ruleName,\n rule,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing delivery rule within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param ruleUpdateProperties Delivery rule properties\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n ruleUpdateProperties: RuleUpdateParameters,\n options?: RulesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<RulesUpdateResponse>, RulesUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RulesUpdateResponse> => {\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 profileName,\n ruleSetName,\n ruleName,\n ruleUpdateProperties,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n RulesUpdateResponse,\n OperationState<RulesUpdateResponse>\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 * Updates an existing delivery rule within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param ruleUpdateProperties Delivery rule properties\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n ruleUpdateProperties: RuleUpdateParameters,\n options?: RulesUpdateOptionalParams,\n ): Promise<RulesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n profileName,\n ruleSetName,\n ruleName,\n ruleUpdateProperties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing delivery rule within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n options?: RulesDeleteOptionalParams,\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, profileName, ruleSetName, ruleName, 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 delivery rule within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n options?: RulesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n profileName,\n ruleSetName,\n ruleName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByRuleSetNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param nextLink The nextLink from the previous successful call to the ListByRuleSet method.\n * @param options The options parameters.\n */\n private _listByRuleSetNext(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n nextLink: string,\n options?: RulesListByRuleSetNextOptionalParams,\n ): Promise<RulesListByRuleSetNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, nextLink, options },\n listByRuleSetNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByRuleSetOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Rule,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n Parameters.ruleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Rule,\n },\n 201: {\n bodyMapper: Mappers.Rule,\n },\n 202: {\n bodyMapper: Mappers.Rule,\n },\n 204: {\n bodyMapper: Mappers.Rule,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.rule,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n Parameters.ruleName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Rule,\n },\n 201: {\n bodyMapper: Mappers.Rule,\n },\n 202: {\n bodyMapper: Mappers.Rule,\n },\n 204: {\n bodyMapper: Mappers.Rule,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.ruleUpdateProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n Parameters.ruleName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n Parameters.ruleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByRuleSetNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.nextLink,\n Parameters.ruleSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../src/operations/rules.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;AAiB9C,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IACH,MAAM,CAAsB;IAE7C;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,WAAmB,EACnB,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;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E;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,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 { Rules } 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 { CdnManagementClient } from \"../cdnManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Rule,\n RulesListByRuleSetNextOptionalParams,\n RulesListByRuleSetOptionalParams,\n RulesListByRuleSetResponse,\n RulesGetOptionalParams,\n RulesGetResponse,\n RulesCreateOptionalParams,\n RulesCreateResponse,\n RuleUpdateParameters,\n RulesUpdateOptionalParams,\n RulesUpdateResponse,\n RulesDeleteOptionalParams,\n RulesListByRuleSetNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Rules operations. */\nexport class RulesImpl implements Rules {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class Rules class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the existing delivery rules within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param options The options parameters.\n */\n public listByRuleSet(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RulesListByRuleSetOptionalParams,\n ): PagedAsyncIterableIterator<Rule> {\n const iter = this.listByRuleSetPagingAll(\n resourceGroupName,\n profileName,\n ruleSetName,\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.listByRuleSetPagingPage(\n resourceGroupName,\n profileName,\n ruleSetName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByRuleSetPagingPage(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RulesListByRuleSetOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Rule[]> {\n let result: RulesListByRuleSetResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByRuleSet(\n resourceGroupName,\n profileName,\n ruleSetName,\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._listByRuleSetNext(\n resourceGroupName,\n profileName,\n ruleSetName,\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 *listByRuleSetPagingAll(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RulesListByRuleSetOptionalParams,\n ): AsyncIterableIterator<Rule> {\n for await (const page of this.listByRuleSetPagingPage(\n resourceGroupName,\n profileName,\n ruleSetName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the existing delivery rules within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param options The options parameters.\n */\n private _listByRuleSet(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n options?: RulesListByRuleSetOptionalParams,\n ): Promise<RulesListByRuleSetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, options },\n listByRuleSetOperationSpec,\n );\n }\n\n /**\n * Gets an existing delivery rule within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n options?: RulesGetOptionalParams,\n ): Promise<RulesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, ruleName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new delivery rule within the specified rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param rule The delivery rule properties.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n rule: Rule,\n options?: RulesCreateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<RulesCreateResponse>, RulesCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RulesCreateResponse> => {\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 profileName,\n ruleSetName,\n ruleName,\n rule,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n RulesCreateResponse,\n OperationState<RulesCreateResponse>\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 delivery rule within the specified rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param rule The delivery rule properties.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n rule: Rule,\n options?: RulesCreateOptionalParams,\n ): Promise<RulesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n profileName,\n ruleSetName,\n ruleName,\n rule,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing delivery rule within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param ruleUpdateProperties Delivery rule properties\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n ruleUpdateProperties: RuleUpdateParameters,\n options?: RulesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<RulesUpdateResponse>, RulesUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RulesUpdateResponse> => {\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 profileName,\n ruleSetName,\n ruleName,\n ruleUpdateProperties,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n RulesUpdateResponse,\n OperationState<RulesUpdateResponse>\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 * Updates an existing delivery rule within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param ruleUpdateProperties Delivery rule properties\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n ruleUpdateProperties: RuleUpdateParameters,\n options?: RulesUpdateOptionalParams,\n ): Promise<RulesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n profileName,\n ruleSetName,\n ruleName,\n ruleUpdateProperties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing delivery rule within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n options?: RulesDeleteOptionalParams,\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, profileName, ruleSetName, ruleName, 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 delivery rule within a rule set.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param ruleName Name of the delivery rule which is unique within the endpoint.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n ruleName: string,\n options?: RulesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n profileName,\n ruleSetName,\n ruleName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByRuleSetNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param ruleSetName Name of the rule set under the profile.\n * @param nextLink The nextLink from the previous successful call to the ListByRuleSet method.\n * @param options The options parameters.\n */\n private _listByRuleSetNext(\n resourceGroupName: string,\n profileName: string,\n ruleSetName: string,\n nextLink: string,\n options?: RulesListByRuleSetNextOptionalParams,\n ): Promise<RulesListByRuleSetNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, ruleSetName, nextLink, options },\n listByRuleSetNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByRuleSetOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Rule,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n Parameters.ruleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Rule,\n },\n 201: {\n bodyMapper: Mappers.Rule,\n },\n 202: {\n bodyMapper: Mappers.Rule,\n },\n 204: {\n bodyMapper: Mappers.Rule,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.rule,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n Parameters.ruleName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Rule,\n },\n 201: {\n bodyMapper: Mappers.Rule,\n },\n 202: {\n bodyMapper: Mappers.Rule,\n },\n 204: {\n bodyMapper: Mappers.Rule,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.ruleUpdateProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n Parameters.ruleName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.ruleSetName,\n Parameters.ruleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByRuleSetNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.nextLink,\n Parameters.ruleSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}