@azure/arm-sitemanager 1.0.0-beta.1 → 1.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 (270) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/api/edgeContext.d.ts +3 -0
  3. package/dist/browser/api/edgeContext.js +13 -9
  4. package/dist/browser/api/edgeContext.js.map +1 -1
  5. package/dist/browser/api/sites/operations.d.ts +1 -1
  6. package/dist/browser/api/sites/operations.js +43 -20
  7. package/dist/browser/api/sites/operations.js.map +1 -1
  8. package/dist/browser/api/sitesByServiceGroup/operations.d.ts +1 -1
  9. package/dist/browser/api/sitesByServiceGroup/operations.js +43 -20
  10. package/dist/browser/api/sitesByServiceGroup/operations.js.map +1 -1
  11. package/dist/browser/api/sitesBySubscription/operations.d.ts +1 -1
  12. package/dist/browser/api/sitesBySubscription/operations.js +43 -20
  13. package/dist/browser/api/sitesBySubscription/operations.js.map +1 -1
  14. package/dist/browser/classic/sites/index.d.ts +1 -1
  15. package/dist/browser/classic/sites/index.js +3 -1
  16. package/dist/browser/classic/sites/index.js.map +1 -1
  17. package/dist/browser/classic/sitesByServiceGroup/index.d.ts +1 -1
  18. package/dist/browser/classic/sitesByServiceGroup/index.js +3 -1
  19. package/dist/browser/classic/sitesByServiceGroup/index.js.map +1 -1
  20. package/dist/browser/classic/sitesBySubscription/index.d.ts +1 -1
  21. package/dist/browser/classic/sitesBySubscription/index.js +3 -1
  22. package/dist/browser/classic/sitesBySubscription/index.js.map +1 -1
  23. package/dist/browser/edgeClient.d.ts +2 -2
  24. package/dist/browser/edgeClient.js +15 -4
  25. package/dist/browser/edgeClient.js.map +1 -1
  26. package/dist/browser/index.d.ts +2 -0
  27. package/dist/browser/index.js +2 -0
  28. package/dist/browser/index.js.map +1 -1
  29. package/dist/browser/models/models.d.ts +3 -9
  30. package/dist/browser/models/models.js +3 -8
  31. package/dist/browser/models/models.js.map +1 -1
  32. package/dist/browser/restorePollerHelpers.js +14 -16
  33. package/dist/browser/restorePollerHelpers.js.map +1 -1
  34. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +13 -0
  35. package/dist/browser/static-helpers/cloudSettingHelpers.js +29 -0
  36. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  37. package/dist/browser/static-helpers/pagingHelpers.js +31 -50
  38. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  39. package/dist/browser/static-helpers/pollingHelpers.js +14 -11
  40. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
  41. package/dist/browser/static-helpers/urlTemplate.js +4 -3
  42. package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
  43. package/dist/commonjs/api/edgeContext.d.ts +3 -0
  44. package/dist/commonjs/api/edgeContext.js +13 -9
  45. package/dist/commonjs/api/edgeContext.js.map +1 -1
  46. package/dist/commonjs/api/sites/operations.d.ts +1 -1
  47. package/dist/commonjs/api/sites/operations.js +43 -20
  48. package/dist/commonjs/api/sites/operations.js.map +1 -1
  49. package/dist/commonjs/api/sitesByServiceGroup/operations.d.ts +1 -1
  50. package/dist/commonjs/api/sitesByServiceGroup/operations.js +43 -20
  51. package/dist/commonjs/api/sitesByServiceGroup/operations.js.map +1 -1
  52. package/dist/commonjs/api/sitesBySubscription/operations.d.ts +1 -1
  53. package/dist/commonjs/api/sitesBySubscription/operations.js +43 -20
  54. package/dist/commonjs/api/sitesBySubscription/operations.js.map +1 -1
  55. package/dist/commonjs/classic/sites/index.d.ts +1 -1
  56. package/dist/commonjs/classic/sites/index.js +3 -1
  57. package/dist/commonjs/classic/sites/index.js.map +1 -1
  58. package/dist/commonjs/classic/sitesByServiceGroup/index.d.ts +1 -1
  59. package/dist/commonjs/classic/sitesByServiceGroup/index.js +3 -1
  60. package/dist/commonjs/classic/sitesByServiceGroup/index.js.map +1 -1
  61. package/dist/commonjs/classic/sitesBySubscription/index.d.ts +1 -1
  62. package/dist/commonjs/classic/sitesBySubscription/index.js +3 -1
  63. package/dist/commonjs/classic/sitesBySubscription/index.js.map +1 -1
  64. package/dist/commonjs/edgeClient.d.ts +2 -2
  65. package/dist/commonjs/edgeClient.js +20 -9
  66. package/dist/commonjs/edgeClient.js.map +1 -1
  67. package/dist/commonjs/index.d.ts +2 -0
  68. package/dist/commonjs/index.js +3 -1
  69. package/dist/commonjs/index.js.map +1 -1
  70. package/dist/commonjs/models/models.d.ts +3 -9
  71. package/dist/commonjs/models/models.js +3 -9
  72. package/dist/commonjs/models/models.js.map +1 -1
  73. package/dist/commonjs/restorePollerHelpers.js +14 -16
  74. package/dist/commonjs/restorePollerHelpers.js.map +1 -1
  75. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +13 -0
  76. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +33 -0
  77. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
  78. package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
  79. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
  80. package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
  81. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
  82. package/dist/commonjs/static-helpers/urlTemplate.js +4 -3
  83. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
  84. package/dist/commonjs/tsdoc-metadata.json +11 -11
  85. package/dist/esm/api/edgeContext.d.ts +3 -0
  86. package/dist/esm/api/edgeContext.js +13 -9
  87. package/dist/esm/api/edgeContext.js.map +1 -1
  88. package/dist/esm/api/sites/operations.d.ts +1 -1
  89. package/dist/esm/api/sites/operations.js +43 -20
  90. package/dist/esm/api/sites/operations.js.map +1 -1
  91. package/dist/esm/api/sitesByServiceGroup/operations.d.ts +1 -1
  92. package/dist/esm/api/sitesByServiceGroup/operations.js +43 -20
  93. package/dist/esm/api/sitesByServiceGroup/operations.js.map +1 -1
  94. package/dist/esm/api/sitesBySubscription/operations.d.ts +1 -1
  95. package/dist/esm/api/sitesBySubscription/operations.js +43 -20
  96. package/dist/esm/api/sitesBySubscription/operations.js.map +1 -1
  97. package/dist/esm/classic/sites/index.d.ts +1 -1
  98. package/dist/esm/classic/sites/index.js +3 -1
  99. package/dist/esm/classic/sites/index.js.map +1 -1
  100. package/dist/esm/classic/sitesByServiceGroup/index.d.ts +1 -1
  101. package/dist/esm/classic/sitesByServiceGroup/index.js +3 -1
  102. package/dist/esm/classic/sitesByServiceGroup/index.js.map +1 -1
  103. package/dist/esm/classic/sitesBySubscription/index.d.ts +1 -1
  104. package/dist/esm/classic/sitesBySubscription/index.js +3 -1
  105. package/dist/esm/classic/sitesBySubscription/index.js.map +1 -1
  106. package/dist/esm/edgeClient.d.ts +2 -2
  107. package/dist/esm/edgeClient.js +15 -4
  108. package/dist/esm/edgeClient.js.map +1 -1
  109. package/dist/esm/index.d.ts +2 -0
  110. package/dist/esm/index.js +2 -0
  111. package/dist/esm/index.js.map +1 -1
  112. package/dist/esm/models/models.d.ts +3 -9
  113. package/dist/esm/models/models.js +3 -8
  114. package/dist/esm/models/models.js.map +1 -1
  115. package/dist/esm/restorePollerHelpers.js +14 -16
  116. package/dist/esm/restorePollerHelpers.js.map +1 -1
  117. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +13 -0
  118. package/dist/esm/static-helpers/cloudSettingHelpers.js +29 -0
  119. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  120. package/dist/esm/static-helpers/pagingHelpers.js +31 -50
  121. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
  122. package/dist/esm/static-helpers/pollingHelpers.js +14 -11
  123. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
  124. package/dist/esm/static-helpers/urlTemplate.js +4 -3
  125. package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
  126. package/dist/react-native/api/edgeContext.d.ts +3 -0
  127. package/dist/react-native/api/edgeContext.js +13 -9
  128. package/dist/react-native/api/edgeContext.js.map +1 -1
  129. package/dist/react-native/api/sites/operations.d.ts +1 -1
  130. package/dist/react-native/api/sites/operations.js +43 -20
  131. package/dist/react-native/api/sites/operations.js.map +1 -1
  132. package/dist/react-native/api/sitesByServiceGroup/operations.d.ts +1 -1
  133. package/dist/react-native/api/sitesByServiceGroup/operations.js +43 -20
  134. package/dist/react-native/api/sitesByServiceGroup/operations.js.map +1 -1
  135. package/dist/react-native/api/sitesBySubscription/operations.d.ts +1 -1
  136. package/dist/react-native/api/sitesBySubscription/operations.js +43 -20
  137. package/dist/react-native/api/sitesBySubscription/operations.js.map +1 -1
  138. package/dist/react-native/classic/sites/index.d.ts +1 -1
  139. package/dist/react-native/classic/sites/index.js +3 -1
  140. package/dist/react-native/classic/sites/index.js.map +1 -1
  141. package/dist/react-native/classic/sitesByServiceGroup/index.d.ts +1 -1
  142. package/dist/react-native/classic/sitesByServiceGroup/index.js +3 -1
  143. package/dist/react-native/classic/sitesByServiceGroup/index.js.map +1 -1
  144. package/dist/react-native/classic/sitesBySubscription/index.d.ts +1 -1
  145. package/dist/react-native/classic/sitesBySubscription/index.js +3 -1
  146. package/dist/react-native/classic/sitesBySubscription/index.js.map +1 -1
  147. package/dist/react-native/edgeClient.d.ts +2 -2
  148. package/dist/react-native/edgeClient.js +15 -4
  149. package/dist/react-native/edgeClient.js.map +1 -1
  150. package/dist/react-native/index.d.ts +2 -0
  151. package/dist/react-native/index.js +2 -0
  152. package/dist/react-native/index.js.map +1 -1
  153. package/dist/react-native/models/models.d.ts +3 -9
  154. package/dist/react-native/models/models.js +3 -8
  155. package/dist/react-native/models/models.js.map +1 -1
  156. package/dist/react-native/restorePollerHelpers.js +14 -16
  157. package/dist/react-native/restorePollerHelpers.js.map +1 -1
  158. package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +13 -0
  159. package/dist/react-native/static-helpers/cloudSettingHelpers.js +29 -0
  160. package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
  161. package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
  162. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
  163. package/dist/react-native/static-helpers/pollingHelpers.js +14 -11
  164. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
  165. package/dist/react-native/static-helpers/urlTemplate.js +4 -3
  166. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
  167. package/package.json +30 -31
  168. package/CHANGELOG.md +0 -7
  169. package/dist/browser/api/edgeContext.d.ts.map +0 -1
  170. package/dist/browser/api/index.d.ts.map +0 -1
  171. package/dist/browser/api/sites/index.d.ts.map +0 -1
  172. package/dist/browser/api/sites/operations.d.ts.map +0 -1
  173. package/dist/browser/api/sites/options.d.ts.map +0 -1
  174. package/dist/browser/api/sitesByServiceGroup/index.d.ts.map +0 -1
  175. package/dist/browser/api/sitesByServiceGroup/operations.d.ts.map +0 -1
  176. package/dist/browser/api/sitesByServiceGroup/options.d.ts.map +0 -1
  177. package/dist/browser/api/sitesBySubscription/index.d.ts.map +0 -1
  178. package/dist/browser/api/sitesBySubscription/operations.d.ts.map +0 -1
  179. package/dist/browser/api/sitesBySubscription/options.d.ts.map +0 -1
  180. package/dist/browser/classic/index.d.ts.map +0 -1
  181. package/dist/browser/classic/sites/index.d.ts.map +0 -1
  182. package/dist/browser/classic/sitesByServiceGroup/index.d.ts.map +0 -1
  183. package/dist/browser/classic/sitesBySubscription/index.d.ts.map +0 -1
  184. package/dist/browser/edgeClient.d.ts.map +0 -1
  185. package/dist/browser/index.d.ts.map +0 -1
  186. package/dist/browser/logger.d.ts.map +0 -1
  187. package/dist/browser/models/index.d.ts.map +0 -1
  188. package/dist/browser/models/models.d.ts.map +0 -1
  189. package/dist/browser/restorePollerHelpers.d.ts.map +0 -1
  190. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +0 -1
  191. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +0 -1
  192. package/dist/browser/static-helpers/urlTemplate.d.ts.map +0 -1
  193. package/dist/commonjs/api/edgeContext.d.ts.map +0 -1
  194. package/dist/commonjs/api/index.d.ts.map +0 -1
  195. package/dist/commonjs/api/sites/index.d.ts.map +0 -1
  196. package/dist/commonjs/api/sites/operations.d.ts.map +0 -1
  197. package/dist/commonjs/api/sites/options.d.ts.map +0 -1
  198. package/dist/commonjs/api/sitesByServiceGroup/index.d.ts.map +0 -1
  199. package/dist/commonjs/api/sitesByServiceGroup/operations.d.ts.map +0 -1
  200. package/dist/commonjs/api/sitesByServiceGroup/options.d.ts.map +0 -1
  201. package/dist/commonjs/api/sitesBySubscription/index.d.ts.map +0 -1
  202. package/dist/commonjs/api/sitesBySubscription/operations.d.ts.map +0 -1
  203. package/dist/commonjs/api/sitesBySubscription/options.d.ts.map +0 -1
  204. package/dist/commonjs/classic/index.d.ts.map +0 -1
  205. package/dist/commonjs/classic/sites/index.d.ts.map +0 -1
  206. package/dist/commonjs/classic/sitesByServiceGroup/index.d.ts.map +0 -1
  207. package/dist/commonjs/classic/sitesBySubscription/index.d.ts.map +0 -1
  208. package/dist/commonjs/edgeClient.d.ts.map +0 -1
  209. package/dist/commonjs/index.d.ts.map +0 -1
  210. package/dist/commonjs/logger.d.ts.map +0 -1
  211. package/dist/commonjs/models/index.d.ts.map +0 -1
  212. package/dist/commonjs/models/models.d.ts.map +0 -1
  213. package/dist/commonjs/restorePollerHelpers.d.ts.map +0 -1
  214. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +0 -1
  215. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +0 -1
  216. package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +0 -1
  217. package/dist/esm/api/edgeContext.d.ts.map +0 -1
  218. package/dist/esm/api/index.d.ts.map +0 -1
  219. package/dist/esm/api/sites/index.d.ts.map +0 -1
  220. package/dist/esm/api/sites/operations.d.ts.map +0 -1
  221. package/dist/esm/api/sites/options.d.ts.map +0 -1
  222. package/dist/esm/api/sitesByServiceGroup/index.d.ts.map +0 -1
  223. package/dist/esm/api/sitesByServiceGroup/operations.d.ts.map +0 -1
  224. package/dist/esm/api/sitesByServiceGroup/options.d.ts.map +0 -1
  225. package/dist/esm/api/sitesBySubscription/index.d.ts.map +0 -1
  226. package/dist/esm/api/sitesBySubscription/operations.d.ts.map +0 -1
  227. package/dist/esm/api/sitesBySubscription/options.d.ts.map +0 -1
  228. package/dist/esm/classic/index.d.ts.map +0 -1
  229. package/dist/esm/classic/sites/index.d.ts.map +0 -1
  230. package/dist/esm/classic/sitesByServiceGroup/index.d.ts.map +0 -1
  231. package/dist/esm/classic/sitesBySubscription/index.d.ts.map +0 -1
  232. package/dist/esm/edgeClient.d.ts.map +0 -1
  233. package/dist/esm/index.d.ts.map +0 -1
  234. package/dist/esm/logger.d.ts.map +0 -1
  235. package/dist/esm/models/index.d.ts.map +0 -1
  236. package/dist/esm/models/models.d.ts.map +0 -1
  237. package/dist/esm/restorePollerHelpers.d.ts.map +0 -1
  238. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +0 -1
  239. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +0 -1
  240. package/dist/esm/static-helpers/urlTemplate.d.ts.map +0 -1
  241. package/dist/react-native/api/edgeContext.d.ts.map +0 -1
  242. package/dist/react-native/api/index.d.ts.map +0 -1
  243. package/dist/react-native/api/sites/index.d.ts.map +0 -1
  244. package/dist/react-native/api/sites/operations.d.ts.map +0 -1
  245. package/dist/react-native/api/sites/options.d.ts.map +0 -1
  246. package/dist/react-native/api/sitesByServiceGroup/index.d.ts.map +0 -1
  247. package/dist/react-native/api/sitesByServiceGroup/operations.d.ts.map +0 -1
  248. package/dist/react-native/api/sitesByServiceGroup/options.d.ts.map +0 -1
  249. package/dist/react-native/api/sitesBySubscription/index.d.ts.map +0 -1
  250. package/dist/react-native/api/sitesBySubscription/operations.d.ts.map +0 -1
  251. package/dist/react-native/api/sitesBySubscription/options.d.ts.map +0 -1
  252. package/dist/react-native/classic/index.d.ts.map +0 -1
  253. package/dist/react-native/classic/sites/index.d.ts.map +0 -1
  254. package/dist/react-native/classic/sitesByServiceGroup/index.d.ts.map +0 -1
  255. package/dist/react-native/classic/sitesBySubscription/index.d.ts.map +0 -1
  256. package/dist/react-native/edgeClient.d.ts.map +0 -1
  257. package/dist/react-native/index.d.ts.map +0 -1
  258. package/dist/react-native/logger.d.ts.map +0 -1
  259. package/dist/react-native/models/index.d.ts.map +0 -1
  260. package/dist/react-native/models/models.d.ts.map +0 -1
  261. package/dist/react-native/restorePollerHelpers.d.ts.map +0 -1
  262. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +0 -1
  263. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +0 -1
  264. package/dist/react-native/static-helpers/urlTemplate.d.ts.map +0 -1
  265. package/review/arm-sitemanager-api-sites.api.md +0 -50
  266. package/review/arm-sitemanager-api-sitesByServiceGroup.api.md +0 -50
  267. package/review/arm-sitemanager-api-sitesBySubscription.api.md +0 -50
  268. package/review/arm-sitemanager-api.api.md +0 -27
  269. package/review/arm-sitemanager-models.api.md +0 -115
  270. package/review/arm-sitemanager.api.md +0 -255
@@ -2,19 +2,18 @@
2
2
  // Licensed under the MIT License.
3
3
  import { siteSerializer, siteDeserializer, errorResponseDeserializer, siteUpdateSerializer, _siteListResultDeserializer, } from "../../models/models.js";
4
4
  import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
- import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
6
5
  import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
6
+ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
7
7
  import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
8
8
  export function _$deleteSend(context, siteName, options = { requestOptions: {} }) {
9
- var _a, _b;
10
9
  const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}", {
11
10
  subscriptionId: context.subscriptionId,
12
11
  siteName: siteName,
13
12
  "api%2Dversion": context.apiVersion,
14
13
  }, {
15
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
14
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
16
15
  });
17
- return context.path(path).delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
16
+ return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });
18
17
  }
19
18
  export async function _$deleteDeserialize(result) {
20
19
  const expectedStatuses = ["200", "204"];
@@ -36,15 +35,22 @@ export async function $delete(context, siteName, options = { requestOptions: {}
36
35
  return _$deleteDeserialize(result);
37
36
  }
38
37
  export function _updateSend(context, siteName, properties, options = { requestOptions: {} }) {
39
- var _a, _b;
40
38
  const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}", {
41
39
  subscriptionId: context.subscriptionId,
42
40
  siteName: siteName,
43
41
  "api%2Dversion": context.apiVersion,
44
42
  }, {
45
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
43
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
44
+ });
45
+ return context.path(path).patch({
46
+ ...operationOptionsToRequestParameters(options),
47
+ contentType: "application/json",
48
+ headers: {
49
+ accept: "application/json",
50
+ ...options.requestOptions?.headers,
51
+ },
52
+ body: siteUpdateSerializer(properties),
46
53
  });
47
- return context.path(path).patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: siteUpdateSerializer(properties) }));
48
54
  }
49
55
  export async function _updateDeserialize(result) {
50
56
  const expectedStatuses = ["200"];
@@ -63,18 +69,25 @@ export async function update(context, siteName, properties, options = { requestO
63
69
  export function _createOrUpdateSend(context, siteName, resource, options = {
64
70
  requestOptions: {},
65
71
  }) {
66
- var _a, _b;
67
72
  const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}", {
68
73
  subscriptionId: context.subscriptionId,
69
74
  siteName: siteName,
70
75
  "api%2Dversion": context.apiVersion,
71
76
  }, {
72
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
77
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
78
+ });
79
+ return context.path(path).put({
80
+ ...operationOptionsToRequestParameters(options),
81
+ contentType: "application/json",
82
+ headers: {
83
+ accept: "application/json",
84
+ ...options.requestOptions?.headers,
85
+ },
86
+ body: siteSerializer(resource),
73
87
  });
74
- return context.path(path).put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: siteSerializer(resource) }));
75
88
  }
76
89
  export async function _createOrUpdateDeserialize(result) {
77
- const expectedStatuses = ["200", "201"];
90
+ const expectedStatuses = ["200", "201", "202"];
78
91
  if (!expectedStatuses.includes(result.status)) {
79
92
  const error = createRestError(result);
80
93
  error.details = errorResponseDeserializer(result.body);
@@ -86,23 +99,28 @@ export async function _createOrUpdateDeserialize(result) {
86
99
  export function createOrUpdate(context, siteName, resource, options = {
87
100
  requestOptions: {},
88
101
  }) {
89
- return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201"], {
90
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
91
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
102
+ return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
103
+ updateIntervalInMs: options?.updateIntervalInMs,
104
+ abortSignal: options?.abortSignal,
92
105
  getInitialResponse: () => _createOrUpdateSend(context, siteName, resource, options),
93
106
  resourceLocationConfig: "azure-async-operation",
94
107
  });
95
108
  }
96
109
  export function _getSend(context, siteName, options = { requestOptions: {} }) {
97
- var _a, _b;
98
110
  const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}", {
99
111
  subscriptionId: context.subscriptionId,
100
112
  siteName: siteName,
101
113
  "api%2Dversion": context.apiVersion,
102
114
  }, {
103
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
115
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
116
+ });
117
+ return context.path(path).get({
118
+ ...operationOptionsToRequestParameters(options),
119
+ headers: {
120
+ accept: "application/json",
121
+ ...options.requestOptions?.headers,
122
+ },
104
123
  });
105
- return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
106
124
  }
107
125
  export async function _getDeserialize(result) {
108
126
  const expectedStatuses = ["200"];
@@ -119,14 +137,19 @@ export async function get(context, siteName, options = { requestOptions: {} }) {
119
137
  return _getDeserialize(result);
120
138
  }
121
139
  export function _listSend(context, options = { requestOptions: {} }) {
122
- var _a, _b;
123
140
  const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites{?api%2Dversion}", {
124
141
  subscriptionId: context.subscriptionId,
125
142
  "api%2Dversion": context.apiVersion,
126
143
  }, {
127
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
144
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
145
+ });
146
+ return context.path(path).get({
147
+ ...operationOptionsToRequestParameters(options),
148
+ headers: {
149
+ accept: "application/json",
150
+ ...options.requestOptions?.headers,
151
+ },
128
152
  });
129
- return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
130
153
  }
131
154
  export async function _listDeserialize(result) {
132
155
  const expectedStatuses = ["200"];
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/sitesBySubscription/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EAEzB,oBAAoB,EAEpB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAQhC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,YAAY,CAC1B,OAAe,EACf,QAAgB,EAChB,UAAmD,EAAE,cAAc,EAAE,EAAE,EAAE;;IAEzE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,2FAA2F,EAC3F;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,QAAQ,EAAE,QAAQ;QAClB,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,0CAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,iCAC3B,mCAAmC,CAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,KAEpC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,MAA6B;IACrE,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACxC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAA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,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,iCACxB,mCAAmC,CAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,KAEpC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,MAA6B;IAClE,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,2BAA2B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AAED,6CAA6C;AAC7C,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvE,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeContext as Client } from \"../index.js\";\nimport {\n Site,\n siteSerializer,\n siteDeserializer,\n errorResponseDeserializer,\n SiteUpdate,\n siteUpdateSerializer,\n _SiteListResult,\n _siteListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n SitesBySubscriptionDeleteOptionalParams,\n SitesBySubscriptionUpdateOptionalParams,\n SitesBySubscriptionCreateOrUpdateOptionalParams,\n SitesBySubscriptionGetOptionalParams,\n SitesBySubscriptionListOptionalParams,\n} from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _$deleteSend(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a Site */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport async function $delete(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, siteName, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _updateSend(\n context: Client,\n siteName: string,\n properties: SiteUpdate,\n options: SitesBySubscriptionUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: siteUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<Site> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return siteDeserializer(result.body);\n}\n\n/** Update a Site */\nexport async function update(\n context: Client,\n siteName: string,\n properties: SiteUpdate,\n options: SitesBySubscriptionUpdateOptionalParams = { requestOptions: {} },\n): Promise<Site> {\n const result = await _updateSend(context, siteName, properties, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n siteName: string,\n resource: Site,\n options: SitesBySubscriptionCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: siteSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Site> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return siteDeserializer(result.body);\n}\n\n/** Create a Site */\nexport function createOrUpdate(\n context: Client,\n siteName: string,\n resource: Site,\n options: SitesBySubscriptionCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<Site>, Site> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _createOrUpdateSend(context, siteName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<Site>, Site>;\n}\n\nexport function _getSend(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Site> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return siteDeserializer(result.body);\n}\n\n/** Get a Site */\nexport async function get(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionGetOptionalParams = { requestOptions: {} },\n): Promise<Site> {\n const result = await _getSend(context, siteName, options);\n return _getDeserialize(result);\n}\n\nexport function _listSend(\n context: Client,\n options: SitesBySubscriptionListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_SiteListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _siteListResultDeserializer(result.body);\n}\n\n/** List Site resources by subscription ID */\nexport function list(\n context: Client,\n options: SitesBySubscriptionListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Site> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/sitesBySubscription/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EAEzB,oBAAoB,EAEpB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAQxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,YAAY,CAC1B,OAAe,EACf,QAAgB,EAChB,UAAmD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEzE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,2FAA2F,EAC3F;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,QAAQ,EAAE,QAAQ;QAClB,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,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,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeContext as Client } from \"../index.js\";\nimport {\n Site,\n siteSerializer,\n siteDeserializer,\n errorResponseDeserializer,\n SiteUpdate,\n siteUpdateSerializer,\n _SiteListResult,\n _siteListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n SitesBySubscriptionDeleteOptionalParams,\n SitesBySubscriptionUpdateOptionalParams,\n SitesBySubscriptionCreateOrUpdateOptionalParams,\n SitesBySubscriptionGetOptionalParams,\n SitesBySubscriptionListOptionalParams,\n} from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _$deleteSend(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a Site */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport async function $delete(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, siteName, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _updateSend(\n context: Client,\n siteName: string,\n properties: SiteUpdate,\n options: SitesBySubscriptionUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: siteUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<Site> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return siteDeserializer(result.body);\n}\n\n/** Update a Site */\nexport async function update(\n context: Client,\n siteName: string,\n properties: SiteUpdate,\n options: SitesBySubscriptionUpdateOptionalParams = { requestOptions: {} },\n): Promise<Site> {\n const result = await _updateSend(context, siteName, properties, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n siteName: string,\n resource: Site,\n options: SitesBySubscriptionCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: siteSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Site> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return siteDeserializer(result.body);\n}\n\n/** Create a Site */\nexport function createOrUpdate(\n context: Client,\n siteName: string,\n resource: Site,\n options: SitesBySubscriptionCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<Site>, Site> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _createOrUpdateSend(context, siteName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<Site>, Site>;\n}\n\nexport function _getSend(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n siteName: siteName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Site> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return siteDeserializer(result.body);\n}\n\n/** Get a Site */\nexport async function get(\n context: Client,\n siteName: string,\n options: SitesBySubscriptionGetOptionalParams = { requestOptions: {} },\n): Promise<Site> {\n const result = await _getSend(context, siteName, options);\n return _getDeserialize(result);\n}\n\nexport function _listSend(\n context: Client,\n options: SitesBySubscriptionListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_SiteListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _siteListResultDeserializer(result.body);\n}\n\n/** List Site resources by subscription ID */\nexport function list(\n context: Client,\n options: SitesBySubscriptionListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Site> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { EdgeContext } from "../../api/edgeContext.js";
2
- import { Site, SiteUpdate } from "../../models/models.js";
3
2
  import { SitesListByResourceGroupOptionalParams, SitesDeleteOptionalParams, SitesUpdateOptionalParams, SitesCreateOrUpdateOptionalParams, SitesGetOptionalParams } from "../../api/sites/options.js";
3
+ import { Site, SiteUpdate } from "../../models/models.js";
4
4
  import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
5
  import { PollerLike, OperationState } from "@azure/core-lro";
6
6
  /** Interface representing a Sites operations. */
@@ -11,6 +11,8 @@ function _getSites(context) {
11
11
  };
12
12
  }
13
13
  export function _getSitesOperations(context) {
14
- return Object.assign({}, _getSites(context));
14
+ return {
15
+ ..._getSites(context),
16
+ };
15
17
  }
16
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sites/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EACL,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,+BAA+B,CAAC;AA4CvC,SAAS,SAAS,CAAC,OAAoB;IACrC,OAAO;QACL,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAAgD,EAChD,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC7D,MAAM,EAAE,CAAC,iBAAyB,EAAE,QAAgB,EAAE,OAAmC,EAAE,EAAE,CAC3F,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,CAAC;QACxD,MAAM,EAAE,CACN,iBAAyB,EACzB,QAAgB,EAChB,UAAsB,EACtB,OAAmC,EACnC,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC;QACtE,cAAc,EAAE,CACd,iBAAyB,EACzB,QAAgB,EAChB,QAAc,EACd,OAA2C,EAC3C,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC5E,GAAG,EAAE,CAAC,iBAAyB,EAAE,QAAgB,EAAE,OAAgC,EAAE,EAAE,CACrF,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,CAAC;KACrD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,OAAoB;IACtD,yBACK,SAAS,CAAC,OAAO,CAAC,EACrB;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeContext } from \"../../api/edgeContext.js\";\nimport { Site, SiteUpdate } from \"../../models/models.js\";\nimport {\n SitesListByResourceGroupOptionalParams,\n SitesDeleteOptionalParams,\n SitesUpdateOptionalParams,\n SitesCreateOrUpdateOptionalParams,\n SitesGetOptionalParams,\n} from \"../../api/sites/options.js\";\nimport {\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"../../api/sites/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a Sites operations. */\nexport interface SitesOperations {\n /** List Site resources by resource group */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: SitesListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<Site>;\n /** Delete a Site */\n /**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\n delete: (\n resourceGroupName: string,\n siteName: string,\n options?: SitesDeleteOptionalParams,\n ) => Promise<void>;\n /** Update a Site */\n update: (\n resourceGroupName: string,\n siteName: string,\n properties: SiteUpdate,\n options?: SitesUpdateOptionalParams,\n ) => Promise<Site>;\n /** Create a Site */\n createOrUpdate: (\n resourceGroupName: string,\n siteName: string,\n resource: Site,\n options?: SitesCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<Site>, Site>;\n /** Get a Site */\n get: (\n resourceGroupName: string,\n siteName: string,\n options?: SitesGetOptionalParams,\n ) => Promise<Site>;\n}\n\nfunction _getSites(context: EdgeContext) {\n return {\n listByResourceGroup: (\n resourceGroupName: string,\n options?: SitesListByResourceGroupOptionalParams,\n ) => listByResourceGroup(context, resourceGroupName, options),\n delete: (resourceGroupName: string, siteName: string, options?: SitesDeleteOptionalParams) =>\n $delete(context, resourceGroupName, siteName, options),\n update: (\n resourceGroupName: string,\n siteName: string,\n properties: SiteUpdate,\n options?: SitesUpdateOptionalParams,\n ) => update(context, resourceGroupName, siteName, properties, options),\n createOrUpdate: (\n resourceGroupName: string,\n siteName: string,\n resource: Site,\n options?: SitesCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, resourceGroupName, siteName, resource, options),\n get: (resourceGroupName: string, siteName: string, options?: SitesGetOptionalParams) =>\n get(context, resourceGroupName, siteName, options),\n };\n}\n\nexport function _getSitesOperations(context: EdgeContext): SitesOperations {\n return {\n ..._getSites(context),\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sites/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,+BAA+B,CAAC;AAoDvC,SAAS,SAAS,CAAC,OAAoB;IACrC,OAAO;QACL,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAAgD,EAChD,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC7D,MAAM,EAAE,CAAC,iBAAyB,EAAE,QAAgB,EAAE,OAAmC,EAAE,EAAE,CAC3F,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,CAAC;QACxD,MAAM,EAAE,CACN,iBAAyB,EACzB,QAAgB,EAChB,UAAsB,EACtB,OAAmC,EACnC,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC;QACtE,cAAc,EAAE,CACd,iBAAyB,EACzB,QAAgB,EAChB,QAAc,EACd,OAA2C,EAC3C,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC5E,GAAG,EAAE,CAAC,iBAAyB,EAAE,QAAgB,EAAE,OAAgC,EAAE,EAAE,CACrF,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,CAAC;KACrD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,OAAoB;IACtD,OAAO;QACL,GAAG,SAAS,CAAC,OAAO,CAAC;KACtB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeContext } from \"../../api/edgeContext.js\";\nimport {\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"../../api/sites/operations.js\";\nimport {\n SitesListByResourceGroupOptionalParams,\n SitesDeleteOptionalParams,\n SitesUpdateOptionalParams,\n SitesCreateOrUpdateOptionalParams,\n SitesGetOptionalParams,\n} from \"../../api/sites/options.js\";\nimport { Site, SiteUpdate } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a Sites operations. */\nexport interface SitesOperations {\n /** List Site resources by resource group */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: SitesListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<Site>;\n /** Delete a Site */\n /**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\n delete: (\n resourceGroupName: string,\n siteName: string,\n options?: SitesDeleteOptionalParams,\n ) => Promise<void>;\n /** Update a Site */\n update: (\n resourceGroupName: string,\n siteName: string,\n properties: SiteUpdate,\n options?: SitesUpdateOptionalParams,\n ) => Promise<Site>;\n /** Create a Site */\n createOrUpdate: (\n resourceGroupName: string,\n siteName: string,\n resource: Site,\n options?: SitesCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<Site>, Site>;\n /** Get a Site */\n get: (\n resourceGroupName: string,\n siteName: string,\n options?: SitesGetOptionalParams,\n ) => Promise<Site>;\n}\n\nfunction _getSites(context: EdgeContext) {\n return {\n listByResourceGroup: (\n resourceGroupName: string,\n options?: SitesListByResourceGroupOptionalParams,\n ) => listByResourceGroup(context, resourceGroupName, options),\n delete: (resourceGroupName: string, siteName: string, options?: SitesDeleteOptionalParams) =>\n $delete(context, resourceGroupName, siteName, options),\n update: (\n resourceGroupName: string,\n siteName: string,\n properties: SiteUpdate,\n options?: SitesUpdateOptionalParams,\n ) => update(context, resourceGroupName, siteName, properties, options),\n createOrUpdate: (\n resourceGroupName: string,\n siteName: string,\n resource: Site,\n options?: SitesCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, resourceGroupName, siteName, resource, options),\n get: (resourceGroupName: string, siteName: string, options?: SitesGetOptionalParams) =>\n get(context, resourceGroupName, siteName, options),\n };\n}\n\nexport function _getSitesOperations(context: EdgeContext): SitesOperations {\n return {\n ..._getSites(context),\n };\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { EdgeContext } from "../../api/edgeContext.js";
2
- import { Site, SiteUpdate } from "../../models/models.js";
3
2
  import { SitesByServiceGroupDeleteOptionalParams, SitesByServiceGroupUpdateOptionalParams, SitesByServiceGroupCreateOrUpdateOptionalParams, SitesByServiceGroupGetOptionalParams, SitesByServiceGroupListByServiceGroupOptionalParams } from "../../api/sitesByServiceGroup/options.js";
3
+ import { Site, SiteUpdate } from "../../models/models.js";
4
4
  import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
5
  import { PollerLike, OperationState } from "@azure/core-lro";
6
6
  /** Interface representing a SitesByServiceGroup operations. */
@@ -11,6 +11,8 @@ function _getSitesByServiceGroup(context) {
11
11
  };
12
12
  }
13
13
  export function _getSitesByServiceGroupOperations(context) {
14
- return Object.assign({}, _getSitesByServiceGroup(context));
14
+ return {
15
+ ..._getSitesByServiceGroup(context),
16
+ };
15
17
  }
16
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sitesByServiceGroup/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EACL,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,EACH,kBAAkB,GACnB,MAAM,6CAA6C,CAAC;AA4CrD,SAAS,uBAAuB,CAAC,OAAoB;IACnD,OAAO;QACL,MAAM,EAAE,CACN,gBAAwB,EACxB,QAAgB,EAChB,OAAiD,EACjD,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC1D,MAAM,EAAE,CACN,gBAAwB,EACxB,QAAgB,EAChB,UAAsB,EACtB,OAAiD,EACjD,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC;QACrE,cAAc,EAAE,CACd,gBAAwB,EACxB,QAAgB,EAChB,QAAc,EACd,OAAyD,EACzD,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC3E,GAAG,EAAE,CACH,gBAAwB,EACxB,QAAgB,EAChB,OAA8C,EAC9C,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,CAAC;QACtD,kBAAkB,EAAE,CAClB,gBAAwB,EACxB,OAA6D,EAC7D,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC;KAC5D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,OAAoB;IAEpB,yBACK,uBAAuB,CAAC,OAAO,CAAC,EACnC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeContext } from \"../../api/edgeContext.js\";\nimport { Site, SiteUpdate } from \"../../models/models.js\";\nimport {\n SitesByServiceGroupDeleteOptionalParams,\n SitesByServiceGroupUpdateOptionalParams,\n SitesByServiceGroupCreateOrUpdateOptionalParams,\n SitesByServiceGroupGetOptionalParams,\n SitesByServiceGroupListByServiceGroupOptionalParams,\n} from \"../../api/sitesByServiceGroup/options.js\";\nimport {\n $delete,\n update,\n createOrUpdate,\n get,\n listByServiceGroup,\n} from \"../../api/sitesByServiceGroup/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a SitesByServiceGroup operations. */\nexport interface SitesByServiceGroupOperations {\n /** delete Site at SG scope */\n /**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\n delete: (\n servicegroupName: string,\n siteName: string,\n options?: SitesByServiceGroupDeleteOptionalParams,\n ) => Promise<void>;\n /** update Site at SG scope */\n update: (\n servicegroupName: string,\n siteName: string,\n properties: SiteUpdate,\n options?: SitesByServiceGroupUpdateOptionalParams,\n ) => Promise<Site>;\n /** create or update Site at SG scope */\n createOrUpdate: (\n servicegroupName: string,\n siteName: string,\n resource: Site,\n options?: SitesByServiceGroupCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<Site>, Site>;\n /** Get Site at SG scope */\n get: (\n servicegroupName: string,\n siteName: string,\n options?: SitesByServiceGroupGetOptionalParams,\n ) => Promise<Site>;\n /** list Site at SG scope */\n listByServiceGroup: (\n servicegroupName: string,\n options?: SitesByServiceGroupListByServiceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<Site>;\n}\n\nfunction _getSitesByServiceGroup(context: EdgeContext) {\n return {\n delete: (\n servicegroupName: string,\n siteName: string,\n options?: SitesByServiceGroupDeleteOptionalParams,\n ) => $delete(context, servicegroupName, siteName, options),\n update: (\n servicegroupName: string,\n siteName: string,\n properties: SiteUpdate,\n options?: SitesByServiceGroupUpdateOptionalParams,\n ) => update(context, servicegroupName, siteName, properties, options),\n createOrUpdate: (\n servicegroupName: string,\n siteName: string,\n resource: Site,\n options?: SitesByServiceGroupCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, servicegroupName, siteName, resource, options),\n get: (\n servicegroupName: string,\n siteName: string,\n options?: SitesByServiceGroupGetOptionalParams,\n ) => get(context, servicegroupName, siteName, options),\n listByServiceGroup: (\n servicegroupName: string,\n options?: SitesByServiceGroupListByServiceGroupOptionalParams,\n ) => listByServiceGroup(context, servicegroupName, options),\n };\n}\n\nexport function _getSitesByServiceGroupOperations(\n context: EdgeContext,\n): SitesByServiceGroupOperations {\n return {\n ..._getSitesByServiceGroup(context),\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sitesByServiceGroup/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,EACH,kBAAkB,GACnB,MAAM,6CAA6C,CAAC;AAoDrD,SAAS,uBAAuB,CAAC,OAAoB;IACnD,OAAO;QACL,MAAM,EAAE,CACN,gBAAwB,EACxB,QAAgB,EAChB,OAAiD,EACjD,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC1D,MAAM,EAAE,CACN,gBAAwB,EACxB,QAAgB,EAChB,UAAsB,EACtB,OAAiD,EACjD,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC;QACrE,cAAc,EAAE,CACd,gBAAwB,EACxB,QAAgB,EAChB,QAAc,EACd,OAAyD,EACzD,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC3E,GAAG,EAAE,CACH,gBAAwB,EACxB,QAAgB,EAChB,OAA8C,EAC9C,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,CAAC;QACtD,kBAAkB,EAAE,CAClB,gBAAwB,EACxB,OAA6D,EAC7D,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC;KAC5D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,OAAoB;IAEpB,OAAO;QACL,GAAG,uBAAuB,CAAC,OAAO,CAAC;KACpC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeContext } from \"../../api/edgeContext.js\";\nimport {\n $delete,\n update,\n createOrUpdate,\n get,\n listByServiceGroup,\n} from \"../../api/sitesByServiceGroup/operations.js\";\nimport {\n SitesByServiceGroupDeleteOptionalParams,\n SitesByServiceGroupUpdateOptionalParams,\n SitesByServiceGroupCreateOrUpdateOptionalParams,\n SitesByServiceGroupGetOptionalParams,\n SitesByServiceGroupListByServiceGroupOptionalParams,\n} from \"../../api/sitesByServiceGroup/options.js\";\nimport { Site, SiteUpdate } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a SitesByServiceGroup operations. */\nexport interface SitesByServiceGroupOperations {\n /** delete Site at SG scope */\n /**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\n delete: (\n servicegroupName: string,\n siteName: string,\n options?: SitesByServiceGroupDeleteOptionalParams,\n ) => Promise<void>;\n /** update Site at SG scope */\n update: (\n servicegroupName: string,\n siteName: string,\n properties: SiteUpdate,\n options?: SitesByServiceGroupUpdateOptionalParams,\n ) => Promise<Site>;\n /** create or update Site at SG scope */\n createOrUpdate: (\n servicegroupName: string,\n siteName: string,\n resource: Site,\n options?: SitesByServiceGroupCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<Site>, Site>;\n /** Get Site at SG scope */\n get: (\n servicegroupName: string,\n siteName: string,\n options?: SitesByServiceGroupGetOptionalParams,\n ) => Promise<Site>;\n /** list Site at SG scope */\n listByServiceGroup: (\n servicegroupName: string,\n options?: SitesByServiceGroupListByServiceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<Site>;\n}\n\nfunction _getSitesByServiceGroup(context: EdgeContext) {\n return {\n delete: (\n servicegroupName: string,\n siteName: string,\n options?: SitesByServiceGroupDeleteOptionalParams,\n ) => $delete(context, servicegroupName, siteName, options),\n update: (\n servicegroupName: string,\n siteName: string,\n properties: SiteUpdate,\n options?: SitesByServiceGroupUpdateOptionalParams,\n ) => update(context, servicegroupName, siteName, properties, options),\n createOrUpdate: (\n servicegroupName: string,\n siteName: string,\n resource: Site,\n options?: SitesByServiceGroupCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, servicegroupName, siteName, resource, options),\n get: (\n servicegroupName: string,\n siteName: string,\n options?: SitesByServiceGroupGetOptionalParams,\n ) => get(context, servicegroupName, siteName, options),\n listByServiceGroup: (\n servicegroupName: string,\n options?: SitesByServiceGroupListByServiceGroupOptionalParams,\n ) => listByServiceGroup(context, servicegroupName, options),\n };\n}\n\nexport function _getSitesByServiceGroupOperations(\n context: EdgeContext,\n): SitesByServiceGroupOperations {\n return {\n ..._getSitesByServiceGroup(context),\n };\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { EdgeContext } from "../../api/edgeContext.js";
2
- import { Site, SiteUpdate } from "../../models/models.js";
3
2
  import { SitesBySubscriptionDeleteOptionalParams, SitesBySubscriptionUpdateOptionalParams, SitesBySubscriptionCreateOrUpdateOptionalParams, SitesBySubscriptionGetOptionalParams, SitesBySubscriptionListOptionalParams } from "../../api/sitesBySubscription/options.js";
3
+ import { Site, SiteUpdate } from "../../models/models.js";
4
4
  import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
5
  import { PollerLike, OperationState } from "@azure/core-lro";
6
6
  /** Interface representing a SitesBySubscription operations. */
@@ -11,6 +11,8 @@ function _getSitesBySubscription(context) {
11
11
  };
12
12
  }
13
13
  export function _getSitesBySubscriptionOperations(context) {
14
- return Object.assign({}, _getSitesBySubscription(context));
14
+ return {
15
+ ..._getSitesBySubscription(context),
16
+ };
15
17
  }
16
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sitesBySubscription/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EACL,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,EACH,IAAI,GACL,MAAM,6CAA6C,CAAC;AA+BrD,SAAS,uBAAuB,CAAC,OAAoB;IACnD,OAAO;QACL,MAAM,EAAE,CAAC,QAAgB,EAAE,OAAiD,EAAE,EAAE,CAC9E,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACrC,MAAM,EAAE,CACN,QAAgB,EAChB,UAAsB,EACtB,OAAiD,EACjD,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC;QACnD,cAAc,EAAE,CACd,QAAgB,EAChB,QAAc,EACd,OAAyD,EACzD,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC;QACzD,GAAG,EAAE,CAAC,QAAgB,EAAE,OAA8C,EAAE,EAAE,CACxE,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACjC,IAAI,EAAE,CAAC,OAA+C,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KAClF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,OAAoB;IAEpB,yBACK,uBAAuB,CAAC,OAAO,CAAC,EACnC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeContext } from \"../../api/edgeContext.js\";\nimport { Site, SiteUpdate } from \"../../models/models.js\";\nimport {\n SitesBySubscriptionDeleteOptionalParams,\n SitesBySubscriptionUpdateOptionalParams,\n SitesBySubscriptionCreateOrUpdateOptionalParams,\n SitesBySubscriptionGetOptionalParams,\n SitesBySubscriptionListOptionalParams,\n} from \"../../api/sitesBySubscription/options.js\";\nimport {\n $delete,\n update,\n createOrUpdate,\n get,\n list,\n} from \"../../api/sitesBySubscription/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a SitesBySubscription operations. */\nexport interface SitesBySubscriptionOperations {\n /** Delete a Site */\n /**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\n delete: (siteName: string, options?: SitesBySubscriptionDeleteOptionalParams) => Promise<void>;\n /** Update a Site */\n update: (\n siteName: string,\n properties: SiteUpdate,\n options?: SitesBySubscriptionUpdateOptionalParams,\n ) => Promise<Site>;\n /** Create a Site */\n createOrUpdate: (\n siteName: string,\n resource: Site,\n options?: SitesBySubscriptionCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<Site>, Site>;\n /** Get a Site */\n get: (siteName: string, options?: SitesBySubscriptionGetOptionalParams) => Promise<Site>;\n /** List Site resources by subscription ID */\n list: (options?: SitesBySubscriptionListOptionalParams) => PagedAsyncIterableIterator<Site>;\n}\n\nfunction _getSitesBySubscription(context: EdgeContext) {\n return {\n delete: (siteName: string, options?: SitesBySubscriptionDeleteOptionalParams) =>\n $delete(context, siteName, options),\n update: (\n siteName: string,\n properties: SiteUpdate,\n options?: SitesBySubscriptionUpdateOptionalParams,\n ) => update(context, siteName, properties, options),\n createOrUpdate: (\n siteName: string,\n resource: Site,\n options?: SitesBySubscriptionCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, siteName, resource, options),\n get: (siteName: string, options?: SitesBySubscriptionGetOptionalParams) =>\n get(context, siteName, options),\n list: (options?: SitesBySubscriptionListOptionalParams) => list(context, options),\n };\n}\n\nexport function _getSitesBySubscriptionOperations(\n context: EdgeContext,\n): SitesBySubscriptionOperations {\n return {\n ..._getSitesBySubscription(context),\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sitesBySubscription/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,EACH,IAAI,GACL,MAAM,6CAA6C,CAAC;AAuCrD,SAAS,uBAAuB,CAAC,OAAoB;IACnD,OAAO;QACL,MAAM,EAAE,CAAC,QAAgB,EAAE,OAAiD,EAAE,EAAE,CAC9E,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACrC,MAAM,EAAE,CACN,QAAgB,EAChB,UAAsB,EACtB,OAAiD,EACjD,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC;QACnD,cAAc,EAAE,CACd,QAAgB,EAChB,QAAc,EACd,OAAyD,EACzD,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC;QACzD,GAAG,EAAE,CAAC,QAAgB,EAAE,OAA8C,EAAE,EAAE,CACxE,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACjC,IAAI,EAAE,CAAC,OAA+C,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KAClF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,OAAoB;IAEpB,OAAO;QACL,GAAG,uBAAuB,CAAC,OAAO,CAAC;KACpC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EdgeContext } from \"../../api/edgeContext.js\";\nimport {\n $delete,\n update,\n createOrUpdate,\n get,\n list,\n} from \"../../api/sitesBySubscription/operations.js\";\nimport {\n SitesBySubscriptionDeleteOptionalParams,\n SitesBySubscriptionUpdateOptionalParams,\n SitesBySubscriptionCreateOrUpdateOptionalParams,\n SitesBySubscriptionGetOptionalParams,\n SitesBySubscriptionListOptionalParams,\n} from \"../../api/sitesBySubscription/options.js\";\nimport { Site, SiteUpdate } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a SitesBySubscription operations. */\nexport interface SitesBySubscriptionOperations {\n /** Delete a Site */\n /**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\n delete: (siteName: string, options?: SitesBySubscriptionDeleteOptionalParams) => Promise<void>;\n /** Update a Site */\n update: (\n siteName: string,\n properties: SiteUpdate,\n options?: SitesBySubscriptionUpdateOptionalParams,\n ) => Promise<Site>;\n /** Create a Site */\n createOrUpdate: (\n siteName: string,\n resource: Site,\n options?: SitesBySubscriptionCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<Site>, Site>;\n /** Get a Site */\n get: (siteName: string, options?: SitesBySubscriptionGetOptionalParams) => Promise<Site>;\n /** List Site resources by subscription ID */\n list: (options?: SitesBySubscriptionListOptionalParams) => PagedAsyncIterableIterator<Site>;\n}\n\nfunction _getSitesBySubscription(context: EdgeContext) {\n return {\n delete: (siteName: string, options?: SitesBySubscriptionDeleteOptionalParams) =>\n $delete(context, siteName, options),\n update: (\n siteName: string,\n properties: SiteUpdate,\n options?: SitesBySubscriptionUpdateOptionalParams,\n ) => update(context, siteName, properties, options),\n createOrUpdate: (\n siteName: string,\n resource: Site,\n options?: SitesBySubscriptionCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, siteName, resource, options),\n get: (siteName: string, options?: SitesBySubscriptionGetOptionalParams) =>\n get(context, siteName, options),\n list: (options?: SitesBySubscriptionListOptionalParams) => list(context, options),\n };\n}\n\nexport function _getSitesBySubscriptionOperations(\n context: EdgeContext,\n): SitesBySubscriptionOperations {\n return {\n ..._getSitesBySubscription(context),\n };\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { EdgeClientOptionalParams } from "./api/index.js";
2
+ import { SitesOperations } from "./classic/sites/index.js";
2
3
  import { SitesByServiceGroupOperations } from "./classic/sitesByServiceGroup/index.js";
3
4
  import { SitesBySubscriptionOperations } from "./classic/sitesBySubscription/index.js";
4
- import { SitesOperations } from "./classic/sites/index.js";
5
- import { Pipeline } from "@azure/core-rest-pipeline";
6
5
  import { TokenCredential } from "@azure/core-auth";
6
+ import { Pipeline } from "@azure/core-rest-pipeline";
7
7
  export { EdgeClientOptionalParams } from "./api/edgeContext.js";
8
8
  export declare class EdgeClient {
9
9
  private _client;
@@ -1,22 +1,33 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  import { createEdge } from "./api/index.js";
4
+ import { _getSitesOperations } from "./classic/sites/index.js";
4
5
  import { _getSitesByServiceGroupOperations, } from "./classic/sitesByServiceGroup/index.js";
5
6
  import { _getSitesBySubscriptionOperations, } from "./classic/sitesBySubscription/index.js";
6
- import { _getSitesOperations } from "./classic/sites/index.js";
7
7
  export class EdgeClient {
8
+ _client;
9
+ /** The pipeline used by this client to make requests */
10
+ pipeline;
8
11
  /** Azure Edge Sites Resource Provider management API. */
9
12
  constructor(credential, subscriptionId, options = {}) {
10
- var _a;
11
- const prefixFromOptions = (_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix;
13
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
12
14
  const userAgentPrefix = prefixFromOptions
13
15
  ? `${prefixFromOptions} azsdk-js-client`
14
16
  : `azsdk-js-client`;
15
- this._client = createEdge(credential, subscriptionId, Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix } }));
17
+ this._client = createEdge(credential, subscriptionId, {
18
+ ...options,
19
+ userAgentOptions: { userAgentPrefix },
20
+ });
16
21
  this.pipeline = this._client.pipeline;
17
22
  this.sitesByServiceGroup = _getSitesByServiceGroupOperations(this._client);
18
23
  this.sitesBySubscription = _getSitesBySubscriptionOperations(this._client);
19
24
  this.sites = _getSitesOperations(this._client);
20
25
  }
26
+ /** The operation groups for sitesByServiceGroup */
27
+ sitesByServiceGroup;
28
+ /** The operation groups for sitesBySubscription */
29
+ sitesBySubscription;
30
+ /** The operation groups for sites */
31
+ sites;
21
32
  }
22
33
  //# sourceMappingURL=edgeClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"edgeClient.js","sourceRoot":"","sources":["../../src/edgeClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAyC,MAAM,gBAAgB,CAAC;AACnF,OAAO,EAEL,iCAAiC,GAClC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,iCAAiC,GAClC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAmB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAMhF,MAAM,OAAO,UAAU;IAKrB,yDAAyD;IACzD,YACE,UAA2B,EAC3B,cAAsB,EACtB,UAAoC,EAAE;;QAEtC,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;QACrE,MAAM,eAAe,GAAG,iBAAiB;YACvC,CAAC,CAAC,GAAG,iBAAiB,kBAAkB;YACxC,CAAC,CAAC,iBAAiB,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,UAAU,EAAE,cAAc,kCAC/C,OAAO,KACV,gBAAgB,EAAE,EAAE,eAAe,EAAE,IACrC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,mBAAmB,GAAG,iCAAiC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3E,IAAI,CAAC,mBAAmB,GAAG,iCAAiC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3E,IAAI,CAAC,KAAK,GAAG,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;CAQF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createEdge, EdgeContext, EdgeClientOptionalParams } from \"./api/index.js\";\nimport {\n SitesByServiceGroupOperations,\n _getSitesByServiceGroupOperations,\n} from \"./classic/sitesByServiceGroup/index.js\";\nimport {\n SitesBySubscriptionOperations,\n _getSitesBySubscriptionOperations,\n} from \"./classic/sitesBySubscription/index.js\";\nimport { SitesOperations, _getSitesOperations } from \"./classic/sites/index.js\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport { EdgeClientOptionalParams } from \"./api/edgeContext.js\";\n\nexport class EdgeClient {\n private _client: EdgeContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n /** Azure Edge Sites Resource Provider management API. */\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: EdgeClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createEdge(credential, subscriptionId, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.sitesByServiceGroup = _getSitesByServiceGroupOperations(this._client);\n this.sitesBySubscription = _getSitesBySubscriptionOperations(this._client);\n this.sites = _getSitesOperations(this._client);\n }\n\n /** The operation groups for sitesByServiceGroup */\n public readonly sitesByServiceGroup: SitesByServiceGroupOperations;\n /** The operation groups for sitesBySubscription */\n public readonly sitesBySubscription: SitesBySubscriptionOperations;\n /** The operation groups for sites */\n public readonly sites: SitesOperations;\n}\n"]}
1
+ {"version":3,"file":"edgeClient.js","sourceRoot":"","sources":["../../src/edgeClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAyC,MAAM,gBAAgB,CAAC;AACnF,OAAO,EAAmB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAEL,iCAAiC,GAClC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,iCAAiC,GAClC,MAAM,wCAAwC,CAAC;AAMhD,MAAM,OAAO,UAAU;IACb,OAAO,CAAc;IAC7B,wDAAwD;IACxC,QAAQ,CAAW;IAEnC,yDAAyD;IACzD,YACE,UAA2B,EAC3B,cAAsB,EACtB,UAAoC,EAAE;QAEtC,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;QACrE,MAAM,eAAe,GAAG,iBAAiB;YACvC,CAAC,CAAC,GAAG,iBAAiB,kBAAkB;YACxC,CAAC,CAAC,iBAAiB,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,UAAU,EAAE,cAAc,EAAE;YACpD,GAAG,OAAO;YACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;SACtC,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,mBAAmB,GAAG,iCAAiC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3E,IAAI,CAAC,mBAAmB,GAAG,iCAAiC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3E,IAAI,CAAC,KAAK,GAAG,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IAED,mDAAmD;IACnC,mBAAmB,CAAgC;IACnE,mDAAmD;IACnC,mBAAmB,CAAgC;IACnE,qCAAqC;IACrB,KAAK,CAAkB;CACxC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createEdge, EdgeContext, EdgeClientOptionalParams } from \"./api/index.js\";\nimport { SitesOperations, _getSitesOperations } from \"./classic/sites/index.js\";\nimport {\n SitesByServiceGroupOperations,\n _getSitesByServiceGroupOperations,\n} from \"./classic/sitesByServiceGroup/index.js\";\nimport {\n SitesBySubscriptionOperations,\n _getSitesBySubscriptionOperations,\n} from \"./classic/sitesBySubscription/index.js\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\n\nexport { EdgeClientOptionalParams } from \"./api/edgeContext.js\";\n\nexport class EdgeClient {\n private _client: EdgeContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n /** Azure Edge Sites Resource Provider management API. */\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: EdgeClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createEdge(credential, subscriptionId, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.sitesByServiceGroup = _getSitesByServiceGroupOperations(this._client);\n this.sitesBySubscription = _getSitesBySubscriptionOperations(this._client);\n this.sites = _getSitesOperations(this._client);\n }\n\n /** The operation groups for sitesByServiceGroup */\n public readonly sitesByServiceGroup: SitesByServiceGroupOperations;\n /** The operation groups for sitesBySubscription */\n public readonly sitesBySubscription: SitesBySubscriptionOperations;\n /** The operation groups for sites */\n public readonly sites: SitesOperations;\n}\n"]}
@@ -1,3 +1,4 @@
1
+ import { AzureClouds, AzureSupportedClouds } from "./static-helpers/cloudSettingHelpers.js";
1
2
  import { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
2
3
  export { EdgeClient } from "./edgeClient.js";
3
4
  export { restorePoller, RestorePollerOptions } from "./restorePollerHelpers.js";
@@ -8,4 +9,5 @@ export { SitesByServiceGroupDeleteOptionalParams, SitesByServiceGroupUpdateOptio
8
9
  export { SitesBySubscriptionDeleteOptionalParams, SitesBySubscriptionUpdateOptionalParams, SitesBySubscriptionCreateOrUpdateOptionalParams, SitesBySubscriptionGetOptionalParams, SitesBySubscriptionListOptionalParams, } from "./api/sitesBySubscription/index.js";
9
10
  export { SitesOperations, SitesByServiceGroupOperations, SitesBySubscriptionOperations, } from "./classic/index.js";
10
11
  export { PageSettings, ContinuablePage, PagedAsyncIterableIterator };
12
+ export { AzureClouds, AzureSupportedClouds };
11
13
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,8 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
+ import { AzureClouds } from "./static-helpers/cloudSettingHelpers.js";
3
4
  export { EdgeClient } from "./edgeClient.js";
4
5
  export { restorePoller } from "./restorePollerHelpers.js";
5
6
  export { KnownResourceProvisioningState, KnownCreatedByType, KnownVersions, } from "./models/index.js";
7
+ export { AzureClouds };
6
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAwB,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAIL,8BAA8B,EAK9B,kBAAkB,EAOlB,aAAa,GACd,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\n\nexport { EdgeClient } from \"./edgeClient.js\";\nexport { restorePoller, RestorePollerOptions } from \"./restorePollerHelpers.js\";\nexport {\n Site,\n SiteProperties,\n SiteAddressProperties,\n KnownResourceProvisioningState,\n ResourceProvisioningState,\n ProxyResource,\n Resource,\n SystemData,\n KnownCreatedByType,\n CreatedByType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n SiteUpdate,\n SiteUpdateProperties,\n KnownVersions,\n} from \"./models/index.js\";\nexport { EdgeClientOptionalParams } from \"./api/index.js\";\nexport {\n SitesListByResourceGroupOptionalParams,\n SitesDeleteOptionalParams,\n SitesUpdateOptionalParams,\n SitesCreateOrUpdateOptionalParams,\n SitesGetOptionalParams,\n} from \"./api/sites/index.js\";\nexport {\n SitesByServiceGroupDeleteOptionalParams,\n SitesByServiceGroupUpdateOptionalParams,\n SitesByServiceGroupCreateOrUpdateOptionalParams,\n SitesByServiceGroupGetOptionalParams,\n SitesByServiceGroupListByServiceGroupOptionalParams,\n} from \"./api/sitesByServiceGroup/index.js\";\nexport {\n SitesBySubscriptionDeleteOptionalParams,\n SitesBySubscriptionUpdateOptionalParams,\n SitesBySubscriptionCreateOrUpdateOptionalParams,\n SitesBySubscriptionGetOptionalParams,\n SitesBySubscriptionListOptionalParams,\n} from \"./api/sitesBySubscription/index.js\";\nexport {\n SitesOperations,\n SitesByServiceGroupOperations,\n SitesBySubscriptionOperations,\n} from \"./classic/index.js\";\nexport { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,WAAW,EAAwB,MAAM,yCAAyC,CAAC;AAO5F,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAwB,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAIL,8BAA8B,EAK9B,kBAAkB,EAOlB,aAAa,GACd,MAAM,mBAAmB,CAAC;AA6B3B,OAAO,EAAE,WAAW,EAAwB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AzureClouds, AzureSupportedClouds } from \"./static-helpers/cloudSettingHelpers.js\";\nimport {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\n\nexport { EdgeClient } from \"./edgeClient.js\";\nexport { restorePoller, RestorePollerOptions } from \"./restorePollerHelpers.js\";\nexport {\n Site,\n SiteProperties,\n SiteAddressProperties,\n KnownResourceProvisioningState,\n ResourceProvisioningState,\n ProxyResource,\n Resource,\n SystemData,\n KnownCreatedByType,\n CreatedByType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n SiteUpdate,\n SiteUpdateProperties,\n KnownVersions,\n} from \"./models/index.js\";\nexport { EdgeClientOptionalParams } from \"./api/index.js\";\nexport {\n SitesListByResourceGroupOptionalParams,\n SitesDeleteOptionalParams,\n SitesUpdateOptionalParams,\n SitesCreateOrUpdateOptionalParams,\n SitesGetOptionalParams,\n} from \"./api/sites/index.js\";\nexport {\n SitesByServiceGroupDeleteOptionalParams,\n SitesByServiceGroupUpdateOptionalParams,\n SitesByServiceGroupCreateOrUpdateOptionalParams,\n SitesByServiceGroupGetOptionalParams,\n SitesByServiceGroupListByServiceGroupOptionalParams,\n} from \"./api/sitesByServiceGroup/index.js\";\nexport {\n SitesBySubscriptionDeleteOptionalParams,\n SitesBySubscriptionUpdateOptionalParams,\n SitesBySubscriptionCreateOrUpdateOptionalParams,\n SitesBySubscriptionGetOptionalParams,\n SitesBySubscriptionListOptionalParams,\n} from \"./api/sitesBySubscription/index.js\";\nexport {\n SitesOperations,\n SitesByServiceGroupOperations,\n SitesBySubscriptionOperations,\n} from \"./classic/index.js\";\nexport { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\nexport { AzureClouds, AzureSupportedClouds };\n"]}
@@ -139,13 +139,9 @@ export interface ErrorAdditionalInfo {
139
139
  /** The additional info type. */
140
140
  readonly type?: string;
141
141
  /** The additional info. */
142
- readonly info?: Record<string, any>;
142
+ readonly info?: any;
143
143
  }
144
144
  export declare function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo;
145
- /** model interface _ErrorAdditionalInfoInfo */
146
- export interface _ErrorAdditionalInfoInfo {
147
- }
148
- export declare function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo;
149
145
  /** The type used for update operations of the Site. */
150
146
  export interface SiteUpdate {
151
147
  /** The updatable properties of the Site. */
@@ -176,9 +172,7 @@ export declare function siteArraySerializer(result: Array<Site>): any[];
176
172
  export declare function siteArrayDeserializer(result: Array<Site>): any[];
177
173
  /** Supported API Versions */
178
174
  export declare enum KnownVersions {
179
- /** API Version - 2024-02-01-preview */
180
- V20240201Preview = "2024-02-01-preview",
181
- /** API Version - 2025-03-01-preview */
182
- V20250301Preview = "2025-03-01-preview"
175
+ /** API Version - 2025-06-01 */
176
+ V20250601 = "2025-06-01"
183
177
  }
184
178
  //# sourceMappingURL=models.d.ts.map
@@ -150,12 +150,9 @@ export function errorAdditionalInfoArrayDeserializer(result) {
150
150
  export function errorAdditionalInfoDeserializer(item) {
151
151
  return {
152
152
  type: item["type"],
153
- info: !item["info"] ? item["info"] : _errorAdditionalInfoInfoDeserializer(item["info"]),
153
+ info: item["info"],
154
154
  };
155
155
  }
156
- export function _errorAdditionalInfoInfoDeserializer(item) {
157
- return item;
158
- }
159
156
  export function siteUpdateSerializer(item) {
160
157
  return {
161
158
  properties: !item["properties"]
@@ -192,9 +189,7 @@ export function siteArrayDeserializer(result) {
192
189
  /** Supported API Versions */
193
190
  export var KnownVersions;
194
191
  (function (KnownVersions) {
195
- /** API Version - 2024-02-01-preview */
196
- KnownVersions["V20240201Preview"] = "2024-02-01-preview";
197
- /** API Version - 2025-03-01-preview */
198
- KnownVersions["V20250301Preview"] = "2025-03-01-preview";
192
+ /** API Version - 2025-06-01 */
193
+ KnownVersions["V20250601"] = "2025-06-01";
199
194
  })(KnownVersions || (KnownVersions = {}));
200
195
  //# sourceMappingURL=models.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,cAAc,CAAC,IAAU;IACvC,OAAO;QACL,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,wBAAwB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACjD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAS;IACxC,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,0BAA0B,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACnD,CAAC;AACJ,CAAC;AAgBD,MAAM,UAAU,wBAAwB,CAAC,IAAoB;IAC3D,OAAO;QACL,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;QAChC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;QAChC,WAAW,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC;YAC/B,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;YACrB,CAAC,CAAC,+BAA+B,CAAC,IAAI,C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AAC,CAAC,IAAI,CAAC,aAAa,CAAC;YACrB,CAAC,CAAC,+BAA+B,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACxD,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;KACvB,CAAC;AACJ,CAAC;AAUD,MAAM,UAAU,2BAA2B,CAAC,IAAS;IACnD,OAAO;QACL,KAAK,EAAE,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3C,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,MAAmB;IACrD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,MAAmB;IACvD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,6BAA6B;AAC7B,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,uCAAuC;IACvC,wDAAuC,CAAA;IACvC,uCAAuC;IACvC,wDAAuC,CAAA;AACzC,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Site as ARM Resource */\nexport interface Site extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: SiteProperties;\n}\n\nexport function siteSerializer(item: Site): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sitePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function siteDeserializer(item: any): Site {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sitePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Site properties */\nexport interface SiteProperties {\n /** displayName of Site resource */\n displayName?: string;\n /** Description of Site resource */\n description?: string;\n /** Physical address of the site */\n siteAddress?: SiteAddressProperties;\n /** Key-value pairs for labeling the site resource. */\n labels?: Record<string, string>;\n /** Provisioning state of last operation */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function sitePropertiesSerializer(item: SiteProperties): any {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesSerializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n };\n}\n\nexport function sitePropertiesDeserializer(item: any): SiteProperties {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesDeserializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Site address properties */\nexport interface SiteAddressProperties {\n /** First line of the street address */\n streetAddress1?: string;\n /** Second line of the street address */\n streetAddress2?: string;\n /** City of the address */\n city?: string;\n /** State or province of the address */\n stateOrProvince?: string;\n /** Country of the address */\n country?: string;\n /** Postal or ZIP code of the address */\n postalCode?: string;\n}\n\nexport function siteAddressPropertiesSerializer(item: SiteAddressProperties): any {\n return {\n streetAddress1: item[\"streetAddress1\"],\n streetAddress2: item[\"streetAddress2\"],\n city: item[\"city\"],\n stateOrProvince: item[\"stateOrProvince\"],\n country: item[\"country\"],\n postalCode: item[\"postalCode\"],\n };\n}\n\nexport function siteAddressPropertiesDeserializer(item: any): SiteAddressProperties {\n return {\n streetAddress1: item[\"streetAddress1\"],\n streetAddress2: item[\"streetAddress2\"],\n city: item[\"city\"],\n stateOrProvince: item[\"stateOrProvince\"],\n country: item[\"country\"],\n postalCode: item[\"postalCode\"],\n };\n}\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: !item[\"info\"] ? item[\"info\"] : _errorAdditionalInfoInfoDeserializer(item[\"info\"]),\n };\n}\n\n/** model interface _ErrorAdditionalInfoInfo */\nexport interface _ErrorAdditionalInfoInfo {}\n\nexport function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo {\n return item;\n}\n\n/** The type used for update operations of the Site. */\nexport interface SiteUpdate {\n /** The updatable properties of the Site. */\n properties?: SiteUpdateProperties;\n}\n\nexport function siteUpdateSerializer(item: SiteUpdate): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : siteUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The updatable properties of the Site. */\nexport interface SiteUpdateProperties {\n /** displayName of Site resource */\n displayName?: string;\n /** Description of Site resource */\n description?: string;\n /** Physical address of the site */\n siteAddress?: SiteAddressProperties;\n /** Key-value pairs for labeling the site resource. */\n labels?: Record<string, string>;\n}\n\nexport function siteUpdatePropertiesSerializer(item: SiteUpdateProperties): any {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesSerializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n };\n}\n\n/** The response of a Site list operation. */\nexport interface _SiteListResult {\n /** The Site items on this page */\n value: Site[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _siteListResultDeserializer(item: any): _SiteListResult {\n return {\n value: siteArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function siteArraySerializer(result: Array<Site>): any[] {\n return result.map((item) => {\n return siteSerializer(item);\n });\n}\n\nexport function siteArrayDeserializer(result: Array<Site>): any[] {\n return result.map((item) => {\n return siteDeserializer(item);\n });\n}\n\n/** Supported API Versions */\nexport enum KnownVersions {\n /** API Version - 2024-02-01-preview */\n V20240201Preview = \"2024-02-01-preview\",\n /** API Version - 2025-03-01-preview */\n V20250301Preview = \"2025-03-01-preview\",\n}\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,cAAc,CAAC,IAAU;IACvC,OAAO;QACL,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,wBAAwB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACjD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAS;IACxC,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAA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** Site as ARM Resource */\nexport interface Site extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: SiteProperties;\n}\n\nexport function siteSerializer(item: Site): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sitePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function siteDeserializer(item: any): Site {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sitePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Site properties */\nexport interface SiteProperties {\n /** displayName of Site resource */\n displayName?: string;\n /** Description of Site resource */\n description?: string;\n /** Physical address of the site */\n siteAddress?: SiteAddressProperties;\n /** Key-value pairs for labeling the site resource. */\n labels?: Record<string, string>;\n /** Provisioning state of last operation */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function sitePropertiesSerializer(item: SiteProperties): any {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesSerializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n };\n}\n\nexport function sitePropertiesDeserializer(item: any): SiteProperties {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesDeserializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Site address properties */\nexport interface SiteAddressProperties {\n /** First line of the street address */\n streetAddress1?: string;\n /** Second line of the street address */\n streetAddress2?: string;\n /** City of the address */\n city?: string;\n /** State or province of the address */\n stateOrProvince?: string;\n /** Country of the address */\n country?: string;\n /** Postal or ZIP code of the address */\n postalCode?: string;\n}\n\nexport function siteAddressPropertiesSerializer(item: SiteAddressProperties): any {\n return {\n streetAddress1: item[\"streetAddress1\"],\n streetAddress2: item[\"streetAddress2\"],\n city: item[\"city\"],\n stateOrProvince: item[\"stateOrProvince\"],\n country: item[\"country\"],\n postalCode: item[\"postalCode\"],\n };\n}\n\nexport function siteAddressPropertiesDeserializer(item: any): SiteAddressProperties {\n return {\n streetAddress1: item[\"streetAddress1\"],\n streetAddress2: item[\"streetAddress2\"],\n city: item[\"city\"],\n stateOrProvince: item[\"stateOrProvince\"],\n country: item[\"country\"],\n postalCode: item[\"postalCode\"],\n };\n}\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** The type used for update operations of the Site. */\nexport interface SiteUpdate {\n /** The updatable properties of the Site. */\n properties?: SiteUpdateProperties;\n}\n\nexport function siteUpdateSerializer(item: SiteUpdate): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : siteUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The updatable properties of the Site. */\nexport interface SiteUpdateProperties {\n /** displayName of Site resource */\n displayName?: string;\n /** Description of Site resource */\n description?: string;\n /** Physical address of the site */\n siteAddress?: SiteAddressProperties;\n /** Key-value pairs for labeling the site resource. */\n labels?: Record<string, string>;\n}\n\nexport function siteUpdatePropertiesSerializer(item: SiteUpdateProperties): any {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n siteAddress: !item[\"siteAddress\"]\n ? item[\"siteAddress\"]\n : siteAddressPropertiesSerializer(item[\"siteAddress\"]),\n labels: item[\"labels\"],\n };\n}\n\n/** The response of a Site list operation. */\nexport interface _SiteListResult {\n /** The Site items on this page */\n value: Site[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _siteListResultDeserializer(item: any): _SiteListResult {\n return {\n value: siteArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function siteArraySerializer(result: Array<Site>): any[] {\n return result.map((item) => {\n return siteSerializer(item);\n });\n}\n\nexport function siteArrayDeserializer(result: Array<Site>): any[] {\n return result.map((item) => {\n return siteDeserializer(item);\n });\n}\n\n/** Supported API Versions */\nexport enum KnownVersions {\n /** API Version - 2025-06-01 */\n V20250601 = \"2025-06-01\",\n}\n"]}