@azure/arm-resources 5.0.0-beta.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/CHANGELOG.md +6 -11
  2. package/README.md +15 -9
  3. package/dist/index.js +450 -2161
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/index.d.ts +5 -0
  8. package/dist-esm/src/index.d.ts.map +1 -0
  9. package/{esm → dist-esm/src}/index.js +0 -1
  10. package/dist-esm/src/index.js.map +1 -0
  11. package/dist-esm/src/lroImpl.d.ts +16 -0
  12. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  13. package/dist-esm/src/lroImpl.js +29 -0
  14. package/dist-esm/src/lroImpl.js.map +1 -0
  15. package/{esm → dist-esm/src}/models/index.d.ts +60 -201
  16. package/dist-esm/src/models/index.d.ts.map +1 -0
  17. package/{esm → dist-esm/src}/models/index.js +0 -0
  18. package/dist-esm/src/models/index.js.map +1 -0
  19. package/{esm → dist-esm/src}/models/mappers.d.ts +3 -2
  20. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  21. package/{esm → dist-esm/src}/models/mappers.js +106 -69
  22. package/dist-esm/src/models/mappers.js.map +1 -0
  23. package/{esm → dist-esm/src}/models/parameters.d.ts +0 -0
  24. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  25. package/{esm → dist-esm/src}/models/parameters.js +0 -0
  26. package/dist-esm/src/models/parameters.js.map +1 -0
  27. package/{esm/operationsInterfaces → dist-esm/src/operations}/deploymentOperations.d.ts +85 -35
  28. package/dist-esm/src/operations/deploymentOperations.d.ts.map +1 -0
  29. package/{esm → dist-esm/src}/operations/deploymentOperations.js +1 -412
  30. package/dist-esm/src/operations/deploymentOperations.js.map +1 -0
  31. package/{esm/operationsInterfaces → dist-esm/src/operations}/deployments.d.ts +86 -40
  32. package/dist-esm/src/operations/deployments.d.ts.map +1 -0
  33. package/{esm → dist-esm/src}/operations/deployments.js +102 -429
  34. package/dist-esm/src/operations/deployments.js.map +1 -0
  35. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  36. package/dist-esm/src/operations/index.d.ts.map +1 -0
  37. package/{esm → dist-esm/src}/operations/index.js +0 -0
  38. package/dist-esm/src/operations/index.js.map +1 -0
  39. package/{esm → dist-esm/src}/operations/operations.d.ts +4 -19
  40. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  41. package/{esm → dist-esm/src}/operations/operations.js +1 -75
  42. package/dist-esm/src/operations/operations.js.map +1 -0
  43. package/{esm → dist-esm/src}/operations/providerResourceTypes.d.ts +3 -3
  44. package/dist-esm/src/operations/providerResourceTypes.d.ts.map +1 -0
  45. package/{esm → dist-esm/src}/operations/providerResourceTypes.js +1 -1
  46. package/dist-esm/src/operations/providerResourceTypes.js.map +1 -0
  47. package/{esm → dist-esm/src}/operations/providers.d.ts +4 -33
  48. package/dist-esm/src/operations/providers.d.ts.map +1 -0
  49. package/{esm → dist-esm/src}/operations/providers.js +5 -156
  50. package/dist-esm/src/operations/providers.js.map +1 -0
  51. package/{esm → dist-esm/src}/operations/resourceGroups.d.ts +4 -19
  52. package/dist-esm/src/operations/resourceGroups.d.ts.map +1 -0
  53. package/{esm → dist-esm/src}/operations/resourceGroups.js +14 -85
  54. package/dist-esm/src/operations/resourceGroups.js.map +1 -0
  55. package/{esm → dist-esm/src}/operations/resources.d.ts +4 -36
  56. package/dist-esm/src/operations/resources.d.ts.map +1 -0
  57. package/{esm → dist-esm/src}/operations/resources.js +43 -188
  58. package/dist-esm/src/operations/resources.js.map +1 -0
  59. package/{esm → dist-esm/src}/operations/tagsOperations.d.ts +13 -28
  60. package/dist-esm/src/operations/tagsOperations.d.ts.map +1 -0
  61. package/{esm → dist-esm/src}/operations/tagsOperations.js +1 -79
  62. package/dist-esm/src/operations/tagsOperations.js.map +1 -0
  63. package/dist-esm/src/operationsInterfaces/deploymentOperations.d.ts +77 -0
  64. package/dist-esm/src/operationsInterfaces/deploymentOperations.d.ts.map +1 -0
  65. package/dist-esm/src/operationsInterfaces/deploymentOperations.js +9 -0
  66. package/dist-esm/src/operationsInterfaces/deploymentOperations.js.map +1 -0
  67. package/{esm/operations → dist-esm/src/operationsInterfaces}/deployments.d.ts +3 -170
  68. package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +1 -0
  69. package/dist-esm/src/operationsInterfaces/deployments.js +9 -0
  70. package/dist-esm/src/operationsInterfaces/deployments.js.map +1 -0
  71. package/{esm → dist-esm/src}/operationsInterfaces/index.d.ts +0 -0
  72. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  73. package/{esm → dist-esm/src}/operationsInterfaces/index.js +0 -0
  74. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  75. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  76. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  77. package/{esm → dist-esm/src}/operationsInterfaces/operations.js +1 -1
  78. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  79. package/{esm → dist-esm/src}/operationsInterfaces/providerResourceTypes.d.ts +0 -0
  80. package/dist-esm/src/operationsInterfaces/providerResourceTypes.d.ts.map +1 -0
  81. package/{esm → dist-esm/src}/operationsInterfaces/providerResourceTypes.js +0 -0
  82. package/dist-esm/src/operationsInterfaces/providerResourceTypes.js.map +1 -0
  83. package/{esm → dist-esm/src}/operationsInterfaces/providers.d.ts +1 -14
  84. package/dist-esm/src/operationsInterfaces/providers.d.ts.map +1 -0
  85. package/{esm → dist-esm/src}/operationsInterfaces/providers.js +1 -1
  86. package/dist-esm/src/operationsInterfaces/providers.js.map +1 -0
  87. package/{esm → dist-esm/src}/operationsInterfaces/resourceGroups.d.ts +1 -8
  88. package/dist-esm/src/operationsInterfaces/resourceGroups.d.ts.map +1 -0
  89. package/dist-esm/src/operationsInterfaces/resourceGroups.js +9 -0
  90. package/dist-esm/src/operationsInterfaces/resourceGroups.js.map +1 -0
  91. package/{esm → dist-esm/src}/operationsInterfaces/resources.d.ts +1 -15
  92. package/dist-esm/src/operationsInterfaces/resources.d.ts.map +1 -0
  93. package/{esm → dist-esm/src}/operationsInterfaces/resources.js +1 -1
  94. package/dist-esm/src/operationsInterfaces/resources.js.map +1 -0
  95. package/{esm → dist-esm/src}/operationsInterfaces/tagsOperations.d.ts +10 -17
  96. package/dist-esm/src/operationsInterfaces/tagsOperations.d.ts.map +1 -0
  97. package/dist-esm/src/operationsInterfaces/tagsOperations.js +9 -0
  98. package/dist-esm/src/operationsInterfaces/tagsOperations.js.map +1 -0
  99. package/{esm → dist-esm/src}/resourceManagementClient.d.ts +5 -2
  100. package/dist-esm/src/resourceManagementClient.d.ts.map +1 -0
  101. package/{esm/resourceManagementClientContext.js → dist-esm/src/resourceManagementClient.js} +13 -4
  102. package/dist-esm/src/resourceManagementClient.js.map +1 -0
  103. package/dist-esm/test/resources_examples.d.ts +4 -0
  104. package/dist-esm/test/resources_examples.d.ts.map +1 -0
  105. package/dist-esm/test/resources_examples.js +190 -0
  106. package/dist-esm/test/resources_examples.js.map +1 -0
  107. package/package.json +27 -33
  108. package/review/arm-resources.api.md +50 -214
  109. package/src/index.ts +0 -1
  110. package/src/lroImpl.ts +34 -0
  111. package/src/models/index.ts +61 -252
  112. package/src/models/mappers.ts +109 -71
  113. package/src/operations/deploymentOperations.ts +5 -593
  114. package/src/operations/deployments.ts +110 -544
  115. package/src/operations/operations.ts +5 -85
  116. package/src/operations/providerResourceTypes.ts +4 -4
  117. package/src/operations/providers.ts +9 -178
  118. package/src/operations/resourceGroups.ts +19 -98
  119. package/src/operations/resources.ts +47 -229
  120. package/src/operations/tagsOperations.ts +40 -129
  121. package/src/operationsInterfaces/deploymentOperations.ts +0 -69
  122. package/src/operationsInterfaces/deployments.ts +0 -60
  123. package/src/operationsInterfaces/operations.ts +1 -15
  124. package/src/operationsInterfaces/providers.ts +0 -21
  125. package/src/operationsInterfaces/resourceGroups.ts +0 -11
  126. package/src/operationsInterfaces/resources.ts +0 -23
  127. package/src/operationsInterfaces/tagsOperations.ts +28 -42
  128. package/src/resourceManagementClient.ts +46 -3
  129. package/tsconfig.json +2 -3
  130. package/{esm/index.d.ts → types/arm-resources.d.ts} +85 -388
  131. package/types/tsdoc-metadata.json +11 -0
  132. package/esm/coreClientLro.d.ts +0 -26
  133. package/esm/coreClientLro.d.ts.map +0 -1
  134. package/esm/coreClientLro.js +0 -186
  135. package/esm/coreClientLro.js.map +0 -1
  136. package/esm/index.d.ts.map +0 -1
  137. package/esm/index.js.map +0 -1
  138. package/esm/lro/azureAsyncPolling.d.ts +0 -3
  139. package/esm/lro/azureAsyncPolling.d.ts.map +0 -1
  140. package/esm/lro/azureAsyncPolling.js +0 -67
  141. package/esm/lro/azureAsyncPolling.js.map +0 -1
  142. package/esm/lro/bodyPolling.d.ts +0 -8
  143. package/esm/lro/bodyPolling.d.ts.map +0 -1
  144. package/esm/lro/bodyPolling.js +0 -37
  145. package/esm/lro/bodyPolling.js.map +0 -1
  146. package/esm/lro/index.d.ts +0 -4
  147. package/esm/lro/index.d.ts.map +0 -1
  148. package/esm/lro/index.js +0 -12
  149. package/esm/lro/index.js.map +0 -1
  150. package/esm/lro/locationPolling.d.ts +0 -3
  151. package/esm/lro/locationPolling.d.ts.map +0 -1
  152. package/esm/lro/locationPolling.js +0 -19
  153. package/esm/lro/locationPolling.js.map +0 -1
  154. package/esm/lro/lroEngine.d.ts +0 -14
  155. package/esm/lro/lroEngine.d.ts.map +0 -1
  156. package/esm/lro/lroEngine.js +0 -41
  157. package/esm/lro/lroEngine.js.map +0 -1
  158. package/esm/lro/models.d.ts +0 -138
  159. package/esm/lro/models.d.ts.map +0 -1
  160. package/esm/lro/models.js +0 -14
  161. package/esm/lro/models.js.map +0 -1
  162. package/esm/lro/operation.d.ts +0 -36
  163. package/esm/lro/operation.d.ts.map +0 -1
  164. package/esm/lro/operation.js +0 -82
  165. package/esm/lro/operation.js.map +0 -1
  166. package/esm/lro/passthrough.d.ts +0 -3
  167. package/esm/lro/passthrough.d.ts.map +0 -1
  168. package/esm/lro/passthrough.js +0 -15
  169. package/esm/lro/passthrough.js.map +0 -1
  170. package/esm/lro/requestUtils.d.ts +0 -16
  171. package/esm/lro/requestUtils.d.ts.map +0 -1
  172. package/esm/lro/requestUtils.js +0 -73
  173. package/esm/lro/requestUtils.js.map +0 -1
  174. package/esm/lro/stateMachine.d.ts +0 -18
  175. package/esm/lro/stateMachine.d.ts.map +0 -1
  176. package/esm/lro/stateMachine.js +0 -84
  177. package/esm/lro/stateMachine.js.map +0 -1
  178. package/esm/models/index.d.ts.map +0 -1
  179. package/esm/models/index.js.map +0 -1
  180. package/esm/models/mappers.d.ts.map +0 -1
  181. package/esm/models/mappers.js.map +0 -1
  182. package/esm/models/parameters.d.ts.map +0 -1
  183. package/esm/models/parameters.js.map +0 -1
  184. package/esm/operations/deploymentOperations.d.ts +0 -259
  185. package/esm/operations/deploymentOperations.d.ts.map +0 -1
  186. package/esm/operations/deploymentOperations.js.map +0 -1
  187. package/esm/operations/deployments.d.ts.map +0 -1
  188. package/esm/operations/deployments.js.map +0 -1
  189. package/esm/operations/index.d.ts.map +0 -1
  190. package/esm/operations/index.js.map +0 -1
  191. package/esm/operations/operations.d.ts.map +0 -1
  192. package/esm/operations/operations.js.map +0 -1
  193. package/esm/operations/providerResourceTypes.d.ts.map +0 -1
  194. package/esm/operations/providerResourceTypes.js.map +0 -1
  195. package/esm/operations/providers.d.ts.map +0 -1
  196. package/esm/operations/providers.js.map +0 -1
  197. package/esm/operations/resourceGroups.d.ts.map +0 -1
  198. package/esm/operations/resourceGroups.js.map +0 -1
  199. package/esm/operations/resources.d.ts.map +0 -1
  200. package/esm/operations/resources.js.map +0 -1
  201. package/esm/operations/tagsOperations.d.ts.map +0 -1
  202. package/esm/operations/tagsOperations.js.map +0 -1
  203. package/esm/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
  204. package/esm/operationsInterfaces/deploymentOperations.js +0 -9
  205. package/esm/operationsInterfaces/deploymentOperations.js.map +0 -1
  206. package/esm/operationsInterfaces/deployments.d.ts.map +0 -1
  207. package/esm/operationsInterfaces/deployments.js +0 -9
  208. package/esm/operationsInterfaces/deployments.js.map +0 -1
  209. package/esm/operationsInterfaces/index.d.ts.map +0 -1
  210. package/esm/operationsInterfaces/index.js.map +0 -1
  211. package/esm/operationsInterfaces/operations.d.ts +0 -18
  212. package/esm/operationsInterfaces/operations.d.ts.map +0 -1
  213. package/esm/operationsInterfaces/operations.js.map +0 -1
  214. package/esm/operationsInterfaces/providerResourceTypes.d.ts.map +0 -1
  215. package/esm/operationsInterfaces/providerResourceTypes.js.map +0 -1
  216. package/esm/operationsInterfaces/providers.d.ts.map +0 -1
  217. package/esm/operationsInterfaces/providers.js.map +0 -1
  218. package/esm/operationsInterfaces/resourceGroups.d.ts.map +0 -1
  219. package/esm/operationsInterfaces/resourceGroups.js +0 -9
  220. package/esm/operationsInterfaces/resourceGroups.js.map +0 -1
  221. package/esm/operationsInterfaces/resources.d.ts.map +0 -1
  222. package/esm/operationsInterfaces/resources.js.map +0 -1
  223. package/esm/operationsInterfaces/tagsOperations.d.ts.map +0 -1
  224. package/esm/operationsInterfaces/tagsOperations.js +0 -9
  225. package/esm/operationsInterfaces/tagsOperations.js.map +0 -1
  226. package/esm/resourceManagementClient.d.ts.map +0 -1
  227. package/esm/resourceManagementClient.js +0 -29
  228. package/esm/resourceManagementClient.js.map +0 -1
  229. package/esm/resourceManagementClientContext.d.ts +0 -16
  230. package/esm/resourceManagementClientContext.d.ts.map +0 -1
  231. package/esm/resourceManagementClientContext.js.map +0 -1
  232. package/src/coreClientLro.ts +0 -323
  233. package/src/lro/azureAsyncPolling.ts +0 -96
  234. package/src/lro/bodyPolling.ts +0 -54
  235. package/src/lro/index.ts +0 -26
  236. package/src/lro/locationPolling.ts +0 -30
  237. package/src/lro/lroEngine.ts +0 -61
  238. package/src/lro/models.ts +0 -173
  239. package/src/lro/operation.ts +0 -120
  240. package/src/lro/passthrough.ts +0 -23
  241. package/src/lro/requestUtils.ts +0 -105
  242. package/src/lro/stateMachine.ts +0 -138
  243. package/src/resourceManagementClientContext.ts +0 -70
package/dist/index.js CHANGED
@@ -2,9 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
- require('@azure/core-paging');
7
5
  var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
8
7
  var coreLro = require('@azure/core-lro');
9
8
 
10
9
  /*
@@ -776,6 +775,18 @@ const ProviderResourceType = {
776
775
  name: "String"
777
776
  }
778
777
  },
778
+ zoneMappings: {
779
+ serializedName: "zoneMappings",
780
+ type: {
781
+ name: "Sequence",
782
+ element: {
783
+ type: {
784
+ name: "Composite",
785
+ className: "ZoneMapping"
786
+ }
787
+ }
788
+ }
789
+ },
779
790
  apiProfiles: {
780
791
  serializedName: "apiProfiles",
781
792
  readOnly: true,
@@ -977,6 +988,31 @@ const AliasPathMetadata = {
977
988
  }
978
989
  }
979
990
  };
991
+ const ZoneMapping = {
992
+ type: {
993
+ name: "Composite",
994
+ className: "ZoneMapping",
995
+ modelProperties: {
996
+ location: {
997
+ serializedName: "location",
998
+ type: {
999
+ name: "String"
1000
+ }
1001
+ },
1002
+ zones: {
1003
+ serializedName: "zones",
1004
+ type: {
1005
+ name: "Sequence",
1006
+ element: {
1007
+ type: {
1008
+ name: "String"
1009
+ }
1010
+ }
1011
+ }
1012
+ }
1013
+ }
1014
+ }
1015
+ };
980
1016
  const ApiProfile = {
981
1017
  type: {
982
1018
  name: "Composite",
@@ -1674,75 +1710,6 @@ const ResourceListResult = {
1674
1710
  }
1675
1711
  }
1676
1712
  };
1677
- const Resource = {
1678
- type: {
1679
- name: "Composite",
1680
- className: "Resource",
1681
- modelProperties: {
1682
- id: {
1683
- serializedName: "id",
1684
- readOnly: true,
1685
- type: {
1686
- name: "String"
1687
- }
1688
- },
1689
- name: {
1690
- serializedName: "name",
1691
- readOnly: true,
1692
- type: {
1693
- name: "String"
1694
- }
1695
- },
1696
- type: {
1697
- serializedName: "type",
1698
- readOnly: true,
1699
- type: {
1700
- name: "String"
1701
- }
1702
- },
1703
- location: {
1704
- serializedName: "location",
1705
- type: {
1706
- name: "String"
1707
- }
1708
- },
1709
- extendedLocation: {
1710
- serializedName: "extendedLocation",
1711
- type: {
1712
- name: "Composite",
1713
- className: "ExtendedLocation"
1714
- }
1715
- },
1716
- tags: {
1717
- serializedName: "tags",
1718
- type: {
1719
- name: "Dictionary",
1720
- value: { type: { name: "String" } }
1721
- }
1722
- }
1723
- }
1724
- }
1725
- };
1726
- const ExtendedLocation = {
1727
- type: {
1728
- name: "Composite",
1729
- className: "ExtendedLocation",
1730
- modelProperties: {
1731
- type: {
1732
- serializedName: "type",
1733
- type: {
1734
- name: "String"
1735
- }
1736
- },
1737
- name: {
1738
- serializedName: "name",
1739
- type: {
1740
- name: "String"
1741
- }
1742
- }
1743
- }
1744
- }
1745
- };
1746
1713
  const Plan = {
1747
1714
  type: {
1748
1715
  name: "Composite",
@@ -1893,6 +1860,75 @@ const IdentityUserAssignedIdentitiesValue = {
1893
1860
  }
1894
1861
  }
1895
1862
  };
1863
+ const Resource = {
1864
+ type: {
1865
+ name: "Composite",
1866
+ className: "Resource",
1867
+ modelProperties: {
1868
+ id: {
1869
+ serializedName: "id",
1870
+ readOnly: true,
1871
+ type: {
1872
+ name: "String"
1873
+ }
1874
+ },
1875
+ name: {
1876
+ serializedName: "name",
1877
+ readOnly: true,
1878
+ type: {
1879
+ name: "String"
1880
+ }
1881
+ },
1882
+ type: {
1883
+ serializedName: "type",
1884
+ readOnly: true,
1885
+ type: {
1886
+ name: "String"
1887
+ }
1888
+ },
1889
+ location: {
1890
+ serializedName: "location",
1891
+ type: {
1892
+ name: "String"
1893
+ }
1894
+ },
1895
+ extendedLocation: {
1896
+ serializedName: "extendedLocation",
1897
+ type: {
1898
+ name: "Composite",
1899
+ className: "ExtendedLocation"
1900
+ }
1901
+ },
1902
+ tags: {
1903
+ serializedName: "tags",
1904
+ type: {
1905
+ name: "Dictionary",
1906
+ value: { type: { name: "String" } }
1907
+ }
1908
+ }
1909
+ }
1910
+ }
1911
+ };
1912
+ const ExtendedLocation = {
1913
+ type: {
1914
+ name: "Composite",
1915
+ className: "ExtendedLocation",
1916
+ modelProperties: {
1917
+ type: {
1918
+ serializedName: "type",
1919
+ type: {
1920
+ name: "String"
1921
+ }
1922
+ },
1923
+ name: {
1924
+ serializedName: "name",
1925
+ type: {
1926
+ name: "String"
1927
+ }
1928
+ }
1929
+ }
1930
+ }
1931
+ };
1896
1932
  const ResourceGroup = {
1897
1933
  type: {
1898
1934
  name: "Composite",
@@ -2811,6 +2847,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
2811
2847
  AliasPath: AliasPath,
2812
2848
  AliasPattern: AliasPattern,
2813
2849
  AliasPathMetadata: AliasPathMetadata,
2850
+ ZoneMapping: ZoneMapping,
2814
2851
  ApiProfile: ApiProfile,
2815
2852
  Dependency: Dependency,
2816
2853
  BasicDependency: BasicDependency,
@@ -2835,12 +2872,12 @@ var Mappers = /*#__PURE__*/Object.freeze({
2835
2872
  ProviderListResult: ProviderListResult,
2836
2873
  ProviderResourceTypeListResult: ProviderResourceTypeListResult,
2837
2874
  ResourceListResult: ResourceListResult,
2838
- Resource: Resource,
2839
- ExtendedLocation: ExtendedLocation,
2840
2875
  Plan: Plan,
2841
2876
  Sku: Sku,
2842
2877
  Identity: Identity,
2843
2878
  IdentityUserAssignedIdentitiesValue: IdentityUserAssignedIdentitiesValue,
2879
+ Resource: Resource,
2880
+ ExtendedLocation: ExtendedLocation,
2844
2881
  ResourceGroup: ResourceGroup,
2845
2882
  ResourceGroupProperties: ResourceGroupProperties,
2846
2883
  ResourceGroupPatchable: ResourceGroupPatchable,
@@ -3229,7 +3266,7 @@ const operationId = {
3229
3266
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3230
3267
  */
3231
3268
  /// <reference lib="esnext.asynciterable" />
3232
- /** Class representing a Operations. */
3269
+ /** Class containing Operations operations. */
3233
3270
  class OperationsImpl {
3234
3271
  /**
3235
3272
  * Initialize a new instance of the class Operations class.
@@ -3286,55 +3323,6 @@ class OperationsImpl {
3286
3323
  }
3287
3324
  });
3288
3325
  }
3289
- /**
3290
- * ListNext
3291
- * @param nextLink The nextLink from the previous successful call to the List method.
3292
- * @param options The options parameters.
3293
- */
3294
- listNext(nextLink, options) {
3295
- const iter = this.listNextPagingAll(nextLink, options);
3296
- return {
3297
- next() {
3298
- return iter.next();
3299
- },
3300
- [Symbol.asyncIterator]() {
3301
- return this;
3302
- },
3303
- byPage: () => {
3304
- return this.listNextPagingPage(nextLink, options);
3305
- }
3306
- };
3307
- }
3308
- listNextPagingPage(nextLink, options) {
3309
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingPage_1() {
3310
- let result = yield tslib.__await(this._listNext(nextLink, options));
3311
- yield yield tslib.__await(result.value || []);
3312
- let continuationToken = result.nextLink;
3313
- while (continuationToken) {
3314
- result = yield tslib.__await(this._listNextNext(continuationToken, options));
3315
- continuationToken = result.nextLink;
3316
- yield yield tslib.__await(result.value || []);
3317
- }
3318
- });
3319
- }
3320
- listNextPagingAll(nextLink, options) {
3321
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingAll_1() {
3322
- var e_2, _a;
3323
- try {
3324
- for (var _b = tslib.__asyncValues(this.listNextPagingPage(nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3325
- const page = _c.value;
3326
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3327
- }
3328
- }
3329
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
3330
- finally {
3331
- try {
3332
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3333
- }
3334
- finally { if (e_2) throw e_2.error; }
3335
- }
3336
- });
3337
- }
3338
3326
  /**
3339
3327
  * Lists all of the available Microsoft.Resources REST API operations.
3340
3328
  * @param options The options parameters.
@@ -3350,14 +3338,6 @@ class OperationsImpl {
3350
3338
  _listNext(nextLink, options) {
3351
3339
  return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
3352
3340
  }
3353
- /**
3354
- * ListNextNext
3355
- * @param nextLink The nextLink from the previous successful call to the ListNext method.
3356
- * @param options The options parameters.
3357
- */
3358
- _listNextNext(nextLink, options) {
3359
- return this.client.sendOperationRequest({ nextLink, options }, listNextNextOperationSpec);
3360
- }
3361
3341
  }
3362
3342
  // Operation Specifications
3363
3343
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -3393,22 +3373,6 @@ const listNextOperationSpec = {
3393
3373
  headerParameters: [accept],
3394
3374
  serializer
3395
3375
  };
3396
- const listNextNextOperationSpec = {
3397
- path: "{nextLink}",
3398
- httpMethod: "GET",
3399
- responses: {
3400
- 200: {
3401
- bodyMapper: OperationListResult
3402
- },
3403
- default: {
3404
- bodyMapper: CloudError
3405
- }
3406
- },
3407
- queryParameters: [apiVersion],
3408
- urlParameters: [$host, nextLink],
3409
- headerParameters: [accept],
3410
- serializer
3411
- };
3412
3376
 
3413
3377
  /*
3414
3378
  * Copyright (c) Microsoft Corporation.
@@ -3417,502 +3381,24 @@ const listNextNextOperationSpec = {
3417
3381
  * Code generated by Microsoft (R) AutoRest Code Generator.
3418
3382
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3419
3383
  */
3420
- /**
3421
- * Detects where the continuation token is and returns it. Notice that azure-asyncoperation
3422
- * must be checked first before the other location headers because there are scenarios
3423
- * where both azure-asyncoperation and location could be present in the same response but
3424
- * azure-asyncoperation should be the one to use for polling.
3425
- */
3426
- function getPollingUrl(rawResponse, defaultPath) {
3427
- var _a, _b, _c;
3428
- return ((_c = (_b = (_a = getAzureAsyncOperation(rawResponse)) !== null && _a !== void 0 ? _a : getLocation(rawResponse)) !== null && _b !== void 0 ? _b : getOperationLocation(rawResponse)) !== null && _c !== void 0 ? _c : defaultPath);
3429
- }
3430
- function getLocation(rawResponse) {
3431
- return rawResponse.headers["location"];
3432
- }
3433
- function getOperationLocation(rawResponse) {
3434
- return rawResponse.headers["operation-location"];
3435
- }
3436
- function getAzureAsyncOperation(rawResponse) {
3437
- return rawResponse.headers["azure-asyncoperation"];
3438
- }
3439
- function inferLroMode(requestPath, requestMethod, rawResponse) {
3440
- if (getAzureAsyncOperation(rawResponse) !== undefined) {
3441
- return {
3442
- mode: "AzureAsync",
3443
- resourceLocation: requestMethod === "PUT"
3444
- ? requestPath
3445
- : requestMethod === "POST"
3446
- ? getLocation(rawResponse)
3447
- : undefined
3448
- };
3449
- }
3450
- else if (getLocation(rawResponse) !== undefined ||
3451
- getOperationLocation(rawResponse) !== undefined) {
3452
- return {
3453
- mode: "Location"
3454
- };
3455
- }
3456
- else if (["PUT", "PATCH"].includes(requestMethod)) {
3457
- return {
3458
- mode: "Body"
3459
- };
3384
+ class LroImpl {
3385
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
3386
+ this.sendOperationFn = sendOperationFn;
3387
+ this.args = args;
3388
+ this.spec = spec;
3389
+ this.requestPath = requestPath;
3390
+ this.requestMethod = requestMethod;
3460
3391
  }
3461
- return {};
3462
- }
3463
- class RestError extends Error {
3464
- constructor(message, statusCode) {
3465
- super(message);
3466
- this.name = "RestError";
3467
- this.statusCode = statusCode;
3468
- Object.setPrototypeOf(this, RestError.prototype);
3392
+ sendInitialRequest() {
3393
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3394
+ return this.sendOperationFn(this.args, this.spec);
3395
+ });
3469
3396
  }
3470
- }
3471
- function isUnexpectedInitialResponse(rawResponse) {
3472
- const code = rawResponse.statusCode;
3473
- if (![203, 204, 202, 201, 200, 500].includes(code)) {
3474
- throw new RestError(`Received unexpected HTTP status code ${code} in the initial response. This may indicate a server issue.`, code);
3475
- }
3476
- return false;
3477
- }
3478
- function isUnexpectedPollingResponse(rawResponse) {
3479
- const code = rawResponse.statusCode;
3480
- if (![202, 201, 200, 500].includes(code)) {
3481
- throw new RestError(`Received unexpected HTTP status code ${code} while polling. This may indicate a server issue.`, code);
3482
- }
3483
- return false;
3484
- }
3485
-
3486
- /*
3487
- * Copyright (c) Microsoft Corporation.
3488
- * Licensed under the MIT License.
3489
- *
3490
- * Code generated by Microsoft (R) AutoRest Code Generator.
3491
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3492
- */
3493
- const successStates = ["succeeded"];
3494
- const failureStates = ["failed", "canceled", "cancelled"];
3495
-
3496
- /*
3497
- * Copyright (c) Microsoft Corporation.
3498
- * Licensed under the MIT License.
3499
- *
3500
- * Code generated by Microsoft (R) AutoRest Code Generator.
3501
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3502
- */
3503
- function getResponseStatus(rawResponse) {
3504
- var _a, _b;
3505
- const { status } = (_a = rawResponse.body) !== null && _a !== void 0 ? _a : {};
3506
- return (_b = status === null || status === void 0 ? void 0 : status.toLowerCase()) !== null && _b !== void 0 ? _b : "succeeded";
3507
- }
3508
- function isAzureAsyncPollingDone(rawResponse) {
3509
- const state = getResponseStatus(rawResponse);
3510
- if (isUnexpectedPollingResponse(rawResponse) ||
3511
- failureStates.includes(state)) {
3512
- throw new Error(`Operation status: ${state}`);
3513
- }
3514
- return successStates.includes(state);
3515
- }
3516
- function sendFinalRequest(lro, lroResourceLocationConfig, resourceLocation) {
3517
- return tslib.__awaiter(this, void 0, void 0, function* () {
3518
- switch (lroResourceLocationConfig) {
3519
- case "original-uri":
3520
- return lro.retrieveAzureAsyncResource();
3521
- case "azure-async-operation":
3522
- return Promise.resolve(undefined);
3523
- case "location":
3524
- default:
3525
- return lro.retrieveAzureAsyncResource(resourceLocation);
3526
- }
3527
- });
3528
- }
3529
- function processAzureAsyncOperationResult(lro, resourceLocation, lroResourceLocationConfig) {
3530
- return (rawResponse, flatResponse) => {
3531
- if (isAzureAsyncPollingDone(rawResponse)) {
3532
- if (resourceLocation === undefined) {
3533
- return { rawResponse, flatResponse, done: true };
3534
- }
3535
- else {
3536
- return {
3537
- rawResponse,
3538
- flatResponse,
3539
- done: false,
3540
- next: () => tslib.__awaiter(this, void 0, void 0, function* () {
3541
- const finalResponse = yield sendFinalRequest(lro, lroResourceLocationConfig, resourceLocation);
3542
- return Object.assign(Object.assign({}, (finalResponse !== null && finalResponse !== void 0 ? finalResponse : {
3543
- rawResponse,
3544
- flatResponse
3545
- })), { done: true });
3546
- })
3547
- };
3548
- }
3549
- }
3550
- return {
3551
- rawResponse,
3552
- flatResponse,
3553
- done: false
3554
- };
3555
- };
3556
- }
3557
-
3558
- /*
3559
- * Copyright (c) Microsoft Corporation.
3560
- * Licensed under the MIT License.
3561
- *
3562
- * Code generated by Microsoft (R) AutoRest Code Generator.
3563
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3564
- */
3565
- function getProvisioningState(rawResponse) {
3566
- var _a, _b, _c;
3567
- const { properties, provisioningState } = (_a = rawResponse.body) !== null && _a !== void 0 ? _a : {};
3568
- const state = (_b = properties === null || properties === void 0 ? void 0 : properties.provisioningState) !== null && _b !== void 0 ? _b : provisioningState;
3569
- return (_c = state === null || state === void 0 ? void 0 : state.toLowerCase()) !== null && _c !== void 0 ? _c : "succeeded";
3570
- }
3571
- function isBodyPollingDone(rawResponse) {
3572
- const state = getProvisioningState(rawResponse);
3573
- if (isUnexpectedPollingResponse(rawResponse) ||
3574
- failureStates.includes(state)) {
3575
- throw new Error(`The long running operation has failed. The provisioning state: ${state}.`);
3576
- }
3577
- return successStates.includes(state);
3578
- }
3579
- /**
3580
- * Creates a polling strategy based on BodyPolling which uses the provisioning state
3581
- * from the result to determine the current operation state
3582
- */
3583
- function processBodyPollingOperationResult(rawResponse, flatResponse) {
3584
- return {
3585
- rawResponse,
3586
- flatResponse,
3587
- done: isBodyPollingDone(rawResponse)
3588
- };
3589
- }
3590
-
3591
- /*
3592
- * Copyright (c) Microsoft Corporation.
3593
- * Licensed under the MIT License.
3594
- *
3595
- * Code generated by Microsoft (R) AutoRest Code Generator.
3596
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3597
- */
3598
- function isLocationPollingDone(rawResponse) {
3599
- return (!isUnexpectedPollingResponse(rawResponse) && rawResponse.statusCode !== 202);
3600
- }
3601
- function processLocationPollingOperationResult(rawResponse, flatResponse) {
3602
- return {
3603
- rawResponse,
3604
- flatResponse,
3605
- done: isLocationPollingDone(rawResponse)
3606
- };
3607
- }
3608
-
3609
- /*
3610
- * Copyright (c) Microsoft Corporation.
3611
- * Licensed under the MIT License.
3612
- *
3613
- * Code generated by Microsoft (R) AutoRest Code Generator.
3614
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3615
- */
3616
- function processPassthroughOperationResult(rawResponse, flatResponse) {
3617
- return {
3618
- rawResponse,
3619
- flatResponse,
3620
- done: true
3621
- };
3622
- }
3623
-
3624
- /*
3625
- * Copyright (c) Microsoft Corporation.
3626
- * Licensed under the MIT License.
3627
- *
3628
- * Code generated by Microsoft (R) AutoRest Code Generator.
3629
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3630
- */
3631
- /**
3632
- * creates a stepping function that maps an LRO state to another.
3633
- */
3634
- function createGetLroStatusFromResponse(lroPrimitives, config, lroResourceLocationConfig) {
3635
- switch (config.mode) {
3636
- case "AzureAsync": {
3637
- return processAzureAsyncOperationResult(lroPrimitives, config.resourceLocation, lroResourceLocationConfig);
3638
- }
3639
- case "Location": {
3640
- return processLocationPollingOperationResult;
3641
- }
3642
- case "Body": {
3643
- return processBodyPollingOperationResult;
3644
- }
3645
- default: {
3646
- return processPassthroughOperationResult;
3647
- }
3648
- }
3649
- }
3650
- /**
3651
- * Creates a polling operation that returns a LRO state.
3652
- */
3653
- function createPollForLROStatus(lroPrimitives, config) {
3654
- return (path, pollerConfig) => tslib.__awaiter(this, void 0, void 0, function* () {
3655
- const response = yield lroPrimitives.sendPollRequest(config, path);
3656
- const retryAfter = response.rawResponse.headers["retry-after"];
3657
- if (retryAfter !== undefined) {
3658
- const retryAfterInMs = parseInt(retryAfter);
3659
- pollerConfig.intervalInMs = isNaN(retryAfterInMs)
3660
- ? calculatePollingIntervalFromDate(new Date(retryAfter), pollerConfig.intervalInMs)
3661
- : retryAfterInMs;
3662
- }
3663
- return response;
3664
- });
3665
- }
3666
- function calculatePollingIntervalFromDate(retryAfterDate, defaultIntervalInMs) {
3667
- const timeNow = Math.floor(new Date().getTime());
3668
- const retryAfterTime = retryAfterDate.getTime();
3669
- if (timeNow < retryAfterTime) {
3670
- return retryAfterTime - timeNow;
3671
- }
3672
- return defaultIntervalInMs;
3673
- }
3674
- /**
3675
- * Creates a callback to be used to initialize the polling operation state.
3676
- * @param state - of the polling operation
3677
- * @param operationSpec - of the LRO
3678
- * @param callback - callback to be called when the operation is done
3679
- * @returns callback that initializes the state of the polling operation
3680
- */
3681
- function createInitializeState(state, requestPath, requestMethod) {
3682
- return (rawResponse, flatResponse) => {
3683
- if (isUnexpectedInitialResponse(rawResponse))
3684
- ;
3685
- state.initialRawResponse = rawResponse;
3686
- state.isStarted = true;
3687
- state.pollingURL = getPollingUrl(state.initialRawResponse, requestPath);
3688
- state.config = inferLroMode(requestPath, requestMethod, state.initialRawResponse);
3689
- /** short circuit polling if body polling is done in the initial request */
3690
- if (state.config.mode === undefined ||
3691
- (state.config.mode === "Body" &&
3692
- isBodyPollingDone(state.initialRawResponse))) {
3693
- state.result = flatResponse;
3694
- state.isCompleted = true;
3695
- }
3696
- return Boolean(state.isCompleted);
3697
- };
3698
- }
3699
-
3700
- /*
3701
- * Copyright (c) Microsoft Corporation.
3702
- * Licensed under the MIT License.
3703
- *
3704
- * Code generated by Microsoft (R) AutoRest Code Generator.
3705
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3706
- */
3707
- class GenericPollOperation {
3708
- constructor(state, lro) {
3709
- this.state = state;
3710
- this.lro = lro;
3711
- }
3712
- setPollerConfig(pollerConfig) {
3713
- this.pollerConfig = pollerConfig;
3714
- }
3715
- /**
3716
- * General update function for LROPoller, the general process is as follows
3717
- * 1. Check initial operation result to determine the strategy to use
3718
- * - Strategies: Location, Azure-AsyncOperation, Original Uri
3719
- * 2. Check if the operation result has a terminal state
3720
- * - Terminal state will be determined by each strategy
3721
- * 2.1 If it is terminal state Check if a final GET request is required, if so
3722
- * send final GET request and return result from operation. If no final GET
3723
- * is required, just return the result from operation.
3724
- * - Determining what to call for final request is responsibility of each strategy
3725
- * 2.2 If it is not terminal state, call the polling operation and go to step 1
3726
- * - Determining what to call for polling is responsibility of each strategy
3727
- * - Strategies will always use the latest URI for polling if provided otherwise
3728
- * the last known one
3729
- */
3730
- update(options) {
3731
- var _a, _b;
3732
- return tslib.__awaiter(this, void 0, void 0, function* () {
3733
- const state = this.state;
3734
- if (!state.isStarted) {
3735
- const initializeState = createInitializeState(state, this.lro.requestPath, this.lro.requestMethod);
3736
- yield this.lro.sendInitialRequest(initializeState);
3737
- }
3738
- if (!state.isCompleted) {
3739
- if (this.getLROStatusFromResponse === undefined) {
3740
- if (state.config === undefined) {
3741
- throw new Error("Bad state: LRO mode is undefined. Please check if the serialized state is well-formed.");
3742
- }
3743
- this.getLROStatusFromResponse = createPollForLROStatus(this.lro, state.config);
3744
- }
3745
- if (state.pollingURL === undefined) {
3746
- throw new Error("Bad state: polling URL is undefined. Please check if the serialized state is well-formed.");
3747
- }
3748
- const currentState = yield this.getLROStatusFromResponse(state.pollingURL, this.pollerConfig);
3749
- if (currentState.done) {
3750
- state.result = currentState.flatResponse;
3751
- state.isCompleted = true;
3752
- }
3753
- else {
3754
- this.getLROStatusFromResponse =
3755
- (_a = currentState.next) !== null && _a !== void 0 ? _a : this.getLROStatusFromResponse;
3756
- state.pollingURL = getPollingUrl(currentState.rawResponse, state.pollingURL);
3757
- }
3758
- }
3759
- (_b = options === null || options === void 0 ? void 0 : options.fireProgress) === null || _b === void 0 ? void 0 : _b.call(options, state);
3760
- return this;
3761
- });
3762
- }
3763
- cancel() {
3764
- return tslib.__awaiter(this, void 0, void 0, function* () {
3765
- this.state.isCancelled = true;
3766
- return this;
3767
- });
3768
- }
3769
- /**
3770
- * Serializes the Poller operation.
3771
- */
3772
- toString() {
3773
- return JSON.stringify({
3774
- state: this.state
3775
- });
3776
- }
3777
- }
3778
-
3779
- /*
3780
- * Copyright (c) Microsoft Corporation.
3781
- * Licensed under the MIT License.
3782
- *
3783
- * Code generated by Microsoft (R) AutoRest Code Generator.
3784
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3785
- */
3786
- /**
3787
- * The LRO Engine, a class that performs polling.
3788
- */
3789
- class LroEngine extends coreLro.Poller {
3790
- constructor(lro, options) {
3791
- const { intervalInMs = 2000, resumeFrom } = options || {};
3792
- function deserializeState(resumeFrom) {
3793
- try {
3794
- return JSON.parse(resumeFrom).state;
3795
- }
3796
- catch (e) {
3797
- throw new Error(`LroEngine: Unable to deserialize state: ${resumeFrom}`);
3798
- }
3799
- }
3800
- const state = resumeFrom
3801
- ? deserializeState(resumeFrom)
3802
- : {};
3803
- const operation = new GenericPollOperation(state, lro);
3804
- super(operation);
3805
- this.intervalInMs = intervalInMs;
3806
- operation.setPollerConfig(this);
3807
- }
3808
- /**
3809
- * The method used by the poller to wait before attempting to update its operation.
3810
- */
3811
- delay() {
3812
- return new Promise((resolve) => setTimeout(() => resolve(), this.intervalInMs));
3813
- }
3814
- }
3815
-
3816
- /*
3817
- * Copyright (c) Microsoft Corporation.
3818
- * Licensed under the MIT License.
3819
- *
3820
- * Code generated by Microsoft (R) AutoRest Code Generator.
3821
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3822
- */
3823
- function createPollingMethod(sendOperationFn, GetLroStatusFromResponse, args, spec, mode) {
3824
- var _a;
3825
- /**
3826
- * Polling calls will always return a status object i.e. {"status": "success"}
3827
- * these intermediate responses are not described in the swagger so we need to
3828
- * pass custom mappers at runtime.
3829
- * This function replaces all the existing mappers to be able to deserialize a status object
3830
- * @param responses Original set of responses defined in the operation
3831
- */
3832
- function getCompositeMappers(responses) {
3833
- return Object.keys(responses).reduce((acc, statusCode) => {
3834
- return Object.assign(Object.assign({}, acc), { [statusCode]: Object.assign(Object.assign({}, responses[statusCode]), { bodyMapper: {
3835
- type: {
3836
- name: "Composite",
3837
- modelProperties: {
3838
- status: {
3839
- serializedName: "status",
3840
- type: {
3841
- name: "String"
3842
- }
3843
- }
3844
- }
3845
- }
3846
- } }) });
3847
- }, {});
3848
- }
3849
- let response = undefined;
3850
- const customerCallback = (_a = args === null || args === void 0 ? void 0 : args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3851
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: (rawResponse, flatResponse) => {
3852
- response = GetLroStatusFromResponse({
3853
- statusCode: rawResponse.status,
3854
- body: rawResponse.parsedBody,
3855
- headers: rawResponse.headers.toJSON()
3856
- }, flatResponse);
3857
- if (response.done) {
3858
- customerCallback === null || customerCallback === void 0 ? void 0 : customerCallback(rawResponse, flatResponse);
3859
- }
3860
- } }) });
3861
- // Make sure we don't send any body to the get request
3862
- const { requestBody, responses } = spec, restSpec = tslib.__rest(spec, ["requestBody", "responses"]);
3863
- if (mode === "AzureAsync") {
3864
- return (path) => tslib.__awaiter(this, void 0, void 0, function* () {
3865
- yield sendOperationFn(updatedArgs, Object.assign(Object.assign(Object.assign({}, restSpec), { responses: getCompositeMappers(responses), httpMethod: "GET" }), (path && { path })));
3866
- return response;
3867
- });
3868
- }
3869
- return (path) => tslib.__awaiter(this, void 0, void 0, function* () {
3870
- yield sendOperationFn(updatedArgs, Object.assign(Object.assign(Object.assign({}, restSpec), { responses: responses, httpMethod: "GET" }), (path && { path })));
3871
- return response;
3872
- });
3873
- }
3874
- class CoreClientLro {
3875
- constructor(sendOperationFn, args, spec, lroResourceLocationConfig, requestPath = spec.path, requestMethod = spec.httpMethod) {
3876
- this.sendOperationFn = sendOperationFn;
3877
- this.args = args;
3878
- this.spec = spec;
3879
- this.lroResourceLocationConfig = lroResourceLocationConfig;
3880
- this.requestPath = requestPath;
3881
- this.requestMethod = requestMethod;
3882
- }
3883
- sendInitialRequest(initializeState) {
3884
- return tslib.__awaiter(this, void 0, void 0, function* () {
3885
- const _a = this.args.options || {}, { onResponse } = _a, restOptions = tslib.__rest(_a, ["onResponse"]);
3886
- return this.sendOperationFn(Object.assign(Object.assign({}, this.args), { options: Object.assign(Object.assign({}, restOptions), { onResponse: (rawResponse, flatResponse) => {
3887
- const isCompleted = initializeState({
3888
- statusCode: rawResponse.status,
3889
- body: rawResponse.parsedBody,
3890
- headers: rawResponse.headers.toJSON()
3891
- }, flatResponse);
3892
- if (isCompleted) {
3893
- onResponse === null || onResponse === void 0 ? void 0 : onResponse(rawResponse, flatResponse);
3894
- }
3895
- } }) }), this.spec);
3896
- });
3897
- }
3898
- sendPollRequest(config, path) {
3899
- return tslib.__awaiter(this, void 0, void 0, function* () {
3900
- const getLroStatusFromResponse = createGetLroStatusFromResponse(this, config, this.lroResourceLocationConfig);
3901
- return createPollingMethod(this.sendOperationFn, getLroStatusFromResponse, this.args, this.spec, config.mode)(path);
3902
- });
3903
- }
3904
- retrieveAzureAsyncResource(path) {
3905
- return tslib.__awaiter(this, void 0, void 0, function* () {
3906
- const updatedArgs = Object.assign({}, this.args);
3907
- if (updatedArgs.options) {
3908
- updatedArgs.options.shouldDeserialize = true;
3909
- }
3910
- return createPollingMethod(this.sendOperationFn, (rawResponse, flatResponse) => ({
3911
- rawResponse,
3912
- flatResponse,
3913
- done: true
3914
- }), updatedArgs, this.spec)(path);
3915
- });
3397
+ sendPollRequest(path) {
3398
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3399
+ const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
3400
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
3401
+ });
3916
3402
  }
3917
3403
  }
3918
3404
 
@@ -3924,7 +3410,7 @@ class CoreClientLro {
3924
3410
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3925
3411
  */
3926
3412
  /// <reference lib="esnext.asynciterable" />
3927
- /** Class representing a Deployments. */
3413
+ /** Class containing Deployments operations. */
3928
3414
  class DeploymentsImpl {
3929
3415
  /**
3930
3416
  * Initialize a new instance of the class Deployments class.
@@ -4178,322 +3664,74 @@ class DeploymentsImpl {
4178
3664
  });
4179
3665
  }
4180
3666
  /**
4181
- * ListAtScopeNext
3667
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment
3668
+ * removes the associated deployment operations. This is an asynchronous operation that returns a
3669
+ * status of 202 until the template deployment is successfully deleted. The Location response header
3670
+ * contains the URI that is used to obtain the status of the process. While the process is running, a
3671
+ * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
3672
+ * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
3673
+ * URI in the Location header returns an error-level status code.
4182
3674
  * @param scope The resource scope.
4183
- * @param nextLink The nextLink from the previous successful call to the ListAtScope method.
3675
+ * @param deploymentName The name of the deployment.
4184
3676
  * @param options The options parameters.
4185
3677
  */
4186
- listAtScopeNext(scope, nextLink, options) {
4187
- const iter = this.listAtScopeNextPagingAll(scope, nextLink, options);
4188
- return {
4189
- next() {
4190
- return iter.next();
4191
- },
4192
- [Symbol.asyncIterator]() {
4193
- return this;
4194
- },
4195
- byPage: () => {
4196
- return this.listAtScopeNextPagingPage(scope, nextLink, options);
4197
- }
4198
- };
4199
- }
4200
- listAtScopeNextPagingPage(scope, nextLink, options) {
4201
- return tslib.__asyncGenerator(this, arguments, function* listAtScopeNextPagingPage_1() {
4202
- let result = yield tslib.__await(this._listAtScopeNext(scope, nextLink, options));
4203
- yield yield tslib.__await(result.value || []);
4204
- let continuationToken = result.nextLink;
4205
- while (continuationToken) {
4206
- result = yield tslib.__await(this._listAtScopeNextNext(scope, continuationToken, options));
4207
- continuationToken = result.nextLink;
4208
- yield yield tslib.__await(result.value || []);
4209
- }
3678
+ beginDeleteAtScope(scope, deploymentName, options) {
3679
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3680
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3681
+ return this.client.sendOperationRequest(args, spec);
3682
+ });
3683
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3684
+ var _a;
3685
+ let currentRawResponse = undefined;
3686
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3687
+ const callback = (rawResponse, flatResponse) => {
3688
+ currentRawResponse = rawResponse;
3689
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3690
+ };
3691
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3692
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3693
+ return {
3694
+ flatResponse,
3695
+ rawResponse: {
3696
+ statusCode: currentRawResponse.status,
3697
+ body: currentRawResponse.parsedBody,
3698
+ headers: currentRawResponse.headers.toJSON()
3699
+ }
3700
+ };
3701
+ });
3702
+ const lro = new LroImpl(sendOperation, { scope, deploymentName, options }, deleteAtScopeOperationSpec);
3703
+ return new coreLro.LroEngine(lro, {
3704
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3705
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3706
+ });
4210
3707
  });
4211
3708
  }
4212
- listAtScopeNextPagingAll(scope, nextLink, options) {
4213
- return tslib.__asyncGenerator(this, arguments, function* listAtScopeNextPagingAll_1() {
4214
- var e_6, _a;
4215
- try {
4216
- for (var _b = tslib.__asyncValues(this.listAtScopeNextPagingPage(scope, nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
4217
- const page = _c.value;
4218
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4219
- }
4220
- }
4221
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
4222
- finally {
4223
- try {
4224
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
4225
- }
4226
- finally { if (e_6) throw e_6.error; }
4227
- }
3709
+ /**
3710
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment
3711
+ * removes the associated deployment operations. This is an asynchronous operation that returns a
3712
+ * status of 202 until the template deployment is successfully deleted. The Location response header
3713
+ * contains the URI that is used to obtain the status of the process. While the process is running, a
3714
+ * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
3715
+ * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
3716
+ * URI in the Location header returns an error-level status code.
3717
+ * @param scope The resource scope.
3718
+ * @param deploymentName The name of the deployment.
3719
+ * @param options The options parameters.
3720
+ */
3721
+ beginDeleteAtScopeAndWait(scope, deploymentName, options) {
3722
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3723
+ const poller = yield this.beginDeleteAtScope(scope, deploymentName, options);
3724
+ return poller.pollUntilDone();
4228
3725
  });
4229
3726
  }
4230
3727
  /**
4231
- * ListAtTenantScopeNext
4232
- * @param nextLink The nextLink from the previous successful call to the ListAtTenantScope method.
3728
+ * Checks whether the deployment exists.
3729
+ * @param scope The resource scope.
3730
+ * @param deploymentName The name of the deployment.
4233
3731
  * @param options The options parameters.
4234
3732
  */
4235
- listAtTenantScopeNext(nextLink, options) {
4236
- const iter = this.listAtTenantScopeNextPagingAll(nextLink, options);
4237
- return {
4238
- next() {
4239
- return iter.next();
4240
- },
4241
- [Symbol.asyncIterator]() {
4242
- return this;
4243
- },
4244
- byPage: () => {
4245
- return this.listAtTenantScopeNextPagingPage(nextLink, options);
4246
- }
4247
- };
4248
- }
4249
- listAtTenantScopeNextPagingPage(nextLink, options) {
4250
- return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopeNextPagingPage_1() {
4251
- let result = yield tslib.__await(this._listAtTenantScopeNext(nextLink, options));
4252
- yield yield tslib.__await(result.value || []);
4253
- let continuationToken = result.nextLink;
4254
- while (continuationToken) {
4255
- result = yield tslib.__await(this._listAtTenantScopeNextNext(continuationToken, options));
4256
- continuationToken = result.nextLink;
4257
- yield yield tslib.__await(result.value || []);
4258
- }
4259
- });
4260
- }
4261
- listAtTenantScopeNextPagingAll(nextLink, options) {
4262
- return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopeNextPagingAll_1() {
4263
- var e_7, _a;
4264
- try {
4265
- for (var _b = tslib.__asyncValues(this.listAtTenantScopeNextPagingPage(nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
4266
- const page = _c.value;
4267
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4268
- }
4269
- }
4270
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
4271
- finally {
4272
- try {
4273
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
4274
- }
4275
- finally { if (e_7) throw e_7.error; }
4276
- }
4277
- });
4278
- }
4279
- /**
4280
- * ListAtManagementGroupScopeNext
4281
- * @param groupId The management group ID.
4282
- * @param nextLink The nextLink from the previous successful call to the ListAtManagementGroupScope
4283
- * method.
4284
- * @param options The options parameters.
4285
- */
4286
- listAtManagementGroupScopeNext(groupId, nextLink, options) {
4287
- const iter = this.listAtManagementGroupScopeNextPagingAll(groupId, nextLink, options);
4288
- return {
4289
- next() {
4290
- return iter.next();
4291
- },
4292
- [Symbol.asyncIterator]() {
4293
- return this;
4294
- },
4295
- byPage: () => {
4296
- return this.listAtManagementGroupScopeNextPagingPage(groupId, nextLink, options);
4297
- }
4298
- };
4299
- }
4300
- listAtManagementGroupScopeNextPagingPage(groupId, nextLink, options) {
4301
- return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopeNextPagingPage_1() {
4302
- let result = yield tslib.__await(this._listAtManagementGroupScopeNext(groupId, nextLink, options));
4303
- yield yield tslib.__await(result.value || []);
4304
- let continuationToken = result.nextLink;
4305
- while (continuationToken) {
4306
- result = yield tslib.__await(this._listAtManagementGroupScopeNextNext(groupId, continuationToken, options));
4307
- continuationToken = result.nextLink;
4308
- yield yield tslib.__await(result.value || []);
4309
- }
4310
- });
4311
- }
4312
- listAtManagementGroupScopeNextPagingAll(groupId, nextLink, options) {
4313
- return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopeNextPagingAll_1() {
4314
- var e_8, _a;
4315
- try {
4316
- for (var _b = tslib.__asyncValues(this.listAtManagementGroupScopeNextPagingPage(groupId, nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
4317
- const page = _c.value;
4318
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4319
- }
4320
- }
4321
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
4322
- finally {
4323
- try {
4324
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
4325
- }
4326
- finally { if (e_8) throw e_8.error; }
4327
- }
4328
- });
4329
- }
4330
- /**
4331
- * ListAtSubscriptionScopeNext
4332
- * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionScope
4333
- * method.
4334
- * @param options The options parameters.
4335
- */
4336
- listAtSubscriptionScopeNext(nextLink, options) {
4337
- const iter = this.listAtSubscriptionScopeNextPagingAll(nextLink, options);
4338
- return {
4339
- next() {
4340
- return iter.next();
4341
- },
4342
- [Symbol.asyncIterator]() {
4343
- return this;
4344
- },
4345
- byPage: () => {
4346
- return this.listAtSubscriptionScopeNextPagingPage(nextLink, options);
4347
- }
4348
- };
4349
- }
4350
- listAtSubscriptionScopeNextPagingPage(nextLink, options) {
4351
- return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopeNextPagingPage_1() {
4352
- let result = yield tslib.__await(this._listAtSubscriptionScopeNext(nextLink, options));
4353
- yield yield tslib.__await(result.value || []);
4354
- let continuationToken = result.nextLink;
4355
- while (continuationToken) {
4356
- result = yield tslib.__await(this._listAtSubscriptionScopeNextNext(continuationToken, options));
4357
- continuationToken = result.nextLink;
4358
- yield yield tslib.__await(result.value || []);
4359
- }
4360
- });
4361
- }
4362
- listAtSubscriptionScopeNextPagingAll(nextLink, options) {
4363
- return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopeNextPagingAll_1() {
4364
- var e_9, _a;
4365
- try {
4366
- for (var _b = tslib.__asyncValues(this.listAtSubscriptionScopeNextPagingPage(nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
4367
- const page = _c.value;
4368
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4369
- }
4370
- }
4371
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
4372
- finally {
4373
- try {
4374
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
4375
- }
4376
- finally { if (e_9) throw e_9.error; }
4377
- }
4378
- });
4379
- }
4380
- /**
4381
- * ListByResourceGroupNext
4382
- * @param resourceGroupName The name of the resource group with the deployments to get. The name is
4383
- * case insensitive.
4384
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
4385
- * @param options The options parameters.
4386
- */
4387
- listByResourceGroupNext(resourceGroupName, nextLink, options) {
4388
- const iter = this.listByResourceGroupNextPagingAll(resourceGroupName, nextLink, options);
4389
- return {
4390
- next() {
4391
- return iter.next();
4392
- },
4393
- [Symbol.asyncIterator]() {
4394
- return this;
4395
- },
4396
- byPage: () => {
4397
- return this.listByResourceGroupNextPagingPage(resourceGroupName, nextLink, options);
4398
- }
4399
- };
4400
- }
4401
- listByResourceGroupNextPagingPage(resourceGroupName, nextLink, options) {
4402
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupNextPagingPage_1() {
4403
- let result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, nextLink, options));
4404
- yield yield tslib.__await(result.value || []);
4405
- let continuationToken = result.nextLink;
4406
- while (continuationToken) {
4407
- result = yield tslib.__await(this._listByResourceGroupNextNext(resourceGroupName, continuationToken, options));
4408
- continuationToken = result.nextLink;
4409
- yield yield tslib.__await(result.value || []);
4410
- }
4411
- });
4412
- }
4413
- listByResourceGroupNextPagingAll(resourceGroupName, nextLink, options) {
4414
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupNextPagingAll_1() {
4415
- var e_10, _a;
4416
- try {
4417
- for (var _b = tslib.__asyncValues(this.listByResourceGroupNextPagingPage(resourceGroupName, nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
4418
- const page = _c.value;
4419
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4420
- }
4421
- }
4422
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
4423
- finally {
4424
- try {
4425
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
4426
- }
4427
- finally { if (e_10) throw e_10.error; }
4428
- }
4429
- });
4430
- }
4431
- /**
4432
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
4433
- * removes the associated deployment operations. This is an asynchronous operation that returns a
4434
- * status of 202 until the template deployment is successfully deleted. The Location response header
4435
- * contains the URI that is used to obtain the status of the process. While the process is running, a
4436
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
4437
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
4438
- * URI in the Location header returns an error-level status code.
4439
- * @param scope The resource scope.
4440
- * @param deploymentName The name of the deployment.
4441
- * @param options The options parameters.
4442
- */
4443
- beginDeleteAtScope(scope, deploymentName, options) {
4444
- return tslib.__awaiter(this, void 0, void 0, function* () {
4445
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4446
- return this.client.sendOperationRequest(args, spec);
4447
- });
4448
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4449
- var _a;
4450
- let currentRawResponse = undefined;
4451
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4452
- const callback = (rawResponse, flatResponse) => {
4453
- currentRawResponse = rawResponse;
4454
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4455
- };
4456
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4457
- const flatResponse = yield directSendOperation(updatedArgs, spec);
4458
- return {
4459
- flatResponse,
4460
- rawResponse: {
4461
- statusCode: currentRawResponse.status,
4462
- body: currentRawResponse.parsedBody,
4463
- headers: currentRawResponse.headers.toJSON()
4464
- }
4465
- };
4466
- });
4467
- const lro = new CoreClientLro(sendOperation, { scope, deploymentName, options }, deleteAtScopeOperationSpec);
4468
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4469
- });
4470
- }
4471
- /**
4472
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
4473
- * removes the associated deployment operations. This is an asynchronous operation that returns a
4474
- * status of 202 until the template deployment is successfully deleted. The Location response header
4475
- * contains the URI that is used to obtain the status of the process. While the process is running, a
4476
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
4477
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
4478
- * URI in the Location header returns an error-level status code.
4479
- * @param scope The resource scope.
4480
- * @param deploymentName The name of the deployment.
4481
- * @param options The options parameters.
4482
- */
4483
- beginDeleteAtScopeAndWait(scope, deploymentName, options) {
4484
- return tslib.__awaiter(this, void 0, void 0, function* () {
4485
- const poller = yield this.beginDeleteAtScope(scope, deploymentName, options);
4486
- return poller.pollUntilDone();
4487
- });
4488
- }
4489
- /**
4490
- * Checks whether the deployment exists.
4491
- * @param scope The resource scope.
4492
- * @param deploymentName The name of the deployment.
4493
- * @param options The options parameters.
4494
- */
4495
- checkExistenceAtScope(scope, deploymentName, options) {
4496
- return this.client.sendOperationRequest({ scope, deploymentName, options }, checkExistenceAtScopeOperationSpec);
3733
+ checkExistenceAtScope(scope, deploymentName, options) {
3734
+ return this.client.sendOperationRequest({ scope, deploymentName, options }, checkExistenceAtScopeOperationSpec);
4497
3735
  }
4498
3736
  /**
4499
3737
  * You can provide the template and parameters directly in the request or link to JSON files.
@@ -4526,8 +3764,11 @@ class DeploymentsImpl {
4526
3764
  }
4527
3765
  };
4528
3766
  });
4529
- const lro = new CoreClientLro(sendOperation, { scope, deploymentName, parameters, options }, createOrUpdateAtScopeOperationSpec);
4530
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
3767
+ const lro = new LroImpl(sendOperation, { scope, deploymentName, parameters, options }, createOrUpdateAtScopeOperationSpec);
3768
+ return new coreLro.LroEngine(lro, {
3769
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3770
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3771
+ });
4531
3772
  });
4532
3773
  }
4533
3774
  /**
@@ -4595,8 +3836,11 @@ class DeploymentsImpl {
4595
3836
  }
4596
3837
  };
4597
3838
  });
4598
- const lro = new CoreClientLro(sendOperation, { scope, deploymentName, parameters, options }, validateAtScopeOperationSpec);
4599
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
3839
+ const lro = new LroImpl(sendOperation, { scope, deploymentName, parameters, options }, validateAtScopeOperationSpec);
3840
+ return new coreLro.LroEngine(lro, {
3841
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3842
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3843
+ });
4600
3844
  });
4601
3845
  }
4602
3846
  /**
@@ -4665,8 +3909,11 @@ class DeploymentsImpl {
4665
3909
  }
4666
3910
  };
4667
3911
  });
4668
- const lro = new CoreClientLro(sendOperation, { deploymentName, options }, deleteAtTenantScopeOperationSpec);
4669
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
3912
+ const lro = new LroImpl(sendOperation, { deploymentName, options }, deleteAtTenantScopeOperationSpec);
3913
+ return new coreLro.LroEngine(lro, {
3914
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3915
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3916
+ });
4670
3917
  });
4671
3918
  }
4672
3919
  /**
@@ -4724,8 +3971,11 @@ class DeploymentsImpl {
4724
3971
  }
4725
3972
  };
4726
3973
  });
4727
- const lro = new CoreClientLro(sendOperation, { deploymentName, parameters, options }, createOrUpdateAtTenantScopeOperationSpec);
4728
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
3974
+ const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, createOrUpdateAtTenantScopeOperationSpec);
3975
+ return new coreLro.LroEngine(lro, {
3976
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3977
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3978
+ });
4729
3979
  });
4730
3980
  }
4731
3981
  /**
@@ -4789,8 +4039,11 @@ class DeploymentsImpl {
4789
4039
  }
4790
4040
  };
4791
4041
  });
4792
- const lro = new CoreClientLro(sendOperation, { deploymentName, parameters, options }, validateAtTenantScopeOperationSpec);
4793
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4042
+ const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, validateAtTenantScopeOperationSpec);
4043
+ return new coreLro.LroEngine(lro, {
4044
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4045
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4046
+ });
4794
4047
  });
4795
4048
  }
4796
4049
  /**
@@ -4836,8 +4089,12 @@ class DeploymentsImpl {
4836
4089
  }
4837
4090
  };
4838
4091
  });
4839
- const lro = new CoreClientLro(sendOperation, { deploymentName, parameters, options }, whatIfAtTenantScopeOperationSpec, "location");
4840
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4092
+ const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, whatIfAtTenantScopeOperationSpec);
4093
+ return new coreLro.LroEngine(lro, {
4094
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4095
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4096
+ lroResourceLocationConfig: "location"
4097
+ });
4841
4098
  });
4842
4099
  }
4843
4100
  /**
@@ -4903,8 +4160,11 @@ class DeploymentsImpl {
4903
4160
  }
4904
4161
  };
4905
4162
  });
4906
- const lro = new CoreClientLro(sendOperation, { groupId, deploymentName, options }, deleteAtManagementGroupScopeOperationSpec);
4907
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4163
+ const lro = new LroImpl(sendOperation, { groupId, deploymentName, options }, deleteAtManagementGroupScopeOperationSpec);
4164
+ return new coreLro.LroEngine(lro, {
4165
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4166
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4167
+ });
4908
4168
  });
4909
4169
  }
4910
4170
  /**
@@ -4965,8 +4225,11 @@ class DeploymentsImpl {
4965
4225
  }
4966
4226
  };
4967
4227
  });
4968
- const lro = new CoreClientLro(sendOperation, { groupId, deploymentName, parameters, options }, createOrUpdateAtManagementGroupScopeOperationSpec);
4969
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4228
+ const lro = new LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, createOrUpdateAtManagementGroupScopeOperationSpec);
4229
+ return new coreLro.LroEngine(lro, {
4230
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4231
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4232
+ });
4970
4233
  });
4971
4234
  }
4972
4235
  /**
@@ -5034,8 +4297,11 @@ class DeploymentsImpl {
5034
4297
  }
5035
4298
  };
5036
4299
  });
5037
- const lro = new CoreClientLro(sendOperation, { groupId, deploymentName, parameters, options }, validateAtManagementGroupScopeOperationSpec);
5038
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4300
+ const lro = new LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, validateAtManagementGroupScopeOperationSpec);
4301
+ return new coreLro.LroEngine(lro, {
4302
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4303
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4304
+ });
5039
4305
  });
5040
4306
  }
5041
4307
  /**
@@ -5084,8 +4350,12 @@ class DeploymentsImpl {
5084
4350
  }
5085
4351
  };
5086
4352
  });
5087
- const lro = new CoreClientLro(sendOperation, { groupId, deploymentName, parameters, options }, whatIfAtManagementGroupScopeOperationSpec, "location");
5088
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4353
+ const lro = new LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, whatIfAtManagementGroupScopeOperationSpec);
4354
+ return new coreLro.LroEngine(lro, {
4355
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4356
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4357
+ lroResourceLocationConfig: "location"
4358
+ });
5089
4359
  });
5090
4360
  }
5091
4361
  /**
@@ -5154,8 +4424,11 @@ class DeploymentsImpl {
5154
4424
  }
5155
4425
  };
5156
4426
  });
5157
- const lro = new CoreClientLro(sendOperation, { deploymentName, options }, deleteAtSubscriptionScopeOperationSpec);
5158
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4427
+ const lro = new LroImpl(sendOperation, { deploymentName, options }, deleteAtSubscriptionScopeOperationSpec);
4428
+ return new coreLro.LroEngine(lro, {
4429
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4430
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4431
+ });
5159
4432
  });
5160
4433
  }
5161
4434
  /**
@@ -5213,8 +4486,11 @@ class DeploymentsImpl {
5213
4486
  }
5214
4487
  };
5215
4488
  });
5216
- const lro = new CoreClientLro(sendOperation, { deploymentName, parameters, options }, createOrUpdateAtSubscriptionScopeOperationSpec);
5217
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4489
+ const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, createOrUpdateAtSubscriptionScopeOperationSpec);
4490
+ return new coreLro.LroEngine(lro, {
4491
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4492
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4493
+ });
5218
4494
  });
5219
4495
  }
5220
4496
  /**
@@ -5278,8 +4554,11 @@ class DeploymentsImpl {
5278
4554
  }
5279
4555
  };
5280
4556
  });
5281
- const lro = new CoreClientLro(sendOperation, { deploymentName, parameters, options }, validateAtSubscriptionScopeOperationSpec);
5282
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4557
+ const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, validateAtSubscriptionScopeOperationSpec);
4558
+ return new coreLro.LroEngine(lro, {
4559
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4560
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4561
+ });
5283
4562
  });
5284
4563
  }
5285
4564
  /**
@@ -5325,8 +4604,12 @@ class DeploymentsImpl {
5325
4604
  }
5326
4605
  };
5327
4606
  });
5328
- const lro = new CoreClientLro(sendOperation, { deploymentName, parameters, options }, whatIfAtSubscriptionScopeOperationSpec, "location");
5329
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4607
+ const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, whatIfAtSubscriptionScopeOperationSpec);
4608
+ return new coreLro.LroEngine(lro, {
4609
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4610
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4611
+ lroResourceLocationConfig: "location"
4612
+ });
5330
4613
  });
5331
4614
  }
5332
4615
  /**
@@ -5394,8 +4677,11 @@ class DeploymentsImpl {
5394
4677
  }
5395
4678
  };
5396
4679
  });
5397
- const lro = new CoreClientLro(sendOperation, { resourceGroupName, deploymentName, options }, deleteOperationSpec);
5398
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4680
+ const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, options }, deleteOperationSpec);
4681
+ return new coreLro.LroEngine(lro, {
4682
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4683
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4684
+ });
5399
4685
  });
5400
4686
  }
5401
4687
  /**
@@ -5460,8 +4746,11 @@ class DeploymentsImpl {
5460
4746
  }
5461
4747
  };
5462
4748
  });
5463
- const lro = new CoreClientLro(sendOperation, { resourceGroupName, deploymentName, parameters, options }, createOrUpdateOperationSpec);
5464
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4749
+ const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, createOrUpdateOperationSpec);
4750
+ return new coreLro.LroEngine(lro, {
4751
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4752
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4753
+ });
5465
4754
  });
5466
4755
  }
5467
4756
  /**
@@ -5531,8 +4820,11 @@ class DeploymentsImpl {
5531
4820
  }
5532
4821
  };
5533
4822
  });
5534
- const lro = new CoreClientLro(sendOperation, { resourceGroupName, deploymentName, parameters, options }, validateOperationSpec);
5535
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4823
+ const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, validateOperationSpec);
4824
+ return new coreLro.LroEngine(lro, {
4825
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4826
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4827
+ });
5536
4828
  });
5537
4829
  }
5538
4830
  /**
@@ -5582,8 +4874,12 @@ class DeploymentsImpl {
5582
4874
  }
5583
4875
  };
5584
4876
  });
5585
- const lro = new CoreClientLro(sendOperation, { resourceGroupName, deploymentName, parameters, options }, whatIfOperationSpec, "location");
5586
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
4877
+ const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, whatIfOperationSpec);
4878
+ return new coreLro.LroEngine(lro, {
4879
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4880
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4881
+ lroResourceLocationConfig: "location"
4882
+ });
5587
4883
  });
5588
4884
  }
5589
4885
  /**
@@ -5672,53 +4968,6 @@ class DeploymentsImpl {
5672
4968
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
5673
4969
  return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
5674
4970
  }
5675
- /**
5676
- * ListAtScopeNextNext
5677
- * @param scope The resource scope.
5678
- * @param nextLink The nextLink from the previous successful call to the ListAtScopeNext method.
5679
- * @param options The options parameters.
5680
- */
5681
- _listAtScopeNextNext(scope, nextLink, options) {
5682
- return this.client.sendOperationRequest({ scope, nextLink, options }, listAtScopeNextNextOperationSpec);
5683
- }
5684
- /**
5685
- * ListAtTenantScopeNextNext
5686
- * @param nextLink The nextLink from the previous successful call to the ListAtTenantScopeNext method.
5687
- * @param options The options parameters.
5688
- */
5689
- _listAtTenantScopeNextNext(nextLink, options) {
5690
- return this.client.sendOperationRequest({ nextLink, options }, listAtTenantScopeNextNextOperationSpec);
5691
- }
5692
- /**
5693
- * ListAtManagementGroupScopeNextNext
5694
- * @param groupId The management group ID.
5695
- * @param nextLink The nextLink from the previous successful call to the ListAtManagementGroupScopeNext
5696
- * method.
5697
- * @param options The options parameters.
5698
- */
5699
- _listAtManagementGroupScopeNextNext(groupId, nextLink, options) {
5700
- return this.client.sendOperationRequest({ groupId, nextLink, options }, listAtManagementGroupScopeNextNextOperationSpec);
5701
- }
5702
- /**
5703
- * ListAtSubscriptionScopeNextNext
5704
- * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionScopeNext
5705
- * method.
5706
- * @param options The options parameters.
5707
- */
5708
- _listAtSubscriptionScopeNextNext(nextLink, options) {
5709
- return this.client.sendOperationRequest({ nextLink, options }, listAtSubscriptionScopeNextNextOperationSpec);
5710
- }
5711
- /**
5712
- * ListByResourceGroupNextNext
5713
- * @param resourceGroupName The name of the resource group with the deployments to get. The name is
5714
- * case insensitive.
5715
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupNext
5716
- * method.
5717
- * @param options The options parameters.
5718
- */
5719
- _listByResourceGroupNextNext(resourceGroupName, nextLink, options) {
5720
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextNextOperationSpec);
5721
- }
5722
4971
  }
5723
4972
  // Operation Specifications
5724
4973
  const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -6813,95 +6062,6 @@ const listByResourceGroupNextOperationSpec = {
6813
6062
  headerParameters: [accept],
6814
6063
  serializer: serializer$1
6815
6064
  };
6816
- const listAtScopeNextNextOperationSpec = {
6817
- path: "{nextLink}",
6818
- httpMethod: "GET",
6819
- responses: {
6820
- 200: {
6821
- bodyMapper: DeploymentListResult
6822
- },
6823
- default: {
6824
- bodyMapper: CloudError
6825
- }
6826
- },
6827
- queryParameters: [apiVersion, filter, top],
6828
- urlParameters: [$host, nextLink, scope],
6829
- headerParameters: [accept],
6830
- serializer: serializer$1
6831
- };
6832
- const listAtTenantScopeNextNextOperationSpec = {
6833
- path: "{nextLink}",
6834
- httpMethod: "GET",
6835
- responses: {
6836
- 200: {
6837
- bodyMapper: DeploymentListResult
6838
- },
6839
- default: {
6840
- bodyMapper: CloudError
6841
- }
6842
- },
6843
- queryParameters: [apiVersion, filter, top],
6844
- urlParameters: [$host, nextLink],
6845
- headerParameters: [accept],
6846
- serializer: serializer$1
6847
- };
6848
- const listAtManagementGroupScopeNextNextOperationSpec = {
6849
- path: "{nextLink}",
6850
- httpMethod: "GET",
6851
- responses: {
6852
- 200: {
6853
- bodyMapper: DeploymentListResult
6854
- },
6855
- default: {
6856
- bodyMapper: CloudError
6857
- }
6858
- },
6859
- queryParameters: [apiVersion, filter, top],
6860
- urlParameters: [$host, nextLink, groupId],
6861
- headerParameters: [accept],
6862
- serializer: serializer$1
6863
- };
6864
- const listAtSubscriptionScopeNextNextOperationSpec = {
6865
- path: "{nextLink}",
6866
- httpMethod: "GET",
6867
- responses: {
6868
- 200: {
6869
- bodyMapper: DeploymentListResult
6870
- },
6871
- default: {
6872
- bodyMapper: CloudError
6873
- }
6874
- },
6875
- queryParameters: [apiVersion, filter, top],
6876
- urlParameters: [
6877
- $host,
6878
- nextLink,
6879
- subscriptionId
6880
- ],
6881
- headerParameters: [accept],
6882
- serializer: serializer$1
6883
- };
6884
- const listByResourceGroupNextNextOperationSpec = {
6885
- path: "{nextLink}",
6886
- httpMethod: "GET",
6887
- responses: {
6888
- 200: {
6889
- bodyMapper: DeploymentListResult
6890
- },
6891
- default: {
6892
- bodyMapper: CloudError
6893
- }
6894
- },
6895
- queryParameters: [apiVersion, filter, top],
6896
- urlParameters: [
6897
- $host,
6898
- nextLink,
6899
- subscriptionId,
6900
- resourceGroupName
6901
- ],
6902
- headerParameters: [accept],
6903
- serializer: serializer$1
6904
- };
6905
6065
 
6906
6066
  /*
6907
6067
  * Copyright (c) Microsoft Corporation.
@@ -6911,7 +6071,7 @@ const listByResourceGroupNextNextOperationSpec = {
6911
6071
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
6912
6072
  */
6913
6073
  /// <reference lib="esnext.asynciterable" />
6914
- /** Class representing a Providers. */
6074
+ /** Class containing Providers operations. */
6915
6075
  class ProvidersImpl {
6916
6076
  /**
6917
6077
  * Initialize a new instance of the class Providers class.
@@ -7016,104 +6176,6 @@ class ProvidersImpl {
7016
6176
  }
7017
6177
  });
7018
6178
  }
7019
- /**
7020
- * ListNext
7021
- * @param nextLink The nextLink from the previous successful call to the List method.
7022
- * @param options The options parameters.
7023
- */
7024
- listNext(nextLink, options) {
7025
- const iter = this.listNextPagingAll(nextLink, options);
7026
- return {
7027
- next() {
7028
- return iter.next();
7029
- },
7030
- [Symbol.asyncIterator]() {
7031
- return this;
7032
- },
7033
- byPage: () => {
7034
- return this.listNextPagingPage(nextLink, options);
7035
- }
7036
- };
7037
- }
7038
- listNextPagingPage(nextLink, options) {
7039
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingPage_1() {
7040
- let result = yield tslib.__await(this._listNext(nextLink, options));
7041
- yield yield tslib.__await(result.value || []);
7042
- let continuationToken = result.nextLink;
7043
- while (continuationToken) {
7044
- result = yield tslib.__await(this._listNextNext(continuationToken, options));
7045
- continuationToken = result.nextLink;
7046
- yield yield tslib.__await(result.value || []);
7047
- }
7048
- });
7049
- }
7050
- listNextPagingAll(nextLink, options) {
7051
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingAll_1() {
7052
- var e_3, _a;
7053
- try {
7054
- for (var _b = tslib.__asyncValues(this.listNextPagingPage(nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
7055
- const page = _c.value;
7056
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
7057
- }
7058
- }
7059
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
7060
- finally {
7061
- try {
7062
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
7063
- }
7064
- finally { if (e_3) throw e_3.error; }
7065
- }
7066
- });
7067
- }
7068
- /**
7069
- * ListAtTenantScopeNext
7070
- * @param nextLink The nextLink from the previous successful call to the ListAtTenantScope method.
7071
- * @param options The options parameters.
7072
- */
7073
- listAtTenantScopeNext(nextLink, options) {
7074
- const iter = this.listAtTenantScopeNextPagingAll(nextLink, options);
7075
- return {
7076
- next() {
7077
- return iter.next();
7078
- },
7079
- [Symbol.asyncIterator]() {
7080
- return this;
7081
- },
7082
- byPage: () => {
7083
- return this.listAtTenantScopeNextPagingPage(nextLink, options);
7084
- }
7085
- };
7086
- }
7087
- listAtTenantScopeNextPagingPage(nextLink, options) {
7088
- return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopeNextPagingPage_1() {
7089
- let result = yield tslib.__await(this._listAtTenantScopeNext(nextLink, options));
7090
- yield yield tslib.__await(result.value || []);
7091
- let continuationToken = result.nextLink;
7092
- while (continuationToken) {
7093
- result = yield tslib.__await(this._listAtTenantScopeNextNext(continuationToken, options));
7094
- continuationToken = result.nextLink;
7095
- yield yield tslib.__await(result.value || []);
7096
- }
7097
- });
7098
- }
7099
- listAtTenantScopeNextPagingAll(nextLink, options) {
7100
- return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopeNextPagingAll_1() {
7101
- var e_4, _a;
7102
- try {
7103
- for (var _b = tslib.__asyncValues(this.listAtTenantScopeNextPagingPage(nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
7104
- const page = _c.value;
7105
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
7106
- }
7107
- }
7108
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
7109
- finally {
7110
- try {
7111
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
7112
- }
7113
- finally { if (e_4) throw e_4.error; }
7114
- }
7115
- });
7116
- }
7117
6179
  /**
7118
6180
  * Unregisters a subscription from a resource provider.
7119
6181
  * @param resourceProviderNamespace The namespace of the resource provider to unregister.
@@ -7193,22 +6255,6 @@ class ProvidersImpl {
7193
6255
  _listAtTenantScopeNext(nextLink, options) {
7194
6256
  return this.client.sendOperationRequest({ nextLink, options }, listAtTenantScopeNextOperationSpec$1);
7195
6257
  }
7196
- /**
7197
- * ListNextNext
7198
- * @param nextLink The nextLink from the previous successful call to the ListNext method.
7199
- * @param options The options parameters.
7200
- */
7201
- _listNextNext(nextLink, options) {
7202
- return this.client.sendOperationRequest({ nextLink, options }, listNextNextOperationSpec$1);
7203
- }
7204
- /**
7205
- * ListAtTenantScopeNextNext
7206
- * @param nextLink The nextLink from the previous successful call to the ListAtTenantScopeNext method.
7207
- * @param options The options parameters.
7208
- */
7209
- _listAtTenantScopeNextNext(nextLink, options) {
7210
- return this.client.sendOperationRequest({ nextLink, options }, listAtTenantScopeNextNextOperationSpec$1);
7211
- }
7212
6258
  }
7213
6259
  // Operation Specifications
7214
6260
  const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -7303,7 +6349,7 @@ const listOperationSpec$1 = {
7303
6349
  bodyMapper: CloudError
7304
6350
  }
7305
6351
  },
7306
- queryParameters: [apiVersion, top, expand],
6352
+ queryParameters: [apiVersion, expand],
7307
6353
  urlParameters: [$host, subscriptionId],
7308
6354
  headerParameters: [accept],
7309
6355
  serializer: serializer$2
@@ -7319,7 +6365,7 @@ const listAtTenantScopeOperationSpec$1 = {
7319
6365
  bodyMapper: CloudError
7320
6366
  }
7321
6367
  },
7322
- queryParameters: [apiVersion, top, expand],
6368
+ queryParameters: [apiVersion, expand],
7323
6369
  urlParameters: [$host],
7324
6370
  headerParameters: [accept],
7325
6371
  serializer: serializer$2
@@ -7371,7 +6417,7 @@ const listNextOperationSpec$1 = {
7371
6417
  bodyMapper: CloudError
7372
6418
  }
7373
6419
  },
7374
- queryParameters: [apiVersion, top, expand],
6420
+ queryParameters: [apiVersion, expand],
7375
6421
  urlParameters: [
7376
6422
  $host,
7377
6423
  nextLink,
@@ -7391,43 +6437,7 @@ const listAtTenantScopeNextOperationSpec$1 = {
7391
6437
  bodyMapper: CloudError
7392
6438
  }
7393
6439
  },
7394
- queryParameters: [apiVersion, top, expand],
7395
- urlParameters: [$host, nextLink],
7396
- headerParameters: [accept],
7397
- serializer: serializer$2
7398
- };
7399
- const listNextNextOperationSpec$1 = {
7400
- path: "{nextLink}",
7401
- httpMethod: "GET",
7402
- responses: {
7403
- 200: {
7404
- bodyMapper: ProviderListResult
7405
- },
7406
- default: {
7407
- bodyMapper: CloudError
7408
- }
7409
- },
7410
- queryParameters: [apiVersion, top, expand],
7411
- urlParameters: [
7412
- $host,
7413
- nextLink,
7414
- subscriptionId
7415
- ],
7416
- headerParameters: [accept],
7417
- serializer: serializer$2
7418
- };
7419
- const listAtTenantScopeNextNextOperationSpec$1 = {
7420
- path: "{nextLink}",
7421
- httpMethod: "GET",
7422
- responses: {
7423
- 200: {
7424
- bodyMapper: ProviderListResult
7425
- },
7426
- default: {
7427
- bodyMapper: CloudError
7428
- }
7429
- },
7430
- queryParameters: [apiVersion, top, expand],
6440
+ queryParameters: [apiVersion, expand],
7431
6441
  urlParameters: [$host, nextLink],
7432
6442
  headerParameters: [accept],
7433
6443
  serializer: serializer$2
@@ -7440,7 +6450,7 @@ const listAtTenantScopeNextNextOperationSpec$1 = {
7440
6450
  * Code generated by Microsoft (R) AutoRest Code Generator.
7441
6451
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7442
6452
  */
7443
- /** Class representing a ProviderResourceTypes. */
6453
+ /** Class containing ProviderResourceTypes operations. */
7444
6454
  class ProviderResourceTypesImpl {
7445
6455
  /**
7446
6456
  * Initialize a new instance of the class ProviderResourceTypes class.
@@ -7489,7 +6499,7 @@ const listOperationSpec$2 = {
7489
6499
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7490
6500
  */
7491
6501
  /// <reference lib="esnext.asynciterable" />
7492
- /** Class representing a Resources. */
6502
+ /** Class containing Resources operations. */
7493
6503
  class ResourcesImpl {
7494
6504
  /**
7495
6505
  * Initialize a new instance of the class Resources class.
@@ -7596,120 +6606,21 @@ class ResourcesImpl {
7596
6606
  });
7597
6607
  }
7598
6608
  /**
7599
- * ListByResourceGroupNext
6609
+ * Get all the resources for a resource group.
7600
6610
  * @param resourceGroupName The resource group with the resources to get.
7601
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
7602
6611
  * @param options The options parameters.
7603
6612
  */
7604
- listByResourceGroupNext(resourceGroupName, nextLink, options) {
7605
- const iter = this.listByResourceGroupNextPagingAll(resourceGroupName, nextLink, options);
7606
- return {
7607
- next() {
7608
- return iter.next();
7609
- },
7610
- [Symbol.asyncIterator]() {
7611
- return this;
7612
- },
7613
- byPage: () => {
7614
- return this.listByResourceGroupNextPagingPage(resourceGroupName, nextLink, options);
7615
- }
7616
- };
7617
- }
7618
- listByResourceGroupNextPagingPage(resourceGroupName, nextLink, options) {
7619
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupNextPagingPage_1() {
7620
- let result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, nextLink, options));
7621
- yield yield tslib.__await(result.value || []);
7622
- let continuationToken = result.nextLink;
7623
- while (continuationToken) {
7624
- result = yield tslib.__await(this._listByResourceGroupNextNext(resourceGroupName, continuationToken, options));
7625
- continuationToken = result.nextLink;
7626
- yield yield tslib.__await(result.value || []);
7627
- }
7628
- });
7629
- }
7630
- listByResourceGroupNextPagingAll(resourceGroupName, nextLink, options) {
7631
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupNextPagingAll_1() {
7632
- var e_3, _a;
7633
- try {
7634
- for (var _b = tslib.__asyncValues(this.listByResourceGroupNextPagingPage(resourceGroupName, nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
7635
- const page = _c.value;
7636
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
7637
- }
7638
- }
7639
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
7640
- finally {
7641
- try {
7642
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
7643
- }
7644
- finally { if (e_3) throw e_3.error; }
7645
- }
7646
- });
6613
+ _listByResourceGroup(resourceGroupName, options) {
6614
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
7647
6615
  }
7648
6616
  /**
7649
- * ListNext
7650
- * @param nextLink The nextLink from the previous successful call to the List method.
7651
- * @param options The options parameters.
7652
- */
7653
- listNext(nextLink, options) {
7654
- const iter = this.listNextPagingAll(nextLink, options);
7655
- return {
7656
- next() {
7657
- return iter.next();
7658
- },
7659
- [Symbol.asyncIterator]() {
7660
- return this;
7661
- },
7662
- byPage: () => {
7663
- return this.listNextPagingPage(nextLink, options);
7664
- }
7665
- };
7666
- }
7667
- listNextPagingPage(nextLink, options) {
7668
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingPage_1() {
7669
- let result = yield tslib.__await(this._listNext(nextLink, options));
7670
- yield yield tslib.__await(result.value || []);
7671
- let continuationToken = result.nextLink;
7672
- while (continuationToken) {
7673
- result = yield tslib.__await(this._listNextNext(continuationToken, options));
7674
- continuationToken = result.nextLink;
7675
- yield yield tslib.__await(result.value || []);
7676
- }
7677
- });
7678
- }
7679
- listNextPagingAll(nextLink, options) {
7680
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingAll_1() {
7681
- var e_4, _a;
7682
- try {
7683
- for (var _b = tslib.__asyncValues(this.listNextPagingPage(nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
7684
- const page = _c.value;
7685
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
7686
- }
7687
- }
7688
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
7689
- finally {
7690
- try {
7691
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
7692
- }
7693
- finally { if (e_4) throw e_4.error; }
7694
- }
7695
- });
7696
- }
7697
- /**
7698
- * Get all the resources for a resource group.
7699
- * @param resourceGroupName The resource group with the resources to get.
7700
- * @param options The options parameters.
7701
- */
7702
- _listByResourceGroup(resourceGroupName, options) {
7703
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
7704
- }
7705
- /**
7706
- * The resources to be moved must be in the same source resource group in the source subscription being
7707
- * used. The target resource group may be in a different subscription. When moving resources, both the
7708
- * source group and the target group are locked for the duration of the operation. Write and delete
7709
- * operations are blocked on the groups until the move completes.
7710
- * @param sourceResourceGroupName The name of the resource group from the source subscription
7711
- * containing the resources to be moved.
7712
- * @param parameters Parameters for moving resources.
6617
+ * The resources to be moved must be in the same source resource group in the source subscription being
6618
+ * used. The target resource group may be in a different subscription. When moving resources, both the
6619
+ * source group and the target group are locked for the duration of the operation. Write and delete
6620
+ * operations are blocked on the groups until the move completes.
6621
+ * @param sourceResourceGroupName The name of the resource group from the source subscription
6622
+ * containing the resources to be moved.
6623
+ * @param parameters Parameters for moving resources.
7713
6624
  * @param options The options parameters.
7714
6625
  */
7715
6626
  beginMoveResources(sourceResourceGroupName, parameters, options) {
@@ -7736,8 +6647,11 @@ class ResourcesImpl {
7736
6647
  }
7737
6648
  };
7738
6649
  });
7739
- const lro = new CoreClientLro(sendOperation, { sourceResourceGroupName, parameters, options }, moveResourcesOperationSpec);
7740
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
6650
+ const lro = new LroImpl(sendOperation, { sourceResourceGroupName, parameters, options }, moveResourcesOperationSpec);
6651
+ return new coreLro.LroEngine(lro, {
6652
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6653
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6654
+ });
7741
6655
  });
7742
6656
  }
7743
6657
  /**
@@ -7792,8 +6706,11 @@ class ResourcesImpl {
7792
6706
  }
7793
6707
  };
7794
6708
  });
7795
- const lro = new CoreClientLro(sendOperation, { sourceResourceGroupName, parameters, options }, validateMoveResourcesOperationSpec);
7796
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
6709
+ const lro = new LroImpl(sendOperation, { sourceResourceGroupName, parameters, options }, validateMoveResourcesOperationSpec);
6710
+ return new coreLro.LroEngine(lro, {
6711
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6712
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6713
+ });
7797
6714
  });
7798
6715
  }
7799
6716
  /**
@@ -7878,7 +6795,7 @@ class ResourcesImpl {
7878
6795
  }
7879
6796
  };
7880
6797
  });
7881
- const lro = new CoreClientLro(sendOperation, {
6798
+ const lro = new LroImpl(sendOperation, {
7882
6799
  resourceGroupName,
7883
6800
  resourceProviderNamespace,
7884
6801
  parentResourcePath,
@@ -7887,7 +6804,10 @@ class ResourcesImpl {
7887
6804
  apiVersion,
7888
6805
  options
7889
6806
  }, deleteOperationSpec$1);
7890
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
6807
+ return new coreLro.LroEngine(lro, {
6808
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6809
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6810
+ });
7891
6811
  });
7892
6812
  }
7893
6813
  /**
@@ -7943,7 +6863,7 @@ class ResourcesImpl {
7943
6863
  }
7944
6864
  };
7945
6865
  });
7946
- const lro = new CoreClientLro(sendOperation, {
6866
+ const lro = new LroImpl(sendOperation, {
7947
6867
  resourceGroupName,
7948
6868
  resourceProviderNamespace,
7949
6869
  parentResourcePath,
@@ -7953,7 +6873,10 @@ class ResourcesImpl {
7953
6873
  parameters,
7954
6874
  options
7955
6875
  }, createOrUpdateOperationSpec$1);
7956
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
6876
+ return new coreLro.LroEngine(lro, {
6877
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6878
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6879
+ });
7957
6880
  });
7958
6881
  }
7959
6882
  /**
@@ -8010,7 +6933,7 @@ class ResourcesImpl {
8010
6933
  }
8011
6934
  };
8012
6935
  });
8013
- const lro = new CoreClientLro(sendOperation, {
6936
+ const lro = new LroImpl(sendOperation, {
8014
6937
  resourceGroupName,
8015
6938
  resourceProviderNamespace,
8016
6939
  parentResourcePath,
@@ -8020,7 +6943,10 @@ class ResourcesImpl {
8020
6943
  parameters,
8021
6944
  options
8022
6945
  }, updateOperationSpec);
8023
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
6946
+ return new coreLro.LroEngine(lro, {
6947
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6948
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6949
+ });
8024
6950
  });
8025
6951
  }
8026
6952
  /**
@@ -8106,8 +7032,11 @@ class ResourcesImpl {
8106
7032
  }
8107
7033
  };
8108
7034
  });
8109
- const lro = new CoreClientLro(sendOperation, { resourceId, apiVersion, options }, deleteByIdOperationSpec);
8110
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
7035
+ const lro = new LroImpl(sendOperation, { resourceId, apiVersion, options }, deleteByIdOperationSpec);
7036
+ return new coreLro.LroEngine(lro, {
7037
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7038
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7039
+ });
8111
7040
  });
8112
7041
  }
8113
7042
  /**
@@ -8157,8 +7086,11 @@ class ResourcesImpl {
8157
7086
  }
8158
7087
  };
8159
7088
  });
8160
- const lro = new CoreClientLro(sendOperation, { resourceId, apiVersion, parameters, options }, createOrUpdateByIdOperationSpec);
8161
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
7089
+ const lro = new LroImpl(sendOperation, { resourceId, apiVersion, parameters, options }, createOrUpdateByIdOperationSpec);
7090
+ return new coreLro.LroEngine(lro, {
7091
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7092
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7093
+ });
8162
7094
  });
8163
7095
  }
8164
7096
  /**
@@ -8209,8 +7141,11 @@ class ResourcesImpl {
8209
7141
  }
8210
7142
  };
8211
7143
  });
8212
- const lro = new CoreClientLro(sendOperation, { resourceId, apiVersion, parameters, options }, updateByIdOperationSpec);
8213
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
7144
+ const lro = new LroImpl(sendOperation, { resourceId, apiVersion, parameters, options }, updateByIdOperationSpec);
7145
+ return new coreLro.LroEngine(lro, {
7146
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7147
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7148
+ });
8214
7149
  });
8215
7150
  }
8216
7151
  /**
@@ -8256,24 +7191,6 @@ class ResourcesImpl {
8256
7191
  _listNext(nextLink, options) {
8257
7192
  return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
8258
7193
  }
8259
- /**
8260
- * ListByResourceGroupNextNext
8261
- * @param resourceGroupName The resource group with the resources to get.
8262
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupNext
8263
- * method.
8264
- * @param options The options parameters.
8265
- */
8266
- _listByResourceGroupNextNext(resourceGroupName, nextLink, options) {
8267
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextNextOperationSpec$1);
8268
- }
8269
- /**
8270
- * ListNextNext
8271
- * @param nextLink The nextLink from the previous successful call to the ListNext method.
8272
- * @param options The options parameters.
8273
- */
8274
- _listNextNext(nextLink, options) {
8275
- return this.client.sendOperationRequest({ nextLink, options }, listNextNextOperationSpec$2);
8276
- }
8277
7194
  }
8278
7195
  // Operation Specifications
8279
7196
  const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -8664,57 +7581,6 @@ const listNextOperationSpec$2 = {
8664
7581
  headerParameters: [accept],
8665
7582
  serializer: serializer$4
8666
7583
  };
8667
- const listByResourceGroupNextNextOperationSpec$1 = {
8668
- path: "{nextLink}",
8669
- httpMethod: "GET",
8670
- responses: {
8671
- 200: {
8672
- bodyMapper: ResourceListResult
8673
- },
8674
- default: {
8675
- bodyMapper: CloudError
8676
- }
8677
- },
8678
- queryParameters: [
8679
- apiVersion,
8680
- filter,
8681
- top,
8682
- expand
8683
- ],
8684
- urlParameters: [
8685
- $host,
8686
- nextLink,
8687
- subscriptionId,
8688
- resourceGroupName
8689
- ],
8690
- headerParameters: [accept],
8691
- serializer: serializer$4
8692
- };
8693
- const listNextNextOperationSpec$2 = {
8694
- path: "{nextLink}",
8695
- httpMethod: "GET",
8696
- responses: {
8697
- 200: {
8698
- bodyMapper: ResourceListResult
8699
- },
8700
- default: {
8701
- bodyMapper: CloudError
8702
- }
8703
- },
8704
- queryParameters: [
8705
- apiVersion,
8706
- filter,
8707
- top,
8708
- expand
8709
- ],
8710
- urlParameters: [
8711
- $host,
8712
- nextLink,
8713
- subscriptionId
8714
- ],
8715
- headerParameters: [accept],
8716
- serializer: serializer$4
8717
- };
8718
7584
 
8719
7585
  /*
8720
7586
  * Copyright (c) Microsoft Corporation.
@@ -8724,7 +7590,7 @@ const listNextNextOperationSpec$2 = {
8724
7590
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8725
7591
  */
8726
7592
  /// <reference lib="esnext.asynciterable" />
8727
- /** Class representing a ResourceGroups. */
7593
+ /** Class containing ResourceGroups operations. */
8728
7594
  class ResourceGroupsImpl {
8729
7595
  /**
8730
7596
  * Initialize a new instance of the class ResourceGroups class.
@@ -8781,55 +7647,6 @@ class ResourceGroupsImpl {
8781
7647
  }
8782
7648
  });
8783
7649
  }
8784
- /**
8785
- * ListNext
8786
- * @param nextLink The nextLink from the previous successful call to the List method.
8787
- * @param options The options parameters.
8788
- */
8789
- listNext(nextLink, options) {
8790
- const iter = this.listNextPagingAll(nextLink, options);
8791
- return {
8792
- next() {
8793
- return iter.next();
8794
- },
8795
- [Symbol.asyncIterator]() {
8796
- return this;
8797
- },
8798
- byPage: () => {
8799
- return this.listNextPagingPage(nextLink, options);
8800
- }
8801
- };
8802
- }
8803
- listNextPagingPage(nextLink, options) {
8804
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingPage_1() {
8805
- let result = yield tslib.__await(this._listNext(nextLink, options));
8806
- yield yield tslib.__await(result.value || []);
8807
- let continuationToken = result.nextLink;
8808
- while (continuationToken) {
8809
- result = yield tslib.__await(this._listNextNext(continuationToken, options));
8810
- continuationToken = result.nextLink;
8811
- yield yield tslib.__await(result.value || []);
8812
- }
8813
- });
8814
- }
8815
- listNextPagingAll(nextLink, options) {
8816
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingAll_1() {
8817
- var e_2, _a;
8818
- try {
8819
- for (var _b = tslib.__asyncValues(this.listNextPagingPage(nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
8820
- const page = _c.value;
8821
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
8822
- }
8823
- }
8824
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
8825
- finally {
8826
- try {
8827
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
8828
- }
8829
- finally { if (e_2) throw e_2.error; }
8830
- }
8831
- });
8832
- }
8833
7650
  /**
8834
7651
  * Checks whether a resource group exists.
8835
7652
  * @param resourceGroupName The name of the resource group to check. The name is case insensitive.
@@ -8879,8 +7696,11 @@ class ResourceGroupsImpl {
8879
7696
  }
8880
7697
  };
8881
7698
  });
8882
- const lro = new CoreClientLro(sendOperation, { resourceGroupName, options }, deleteOperationSpec$2);
8883
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
7699
+ const lro = new LroImpl(sendOperation, { resourceGroupName, options }, deleteOperationSpec$2);
7700
+ return new coreLro.LroEngine(lro, {
7701
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7702
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7703
+ });
8884
7704
  });
8885
7705
  }
8886
7706
  /**
@@ -8944,8 +7764,12 @@ class ResourceGroupsImpl {
8944
7764
  }
8945
7765
  };
8946
7766
  });
8947
- const lro = new CoreClientLro(sendOperation, { resourceGroupName, parameters, options }, exportTemplateOperationSpec$1, "location");
8948
- return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
7767
+ const lro = new LroImpl(sendOperation, { resourceGroupName, parameters, options }, exportTemplateOperationSpec$1);
7768
+ return new coreLro.LroEngine(lro, {
7769
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7770
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7771
+ lroResourceLocationConfig: "location"
7772
+ });
8949
7773
  });
8950
7774
  }
8951
7775
  /**
@@ -8975,14 +7799,6 @@ class ResourceGroupsImpl {
8975
7799
  _listNext(nextLink, options) {
8976
7800
  return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$3);
8977
7801
  }
8978
- /**
8979
- * ListNextNext
8980
- * @param nextLink The nextLink from the previous successful call to the ListNext method.
8981
- * @param options The options parameters.
8982
- */
8983
- _listNextNext(nextLink, options) {
8984
- return this.client.sendOperationRequest({ nextLink, options }, listNextNextOperationSpec$3);
8985
- }
8986
7802
  }
8987
7803
  // Operation Specifications
8988
7804
  const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -9160,26 +7976,6 @@ const listNextOperationSpec$3 = {
9160
7976
  headerParameters: [accept],
9161
7977
  serializer: serializer$5
9162
7978
  };
9163
- const listNextNextOperationSpec$3 = {
9164
- path: "{nextLink}",
9165
- httpMethod: "GET",
9166
- responses: {
9167
- 200: {
9168
- bodyMapper: ResourceGroupListResult
9169
- },
9170
- default: {
9171
- bodyMapper: CloudError
9172
- }
9173
- },
9174
- queryParameters: [apiVersion, filter, top],
9175
- urlParameters: [
9176
- $host,
9177
- nextLink,
9178
- subscriptionId
9179
- ],
9180
- headerParameters: [accept],
9181
- serializer: serializer$5
9182
- };
9183
7979
 
9184
7980
  /*
9185
7981
  * Copyright (c) Microsoft Corporation.
@@ -9189,7 +7985,7 @@ const listNextNextOperationSpec$3 = {
9189
7985
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9190
7986
  */
9191
7987
  /// <reference lib="esnext.asynciterable" />
9192
- /** Class representing a TagsOperations. */
7988
+ /** Class containing TagsOperations operations. */
9193
7989
  class TagsOperationsImpl {
9194
7990
  /**
9195
7991
  * Initialize a new instance of the class TagsOperations class.
@@ -9249,55 +8045,6 @@ class TagsOperationsImpl {
9249
8045
  }
9250
8046
  });
9251
8047
  }
9252
- /**
9253
- * ListNext
9254
- * @param nextLink The nextLink from the previous successful call to the List method.
9255
- * @param options The options parameters.
9256
- */
9257
- listNext(nextLink, options) {
9258
- const iter = this.listNextPagingAll(nextLink, options);
9259
- return {
9260
- next() {
9261
- return iter.next();
9262
- },
9263
- [Symbol.asyncIterator]() {
9264
- return this;
9265
- },
9266
- byPage: () => {
9267
- return this.listNextPagingPage(nextLink, options);
9268
- }
9269
- };
9270
- }
9271
- listNextPagingPage(nextLink, options) {
9272
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingPage_1() {
9273
- let result = yield tslib.__await(this._listNext(nextLink, options));
9274
- yield yield tslib.__await(result.value || []);
9275
- let continuationToken = result.nextLink;
9276
- while (continuationToken) {
9277
- result = yield tslib.__await(this._listNextNext(continuationToken, options));
9278
- continuationToken = result.nextLink;
9279
- yield yield tslib.__await(result.value || []);
9280
- }
9281
- });
9282
- }
9283
- listNextPagingAll(nextLink, options) {
9284
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingAll_1() {
9285
- var e_2, _a;
9286
- try {
9287
- for (var _b = tslib.__asyncValues(this.listNextPagingPage(nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
9288
- const page = _c.value;
9289
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
9290
- }
9291
- }
9292
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
9293
- finally {
9294
- try {
9295
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
9296
- }
9297
- finally { if (e_2) throw e_2.error; }
9298
- }
9299
- });
9300
- }
9301
8048
  /**
9302
8049
  * This operation allows deleting a value from the list of predefined values for an existing predefined
9303
8050
  * tag name. The value being deleted must not be in use as a tag value for the given tag name for any
@@ -9396,14 +8143,6 @@ class TagsOperationsImpl {
9396
8143
  _listNext(nextLink, options) {
9397
8144
  return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$4);
9398
8145
  }
9399
- /**
9400
- * ListNextNext
9401
- * @param nextLink The nextLink from the previous successful call to the ListNext method.
9402
- * @param options The options parameters.
9403
- */
9404
- _listNextNext(nextLink, options) {
9405
- return this.client.sendOperationRequest({ nextLink, options }, listNextNextOperationSpec$4);
9406
- }
9407
8146
  }
9408
8147
  // Operation Specifications
9409
8148
  const serializer$6 = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -9585,311 +8324,42 @@ const listNextOperationSpec$4 = {
9585
8324
  default: {
9586
8325
  bodyMapper: CloudError
9587
8326
  }
9588
- },
9589
- queryParameters: [apiVersion],
9590
- urlParameters: [
9591
- $host,
9592
- nextLink,
9593
- subscriptionId
9594
- ],
9595
- headerParameters: [accept],
9596
- serializer: serializer$6
9597
- };
9598
- const listNextNextOperationSpec$4 = {
9599
- path: "{nextLink}",
9600
- httpMethod: "GET",
9601
- responses: {
9602
- 200: {
9603
- bodyMapper: TagsListResult
9604
- },
9605
- default: {
9606
- bodyMapper: CloudError
9607
- }
9608
- },
9609
- queryParameters: [apiVersion],
9610
- urlParameters: [
9611
- $host,
9612
- nextLink,
9613
- subscriptionId
9614
- ],
9615
- headerParameters: [accept],
9616
- serializer: serializer$6
9617
- };
9618
-
9619
- /*
9620
- * Copyright (c) Microsoft Corporation.
9621
- * Licensed under the MIT License.
9622
- *
9623
- * Code generated by Microsoft (R) AutoRest Code Generator.
9624
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9625
- */
9626
- /// <reference lib="esnext.asynciterable" />
9627
- /** Class representing a DeploymentOperations. */
9628
- class DeploymentOperationsImpl {
9629
- /**
9630
- * Initialize a new instance of the class DeploymentOperations class.
9631
- * @param client Reference to the service client
9632
- */
9633
- constructor(client) {
9634
- this.client = client;
9635
- }
9636
- /**
9637
- * Gets all deployments operations for a deployment.
9638
- * @param scope The resource scope.
9639
- * @param deploymentName The name of the deployment.
9640
- * @param options The options parameters.
9641
- */
9642
- listAtScope(scope, deploymentName, options) {
9643
- const iter = this.listAtScopePagingAll(scope, deploymentName, options);
9644
- return {
9645
- next() {
9646
- return iter.next();
9647
- },
9648
- [Symbol.asyncIterator]() {
9649
- return this;
9650
- },
9651
- byPage: () => {
9652
- return this.listAtScopePagingPage(scope, deploymentName, options);
9653
- }
9654
- };
9655
- }
9656
- listAtScopePagingPage(scope, deploymentName, options) {
9657
- return tslib.__asyncGenerator(this, arguments, function* listAtScopePagingPage_1() {
9658
- let result = yield tslib.__await(this._listAtScope(scope, deploymentName, options));
9659
- yield yield tslib.__await(result.value || []);
9660
- let continuationToken = result.nextLink;
9661
- while (continuationToken) {
9662
- result = yield tslib.__await(this._listAtScopeNext(scope, deploymentName, continuationToken, options));
9663
- continuationToken = result.nextLink;
9664
- yield yield tslib.__await(result.value || []);
9665
- }
9666
- });
9667
- }
9668
- listAtScopePagingAll(scope, deploymentName, options) {
9669
- return tslib.__asyncGenerator(this, arguments, function* listAtScopePagingAll_1() {
9670
- var e_1, _a;
9671
- try {
9672
- for (var _b = tslib.__asyncValues(this.listAtScopePagingPage(scope, deploymentName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
9673
- const page = _c.value;
9674
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
9675
- }
9676
- }
9677
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
9678
- finally {
9679
- try {
9680
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
9681
- }
9682
- finally { if (e_1) throw e_1.error; }
9683
- }
9684
- });
9685
- }
9686
- /**
9687
- * Gets all deployments operations for a deployment.
9688
- * @param deploymentName The name of the deployment.
9689
- * @param options The options parameters.
9690
- */
9691
- listAtTenantScope(deploymentName, options) {
9692
- const iter = this.listAtTenantScopePagingAll(deploymentName, options);
9693
- return {
9694
- next() {
9695
- return iter.next();
9696
- },
9697
- [Symbol.asyncIterator]() {
9698
- return this;
9699
- },
9700
- byPage: () => {
9701
- return this.listAtTenantScopePagingPage(deploymentName, options);
9702
- }
9703
- };
9704
- }
9705
- listAtTenantScopePagingPage(deploymentName, options) {
9706
- return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
9707
- let result = yield tslib.__await(this._listAtTenantScope(deploymentName, options));
9708
- yield yield tslib.__await(result.value || []);
9709
- let continuationToken = result.nextLink;
9710
- while (continuationToken) {
9711
- result = yield tslib.__await(this._listAtTenantScopeNext(deploymentName, continuationToken, options));
9712
- continuationToken = result.nextLink;
9713
- yield yield tslib.__await(result.value || []);
9714
- }
9715
- });
9716
- }
9717
- listAtTenantScopePagingAll(deploymentName, options) {
9718
- return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopePagingAll_1() {
9719
- var e_2, _a;
9720
- try {
9721
- for (var _b = tslib.__asyncValues(this.listAtTenantScopePagingPage(deploymentName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
9722
- const page = _c.value;
9723
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
9724
- }
9725
- }
9726
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
9727
- finally {
9728
- try {
9729
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
9730
- }
9731
- finally { if (e_2) throw e_2.error; }
9732
- }
9733
- });
9734
- }
9735
- /**
9736
- * Gets all deployments operations for a deployment.
9737
- * @param groupId The management group ID.
9738
- * @param deploymentName The name of the deployment.
9739
- * @param options The options parameters.
9740
- */
9741
- listAtManagementGroupScope(groupId, deploymentName, options) {
9742
- const iter = this.listAtManagementGroupScopePagingAll(groupId, deploymentName, options);
9743
- return {
9744
- next() {
9745
- return iter.next();
9746
- },
9747
- [Symbol.asyncIterator]() {
9748
- return this;
9749
- },
9750
- byPage: () => {
9751
- return this.listAtManagementGroupScopePagingPage(groupId, deploymentName, options);
9752
- }
9753
- };
9754
- }
9755
- listAtManagementGroupScopePagingPage(groupId, deploymentName, options) {
9756
- return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingPage_1() {
9757
- let result = yield tslib.__await(this._listAtManagementGroupScope(groupId, deploymentName, options));
9758
- yield yield tslib.__await(result.value || []);
9759
- let continuationToken = result.nextLink;
9760
- while (continuationToken) {
9761
- result = yield tslib.__await(this._listAtManagementGroupScopeNext(groupId, deploymentName, continuationToken, options));
9762
- continuationToken = result.nextLink;
9763
- yield yield tslib.__await(result.value || []);
9764
- }
9765
- });
9766
- }
9767
- listAtManagementGroupScopePagingAll(groupId, deploymentName, options) {
9768
- return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingAll_1() {
9769
- var e_3, _a;
9770
- try {
9771
- for (var _b = tslib.__asyncValues(this.listAtManagementGroupScopePagingPage(groupId, deploymentName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
9772
- const page = _c.value;
9773
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
9774
- }
9775
- }
9776
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
9777
- finally {
9778
- try {
9779
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
9780
- }
9781
- finally { if (e_3) throw e_3.error; }
9782
- }
9783
- });
9784
- }
9785
- /**
9786
- * Gets all deployments operations for a deployment.
9787
- * @param deploymentName The name of the deployment.
9788
- * @param options The options parameters.
9789
- */
9790
- listAtSubscriptionScope(deploymentName, options) {
9791
- const iter = this.listAtSubscriptionScopePagingAll(deploymentName, options);
9792
- return {
9793
- next() {
9794
- return iter.next();
9795
- },
9796
- [Symbol.asyncIterator]() {
9797
- return this;
9798
- },
9799
- byPage: () => {
9800
- return this.listAtSubscriptionScopePagingPage(deploymentName, options);
9801
- }
9802
- };
9803
- }
9804
- listAtSubscriptionScopePagingPage(deploymentName, options) {
9805
- return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingPage_1() {
9806
- let result = yield tslib.__await(this._listAtSubscriptionScope(deploymentName, options));
9807
- yield yield tslib.__await(result.value || []);
9808
- let continuationToken = result.nextLink;
9809
- while (continuationToken) {
9810
- result = yield tslib.__await(this._listAtSubscriptionScopeNext(deploymentName, continuationToken, options));
9811
- continuationToken = result.nextLink;
9812
- yield yield tslib.__await(result.value || []);
9813
- }
9814
- });
9815
- }
9816
- listAtSubscriptionScopePagingAll(deploymentName, options) {
9817
- return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingAll_1() {
9818
- var e_4, _a;
9819
- try {
9820
- for (var _b = tslib.__asyncValues(this.listAtSubscriptionScopePagingPage(deploymentName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
9821
- const page = _c.value;
9822
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
9823
- }
9824
- }
9825
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
9826
- finally {
9827
- try {
9828
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
9829
- }
9830
- finally { if (e_4) throw e_4.error; }
9831
- }
9832
- });
9833
- }
9834
- /**
9835
- * Gets all deployments operations for a deployment.
9836
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
9837
- * @param deploymentName The name of the deployment.
9838
- * @param options The options parameters.
9839
- */
9840
- list(resourceGroupName, deploymentName, options) {
9841
- const iter = this.listPagingAll(resourceGroupName, deploymentName, options);
9842
- return {
9843
- next() {
9844
- return iter.next();
9845
- },
9846
- [Symbol.asyncIterator]() {
9847
- return this;
9848
- },
9849
- byPage: () => {
9850
- return this.listPagingPage(resourceGroupName, deploymentName, options);
9851
- }
9852
- };
9853
- }
9854
- listPagingPage(resourceGroupName, deploymentName, options) {
9855
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9856
- let result = yield tslib.__await(this._list(resourceGroupName, deploymentName, options));
9857
- yield yield tslib.__await(result.value || []);
9858
- let continuationToken = result.nextLink;
9859
- while (continuationToken) {
9860
- result = yield tslib.__await(this._listNext(resourceGroupName, deploymentName, continuationToken, options));
9861
- continuationToken = result.nextLink;
9862
- yield yield tslib.__await(result.value || []);
9863
- }
9864
- });
9865
- }
9866
- listPagingAll(resourceGroupName, deploymentName, options) {
9867
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
9868
- var e_5, _a;
9869
- try {
9870
- for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, deploymentName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
9871
- const page = _c.value;
9872
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
9873
- }
9874
- }
9875
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
9876
- finally {
9877
- try {
9878
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
9879
- }
9880
- finally { if (e_5) throw e_5.error; }
9881
- }
9882
- });
8327
+ },
8328
+ queryParameters: [apiVersion],
8329
+ urlParameters: [
8330
+ $host,
8331
+ nextLink,
8332
+ subscriptionId
8333
+ ],
8334
+ headerParameters: [accept],
8335
+ serializer: serializer$6
8336
+ };
8337
+
8338
+ /*
8339
+ * Copyright (c) Microsoft Corporation.
8340
+ * Licensed under the MIT License.
8341
+ *
8342
+ * Code generated by Microsoft (R) AutoRest Code Generator.
8343
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8344
+ */
8345
+ /// <reference lib="esnext.asynciterable" />
8346
+ /** Class containing DeploymentOperations operations. */
8347
+ class DeploymentOperationsImpl {
8348
+ /**
8349
+ * Initialize a new instance of the class DeploymentOperations class.
8350
+ * @param client Reference to the service client
8351
+ */
8352
+ constructor(client) {
8353
+ this.client = client;
9883
8354
  }
9884
8355
  /**
9885
- * ListAtScopeNext
8356
+ * Gets all deployments operations for a deployment.
9886
8357
  * @param scope The resource scope.
9887
8358
  * @param deploymentName The name of the deployment.
9888
- * @param nextLink The nextLink from the previous successful call to the ListAtScope method.
9889
8359
  * @param options The options parameters.
9890
8360
  */
9891
- listAtScopeNext(scope, deploymentName, nextLink, options) {
9892
- const iter = this.listAtScopeNextPagingAll(scope, deploymentName, nextLink, options);
8361
+ listAtScope(scope, deploymentName, options) {
8362
+ const iter = this.listAtScopePagingAll(scope, deploymentName, options);
9893
8363
  return {
9894
8364
  next() {
9895
8365
  return iter.next();
@@ -9898,48 +8368,47 @@ class DeploymentOperationsImpl {
9898
8368
  return this;
9899
8369
  },
9900
8370
  byPage: () => {
9901
- return this.listAtScopeNextPagingPage(scope, deploymentName, nextLink, options);
8371
+ return this.listAtScopePagingPage(scope, deploymentName, options);
9902
8372
  }
9903
8373
  };
9904
8374
  }
9905
- listAtScopeNextPagingPage(scope, deploymentName, nextLink, options) {
9906
- return tslib.__asyncGenerator(this, arguments, function* listAtScopeNextPagingPage_1() {
9907
- let result = yield tslib.__await(this._listAtScopeNext(scope, deploymentName, nextLink, options));
8375
+ listAtScopePagingPage(scope, deploymentName, options) {
8376
+ return tslib.__asyncGenerator(this, arguments, function* listAtScopePagingPage_1() {
8377
+ let result = yield tslib.__await(this._listAtScope(scope, deploymentName, options));
9908
8378
  yield yield tslib.__await(result.value || []);
9909
8379
  let continuationToken = result.nextLink;
9910
8380
  while (continuationToken) {
9911
- result = yield tslib.__await(this._listAtScopeNextNext(scope, deploymentName, continuationToken, options));
8381
+ result = yield tslib.__await(this._listAtScopeNext(scope, deploymentName, continuationToken, options));
9912
8382
  continuationToken = result.nextLink;
9913
8383
  yield yield tslib.__await(result.value || []);
9914
8384
  }
9915
8385
  });
9916
8386
  }
9917
- listAtScopeNextPagingAll(scope, deploymentName, nextLink, options) {
9918
- return tslib.__asyncGenerator(this, arguments, function* listAtScopeNextPagingAll_1() {
9919
- var e_6, _a;
8387
+ listAtScopePagingAll(scope, deploymentName, options) {
8388
+ return tslib.__asyncGenerator(this, arguments, function* listAtScopePagingAll_1() {
8389
+ var e_1, _a;
9920
8390
  try {
9921
- for (var _b = tslib.__asyncValues(this.listAtScopeNextPagingPage(scope, deploymentName, nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
8391
+ for (var _b = tslib.__asyncValues(this.listAtScopePagingPage(scope, deploymentName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
9922
8392
  const page = _c.value;
9923
8393
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
9924
8394
  }
9925
8395
  }
9926
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
8396
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
9927
8397
  finally {
9928
8398
  try {
9929
8399
  if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
9930
8400
  }
9931
- finally { if (e_6) throw e_6.error; }
8401
+ finally { if (e_1) throw e_1.error; }
9932
8402
  }
9933
8403
  });
9934
8404
  }
9935
8405
  /**
9936
- * ListAtTenantScopeNext
8406
+ * Gets all deployments operations for a deployment.
9937
8407
  * @param deploymentName The name of the deployment.
9938
- * @param nextLink The nextLink from the previous successful call to the ListAtTenantScope method.
9939
8408
  * @param options The options parameters.
9940
8409
  */
9941
- listAtTenantScopeNext(deploymentName, nextLink, options) {
9942
- const iter = this.listAtTenantScopeNextPagingAll(deploymentName, nextLink, options);
8410
+ listAtTenantScope(deploymentName, options) {
8411
+ const iter = this.listAtTenantScopePagingAll(deploymentName, options);
9943
8412
  return {
9944
8413
  next() {
9945
8414
  return iter.next();
@@ -9948,50 +8417,48 @@ class DeploymentOperationsImpl {
9948
8417
  return this;
9949
8418
  },
9950
8419
  byPage: () => {
9951
- return this.listAtTenantScopeNextPagingPage(deploymentName, nextLink, options);
8420
+ return this.listAtTenantScopePagingPage(deploymentName, options);
9952
8421
  }
9953
8422
  };
9954
8423
  }
9955
- listAtTenantScopeNextPagingPage(deploymentName, nextLink, options) {
9956
- return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopeNextPagingPage_1() {
9957
- let result = yield tslib.__await(this._listAtTenantScopeNext(deploymentName, nextLink, options));
8424
+ listAtTenantScopePagingPage(deploymentName, options) {
8425
+ return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
8426
+ let result = yield tslib.__await(this._listAtTenantScope(deploymentName, options));
9958
8427
  yield yield tslib.__await(result.value || []);
9959
8428
  let continuationToken = result.nextLink;
9960
8429
  while (continuationToken) {
9961
- result = yield tslib.__await(this._listAtTenantScopeNextNext(deploymentName, continuationToken, options));
8430
+ result = yield tslib.__await(this._listAtTenantScopeNext(deploymentName, continuationToken, options));
9962
8431
  continuationToken = result.nextLink;
9963
8432
  yield yield tslib.__await(result.value || []);
9964
8433
  }
9965
8434
  });
9966
8435
  }
9967
- listAtTenantScopeNextPagingAll(deploymentName, nextLink, options) {
9968
- return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopeNextPagingAll_1() {
9969
- var e_7, _a;
8436
+ listAtTenantScopePagingAll(deploymentName, options) {
8437
+ return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopePagingAll_1() {
8438
+ var e_2, _a;
9970
8439
  try {
9971
- for (var _b = tslib.__asyncValues(this.listAtTenantScopeNextPagingPage(deploymentName, nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
8440
+ for (var _b = tslib.__asyncValues(this.listAtTenantScopePagingPage(deploymentName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
9972
8441
  const page = _c.value;
9973
8442
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
9974
8443
  }
9975
8444
  }
9976
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
8445
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
9977
8446
  finally {
9978
8447
  try {
9979
8448
  if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
9980
8449
  }
9981
- finally { if (e_7) throw e_7.error; }
8450
+ finally { if (e_2) throw e_2.error; }
9982
8451
  }
9983
8452
  });
9984
8453
  }
9985
8454
  /**
9986
- * ListAtManagementGroupScopeNext
8455
+ * Gets all deployments operations for a deployment.
9987
8456
  * @param groupId The management group ID.
9988
8457
  * @param deploymentName The name of the deployment.
9989
- * @param nextLink The nextLink from the previous successful call to the ListAtManagementGroupScope
9990
- * method.
9991
8458
  * @param options The options parameters.
9992
8459
  */
9993
- listAtManagementGroupScopeNext(groupId, deploymentName, nextLink, options) {
9994
- const iter = this.listAtManagementGroupScopeNextPagingAll(groupId, deploymentName, nextLink, options);
8460
+ listAtManagementGroupScope(groupId, deploymentName, options) {
8461
+ const iter = this.listAtManagementGroupScopePagingAll(groupId, deploymentName, options);
9995
8462
  return {
9996
8463
  next() {
9997
8464
  return iter.next();
@@ -10000,49 +8467,47 @@ class DeploymentOperationsImpl {
10000
8467
  return this;
10001
8468
  },
10002
8469
  byPage: () => {
10003
- return this.listAtManagementGroupScopeNextPagingPage(groupId, deploymentName, nextLink, options);
8470
+ return this.listAtManagementGroupScopePagingPage(groupId, deploymentName, options);
10004
8471
  }
10005
8472
  };
10006
8473
  }
10007
- listAtManagementGroupScopeNextPagingPage(groupId, deploymentName, nextLink, options) {
10008
- return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopeNextPagingPage_1() {
10009
- let result = yield tslib.__await(this._listAtManagementGroupScopeNext(groupId, deploymentName, nextLink, options));
8474
+ listAtManagementGroupScopePagingPage(groupId, deploymentName, options) {
8475
+ return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingPage_1() {
8476
+ let result = yield tslib.__await(this._listAtManagementGroupScope(groupId, deploymentName, options));
10010
8477
  yield yield tslib.__await(result.value || []);
10011
8478
  let continuationToken = result.nextLink;
10012
8479
  while (continuationToken) {
10013
- result = yield tslib.__await(this._listAtManagementGroupScopeNextNext(groupId, deploymentName, continuationToken, options));
8480
+ result = yield tslib.__await(this._listAtManagementGroupScopeNext(groupId, deploymentName, continuationToken, options));
10014
8481
  continuationToken = result.nextLink;
10015
8482
  yield yield tslib.__await(result.value || []);
10016
8483
  }
10017
8484
  });
10018
8485
  }
10019
- listAtManagementGroupScopeNextPagingAll(groupId, deploymentName, nextLink, options) {
10020
- return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopeNextPagingAll_1() {
10021
- var e_8, _a;
8486
+ listAtManagementGroupScopePagingAll(groupId, deploymentName, options) {
8487
+ return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingAll_1() {
8488
+ var e_3, _a;
10022
8489
  try {
10023
- for (var _b = tslib.__asyncValues(this.listAtManagementGroupScopeNextPagingPage(groupId, deploymentName, nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
8490
+ for (var _b = tslib.__asyncValues(this.listAtManagementGroupScopePagingPage(groupId, deploymentName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
10024
8491
  const page = _c.value;
10025
8492
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
10026
8493
  }
10027
8494
  }
10028
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
8495
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
10029
8496
  finally {
10030
8497
  try {
10031
8498
  if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
10032
8499
  }
10033
- finally { if (e_8) throw e_8.error; }
8500
+ finally { if (e_3) throw e_3.error; }
10034
8501
  }
10035
8502
  });
10036
8503
  }
10037
8504
  /**
10038
- * ListAtSubscriptionScopeNext
8505
+ * Gets all deployments operations for a deployment.
10039
8506
  * @param deploymentName The name of the deployment.
10040
- * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionScope
10041
- * method.
10042
8507
  * @param options The options parameters.
10043
8508
  */
10044
- listAtSubscriptionScopeNext(deploymentName, nextLink, options) {
10045
- const iter = this.listAtSubscriptionScopeNextPagingAll(deploymentName, nextLink, options);
8509
+ listAtSubscriptionScope(deploymentName, options) {
8510
+ const iter = this.listAtSubscriptionScopePagingAll(deploymentName, options);
10046
8511
  return {
10047
8512
  next() {
10048
8513
  return iter.next();
@@ -10051,49 +8516,48 @@ class DeploymentOperationsImpl {
10051
8516
  return this;
10052
8517
  },
10053
8518
  byPage: () => {
10054
- return this.listAtSubscriptionScopeNextPagingPage(deploymentName, nextLink, options);
8519
+ return this.listAtSubscriptionScopePagingPage(deploymentName, options);
10055
8520
  }
10056
8521
  };
10057
8522
  }
10058
- listAtSubscriptionScopeNextPagingPage(deploymentName, nextLink, options) {
10059
- return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopeNextPagingPage_1() {
10060
- let result = yield tslib.__await(this._listAtSubscriptionScopeNext(deploymentName, nextLink, options));
8523
+ listAtSubscriptionScopePagingPage(deploymentName, options) {
8524
+ return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingPage_1() {
8525
+ let result = yield tslib.__await(this._listAtSubscriptionScope(deploymentName, options));
10061
8526
  yield yield tslib.__await(result.value || []);
10062
8527
  let continuationToken = result.nextLink;
10063
8528
  while (continuationToken) {
10064
- result = yield tslib.__await(this._listAtSubscriptionScopeNextNext(deploymentName, continuationToken, options));
8529
+ result = yield tslib.__await(this._listAtSubscriptionScopeNext(deploymentName, continuationToken, options));
10065
8530
  continuationToken = result.nextLink;
10066
8531
  yield yield tslib.__await(result.value || []);
10067
8532
  }
10068
8533
  });
10069
8534
  }
10070
- listAtSubscriptionScopeNextPagingAll(deploymentName, nextLink, options) {
10071
- return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopeNextPagingAll_1() {
10072
- var e_9, _a;
8535
+ listAtSubscriptionScopePagingAll(deploymentName, options) {
8536
+ return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingAll_1() {
8537
+ var e_4, _a;
10073
8538
  try {
10074
- for (var _b = tslib.__asyncValues(this.listAtSubscriptionScopeNextPagingPage(deploymentName, nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
8539
+ for (var _b = tslib.__asyncValues(this.listAtSubscriptionScopePagingPage(deploymentName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
10075
8540
  const page = _c.value;
10076
8541
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
10077
8542
  }
10078
8543
  }
10079
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
8544
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
10080
8545
  finally {
10081
8546
  try {
10082
8547
  if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
10083
8548
  }
10084
- finally { if (e_9) throw e_9.error; }
8549
+ finally { if (e_4) throw e_4.error; }
10085
8550
  }
10086
8551
  });
10087
8552
  }
10088
8553
  /**
10089
- * ListNext
8554
+ * Gets all deployments operations for a deployment.
10090
8555
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
10091
8556
  * @param deploymentName The name of the deployment.
10092
- * @param nextLink The nextLink from the previous successful call to the List method.
10093
8557
  * @param options The options parameters.
10094
8558
  */
10095
- listNext(resourceGroupName, deploymentName, nextLink, options) {
10096
- const iter = this.listNextPagingAll(resourceGroupName, deploymentName, nextLink, options);
8559
+ list(resourceGroupName, deploymentName, options) {
8560
+ const iter = this.listPagingAll(resourceGroupName, deploymentName, options);
10097
8561
  return {
10098
8562
  next() {
10099
8563
  return iter.next();
@@ -10102,37 +8566,37 @@ class DeploymentOperationsImpl {
10102
8566
  return this;
10103
8567
  },
10104
8568
  byPage: () => {
10105
- return this.listNextPagingPage(resourceGroupName, deploymentName, nextLink, options);
8569
+ return this.listPagingPage(resourceGroupName, deploymentName, options);
10106
8570
  }
10107
8571
  };
10108
8572
  }
10109
- listNextPagingPage(resourceGroupName, deploymentName, nextLink, options) {
10110
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingPage_1() {
10111
- let result = yield tslib.__await(this._listNext(resourceGroupName, deploymentName, nextLink, options));
8573
+ listPagingPage(resourceGroupName, deploymentName, options) {
8574
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8575
+ let result = yield tslib.__await(this._list(resourceGroupName, deploymentName, options));
10112
8576
  yield yield tslib.__await(result.value || []);
10113
8577
  let continuationToken = result.nextLink;
10114
8578
  while (continuationToken) {
10115
- result = yield tslib.__await(this._listNextNext(resourceGroupName, deploymentName, continuationToken, options));
8579
+ result = yield tslib.__await(this._listNext(resourceGroupName, deploymentName, continuationToken, options));
10116
8580
  continuationToken = result.nextLink;
10117
8581
  yield yield tslib.__await(result.value || []);
10118
8582
  }
10119
8583
  });
10120
8584
  }
10121
- listNextPagingAll(resourceGroupName, deploymentName, nextLink, options) {
10122
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingAll_1() {
10123
- var e_10, _a;
8585
+ listPagingAll(resourceGroupName, deploymentName, options) {
8586
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
8587
+ var e_5, _a;
10124
8588
  try {
10125
- for (var _b = tslib.__asyncValues(this.listNextPagingPage(resourceGroupName, deploymentName, nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
8589
+ for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, deploymentName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
10126
8590
  const page = _c.value;
10127
8591
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
10128
8592
  }
10129
8593
  }
10130
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
8594
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
10131
8595
  finally {
10132
8596
  try {
10133
8597
  if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
10134
8598
  }
10135
- finally { if (e_10) throw e_10.error; }
8599
+ finally { if (e_5) throw e_5.error; }
10136
8600
  }
10137
8601
  });
10138
8602
  }
@@ -10277,56 +8741,6 @@ class DeploymentOperationsImpl {
10277
8741
  _listNext(resourceGroupName, deploymentName, nextLink, options) {
10278
8742
  return this.client.sendOperationRequest({ resourceGroupName, deploymentName, nextLink, options }, listNextOperationSpec$5);
10279
8743
  }
10280
- /**
10281
- * ListAtScopeNextNext
10282
- * @param scope The resource scope.
10283
- * @param deploymentName The name of the deployment.
10284
- * @param nextLink The nextLink from the previous successful call to the ListAtScopeNext method.
10285
- * @param options The options parameters.
10286
- */
10287
- _listAtScopeNextNext(scope, deploymentName, nextLink, options) {
10288
- return this.client.sendOperationRequest({ scope, deploymentName, nextLink, options }, listAtScopeNextNextOperationSpec$1);
10289
- }
10290
- /**
10291
- * ListAtTenantScopeNextNext
10292
- * @param deploymentName The name of the deployment.
10293
- * @param nextLink The nextLink from the previous successful call to the ListAtTenantScopeNext method.
10294
- * @param options The options parameters.
10295
- */
10296
- _listAtTenantScopeNextNext(deploymentName, nextLink, options) {
10297
- return this.client.sendOperationRequest({ deploymentName, nextLink, options }, listAtTenantScopeNextNextOperationSpec$2);
10298
- }
10299
- /**
10300
- * ListAtManagementGroupScopeNextNext
10301
- * @param groupId The management group ID.
10302
- * @param deploymentName The name of the deployment.
10303
- * @param nextLink The nextLink from the previous successful call to the ListAtManagementGroupScopeNext
10304
- * method.
10305
- * @param options The options parameters.
10306
- */
10307
- _listAtManagementGroupScopeNextNext(groupId, deploymentName, nextLink, options) {
10308
- return this.client.sendOperationRequest({ groupId, deploymentName, nextLink, options }, listAtManagementGroupScopeNextNextOperationSpec$1);
10309
- }
10310
- /**
10311
- * ListAtSubscriptionScopeNextNext
10312
- * @param deploymentName The name of the deployment.
10313
- * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionScopeNext
10314
- * method.
10315
- * @param options The options parameters.
10316
- */
10317
- _listAtSubscriptionScopeNextNext(deploymentName, nextLink, options) {
10318
- return this.client.sendOperationRequest({ deploymentName, nextLink, options }, listAtSubscriptionScopeNextNextOperationSpec$1);
10319
- }
10320
- /**
10321
- * ListNextNext
10322
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
10323
- * @param deploymentName The name of the deployment.
10324
- * @param nextLink The nextLink from the previous successful call to the ListNext method.
10325
- * @param options The options parameters.
10326
- */
10327
- _listNextNext(resourceGroupName, deploymentName, nextLink, options) {
10328
- return this.client.sendOperationRequest({ resourceGroupName, deploymentName, nextLink, options }, listNextNextOperationSpec$5);
10329
- }
10330
8744
  }
10331
8745
  // Operation Specifications
10332
8746
  const serializer$7 = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -10637,111 +9051,6 @@ const listNextOperationSpec$5 = {
10637
9051
  headerParameters: [accept],
10638
9052
  serializer: serializer$7
10639
9053
  };
10640
- const listAtScopeNextNextOperationSpec$1 = {
10641
- path: "{nextLink}",
10642
- httpMethod: "GET",
10643
- responses: {
10644
- 200: {
10645
- bodyMapper: DeploymentOperationsListResult
10646
- },
10647
- default: {
10648
- bodyMapper: CloudError
10649
- }
10650
- },
10651
- queryParameters: [apiVersion, top],
10652
- urlParameters: [
10653
- $host,
10654
- nextLink,
10655
- scope,
10656
- deploymentName
10657
- ],
10658
- headerParameters: [accept],
10659
- serializer: serializer$7
10660
- };
10661
- const listAtTenantScopeNextNextOperationSpec$2 = {
10662
- path: "{nextLink}",
10663
- httpMethod: "GET",
10664
- responses: {
10665
- 200: {
10666
- bodyMapper: DeploymentOperationsListResult
10667
- },
10668
- default: {
10669
- bodyMapper: CloudError
10670
- }
10671
- },
10672
- queryParameters: [apiVersion, top],
10673
- urlParameters: [
10674
- $host,
10675
- nextLink,
10676
- deploymentName
10677
- ],
10678
- headerParameters: [accept],
10679
- serializer: serializer$7
10680
- };
10681
- const listAtManagementGroupScopeNextNextOperationSpec$1 = {
10682
- path: "{nextLink}",
10683
- httpMethod: "GET",
10684
- responses: {
10685
- 200: {
10686
- bodyMapper: DeploymentOperationsListResult
10687
- },
10688
- default: {
10689
- bodyMapper: CloudError
10690
- }
10691
- },
10692
- queryParameters: [apiVersion, top],
10693
- urlParameters: [
10694
- $host,
10695
- nextLink,
10696
- deploymentName,
10697
- groupId
10698
- ],
10699
- headerParameters: [accept],
10700
- serializer: serializer$7
10701
- };
10702
- const listAtSubscriptionScopeNextNextOperationSpec$1 = {
10703
- path: "{nextLink}",
10704
- httpMethod: "GET",
10705
- responses: {
10706
- 200: {
10707
- bodyMapper: DeploymentOperationsListResult
10708
- },
10709
- default: {
10710
- bodyMapper: CloudError
10711
- }
10712
- },
10713
- queryParameters: [apiVersion, top],
10714
- urlParameters: [
10715
- $host,
10716
- nextLink,
10717
- deploymentName,
10718
- subscriptionId
10719
- ],
10720
- headerParameters: [accept],
10721
- serializer: serializer$7
10722
- };
10723
- const listNextNextOperationSpec$5 = {
10724
- path: "{nextLink}",
10725
- httpMethod: "GET",
10726
- responses: {
10727
- 200: {
10728
- bodyMapper: DeploymentOperationsListResult
10729
- },
10730
- default: {
10731
- bodyMapper: CloudError
10732
- }
10733
- },
10734
- queryParameters: [apiVersion, top],
10735
- urlParameters: [
10736
- $host,
10737
- nextLink,
10738
- deploymentName,
10739
- subscriptionId,
10740
- resourceGroupName
10741
- ],
10742
- headerParameters: [accept],
10743
- serializer: serializer$7
10744
- };
10745
9054
 
10746
9055
  /*
10747
9056
  * Copyright (c) Microsoft Corporation.
@@ -10750,9 +9059,9 @@ const listNextNextOperationSpec$5 = {
10750
9059
  * Code generated by Microsoft (R) AutoRest Code Generator.
10751
9060
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
10752
9061
  */
10753
- class ResourceManagementClientContext extends coreClient.ServiceClient {
9062
+ class ResourceManagementClient extends coreClient.ServiceClient {
10754
9063
  /**
10755
- * Initializes a new instance of the ResourceManagementClientContext class.
9064
+ * Initializes a new instance of the ResourceManagementClient class.
10756
9065
  * @param credentials Subscription credentials which uniquely identify client subscription.
10757
9066
  * @param subscriptionId The Microsoft Azure subscription ID.
10758
9067
  * @param options The parameter options
@@ -10772,7 +9081,7 @@ class ResourceManagementClientContext extends coreClient.ServiceClient {
10772
9081
  requestContentType: "application/json; charset=utf-8",
10773
9082
  credential: credentials
10774
9083
  };
10775
- const packageDetails = `azsdk-js-arm-resources/5.0.0-beta.1`;
9084
+ const packageDetails = `azsdk-js-arm-resources/5.0.0`;
10776
9085
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
10777
9086
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
10778
9087
  : `${packageDetails}`;
@@ -10788,25 +9097,6 @@ class ResourceManagementClientContext extends coreClient.ServiceClient {
10788
9097
  // Assigning values to Constant parameters
10789
9098
  this.$host = options.$host || "https://management.azure.com";
10790
9099
  this.apiVersion = options.apiVersion || "2021-04-01";
10791
- }
10792
- }
10793
-
10794
- /*
10795
- * Copyright (c) Microsoft Corporation.
10796
- * Licensed under the MIT License.
10797
- *
10798
- * Code generated by Microsoft (R) AutoRest Code Generator.
10799
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
10800
- */
10801
- class ResourceManagementClient extends ResourceManagementClientContext {
10802
- /**
10803
- * Initializes a new instance of the ResourceManagementClient class.
10804
- * @param credentials Subscription credentials which uniquely identify client subscription.
10805
- * @param subscriptionId The Microsoft Azure subscription ID.
10806
- * @param options The parameter options
10807
- */
10808
- constructor(credentials, subscriptionId, options) {
10809
- super(credentials, subscriptionId, options);
10810
9100
  this.operations = new OperationsImpl(this);
10811
9101
  this.deployments = new DeploymentsImpl(this);
10812
9102
  this.providers = new ProvidersImpl(this);
@@ -10819,5 +9109,4 @@ class ResourceManagementClient extends ResourceManagementClientContext {
10819
9109
  }
10820
9110
 
10821
9111
  exports.ResourceManagementClient = ResourceManagementClient;
10822
- exports.ResourceManagementClientContext = ResourceManagementClientContext;
10823
9112
  //# sourceMappingURL=index.js.map