@azure/arm-attestation 2.1.1-alpha.20241230.1 → 2.1.1-alpha.20250109.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/{dist-esm/src → dist/browser}/attestationManagementClient.d.ts +2 -2
  2. package/dist/browser/attestationManagementClient.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/attestationManagementClient.js +15 -18
  4. package/dist/browser/attestationManagementClient.js.map +1 -0
  5. package/dist/browser/index.d.ts +5 -0
  6. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  7. package/{dist-esm/src → dist/browser}/index.js +4 -4
  8. package/dist/browser/index.js.map +1 -0
  9. package/dist/browser/models/index.js.map +1 -0
  10. package/dist/browser/models/mappers.js.map +1 -0
  11. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  12. package/dist/browser/models/parameters.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/operations/attestationProviders.d.ts +3 -3
  14. package/dist/browser/operations/attestationProviders.d.ts.map +1 -0
  15. package/{dist-esm/src → dist/browser}/operations/attestationProviders.js +2 -2
  16. package/dist/browser/operations/attestationProviders.js.map +1 -0
  17. package/dist/browser/operations/index.d.ts +4 -0
  18. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  19. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +3 -3
  20. package/dist/browser/operations/index.js.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  22. package/dist/browser/operations/operations.d.ts.map +1 -0
  23. package/{dist-esm/src → dist/browser}/operations/operations.js +2 -2
  24. package/dist/browser/operations/operations.js.map +1 -0
  25. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.d.ts +3 -3
  26. package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
  27. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.js +2 -2
  28. package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
  29. package/{dist-esm/src → dist/browser}/operationsInterfaces/attestationProviders.d.ts +1 -1
  30. package/dist/browser/operationsInterfaces/attestationProviders.d.ts.map +1 -0
  31. package/dist/browser/operationsInterfaces/attestationProviders.js.map +1 -0
  32. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  33. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  34. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +3 -3
  35. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  37. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -0
  38. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.d.ts +1 -1
  40. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  41. package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  42. package/dist/browser/package.json +3 -0
  43. package/dist/browser/pagingHelper.js.map +1 -0
  44. package/dist/commonjs/attestationManagementClient.d.ts +22 -0
  45. package/dist/commonjs/attestationManagementClient.d.ts.map +1 -0
  46. package/dist/commonjs/attestationManagementClient.js +104 -0
  47. package/dist/commonjs/attestationManagementClient.js.map +1 -0
  48. package/dist/commonjs/index.d.ts +5 -0
  49. package/dist/commonjs/index.d.ts.map +1 -0
  50. package/dist/commonjs/index.js +19 -0
  51. package/dist/commonjs/index.js.map +1 -0
  52. package/{types/arm-attestation.d.ts → dist/commonjs/models/index.d.ts} +403 -590
  53. package/dist/commonjs/models/index.d.ts.map +1 -0
  54. package/dist/commonjs/models/index.js +55 -0
  55. package/dist/commonjs/models/index.js.map +1 -0
  56. package/dist/commonjs/models/mappers.d.ts +21 -0
  57. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  58. package/dist/commonjs/models/mappers.js +566 -0
  59. package/dist/commonjs/models/mappers.js.map +1 -0
  60. package/dist/commonjs/models/parameters.d.ts +15 -0
  61. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  62. package/dist/commonjs/models/parameters.js +141 -0
  63. package/dist/commonjs/models/parameters.js.map +1 -0
  64. package/dist/commonjs/operations/attestationProviders.d.ts +65 -0
  65. package/dist/commonjs/operations/attestationProviders.d.ts.map +1 -0
  66. package/dist/commonjs/operations/attestationProviders.js +259 -0
  67. package/dist/commonjs/operations/attestationProviders.js.map +1 -0
  68. package/dist/commonjs/operations/index.d.ts +4 -0
  69. package/dist/commonjs/operations/index.d.ts.map +1 -0
  70. package/dist/commonjs/operations/index.js +14 -0
  71. package/dist/commonjs/operations/index.js.map +1 -0
  72. package/dist/commonjs/operations/operations.d.ts +18 -0
  73. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  74. package/dist/commonjs/operations/operations.js +51 -0
  75. package/dist/commonjs/operations/operations.js.map +1 -0
  76. package/dist/commonjs/operations/privateEndpointConnections.d.ts +58 -0
  77. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
  78. package/dist/commonjs/operations/privateEndpointConnections.js +226 -0
  79. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
  80. package/dist/commonjs/operationsInterfaces/attestationProviders.d.ts +57 -0
  81. package/dist/commonjs/operationsInterfaces/attestationProviders.d.ts.map +1 -0
  82. package/dist/commonjs/operationsInterfaces/attestationProviders.js +10 -0
  83. package/dist/commonjs/operationsInterfaces/attestationProviders.js.map +1 -0
  84. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  85. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  86. package/dist/commonjs/operationsInterfaces/index.js +14 -0
  87. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  88. package/dist/commonjs/operationsInterfaces/operations.d.ts +10 -0
  89. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  90. package/{src/operations/index.ts → dist/commonjs/operationsInterfaces/operations.js} +3 -4
  91. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  92. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +41 -0
  93. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  94. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
  95. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  96. package/dist/commonjs/package.json +3 -0
  97. package/dist/commonjs/pagingHelper.d.ts +13 -0
  98. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  99. package/dist/commonjs/pagingHelper.js +36 -0
  100. package/dist/commonjs/pagingHelper.js.map +1 -0
  101. package/dist/esm/attestationManagementClient.d.ts +22 -0
  102. package/dist/esm/attestationManagementClient.d.ts.map +1 -0
  103. package/dist/esm/attestationManagementClient.js +99 -0
  104. package/dist/esm/attestationManagementClient.js.map +1 -0
  105. package/dist/esm/index.d.ts +5 -0
  106. package/dist/esm/index.d.ts.map +1 -0
  107. package/{src/index.ts → dist/esm/index.js} +5 -5
  108. package/dist/esm/index.js.map +1 -0
  109. package/dist/esm/models/index.d.ts +403 -0
  110. package/dist/esm/models/index.d.ts.map +1 -0
  111. package/dist/esm/models/index.js +52 -0
  112. package/dist/esm/models/index.js.map +1 -0
  113. package/dist/esm/models/mappers.d.ts +21 -0
  114. package/dist/esm/models/mappers.d.ts.map +1 -0
  115. package/dist/esm/models/mappers.js +563 -0
  116. package/dist/esm/models/mappers.js.map +1 -0
  117. package/dist/esm/models/parameters.d.ts +15 -0
  118. package/dist/esm/models/parameters.d.ts.map +1 -0
  119. package/dist/esm/models/parameters.js +138 -0
  120. package/dist/esm/models/parameters.js.map +1 -0
  121. package/dist/esm/operations/attestationProviders.d.ts +65 -0
  122. package/dist/esm/operations/attestationProviders.d.ts.map +1 -0
  123. package/dist/esm/operations/attestationProviders.js +254 -0
  124. package/dist/esm/operations/attestationProviders.js.map +1 -0
  125. package/dist/esm/operations/index.d.ts +4 -0
  126. package/dist/esm/operations/index.d.ts.map +1 -0
  127. package/dist/esm/operations/index.js +11 -0
  128. package/dist/esm/operations/index.js.map +1 -0
  129. package/dist/esm/operations/operations.d.ts +18 -0
  130. package/dist/esm/operations/operations.d.ts.map +1 -0
  131. package/dist/esm/operations/operations.js +46 -0
  132. package/dist/esm/operations/operations.js.map +1 -0
  133. package/dist/esm/operations/privateEndpointConnections.d.ts +58 -0
  134. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
  135. package/dist/esm/operations/privateEndpointConnections.js +222 -0
  136. package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
  137. package/dist/esm/operationsInterfaces/attestationProviders.d.ts +57 -0
  138. package/dist/esm/operationsInterfaces/attestationProviders.d.ts.map +1 -0
  139. package/dist/esm/operationsInterfaces/attestationProviders.js +9 -0
  140. package/dist/esm/operationsInterfaces/attestationProviders.js.map +1 -0
  141. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  142. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  143. package/dist/esm/operationsInterfaces/index.js +11 -0
  144. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  145. package/dist/esm/operationsInterfaces/operations.d.ts +10 -0
  146. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  147. package/dist/esm/operationsInterfaces/operations.js +9 -0
  148. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  149. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +41 -0
  150. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  151. package/dist/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
  152. package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  153. package/dist/esm/package.json +3 -0
  154. package/dist/esm/pagingHelper.d.ts +13 -0
  155. package/dist/esm/pagingHelper.d.ts.map +1 -0
  156. package/dist/esm/pagingHelper.js +32 -0
  157. package/dist/esm/pagingHelper.js.map +1 -0
  158. package/dist/react-native/attestationManagementClient.d.ts +22 -0
  159. package/dist/react-native/attestationManagementClient.d.ts.map +1 -0
  160. package/dist/react-native/attestationManagementClient.js +99 -0
  161. package/dist/react-native/attestationManagementClient.js.map +1 -0
  162. package/dist/react-native/index.d.ts +5 -0
  163. package/dist/react-native/index.d.ts.map +1 -0
  164. package/dist/react-native/index.js +13 -0
  165. package/dist/react-native/index.js.map +1 -0
  166. package/dist/react-native/models/index.d.ts +403 -0
  167. package/dist/react-native/models/index.d.ts.map +1 -0
  168. package/dist/react-native/models/index.js +52 -0
  169. package/dist/react-native/models/index.js.map +1 -0
  170. package/dist/react-native/models/mappers.d.ts +21 -0
  171. package/dist/react-native/models/mappers.d.ts.map +1 -0
  172. package/dist/react-native/models/mappers.js +563 -0
  173. package/dist/react-native/models/mappers.js.map +1 -0
  174. package/dist/react-native/models/parameters.d.ts +15 -0
  175. package/dist/react-native/models/parameters.d.ts.map +1 -0
  176. package/dist/react-native/models/parameters.js +138 -0
  177. package/dist/react-native/models/parameters.js.map +1 -0
  178. package/dist/react-native/operations/attestationProviders.d.ts +65 -0
  179. package/dist/react-native/operations/attestationProviders.d.ts.map +1 -0
  180. package/dist/react-native/operations/attestationProviders.js +254 -0
  181. package/dist/react-native/operations/attestationProviders.js.map +1 -0
  182. package/dist/react-native/operations/index.d.ts +4 -0
  183. package/dist/react-native/operations/index.d.ts.map +1 -0
  184. package/dist/react-native/operations/index.js +11 -0
  185. package/dist/react-native/operations/index.js.map +1 -0
  186. package/dist/react-native/operations/operations.d.ts +18 -0
  187. package/dist/react-native/operations/operations.d.ts.map +1 -0
  188. package/dist/react-native/operations/operations.js +46 -0
  189. package/dist/react-native/operations/operations.js.map +1 -0
  190. package/dist/react-native/operations/privateEndpointConnections.d.ts +58 -0
  191. package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
  192. package/dist/react-native/operations/privateEndpointConnections.js +222 -0
  193. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
  194. package/dist/react-native/operationsInterfaces/attestationProviders.d.ts +57 -0
  195. package/dist/react-native/operationsInterfaces/attestationProviders.d.ts.map +1 -0
  196. package/dist/react-native/operationsInterfaces/attestationProviders.js +9 -0
  197. package/dist/react-native/operationsInterfaces/attestationProviders.js.map +1 -0
  198. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  199. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  200. package/dist/react-native/operationsInterfaces/index.js +11 -0
  201. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  202. package/dist/react-native/operationsInterfaces/operations.d.ts +10 -0
  203. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  204. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  205. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  206. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +41 -0
  207. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  208. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +9 -0
  209. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  210. package/dist/react-native/package.json +3 -0
  211. package/dist/react-native/pagingHelper.d.ts +13 -0
  212. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  213. package/dist/react-native/pagingHelper.js +32 -0
  214. package/dist/react-native/pagingHelper.js.map +1 -0
  215. package/package.json +58 -28
  216. package/dist/index.js +0 -1439
  217. package/dist/index.js.map +0 -1
  218. package/dist/index.min.js +0 -1
  219. package/dist/index.min.js.map +0 -1
  220. package/dist-esm/samples-dev/attestationProvidersCreateSample.d.ts +0 -2
  221. package/dist-esm/samples-dev/attestationProvidersCreateSample.d.ts.map +0 -1
  222. package/dist-esm/samples-dev/attestationProvidersCreateSample.js +0 -32
  223. package/dist-esm/samples-dev/attestationProvidersCreateSample.js.map +0 -1
  224. package/dist-esm/samples-dev/attestationProvidersDeleteSample.d.ts +0 -2
  225. package/dist-esm/samples-dev/attestationProvidersDeleteSample.d.ts.map +0 -1
  226. package/dist-esm/samples-dev/attestationProvidersDeleteSample.js +0 -31
  227. package/dist-esm/samples-dev/attestationProvidersDeleteSample.js.map +0 -1
  228. package/dist-esm/samples-dev/attestationProvidersGetDefaultByLocationSample.d.ts +0 -2
  229. package/dist-esm/samples-dev/attestationProvidersGetDefaultByLocationSample.d.ts.map +0 -1
  230. package/dist-esm/samples-dev/attestationProvidersGetDefaultByLocationSample.js +0 -30
  231. package/dist-esm/samples-dev/attestationProvidersGetDefaultByLocationSample.js.map +0 -1
  232. package/dist-esm/samples-dev/attestationProvidersGetSample.d.ts +0 -2
  233. package/dist-esm/samples-dev/attestationProvidersGetSample.d.ts.map +0 -1
  234. package/dist-esm/samples-dev/attestationProvidersGetSample.js +0 -31
  235. package/dist-esm/samples-dev/attestationProvidersGetSample.js.map +0 -1
  236. package/dist-esm/samples-dev/attestationProvidersListByResourceGroupSample.d.ts +0 -2
  237. package/dist-esm/samples-dev/attestationProvidersListByResourceGroupSample.d.ts.map +0 -1
  238. package/dist-esm/samples-dev/attestationProvidersListByResourceGroupSample.js +0 -30
  239. package/dist-esm/samples-dev/attestationProvidersListByResourceGroupSample.js.map +0 -1
  240. package/dist-esm/samples-dev/attestationProvidersListDefaultSample.d.ts +0 -2
  241. package/dist-esm/samples-dev/attestationProvidersListDefaultSample.d.ts.map +0 -1
  242. package/dist-esm/samples-dev/attestationProvidersListDefaultSample.js +0 -29
  243. package/dist-esm/samples-dev/attestationProvidersListDefaultSample.js.map +0 -1
  244. package/dist-esm/samples-dev/attestationProvidersListSample.d.ts +0 -2
  245. package/dist-esm/samples-dev/attestationProvidersListSample.d.ts.map +0 -1
  246. package/dist-esm/samples-dev/attestationProvidersListSample.js +0 -29
  247. package/dist-esm/samples-dev/attestationProvidersListSample.js.map +0 -1
  248. package/dist-esm/samples-dev/attestationProvidersUpdateSample.d.ts +0 -2
  249. package/dist-esm/samples-dev/attestationProvidersUpdateSample.d.ts.map +0 -1
  250. package/dist-esm/samples-dev/attestationProvidersUpdateSample.js +0 -34
  251. package/dist-esm/samples-dev/attestationProvidersUpdateSample.js.map +0 -1
  252. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  253. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  254. package/dist-esm/samples-dev/operationsListSample.js +0 -29
  255. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  256. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts +0 -2
  257. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts.map +0 -1
  258. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +0 -38
  259. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +0 -1
  260. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +0 -2
  261. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +0 -1
  262. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +0 -32
  263. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +0 -1
  264. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +0 -2
  265. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +0 -1
  266. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +0 -32
  267. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +0 -1
  268. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +0 -2
  269. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +0 -1
  270. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +0 -47
  271. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +0 -1
  272. package/dist-esm/src/attestationManagementClient.d.ts.map +0 -1
  273. package/dist-esm/src/attestationManagementClient.js.map +0 -1
  274. package/dist-esm/src/index.d.ts +0 -5
  275. package/dist-esm/src/index.js.map +0 -1
  276. package/dist-esm/src/models/index.js.map +0 -1
  277. package/dist-esm/src/models/mappers.js.map +0 -1
  278. package/dist-esm/src/models/parameters.js.map +0 -1
  279. package/dist-esm/src/operations/attestationProviders.d.ts.map +0 -1
  280. package/dist-esm/src/operations/attestationProviders.js.map +0 -1
  281. package/dist-esm/src/operations/index.d.ts +0 -4
  282. package/dist-esm/src/operations/index.js.map +0 -1
  283. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  284. package/dist-esm/src/operations/operations.js.map +0 -1
  285. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
  286. package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
  287. package/dist-esm/src/operationsInterfaces/attestationProviders.d.ts.map +0 -1
  288. package/dist-esm/src/operationsInterfaces/attestationProviders.js.map +0 -1
  289. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
  290. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  291. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  292. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  293. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  294. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  295. package/dist-esm/src/pagingHelper.js.map +0 -1
  296. package/dist-esm/test/attestation_examples.d.ts +0 -4
  297. package/dist-esm/test/attestation_examples.d.ts.map +0 -1
  298. package/dist-esm/test/attestation_examples.js +0 -96
  299. package/dist-esm/test/attestation_examples.js.map +0 -1
  300. package/src/attestationManagementClient.ts +0 -152
  301. package/src/models/index.ts +0 -457
  302. package/src/models/mappers.ts +0 -599
  303. package/src/models/parameters.ts +0 -160
  304. package/src/operations/attestationProviders.ts +0 -344
  305. package/src/operations/operations.ts +0 -59
  306. package/src/operations/privateEndpointConnections.ts +0 -287
  307. package/src/operationsInterfaces/attestationProviders.ts +0 -111
  308. package/src/operationsInterfaces/index.ts +0 -11
  309. package/src/operationsInterfaces/operations.ts +0 -21
  310. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -78
  311. package/src/pagingHelper.ts +0 -39
  312. package/tsconfig.json +0 -33
  313. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  314. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  315. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  316. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  317. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  318. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  319. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  320. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  321. /package/{dist-esm/src → dist/browser}/operationsInterfaces/attestationProviders.js +0 -0
  322. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  323. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.js +0 -0
  324. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  325. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  326. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  327. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/dist/index.js DELETED
@@ -1,1439 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
-
9
- function _interopNamespaceDefault(e) {
10
- var n = Object.create(null);
11
- if (e) {
12
- Object.keys(e).forEach(function (k) {
13
- if (k !== 'default') {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () { return e[k]; }
18
- });
19
- }
20
- });
21
- }
22
- n.default = e;
23
- return Object.freeze(n);
24
- }
25
-
26
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
27
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
28
-
29
- /*
30
- * Copyright (c) Microsoft Corporation.
31
- * Licensed under the MIT License.
32
- *
33
- * Code generated by Microsoft (R) AutoRest Code Generator.
34
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
35
- */
36
- const pageMap = new WeakMap();
37
- /**
38
- * Given a result page from a pageable operation, returns a
39
- * continuation token that can be used to begin paging from
40
- * that point later.
41
- * @param page A result object from calling .byPage() on a paged operation.
42
- * @returns The continuation token that can be passed into byPage().
43
- */
44
- function getContinuationToken(page) {
45
- var _a;
46
- if (typeof page !== "object" || page === null) {
47
- return undefined;
48
- }
49
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
50
- }
51
-
52
- /*
53
- * Copyright (c) Microsoft Corporation.
54
- * Licensed under the MIT License.
55
- *
56
- * Code generated by Microsoft (R) AutoRest Code Generator.
57
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
58
- */
59
- /** Known values of {@link CreatedByType} that the service accepts. */
60
- exports.KnownCreatedByType = void 0;
61
- (function (KnownCreatedByType) {
62
- /** User */
63
- KnownCreatedByType["User"] = "User";
64
- /** Application */
65
- KnownCreatedByType["Application"] = "Application";
66
- /** ManagedIdentity */
67
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
68
- /** Key */
69
- KnownCreatedByType["Key"] = "Key";
70
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
71
- /** Known values of {@link AttestationServiceStatus} that the service accepts. */
72
- exports.KnownAttestationServiceStatus = void 0;
73
- (function (KnownAttestationServiceStatus) {
74
- /** Ready */
75
- KnownAttestationServiceStatus["Ready"] = "Ready";
76
- /** NotReady */
77
- KnownAttestationServiceStatus["NotReady"] = "NotReady";
78
- /** Error */
79
- KnownAttestationServiceStatus["Error"] = "Error";
80
- })(exports.KnownAttestationServiceStatus || (exports.KnownAttestationServiceStatus = {}));
81
- /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
82
- exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
83
- (function (KnownPrivateEndpointServiceConnectionStatus) {
84
- /** Pending */
85
- KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
86
- /** Approved */
87
- KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
88
- /** Rejected */
89
- KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
90
- })(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
91
- /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
92
- exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
93
- (function (KnownPrivateEndpointConnectionProvisioningState) {
94
- /** Succeeded */
95
- KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
96
- /** Creating */
97
- KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
98
- /** Deleting */
99
- KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
100
- /** Failed */
101
- KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
102
- })(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
103
-
104
- /*
105
- * Copyright (c) Microsoft Corporation.
106
- * Licensed under the MIT License.
107
- *
108
- * Code generated by Microsoft (R) AutoRest Code Generator.
109
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
110
- */
111
- const OperationList = {
112
- type: {
113
- name: "Composite",
114
- className: "OperationList",
115
- modelProperties: {
116
- systemData: {
117
- serializedName: "systemData",
118
- type: {
119
- name: "Composite",
120
- className: "SystemData"
121
- }
122
- },
123
- value: {
124
- serializedName: "value",
125
- type: {
126
- name: "Sequence",
127
- element: {
128
- type: {
129
- name: "Composite",
130
- className: "OperationsDefinition"
131
- }
132
- }
133
- }
134
- }
135
- }
136
- }
137
- };
138
- const SystemData = {
139
- type: {
140
- name: "Composite",
141
- className: "SystemData",
142
- modelProperties: {
143
- createdBy: {
144
- serializedName: "createdBy",
145
- type: {
146
- name: "String"
147
- }
148
- },
149
- createdByType: {
150
- serializedName: "createdByType",
151
- type: {
152
- name: "String"
153
- }
154
- },
155
- createdAt: {
156
- serializedName: "createdAt",
157
- type: {
158
- name: "DateTime"
159
- }
160
- },
161
- lastModifiedBy: {
162
- serializedName: "lastModifiedBy",
163
- type: {
164
- name: "String"
165
- }
166
- },
167
- lastModifiedByType: {
168
- serializedName: "lastModifiedByType",
169
- type: {
170
- name: "String"
171
- }
172
- },
173
- lastModifiedAt: {
174
- serializedName: "lastModifiedAt",
175
- type: {
176
- name: "DateTime"
177
- }
178
- }
179
- }
180
- }
181
- };
182
- const OperationsDefinition = {
183
- type: {
184
- name: "Composite",
185
- className: "OperationsDefinition",
186
- modelProperties: {
187
- name: {
188
- serializedName: "name",
189
- type: {
190
- name: "String"
191
- }
192
- },
193
- display: {
194
- serializedName: "display",
195
- type: {
196
- name: "Composite",
197
- className: "OperationsDisplayDefinition"
198
- }
199
- }
200
- }
201
- }
202
- };
203
- const OperationsDisplayDefinition = {
204
- type: {
205
- name: "Composite",
206
- className: "OperationsDisplayDefinition",
207
- modelProperties: {
208
- provider: {
209
- serializedName: "provider",
210
- type: {
211
- name: "String"
212
- }
213
- },
214
- resource: {
215
- serializedName: "resource",
216
- type: {
217
- name: "String"
218
- }
219
- },
220
- operation: {
221
- serializedName: "operation",
222
- type: {
223
- name: "String"
224
- }
225
- },
226
- description: {
227
- serializedName: "description",
228
- type: {
229
- name: "String"
230
- }
231
- }
232
- }
233
- }
234
- };
235
- const CloudError = {
236
- type: {
237
- name: "Composite",
238
- className: "CloudError",
239
- modelProperties: {
240
- error: {
241
- serializedName: "error",
242
- type: {
243
- name: "Composite",
244
- className: "CloudErrorBody"
245
- }
246
- }
247
- }
248
- }
249
- };
250
- const CloudErrorBody = {
251
- type: {
252
- name: "Composite",
253
- className: "CloudErrorBody",
254
- modelProperties: {
255
- code: {
256
- serializedName: "code",
257
- type: {
258
- name: "String"
259
- }
260
- },
261
- message: {
262
- serializedName: "message",
263
- type: {
264
- name: "String"
265
- }
266
- }
267
- }
268
- }
269
- };
270
- const PrivateEndpoint = {
271
- type: {
272
- name: "Composite",
273
- className: "PrivateEndpoint",
274
- modelProperties: {
275
- id: {
276
- serializedName: "id",
277
- readOnly: true,
278
- type: {
279
- name: "String"
280
- }
281
- }
282
- }
283
- }
284
- };
285
- const PrivateLinkServiceConnectionState = {
286
- type: {
287
- name: "Composite",
288
- className: "PrivateLinkServiceConnectionState",
289
- modelProperties: {
290
- status: {
291
- serializedName: "status",
292
- type: {
293
- name: "String"
294
- }
295
- },
296
- description: {
297
- serializedName: "description",
298
- type: {
299
- name: "String"
300
- }
301
- },
302
- actionsRequired: {
303
- serializedName: "actionsRequired",
304
- type: {
305
- name: "String"
306
- }
307
- }
308
- }
309
- }
310
- };
311
- const Resource = {
312
- type: {
313
- name: "Composite",
314
- className: "Resource",
315
- modelProperties: {
316
- id: {
317
- serializedName: "id",
318
- readOnly: true,
319
- type: {
320
- name: "String"
321
- }
322
- },
323
- name: {
324
- serializedName: "name",
325
- readOnly: true,
326
- type: {
327
- name: "String"
328
- }
329
- },
330
- type: {
331
- serializedName: "type",
332
- readOnly: true,
333
- type: {
334
- name: "String"
335
- }
336
- }
337
- }
338
- }
339
- };
340
- const AttestationServiceCreationParams = {
341
- type: {
342
- name: "Composite",
343
- className: "AttestationServiceCreationParams",
344
- modelProperties: {
345
- location: {
346
- serializedName: "location",
347
- required: true,
348
- type: {
349
- name: "String"
350
- }
351
- },
352
- tags: {
353
- serializedName: "tags",
354
- type: {
355
- name: "Dictionary",
356
- value: { type: { name: "String" } }
357
- }
358
- },
359
- properties: {
360
- serializedName: "properties",
361
- type: {
362
- name: "Composite",
363
- className: "AttestationServiceCreationSpecificParams"
364
- }
365
- }
366
- }
367
- }
368
- };
369
- const AttestationServiceCreationSpecificParams = {
370
- type: {
371
- name: "Composite",
372
- className: "AttestationServiceCreationSpecificParams",
373
- modelProperties: {
374
- policySigningCertificates: {
375
- serializedName: "policySigningCertificates",
376
- type: {
377
- name: "Composite",
378
- className: "JsonWebKeySet"
379
- }
380
- }
381
- }
382
- }
383
- };
384
- const JsonWebKeySet = {
385
- type: {
386
- name: "Composite",
387
- className: "JsonWebKeySet",
388
- modelProperties: {
389
- keys: {
390
- serializedName: "keys",
391
- type: {
392
- name: "Sequence",
393
- element: {
394
- type: {
395
- name: "Composite",
396
- className: "JsonWebKey"
397
- }
398
- }
399
- }
400
- }
401
- }
402
- }
403
- };
404
- const JsonWebKey = {
405
- type: {
406
- name: "Composite",
407
- className: "JsonWebKey",
408
- modelProperties: {
409
- alg: {
410
- serializedName: "alg",
411
- type: {
412
- name: "String"
413
- }
414
- },
415
- crv: {
416
- serializedName: "crv",
417
- type: {
418
- name: "String"
419
- }
420
- },
421
- d: {
422
- serializedName: "d",
423
- type: {
424
- name: "String"
425
- }
426
- },
427
- dp: {
428
- serializedName: "dp",
429
- type: {
430
- name: "String"
431
- }
432
- },
433
- dq: {
434
- serializedName: "dq",
435
- type: {
436
- name: "String"
437
- }
438
- },
439
- e: {
440
- serializedName: "e",
441
- type: {
442
- name: "String"
443
- }
444
- },
445
- k: {
446
- serializedName: "k",
447
- type: {
448
- name: "String"
449
- }
450
- },
451
- kid: {
452
- serializedName: "kid",
453
- type: {
454
- name: "String"
455
- }
456
- },
457
- kty: {
458
- serializedName: "kty",
459
- required: true,
460
- type: {
461
- name: "String"
462
- }
463
- },
464
- n: {
465
- serializedName: "n",
466
- type: {
467
- name: "String"
468
- }
469
- },
470
- p: {
471
- serializedName: "p",
472
- type: {
473
- name: "String"
474
- }
475
- },
476
- q: {
477
- serializedName: "q",
478
- type: {
479
- name: "String"
480
- }
481
- },
482
- qi: {
483
- serializedName: "qi",
484
- type: {
485
- name: "String"
486
- }
487
- },
488
- use: {
489
- serializedName: "use",
490
- type: {
491
- name: "String"
492
- }
493
- },
494
- x: {
495
- serializedName: "x",
496
- type: {
497
- name: "String"
498
- }
499
- },
500
- x5C: {
501
- serializedName: "x5c",
502
- type: {
503
- name: "Sequence",
504
- element: {
505
- type: {
506
- name: "String"
507
- }
508
- }
509
- }
510
- },
511
- y: {
512
- serializedName: "y",
513
- type: {
514
- name: "String"
515
- }
516
- }
517
- }
518
- }
519
- };
520
- const AttestationServicePatchParams = {
521
- type: {
522
- name: "Composite",
523
- className: "AttestationServicePatchParams",
524
- modelProperties: {
525
- tags: {
526
- serializedName: "tags",
527
- type: {
528
- name: "Dictionary",
529
- value: { type: { name: "String" } }
530
- }
531
- }
532
- }
533
- }
534
- };
535
- const PrivateEndpointConnectionListResult = {
536
- type: {
537
- name: "Composite",
538
- className: "PrivateEndpointConnectionListResult",
539
- modelProperties: {
540
- value: {
541
- serializedName: "value",
542
- type: {
543
- name: "Sequence",
544
- element: {
545
- type: {
546
- name: "Composite",
547
- className: "PrivateEndpointConnection"
548
- }
549
- }
550
- }
551
- }
552
- }
553
- }
554
- };
555
- const AttestationProviderListResult = {
556
- type: {
557
- name: "Composite",
558
- className: "AttestationProviderListResult",
559
- modelProperties: {
560
- systemData: {
561
- serializedName: "systemData",
562
- type: {
563
- name: "Composite",
564
- className: "SystemData"
565
- }
566
- },
567
- value: {
568
- serializedName: "value",
569
- type: {
570
- name: "Sequence",
571
- element: {
572
- type: {
573
- name: "Composite",
574
- className: "AttestationProvider"
575
- }
576
- }
577
- }
578
- }
579
- }
580
- }
581
- };
582
- const PrivateEndpointConnection = {
583
- type: {
584
- name: "Composite",
585
- className: "PrivateEndpointConnection",
586
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { privateEndpoint: {
587
- serializedName: "properties.privateEndpoint",
588
- type: {
589
- name: "Composite",
590
- className: "PrivateEndpoint"
591
- }
592
- }, privateLinkServiceConnectionState: {
593
- serializedName: "properties.privateLinkServiceConnectionState",
594
- type: {
595
- name: "Composite",
596
- className: "PrivateLinkServiceConnectionState"
597
- }
598
- }, provisioningState: {
599
- serializedName: "properties.provisioningState",
600
- readOnly: true,
601
- type: {
602
- name: "String"
603
- }
604
- } })
605
- }
606
- };
607
- const TrackedResource = {
608
- type: {
609
- name: "Composite",
610
- className: "TrackedResource",
611
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
612
- serializedName: "tags",
613
- type: {
614
- name: "Dictionary",
615
- value: { type: { name: "String" } }
616
- }
617
- }, location: {
618
- serializedName: "location",
619
- required: true,
620
- type: {
621
- name: "String"
622
- }
623
- } })
624
- }
625
- };
626
- const AttestationProvider = {
627
- type: {
628
- name: "Composite",
629
- className: "AttestationProvider",
630
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { systemData: {
631
- serializedName: "systemData",
632
- type: {
633
- name: "Composite",
634
- className: "SystemData"
635
- }
636
- }, trustModel: {
637
- serializedName: "properties.trustModel",
638
- type: {
639
- name: "String"
640
- }
641
- }, status: {
642
- serializedName: "properties.status",
643
- type: {
644
- name: "String"
645
- }
646
- }, attestUri: {
647
- serializedName: "properties.attestUri",
648
- type: {
649
- name: "String"
650
- }
651
- }, privateEndpointConnections: {
652
- serializedName: "properties.privateEndpointConnections",
653
- readOnly: true,
654
- type: {
655
- name: "Sequence",
656
- element: {
657
- type: {
658
- name: "Composite",
659
- className: "PrivateEndpointConnection"
660
- }
661
- }
662
- }
663
- } })
664
- }
665
- };
666
-
667
- var Mappers = /*#__PURE__*/Object.freeze({
668
- __proto__: null,
669
- AttestationProvider: AttestationProvider,
670
- AttestationProviderListResult: AttestationProviderListResult,
671
- AttestationServiceCreationParams: AttestationServiceCreationParams,
672
- AttestationServiceCreationSpecificParams: AttestationServiceCreationSpecificParams,
673
- AttestationServicePatchParams: AttestationServicePatchParams,
674
- CloudError: CloudError,
675
- CloudErrorBody: CloudErrorBody,
676
- JsonWebKey: JsonWebKey,
677
- JsonWebKeySet: JsonWebKeySet,
678
- OperationList: OperationList,
679
- OperationsDefinition: OperationsDefinition,
680
- OperationsDisplayDefinition: OperationsDisplayDefinition,
681
- PrivateEndpoint: PrivateEndpoint,
682
- PrivateEndpointConnection: PrivateEndpointConnection,
683
- PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
684
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
685
- Resource: Resource,
686
- SystemData: SystemData,
687
- TrackedResource: TrackedResource
688
- });
689
-
690
- /*
691
- * Copyright (c) Microsoft Corporation.
692
- * Licensed under the MIT License.
693
- *
694
- * Code generated by Microsoft (R) AutoRest Code Generator.
695
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
696
- */
697
- const accept = {
698
- parameterPath: "accept",
699
- mapper: {
700
- defaultValue: "application/json",
701
- isConstant: true,
702
- serializedName: "Accept",
703
- type: {
704
- name: "String"
705
- }
706
- }
707
- };
708
- const $host = {
709
- parameterPath: "$host",
710
- mapper: {
711
- serializedName: "$host",
712
- required: true,
713
- type: {
714
- name: "String"
715
- }
716
- },
717
- skipEncoding: true
718
- };
719
- const apiVersion = {
720
- parameterPath: "apiVersion",
721
- mapper: {
722
- defaultValue: "2020-10-01",
723
- isConstant: true,
724
- serializedName: "api-version",
725
- type: {
726
- name: "String"
727
- }
728
- }
729
- };
730
- const subscriptionId = {
731
- parameterPath: "subscriptionId",
732
- mapper: {
733
- constraints: {
734
- MinLength: 1
735
- },
736
- serializedName: "subscriptionId",
737
- required: true,
738
- type: {
739
- name: "String"
740
- }
741
- }
742
- };
743
- const resourceGroupName = {
744
- parameterPath: "resourceGroupName",
745
- mapper: {
746
- constraints: {
747
- MaxLength: 90,
748
- MinLength: 1
749
- },
750
- serializedName: "resourceGroupName",
751
- required: true,
752
- type: {
753
- name: "String"
754
- }
755
- }
756
- };
757
- const providerName = {
758
- parameterPath: "providerName",
759
- mapper: {
760
- serializedName: "providerName",
761
- required: true,
762
- type: {
763
- name: "String"
764
- }
765
- }
766
- };
767
- const contentType = {
768
- parameterPath: ["options", "contentType"],
769
- mapper: {
770
- defaultValue: "application/json",
771
- isConstant: true,
772
- serializedName: "Content-Type",
773
- type: {
774
- name: "String"
775
- }
776
- }
777
- };
778
- const creationParams = {
779
- parameterPath: "creationParams",
780
- mapper: AttestationServiceCreationParams
781
- };
782
- const updateParams = {
783
- parameterPath: "updateParams",
784
- mapper: AttestationServicePatchParams
785
- };
786
- const location = {
787
- parameterPath: "location",
788
- mapper: {
789
- constraints: {
790
- MinLength: 1
791
- },
792
- serializedName: "location",
793
- required: true,
794
- type: {
795
- name: "String"
796
- }
797
- }
798
- };
799
- const providerName1 = {
800
- parameterPath: "providerName",
801
- mapper: {
802
- constraints: {
803
- Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$")
804
- },
805
- serializedName: "providerName",
806
- required: true,
807
- type: {
808
- name: "String"
809
- }
810
- }
811
- };
812
- const privateEndpointConnectionName = {
813
- parameterPath: "privateEndpointConnectionName",
814
- mapper: {
815
- serializedName: "privateEndpointConnectionName",
816
- required: true,
817
- type: {
818
- name: "String"
819
- }
820
- }
821
- };
822
- const properties = {
823
- parameterPath: "properties",
824
- mapper: PrivateEndpointConnection
825
- };
826
-
827
- /*
828
- * Copyright (c) Microsoft Corporation.
829
- * Licensed under the MIT License.
830
- *
831
- * Code generated by Microsoft (R) AutoRest Code Generator.
832
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
833
- */
834
- /** Class containing Operations operations. */
835
- class OperationsImpl {
836
- /**
837
- * Initialize a new instance of the class Operations class.
838
- * @param client Reference to the service client
839
- */
840
- constructor(client) {
841
- this.client = client;
842
- }
843
- /**
844
- * Lists all of the available Azure attestation operations.
845
- * @param options The options parameters.
846
- */
847
- list(options) {
848
- return this.client.sendOperationRequest({ options }, listOperationSpec$2);
849
- }
850
- }
851
- // Operation Specifications
852
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
853
- const listOperationSpec$2 = {
854
- path: "/providers/Microsoft.Attestation/operations",
855
- httpMethod: "GET",
856
- responses: {
857
- 200: {
858
- bodyMapper: OperationList
859
- },
860
- default: {
861
- bodyMapper: CloudError
862
- }
863
- },
864
- queryParameters: [apiVersion],
865
- urlParameters: [$host],
866
- headerParameters: [accept],
867
- serializer: serializer$2
868
- };
869
-
870
- /*
871
- * Copyright (c) Microsoft Corporation.
872
- * Licensed under the MIT License.
873
- *
874
- * Code generated by Microsoft (R) AutoRest Code Generator.
875
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
876
- */
877
- /** Class containing AttestationProviders operations. */
878
- class AttestationProvidersImpl {
879
- /**
880
- * Initialize a new instance of the class AttestationProviders class.
881
- * @param client Reference to the service client
882
- */
883
- constructor(client) {
884
- this.client = client;
885
- }
886
- /**
887
- * Get the status of Attestation Provider.
888
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
889
- * @param providerName Name of the attestation provider.
890
- * @param options The options parameters.
891
- */
892
- get(resourceGroupName, providerName, options) {
893
- return this.client.sendOperationRequest({ resourceGroupName, providerName, options }, getOperationSpec$1);
894
- }
895
- /**
896
- * Creates a new Attestation Provider.
897
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
898
- * @param providerName Name of the attestation provider.
899
- * @param creationParams Client supplied parameters.
900
- * @param options The options parameters.
901
- */
902
- create(resourceGroupName, providerName, creationParams, options) {
903
- return this.client.sendOperationRequest({ resourceGroupName, providerName, creationParams, options }, createOperationSpec$1);
904
- }
905
- /**
906
- * Updates the Attestation Provider.
907
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
908
- * @param providerName Name of the attestation provider.
909
- * @param updateParams Client supplied parameters.
910
- * @param options The options parameters.
911
- */
912
- update(resourceGroupName, providerName, updateParams, options) {
913
- return this.client.sendOperationRequest({ resourceGroupName, providerName, updateParams, options }, updateOperationSpec);
914
- }
915
- /**
916
- * Delete Attestation Service.
917
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
918
- * @param providerName Name of the attestation service
919
- * @param options The options parameters.
920
- */
921
- delete(resourceGroupName, providerName, options) {
922
- return this.client.sendOperationRequest({ resourceGroupName, providerName, options }, deleteOperationSpec$1);
923
- }
924
- /**
925
- * Returns a list of attestation providers in a subscription.
926
- * @param options The options parameters.
927
- */
928
- list(options) {
929
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
930
- }
931
- /**
932
- * Returns attestation providers list in a resource group.
933
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
934
- * @param options The options parameters.
935
- */
936
- listByResourceGroup(resourceGroupName, options) {
937
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
938
- }
939
- /**
940
- * Get the default provider
941
- * @param options The options parameters.
942
- */
943
- listDefault(options) {
944
- return this.client.sendOperationRequest({ options }, listDefaultOperationSpec);
945
- }
946
- /**
947
- * Get the default provider by location.
948
- * @param location The location of the default provider.
949
- * @param options The options parameters.
950
- */
951
- getDefaultByLocation(location, options) {
952
- return this.client.sendOperationRequest({ location, options }, getDefaultByLocationOperationSpec);
953
- }
954
- }
955
- // Operation Specifications
956
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
957
- const getOperationSpec$1 = {
958
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}",
959
- httpMethod: "GET",
960
- responses: {
961
- 200: {
962
- bodyMapper: AttestationProvider
963
- },
964
- default: {
965
- bodyMapper: CloudError
966
- }
967
- },
968
- queryParameters: [apiVersion],
969
- urlParameters: [
970
- $host,
971
- subscriptionId,
972
- resourceGroupName,
973
- providerName
974
- ],
975
- headerParameters: [accept],
976
- serializer: serializer$1
977
- };
978
- const createOperationSpec$1 = {
979
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}",
980
- httpMethod: "PUT",
981
- responses: {
982
- 200: {
983
- bodyMapper: AttestationProvider
984
- },
985
- 201: {
986
- bodyMapper: AttestationProvider
987
- },
988
- default: {
989
- bodyMapper: CloudError
990
- }
991
- },
992
- requestBody: creationParams,
993
- queryParameters: [apiVersion],
994
- urlParameters: [
995
- $host,
996
- subscriptionId,
997
- resourceGroupName,
998
- providerName
999
- ],
1000
- headerParameters: [accept, contentType],
1001
- mediaType: "json",
1002
- serializer: serializer$1
1003
- };
1004
- const updateOperationSpec = {
1005
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}",
1006
- httpMethod: "PATCH",
1007
- responses: {
1008
- 200: {
1009
- bodyMapper: AttestationProvider
1010
- },
1011
- default: {
1012
- bodyMapper: CloudError
1013
- }
1014
- },
1015
- requestBody: updateParams,
1016
- queryParameters: [apiVersion],
1017
- urlParameters: [
1018
- $host,
1019
- subscriptionId,
1020
- resourceGroupName,
1021
- providerName
1022
- ],
1023
- headerParameters: [accept, contentType],
1024
- mediaType: "json",
1025
- serializer: serializer$1
1026
- };
1027
- const deleteOperationSpec$1 = {
1028
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}",
1029
- httpMethod: "DELETE",
1030
- responses: {
1031
- 200: {},
1032
- 202: {},
1033
- 204: {},
1034
- default: {
1035
- bodyMapper: CloudError
1036
- }
1037
- },
1038
- queryParameters: [apiVersion],
1039
- urlParameters: [
1040
- $host,
1041
- subscriptionId,
1042
- resourceGroupName,
1043
- providerName
1044
- ],
1045
- headerParameters: [accept],
1046
- serializer: serializer$1
1047
- };
1048
- const listOperationSpec$1 = {
1049
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Attestation/attestationProviders",
1050
- httpMethod: "GET",
1051
- responses: {
1052
- 200: {
1053
- bodyMapper: AttestationProviderListResult
1054
- },
1055
- default: {
1056
- bodyMapper: CloudError
1057
- }
1058
- },
1059
- queryParameters: [apiVersion],
1060
- urlParameters: [$host, subscriptionId],
1061
- headerParameters: [accept],
1062
- serializer: serializer$1
1063
- };
1064
- const listByResourceGroupOperationSpec = {
1065
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders",
1066
- httpMethod: "GET",
1067
- responses: {
1068
- 200: {
1069
- bodyMapper: AttestationProviderListResult
1070
- },
1071
- default: {
1072
- bodyMapper: CloudError
1073
- }
1074
- },
1075
- queryParameters: [apiVersion],
1076
- urlParameters: [
1077
- $host,
1078
- subscriptionId,
1079
- resourceGroupName
1080
- ],
1081
- headerParameters: [accept],
1082
- serializer: serializer$1
1083
- };
1084
- const listDefaultOperationSpec = {
1085
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Attestation/defaultProviders",
1086
- httpMethod: "GET",
1087
- responses: {
1088
- 200: {
1089
- bodyMapper: AttestationProviderListResult
1090
- },
1091
- default: {
1092
- bodyMapper: CloudError
1093
- }
1094
- },
1095
- queryParameters: [apiVersion],
1096
- urlParameters: [$host, subscriptionId],
1097
- headerParameters: [accept],
1098
- serializer: serializer$1
1099
- };
1100
- const getDefaultByLocationOperationSpec = {
1101
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Attestation/locations/{location}/defaultProvider",
1102
- httpMethod: "GET",
1103
- responses: {
1104
- 200: {
1105
- bodyMapper: AttestationProvider
1106
- },
1107
- default: {
1108
- bodyMapper: CloudError
1109
- }
1110
- },
1111
- queryParameters: [apiVersion],
1112
- urlParameters: [
1113
- $host,
1114
- subscriptionId,
1115
- location
1116
- ],
1117
- headerParameters: [accept],
1118
- serializer: serializer$1
1119
- };
1120
-
1121
- /*
1122
- * Copyright (c) Microsoft Corporation.
1123
- * Licensed under the MIT License.
1124
- *
1125
- * Code generated by Microsoft (R) AutoRest Code Generator.
1126
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1127
- */
1128
- /// <reference lib="esnext.asynciterable" />
1129
- /** Class containing PrivateEndpointConnections operations. */
1130
- class PrivateEndpointConnectionsImpl {
1131
- /**
1132
- * Initialize a new instance of the class PrivateEndpointConnections class.
1133
- * @param client Reference to the service client
1134
- */
1135
- constructor(client) {
1136
- this.client = client;
1137
- }
1138
- /**
1139
- * List all the private endpoint connections associated with the attestation provider.
1140
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1141
- * @param providerName The name of the attestation provider.
1142
- * @param options The options parameters.
1143
- */
1144
- list(resourceGroupName, providerName, options) {
1145
- const iter = this.listPagingAll(resourceGroupName, providerName, options);
1146
- return {
1147
- next() {
1148
- return iter.next();
1149
- },
1150
- [Symbol.asyncIterator]() {
1151
- return this;
1152
- },
1153
- byPage: (settings) => {
1154
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1155
- throw new Error("maxPageSize is not supported by this operation.");
1156
- }
1157
- return this.listPagingPage(resourceGroupName, providerName, options, settings);
1158
- }
1159
- };
1160
- }
1161
- listPagingPage(resourceGroupName, providerName, options, _settings) {
1162
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1163
- let result;
1164
- result = yield tslib.__await(this._list(resourceGroupName, providerName, options));
1165
- yield yield tslib.__await(result.value || []);
1166
- });
1167
- }
1168
- listPagingAll(resourceGroupName, providerName, options) {
1169
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1170
- var _a, e_1, _b, _c;
1171
- try {
1172
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, providerName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1173
- _c = _f.value;
1174
- _d = false;
1175
- const page = _c;
1176
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1177
- }
1178
- }
1179
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1180
- finally {
1181
- try {
1182
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1183
- }
1184
- finally { if (e_1) throw e_1.error; }
1185
- }
1186
- });
1187
- }
1188
- /**
1189
- * List all the private endpoint connections associated with the attestation provider.
1190
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1191
- * @param providerName The name of the attestation provider.
1192
- * @param options The options parameters.
1193
- */
1194
- _list(resourceGroupName, providerName, options) {
1195
- return this.client.sendOperationRequest({ resourceGroupName, providerName, options }, listOperationSpec);
1196
- }
1197
- /**
1198
- * Gets the specified private endpoint connection associated with the attestation provider.
1199
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1200
- * @param providerName The name of the attestation provider.
1201
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
1202
- * Azure resource
1203
- * @param options The options parameters.
1204
- */
1205
- get(resourceGroupName, providerName, privateEndpointConnectionName, options) {
1206
- return this.client.sendOperationRequest({
1207
- resourceGroupName,
1208
- providerName,
1209
- privateEndpointConnectionName,
1210
- options
1211
- }, getOperationSpec);
1212
- }
1213
- /**
1214
- * Update the state of specified private endpoint connection associated with the attestation provider.
1215
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1216
- * @param providerName The name of the attestation provider.
1217
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
1218
- * Azure resource
1219
- * @param properties The private endpoint connection properties.
1220
- * @param options The options parameters.
1221
- */
1222
- create(resourceGroupName, providerName, privateEndpointConnectionName, properties, options) {
1223
- return this.client.sendOperationRequest({
1224
- resourceGroupName,
1225
- providerName,
1226
- privateEndpointConnectionName,
1227
- properties,
1228
- options
1229
- }, createOperationSpec);
1230
- }
1231
- /**
1232
- * Deletes the specified private endpoint connection associated with the attestation provider.
1233
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1234
- * @param providerName The name of the attestation provider.
1235
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
1236
- * Azure resource
1237
- * @param options The options parameters.
1238
- */
1239
- delete(resourceGroupName, providerName, privateEndpointConnectionName, options) {
1240
- return this.client.sendOperationRequest({
1241
- resourceGroupName,
1242
- providerName,
1243
- privateEndpointConnectionName,
1244
- options
1245
- }, deleteOperationSpec);
1246
- }
1247
- }
1248
- // Operation Specifications
1249
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1250
- const listOperationSpec = {
1251
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections",
1252
- httpMethod: "GET",
1253
- responses: {
1254
- 200: {
1255
- bodyMapper: PrivateEndpointConnectionListResult
1256
- },
1257
- default: {
1258
- bodyMapper: CloudError
1259
- }
1260
- },
1261
- queryParameters: [apiVersion],
1262
- urlParameters: [
1263
- $host,
1264
- subscriptionId,
1265
- resourceGroupName,
1266
- providerName1
1267
- ],
1268
- headerParameters: [accept],
1269
- serializer
1270
- };
1271
- const getOperationSpec = {
1272
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections/{privateEndpointConnectionName}",
1273
- httpMethod: "GET",
1274
- responses: {
1275
- 200: {
1276
- bodyMapper: PrivateEndpointConnection
1277
- },
1278
- default: {
1279
- bodyMapper: CloudError
1280
- }
1281
- },
1282
- queryParameters: [apiVersion],
1283
- urlParameters: [
1284
- $host,
1285
- subscriptionId,
1286
- resourceGroupName,
1287
- providerName1,
1288
- privateEndpointConnectionName
1289
- ],
1290
- headerParameters: [accept],
1291
- serializer
1292
- };
1293
- const createOperationSpec = {
1294
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections/{privateEndpointConnectionName}",
1295
- httpMethod: "PUT",
1296
- responses: {
1297
- 200: {
1298
- bodyMapper: PrivateEndpointConnection
1299
- },
1300
- default: {
1301
- bodyMapper: CloudError
1302
- }
1303
- },
1304
- requestBody: properties,
1305
- queryParameters: [apiVersion],
1306
- urlParameters: [
1307
- $host,
1308
- subscriptionId,
1309
- resourceGroupName,
1310
- providerName1,
1311
- privateEndpointConnectionName
1312
- ],
1313
- headerParameters: [accept, contentType],
1314
- mediaType: "json",
1315
- serializer
1316
- };
1317
- const deleteOperationSpec = {
1318
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections/{privateEndpointConnectionName}",
1319
- httpMethod: "DELETE",
1320
- responses: {
1321
- 200: {},
1322
- 204: {},
1323
- default: {
1324
- bodyMapper: CloudError
1325
- }
1326
- },
1327
- queryParameters: [apiVersion],
1328
- urlParameters: [
1329
- $host,
1330
- subscriptionId,
1331
- resourceGroupName,
1332
- providerName1,
1333
- privateEndpointConnectionName
1334
- ],
1335
- headerParameters: [accept],
1336
- serializer
1337
- };
1338
-
1339
- /*
1340
- * Copyright (c) Microsoft Corporation.
1341
- * Licensed under the MIT License.
1342
- *
1343
- * Code generated by Microsoft (R) AutoRest Code Generator.
1344
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1345
- */
1346
- class AttestationManagementClient extends coreClient__namespace.ServiceClient {
1347
- /**
1348
- * Initializes a new instance of the AttestationManagementClient class.
1349
- * @param credentials Subscription credentials which uniquely identify client subscription.
1350
- * @param subscriptionId The ID of the target subscription.
1351
- * @param options The parameter options
1352
- */
1353
- constructor(credentials, subscriptionId, options) {
1354
- var _a, _b, _c;
1355
- if (credentials === undefined) {
1356
- throw new Error("'credentials' cannot be null");
1357
- }
1358
- if (subscriptionId === undefined) {
1359
- throw new Error("'subscriptionId' cannot be null");
1360
- }
1361
- // Initializing default values for options
1362
- if (!options) {
1363
- options = {};
1364
- }
1365
- const defaults = {
1366
- requestContentType: "application/json; charset=utf-8",
1367
- credential: credentials
1368
- };
1369
- const packageDetails = `azsdk-js-arm-attestation/2.1.1`;
1370
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1371
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1372
- : `${packageDetails}`;
1373
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1374
- userAgentPrefix
1375
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1376
- super(optionsWithDefaults);
1377
- let bearerTokenAuthenticationPolicyFound = false;
1378
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1379
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
1380
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1381
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1382
- }
1383
- if (!options ||
1384
- !options.pipeline ||
1385
- options.pipeline.getOrderedPolicies().length == 0 ||
1386
- !bearerTokenAuthenticationPolicyFound) {
1387
- this.pipeline.removePolicy({
1388
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1389
- });
1390
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1391
- credential: credentials,
1392
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
1393
- challengeCallbacks: {
1394
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1395
- }
1396
- }));
1397
- }
1398
- // Parameter assignments
1399
- this.subscriptionId = subscriptionId;
1400
- // Assigning values to Constant parameters
1401
- this.$host = options.$host || "https://management.azure.com";
1402
- this.apiVersion = options.apiVersion || "2020-10-01";
1403
- this.operations = new OperationsImpl(this);
1404
- this.attestationProviders = new AttestationProvidersImpl(this);
1405
- this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
1406
- this.addCustomApiVersionPolicy(options.apiVersion);
1407
- }
1408
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1409
- addCustomApiVersionPolicy(apiVersion) {
1410
- if (!apiVersion) {
1411
- return;
1412
- }
1413
- const apiVersionPolicy = {
1414
- name: "CustomApiVersionPolicy",
1415
- sendRequest(request, next) {
1416
- return tslib.__awaiter(this, void 0, void 0, function* () {
1417
- const param = request.url.split("?");
1418
- if (param.length > 1) {
1419
- const newParams = param[1].split("&").map((item) => {
1420
- if (item.indexOf("api-version") > -1) {
1421
- return "api-version=" + apiVersion;
1422
- }
1423
- else {
1424
- return item;
1425
- }
1426
- });
1427
- request.url = param[0] + "?" + newParams.join("&");
1428
- }
1429
- return next(request);
1430
- });
1431
- }
1432
- };
1433
- this.pipeline.addPolicy(apiVersionPolicy);
1434
- }
1435
- }
1436
-
1437
- exports.AttestationManagementClient = AttestationManagementClient;
1438
- exports.getContinuationToken = getContinuationToken;
1439
- //# sourceMappingURL=index.js.map