@azure/arm-deviceupdate 1.0.0-beta.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 (225) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +3665 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/accountsCreateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/accountsCreateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/accountsCreateSample.js +32 -0
  11. package/dist-esm/samples-dev/accountsCreateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/accountsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/accountsDeleteSample.js +31 -0
  15. package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/accountsGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/accountsGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/accountsGetSample.js +31 -0
  19. package/dist-esm/samples-dev/accountsGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/accountsHeadSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/accountsHeadSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/accountsHeadSample.js +31 -0
  23. package/dist-esm/samples-dev/accountsHeadSample.js.map +1 -0
  24. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +44 -0
  27. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -0
  28. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +43 -0
  31. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -0
  32. package/dist-esm/samples-dev/accountsUpdateSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/accountsUpdateSample.js +32 -0
  35. package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -0
  36. package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts +2 -0
  37. package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/checkNameAvailabilitySample.js +53 -0
  39. package/dist-esm/samples-dev/checkNameAvailabilitySample.js.map +1 -0
  40. package/dist-esm/samples-dev/instancesCreateSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/instancesCreateSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/instancesCreateSample.js +46 -0
  43. package/dist-esm/samples-dev/instancesCreateSample.js.map +1 -0
  44. package/dist-esm/samples-dev/instancesDeleteSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/instancesDeleteSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/instancesDeleteSample.js +32 -0
  47. package/dist-esm/samples-dev/instancesDeleteSample.js.map +1 -0
  48. package/dist-esm/samples-dev/instancesGetSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/instancesGetSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/instancesGetSample.js +32 -0
  51. package/dist-esm/samples-dev/instancesGetSample.js.map +1 -0
  52. package/dist-esm/samples-dev/instancesHeadSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/instancesHeadSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/instancesHeadSample.js +32 -0
  55. package/dist-esm/samples-dev/instancesHeadSample.js.map +1 -0
  56. package/dist-esm/samples-dev/instancesListByAccountSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/instancesListByAccountSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/instancesListByAccountSample.js +45 -0
  59. package/dist-esm/samples-dev/instancesListByAccountSample.js.map +1 -0
  60. package/dist-esm/samples-dev/instancesUpdateSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/instancesUpdateSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/instancesUpdateSample.js +33 -0
  63. package/dist-esm/samples-dev/instancesUpdateSample.js.map +1 -0
  64. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  67. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  68. package/dist-esm/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.js +53 -0
  71. package/dist-esm/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.js.map +1 -0
  72. package/dist-esm/samples-dev/privateEndpointConnectionProxiesDeleteSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/privateEndpointConnectionProxiesDeleteSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/privateEndpointConnectionProxiesDeleteSample.js +32 -0
  75. package/dist-esm/samples-dev/privateEndpointConnectionProxiesDeleteSample.js.map +1 -0
  76. package/dist-esm/samples-dev/privateEndpointConnectionProxiesGetSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/privateEndpointConnectionProxiesGetSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/privateEndpointConnectionProxiesGetSample.js +32 -0
  79. package/dist-esm/samples-dev/privateEndpointConnectionProxiesGetSample.js.map +1 -0
  80. package/dist-esm/samples-dev/privateEndpointConnectionProxiesListByAccountSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/privateEndpointConnectionProxiesListByAccountSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/privateEndpointConnectionProxiesListByAccountSample.js +45 -0
  83. package/dist-esm/samples-dev/privateEndpointConnectionProxiesListByAccountSample.js.map +1 -0
  84. package/dist-esm/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.js +39 -0
  87. package/dist-esm/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.js.map +1 -0
  88. package/dist-esm/samples-dev/privateEndpointConnectionProxiesValidateSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/privateEndpointConnectionProxiesValidateSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/privateEndpointConnectionProxiesValidateSample.js +53 -0
  91. package/dist-esm/samples-dev/privateEndpointConnectionProxiesValidateSample.js.map +1 -0
  92. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +38 -0
  95. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -0
  96. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  97. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
  99. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  100. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  101. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
  103. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  104. package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.d.ts +2 -0
  105. package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.js +45 -0
  107. package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.js.map +1 -0
  108. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +32 -0
  111. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -0
  112. package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.js +45 -0
  115. package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.js.map +1 -0
  116. package/dist-esm/src/deviceUpdate.d.ts +31 -0
  117. package/dist-esm/src/deviceUpdate.d.ts.map +1 -0
  118. package/dist-esm/src/deviceUpdate.js +133 -0
  119. package/dist-esm/src/deviceUpdate.js.map +1 -0
  120. package/dist-esm/src/index.d.ts +5 -0
  121. package/dist-esm/src/index.d.ts.map +1 -0
  122. package/dist-esm/src/index.js +12 -0
  123. package/dist-esm/src/index.js.map +1 -0
  124. package/dist-esm/src/lroImpl.d.ts +16 -0
  125. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  126. package/dist-esm/src/lroImpl.js +29 -0
  127. package/dist-esm/src/lroImpl.js.map +1 -0
  128. package/dist-esm/src/models/index.d.ts +941 -0
  129. package/dist-esm/src/models/index.d.ts.map +1 -0
  130. package/dist-esm/src/models/index.js +105 -0
  131. package/dist-esm/src/models/index.js.map +1 -0
  132. package/dist-esm/src/models/mappers.d.ts +44 -0
  133. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  134. package/dist-esm/src/models/mappers.js +1266 -0
  135. package/dist-esm/src/models/mappers.js.map +1 -0
  136. package/dist-esm/src/models/parameters.d.ts +22 -0
  137. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  138. package/dist-esm/src/models/parameters.js +176 -0
  139. package/dist-esm/src/models/parameters.js.map +1 -0
  140. package/dist-esm/src/operations/accounts.d.ts +114 -0
  141. package/dist-esm/src/operations/accounts.d.ts.map +1 -0
  142. package/dist-esm/src/operations/accounts.js +537 -0
  143. package/dist-esm/src/operations/accounts.js.map +1 -0
  144. package/dist-esm/src/operations/index.d.ts +7 -0
  145. package/dist-esm/src/operations/index.d.ts.map +1 -0
  146. package/dist-esm/src/operations/index.js +14 -0
  147. package/dist-esm/src/operations/index.js.map +1 -0
  148. package/dist-esm/src/operations/instances.d.ts +98 -0
  149. package/dist-esm/src/operations/instances.d.ts.map +1 -0
  150. package/dist-esm/src/operations/instances.js +408 -0
  151. package/dist-esm/src/operations/instances.js.map +1 -0
  152. package/dist-esm/src/operations/operations.d.ts +32 -0
  153. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  154. package/dist-esm/src/operations/operations.js +120 -0
  155. package/dist-esm/src/operations/operations.js.map +1 -0
  156. package/dist-esm/src/operations/privateEndpointConnectionProxies.d.ts +100 -0
  157. package/dist-esm/src/operations/privateEndpointConnectionProxies.d.ts.map +1 -0
  158. package/dist-esm/src/operations/privateEndpointConnectionProxies.js +402 -0
  159. package/dist-esm/src/operations/privateEndpointConnectionProxies.js.map +1 -0
  160. package/dist-esm/src/operations/privateEndpointConnections.d.ts +78 -0
  161. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  162. package/dist-esm/src/operations/privateEndpointConnections.js +320 -0
  163. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  164. package/dist-esm/src/operations/privateLinkResources.d.ts +38 -0
  165. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  166. package/dist-esm/src/operations/privateLinkResources.js +131 -0
  167. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  168. package/dist-esm/src/operationsInterfaces/accounts.d.ts +78 -0
  169. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
  170. package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
  171. package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
  172. package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
  173. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  174. package/dist-esm/src/operationsInterfaces/index.js +14 -0
  175. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  176. package/dist-esm/src/operationsInterfaces/instances.d.ts +73 -0
  177. package/dist-esm/src/operationsInterfaces/instances.d.ts.map +1 -0
  178. package/dist-esm/src/operationsInterfaces/instances.js +9 -0
  179. package/dist-esm/src/operationsInterfaces/instances.js.map +1 -0
  180. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  181. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  182. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  183. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  184. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionProxies.d.ts +83 -0
  185. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionProxies.d.ts.map +1 -0
  186. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionProxies.js +9 -0
  187. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionProxies.js.map +1 -0
  188. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +61 -0
  189. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  190. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  191. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  192. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
  193. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  194. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  195. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  196. package/dist-esm/test/sampleTest.d.ts +2 -0
  197. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  198. package/dist-esm/test/sampleTest.js +38 -0
  199. package/dist-esm/test/sampleTest.js.map +1 -0
  200. package/package.json +122 -0
  201. package/review/arm-deviceupdate.api.md +805 -0
  202. package/rollup.config.js +122 -0
  203. package/src/deviceUpdate.ts +204 -0
  204. package/src/index.ts +12 -0
  205. package/src/lroImpl.ts +34 -0
  206. package/src/models/index.ts +1080 -0
  207. package/src/models/mappers.ts +1356 -0
  208. package/src/models/parameters.ts +210 -0
  209. package/src/operations/accounts.ts +722 -0
  210. package/src/operations/index.ts +14 -0
  211. package/src/operations/instances.ts +579 -0
  212. package/src/operations/operations.ts +137 -0
  213. package/src/operations/privateEndpointConnectionProxies.ts +559 -0
  214. package/src/operations/privateEndpointConnections.ts +450 -0
  215. package/src/operations/privateLinkResources.ts +179 -0
  216. package/src/operationsInterfaces/accounts.ts +152 -0
  217. package/src/operationsInterfaces/index.ts +14 -0
  218. package/src/operationsInterfaces/instances.ts +142 -0
  219. package/src/operationsInterfaces/operations.ts +22 -0
  220. package/src/operationsInterfaces/privateEndpointConnectionProxies.ts +153 -0
  221. package/src/operationsInterfaces/privateEndpointConnections.ts +114 -0
  222. package/src/operationsInterfaces/privateLinkResources.ts +44 -0
  223. package/tsconfig.json +33 -0
  224. package/types/arm-deviceupdate.d.ts +1412 -0
  225. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=checkNameAvailabilitySample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkNameAvailabilitySample.d.ts","sourceRoot":"","sources":["../../samples-dev/checkNameAvailabilitySample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DeviceUpdate } from "@azure/arm-deviceupdate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Checks ADU resource name availability.
15
+ *
16
+ * @summary Checks ADU resource name availability.
17
+ * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/examples/CheckNameAvailability_AlreadyExists.json
18
+ */
19
+ function checkNameAvailabilityAlreadyExists() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const request = {
23
+ name: "contoso",
24
+ type: "Microsoft.DeviceUpdate/accounts"
25
+ };
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new DeviceUpdate(credential, subscriptionId);
28
+ const result = yield client.checkNameAvailability(request);
29
+ console.log(result);
30
+ });
31
+ }
32
+ checkNameAvailabilityAlreadyExists().catch(console.error);
33
+ /**
34
+ * This sample demonstrates how to Checks ADU resource name availability.
35
+ *
36
+ * @summary Checks ADU resource name availability.
37
+ * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/examples/CheckNameAvailability_Available.json
38
+ */
39
+ function checkNameAvailabilityAvailable() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
42
+ const request = {
43
+ name: "contoso",
44
+ type: "Microsoft.DeviceUpdate/accounts"
45
+ };
46
+ const credential = new DefaultAzureCredential();
47
+ const client = new DeviceUpdate(credential, subscriptionId);
48
+ const result = yield client.checkNameAvailability(request);
49
+ console.log(result);
50
+ });
51
+ }
52
+ checkNameAvailabilityAvailable().catch(console.error);
53
+ //# sourceMappingURL=checkNameAvailabilitySample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkNameAvailabilitySample.js","sourceRoot":"","sources":["../../samples-dev/checkNameAvailabilitySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,YAAY,EACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kCAAkC;;QAC/C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,OAAO,GAAiC;YAC5C,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,iCAAiC;SACxC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAC3D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kCAAkC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAE1D;;;;;GAKG;AACH,SAAe,8BAA8B;;QAC3C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,OAAO,GAAiC;YAC5C,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,iCAAiC;SACxC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAC3D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,8BAA8B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=instancesCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instancesCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/instancesCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DeviceUpdate } from "@azure/arm-deviceupdate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Creates or updates instance.
15
+ *
16
+ * @summary Creates or updates instance.
17
+ * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/examples/Instances/Instances_Create.json
18
+ */
19
+ function createsOrUpdatesInstance() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "test-rg";
23
+ const accountName = "contoso";
24
+ const instanceName = "blue";
25
+ const instance = {
26
+ diagnosticStorageProperties: {
27
+ authenticationType: "KeyBased",
28
+ connectionString: "string",
29
+ resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount"
30
+ },
31
+ enableDiagnostics: false,
32
+ iotHubs: [
33
+ {
34
+ resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub"
35
+ }
36
+ ],
37
+ location: "westus2"
38
+ };
39
+ const credential = new DefaultAzureCredential();
40
+ const client = new DeviceUpdate(credential, subscriptionId);
41
+ const result = yield client.instances.beginCreateAndWait(resourceGroupName, accountName, instanceName, instance);
42
+ console.log(result);
43
+ });
44
+ }
45
+ createsOrUpdatesInstance().catch(console.error);
46
+ //# sourceMappingURL=instancesCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instancesCreateSample.js","sourceRoot":"","sources":["../../samples-dev/instancesCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAY,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wBAAwB;;QACrC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,YAAY,GAAG,MAAM,CAAC;QAC5B,MAAM,QAAQ,GAAa;YACzB,2BAA2B,EAAE;gBAC3B,kBAAkB,EAAE,UAAU;gBAC9B,gBAAgB,EAAE,QAAQ;gBAC1B,UAAU,EACR,+IAA+I;aAClJ;YACD,iBAAiB,EAAE,KAAK;YACxB,OAAO,EAAE;gBACP;oBACE,UAAU,EACR,iIAAiI;iBACpI;aACF;YACD,QAAQ,EAAE,SAAS;SACpB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wBAAwB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=instancesDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instancesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/instancesDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DeviceUpdate } from "@azure/arm-deviceupdate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Deletes instance.
15
+ *
16
+ * @summary Deletes instance.
17
+ * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/examples/Instances/Instances_Delete.json
18
+ */
19
+ function deletesInstance() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "test-rg";
23
+ const accountName = "contoso";
24
+ const instanceName = "blue";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DeviceUpdate(credential, subscriptionId);
27
+ const result = yield client.instances.beginDeleteAndWait(resourceGroupName, accountName, instanceName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ deletesInstance().catch(console.error);
32
+ //# sourceMappingURL=instancesDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instancesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/instancesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,YAAY,GAAG,MAAM,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,WAAW,EACX,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=instancesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instancesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/instancesGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DeviceUpdate } from "@azure/arm-deviceupdate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Returns instance details for the given instance and account name.
15
+ *
16
+ * @summary Returns instance details for the given instance and account name.
17
+ * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/examples/Instances/Instances_Get.json
18
+ */
19
+ function getsListOfInstances() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "test-rg";
23
+ const accountName = "contoso";
24
+ const instanceName = "blue";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DeviceUpdate(credential, subscriptionId);
27
+ const result = yield client.instances.get(resourceGroupName, accountName, instanceName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getsListOfInstances().catch(console.error);
32
+ //# sourceMappingURL=instancesGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instancesGetSample.js","sourceRoot":"","sources":["../../samples-dev/instancesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,YAAY,GAAG,MAAM,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,WAAW,EACX,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=instancesHeadSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instancesHeadSample.d.ts","sourceRoot":"","sources":["../../samples-dev/instancesHeadSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DeviceUpdate } from "@azure/arm-deviceupdate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Checks whether instance exists.
15
+ *
16
+ * @summary Checks whether instance exists.
17
+ * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/examples/Instances/Instances_Head.json
18
+ */
19
+ function checksWhetherInstanceExists() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "test-rg";
23
+ const accountName = "contoso";
24
+ const instanceName = "blue";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DeviceUpdate(credential, subscriptionId);
27
+ const result = yield client.instances.head(resourceGroupName, accountName, instanceName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ checksWhetherInstanceExists().catch(console.error);
32
+ //# sourceMappingURL=instancesHeadSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instancesHeadSample.js","sourceRoot":"","sources":["../../samples-dev/instancesHeadSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,YAAY,GAAG,MAAM,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,IAAI,CACxC,iBAAiB,EACjB,WAAW,EACX,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=instancesListByAccountSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instancesListByAccountSample.d.ts","sourceRoot":"","sources":["../../samples-dev/instancesListByAccountSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DeviceUpdate } from "@azure/arm-deviceupdate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Returns instances for the given account name.
15
+ *
16
+ * @summary Returns instances for the given account name.
17
+ * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/examples/Instances/Instances_ListByAccount.json
18
+ */
19
+ function getsListOfInstancesByAccount() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const resourceGroupName = "test-rg";
24
+ const accountName = "contoso";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DeviceUpdate(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.instances.listByAccount(resourceGroupName, accountName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ getsListOfInstancesByAccount().catch(console.error);
45
+ //# sourceMappingURL=instancesListByAccountSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instancesListByAccountSample.js","sourceRoot":"","sources":["../../samples-dev/instancesListByAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,4BAA4B;;;QACzC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CACnD,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=instancesUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instancesUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/instancesUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DeviceUpdate } from "@azure/arm-deviceupdate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updates instance's tags.
15
+ *
16
+ * @summary Updates instance's tags.
17
+ * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/examples/Instances/Instances_Update.json
18
+ */
19
+ function updatesInstance() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "test-rg";
23
+ const accountName = "contoso";
24
+ const instanceName = "blue";
25
+ const tagUpdatePayload = { tags: { tagKey: "tagValue" } };
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new DeviceUpdate(credential, subscriptionId);
28
+ const result = yield client.instances.update(resourceGroupName, accountName, instanceName, tagUpdatePayload);
29
+ console.log(result);
30
+ });
31
+ }
32
+ updatesInstance().catch(console.error);
33
+ //# sourceMappingURL=instancesUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instancesUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/instancesUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAa,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,YAAY,GAAG,MAAM,CAAC;QAC5B,MAAM,gBAAgB,GAAc,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC;QACrE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,MAAM,CAC1C,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=operationsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DeviceUpdate } from "@azure/arm-deviceupdate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Returns list of operations for Microsoft.DeviceUpdate resource provider.
15
+ *
16
+ * @summary Returns list of operations for Microsoft.DeviceUpdate resource provider.
17
+ * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/examples/Operations_List.json
18
+ */
19
+ function getsListOfOperations() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new DeviceUpdate(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
28
+ let item = _c.value;
29
+ resArray.push(item);
30
+ }
31
+ }
32
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
+ finally {
34
+ try {
35
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
36
+ }
37
+ finally { if (e_1) throw e_1.error; }
38
+ }
39
+ console.log(resArray);
40
+ });
41
+ }
42
+ getsListOfOperations().catch(console.error);
43
+ //# sourceMappingURL=operationsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oBAAoB;;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionProxiesCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionProxiesCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DeviceUpdate } from "@azure/arm-deviceupdate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to (INTERNAL - DO NOT USE) Creates or updates the specified private endpoint connection proxy resource associated with the device update account.
15
+ *
16
+ * @summary (INTERNAL - DO NOT USE) Creates or updates the specified private endpoint connection proxy resource associated with the device update account.
17
+ * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_CreateOrUpdate.json
18
+ */
19
+ function privateEndpointConnectionProxyCreateOrUpdate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "test-rg";
23
+ const accountName = "contoso";
24
+ const privateEndpointConnectionProxyId = "peexample01";
25
+ const privateEndpointConnectionProxy = {
26
+ remotePrivateEndpoint: {
27
+ id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
28
+ immutableResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
29
+ immutableSubscriptionId: "00000000-0000-0000-0000-000000000000",
30
+ location: "westus2",
31
+ manualPrivateLinkServiceConnections: [
32
+ {
33
+ name: "{privateEndpointConnectionProxyId}",
34
+ groupIds: ["DeviceUpdate"],
35
+ requestMessage: "Please approve my connection, thanks."
36
+ }
37
+ ],
38
+ privateLinkServiceProxies: [
39
+ {
40
+ groupConnectivityInformation: [],
41
+ id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}"
42
+ }
43
+ ]
44
+ }
45
+ };
46
+ const credential = new DefaultAzureCredential();
47
+ const client = new DeviceUpdate(credential, subscriptionId);
48
+ const result = yield client.privateEndpointConnectionProxies.beginCreateOrUpdateAndWait(resourceGroupName, accountName, privateEndpointConnectionProxyId, privateEndpointConnectionProxy);
49
+ console.log(result);
50
+ });
51
+ }
52
+ privateEndpointConnectionProxyCreateOrUpdate().catch(console.error);
53
+ //# sourceMappingURL=privateEndpointConnectionProxiesCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionProxiesCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,YAAY,EACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,4CAA4C;;QACzD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,gCAAgC,GAAG,aAAa,CAAC;QACvD,MAAM,8BAA8B,GAAmC;YACrE,qBAAqB,EAAE;gBACrB,EAAE,EACA,kIAAkI;gBACpI,mBAAmB,EACjB,kIAAkI;gBACpI,uBAAuB,EAAE,sCAAsC;gBAC/D,QAAQ,EAAE,SAAS;gBACnB,mCAAmC,EAAE;oBACnC;wBACE,IAAI,EAAE,oCAAoC;wBAC1C,QAAQ,EAAE,CAAC,cAAc,CAAC;wBAC1B,cAAc,EAAE,uCAAuC;qBACxD;iBACF;gBACD,yBAAyB,EAAE;oBACzB;wBACE,4BAA4B,EAAE,EAAE;wBAChC,EAAE,EACA,yNAAyN;qBAC5N;iBACF;aACF;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gCAAgC,CAAC,0BAA0B,CACrF,iBAAiB,EACjB,WAAW,EACX,gCAAgC,EAChC,8BAA8B,CAC/B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4CAA4C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionProxiesDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionProxiesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionProxiesDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DeviceUpdate } from "@azure/arm-deviceupdate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to (INTERNAL - DO NOT USE) Deletes the specified private endpoint connection proxy associated with the device update account.
15
+ *
16
+ * @summary (INTERNAL - DO NOT USE) Deletes the specified private endpoint connection proxy associated with the device update account.
17
+ * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json
18
+ */
19
+ function privateEndpointConnectionProxyDelete() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "test-rg";
23
+ const accountName = "contoso";
24
+ const privateEndpointConnectionProxyId = "peexample01";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DeviceUpdate(credential, subscriptionId);
27
+ const result = yield client.privateEndpointConnectionProxies.beginDeleteAndWait(resourceGroupName, accountName, privateEndpointConnectionProxyId);
28
+ console.log(result);
29
+ });
30
+ }
31
+ privateEndpointConnectionProxyDelete().catch(console.error);
32
+ //# sourceMappingURL=privateEndpointConnectionProxiesDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionProxiesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionProxiesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oCAAoC;;QACjD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,gCAAgC,GAAG,aAAa,CAAC;QACvD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gCAAgC,CAAC,kBAAkB,CAC7E,iBAAiB,EACjB,WAAW,EACX,gCAAgC,CACjC,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oCAAoC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionProxiesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionProxiesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionProxiesGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DeviceUpdate } from "@azure/arm-deviceupdate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to (INTERNAL - DO NOT USE) Get the specified private endpoint connection proxy associated with the device update account.
15
+ *
16
+ * @summary (INTERNAL - DO NOT USE) Get the specified private endpoint connection proxy associated with the device update account.
17
+ * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Get.json
18
+ */
19
+ function privateEndpointConnectionProxyGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "test-rg";
23
+ const accountName = "contoso";
24
+ const privateEndpointConnectionProxyId = "peexample01";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DeviceUpdate(credential, subscriptionId);
27
+ const result = yield client.privateEndpointConnectionProxies.get(resourceGroupName, accountName, privateEndpointConnectionProxyId);
28
+ console.log(result);
29
+ });
30
+ }
31
+ privateEndpointConnectionProxyGet().catch(console.error);
32
+ //# sourceMappingURL=privateEndpointConnectionProxiesGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionProxiesGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionProxiesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iCAAiC;;QAC9C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,gCAAgC,GAAG,aAAa,CAAC;QACvD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gCAAgC,CAAC,GAAG,CAC9D,iBAAiB,EACjB,WAAW,EACX,gCAAgC,CACjC,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iCAAiC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionProxiesListByAccountSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionProxiesListByAccountSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionProxiesListByAccountSample.ts"],"names":[],"mappings":""}