@azure/arm-support 2.1.1-alpha.20231017.1 → 2.2.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 (435) hide show
  1. package/CHANGELOG.md +111 -10
  2. package/README.md +1 -1
  3. package/dist/index.js +2451 -300
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/chatTranscriptsGetSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/chatTranscriptsGetSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/chatTranscriptsGetSample.js +38 -0
  10. package/dist-esm/samples-dev/chatTranscriptsGetSample.js.map +1 -0
  11. package/dist-esm/samples-dev/chatTranscriptsListSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/chatTranscriptsListSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/{getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.js → chatTranscriptsListSample.js} +18 -11
  14. package/dist-esm/samples-dev/chatTranscriptsListSample.js.map +1 -0
  15. package/dist-esm/samples-dev/chatTranscriptsNoSubscriptionGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/chatTranscriptsNoSubscriptionGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/chatTranscriptsNoSubscriptionGetSample.js +37 -0
  18. package/dist-esm/samples-dev/chatTranscriptsNoSubscriptionGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/communicationsCheckNameAvailabilitySample.js +1 -1
  20. package/dist-esm/samples-dev/communicationsCreateSample.js +1 -1
  21. package/dist-esm/samples-dev/communicationsGetSample.js +1 -1
  22. package/dist-esm/samples-dev/communicationsListSample.js +3 -3
  23. package/dist-esm/samples-dev/communicationsNoSubscriptionCheckNameAvailabilitySample.d.ts +2 -0
  24. package/dist-esm/samples-dev/communicationsNoSubscriptionCheckNameAvailabilitySample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/{checksWhetherNameIsAvailableForCommunicationResource.js → communicationsNoSubscriptionCheckNameAvailabilitySample.js} +15 -7
  26. package/dist-esm/samples-dev/communicationsNoSubscriptionCheckNameAvailabilitySample.js.map +1 -0
  27. package/dist-esm/samples-dev/communicationsNoSubscriptionCreateSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/communicationsNoSubscriptionCreateSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/{addCommunicationToSubscriptionTicket.js → communicationsNoSubscriptionCreateSample.js} +15 -9
  30. package/dist-esm/samples-dev/communicationsNoSubscriptionCreateSample.js.map +1 -0
  31. package/dist-esm/samples-dev/communicationsNoSubscriptionGetSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/communicationsNoSubscriptionGetSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/{getCommunicationDetailsForASubscriptionSupportTicket.js → communicationsNoSubscriptionGetSample.js} +15 -9
  34. package/dist-esm/samples-dev/communicationsNoSubscriptionGetSample.js.map +1 -0
  35. package/dist-esm/samples-dev/fileWorkspacesCreateSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/fileWorkspacesCreateSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/fileWorkspacesCreateSample.js +37 -0
  38. package/dist-esm/samples-dev/fileWorkspacesCreateSample.js.map +1 -0
  39. package/dist-esm/samples-dev/fileWorkspacesGetSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/fileWorkspacesGetSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/fileWorkspacesGetSample.js +37 -0
  42. package/dist-esm/samples-dev/fileWorkspacesGetSample.js.map +1 -0
  43. package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionCreateSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionCreateSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionCreateSample.js +36 -0
  46. package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionCreateSample.js.map +1 -0
  47. package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionGetSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionGetSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionGetSample.js +36 -0
  50. package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionGetSample.js.map +1 -0
  51. package/dist-esm/samples-dev/filesCreateSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/filesCreateSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/filesCreateSample.js +43 -0
  54. package/dist-esm/samples-dev/filesCreateSample.js.map +1 -0
  55. package/dist-esm/samples-dev/filesGetSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/filesGetSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/filesGetSample.js +38 -0
  58. package/dist-esm/samples-dev/filesGetSample.js.map +1 -0
  59. package/dist-esm/samples-dev/filesListSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/filesListSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/{getAllOperations.js → filesListSample.js} +18 -10
  62. package/dist-esm/samples-dev/filesListSample.js.map +1 -0
  63. package/dist-esm/samples-dev/filesNoSubscriptionCreateSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/filesNoSubscriptionCreateSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/filesNoSubscriptionCreateSample.js +42 -0
  66. package/dist-esm/samples-dev/filesNoSubscriptionCreateSample.js.map +1 -0
  67. package/dist-esm/samples-dev/filesNoSubscriptionGetSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/filesNoSubscriptionGetSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/filesNoSubscriptionGetSample.js +37 -0
  70. package/dist-esm/samples-dev/filesNoSubscriptionGetSample.js.map +1 -0
  71. package/dist-esm/samples-dev/filesNoSubscriptionListSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/filesNoSubscriptionListSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/filesNoSubscriptionListSample.js +57 -0
  74. package/dist-esm/samples-dev/filesNoSubscriptionListSample.js.map +1 -0
  75. package/dist-esm/samples-dev/filesNoSubscriptionUploadSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/filesNoSubscriptionUploadSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/filesNoSubscriptionUploadSample.js +41 -0
  78. package/dist-esm/samples-dev/filesNoSubscriptionUploadSample.js.map +1 -0
  79. package/dist-esm/samples-dev/filesUploadSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/filesUploadSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/filesUploadSample.js +42 -0
  82. package/dist-esm/samples-dev/filesUploadSample.js.map +1 -0
  83. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  84. package/dist-esm/samples-dev/problemClassificationsGetSample.js +2 -4
  85. package/dist-esm/samples-dev/problemClassificationsGetSample.js.map +1 -1
  86. package/dist-esm/samples-dev/problemClassificationsListSample.js +2 -4
  87. package/dist-esm/samples-dev/problemClassificationsListSample.js.map +1 -1
  88. package/dist-esm/samples-dev/servicesGetSample.js +2 -4
  89. package/dist-esm/samples-dev/servicesGetSample.js.map +1 -1
  90. package/dist-esm/samples-dev/servicesListSample.js +2 -4
  91. package/dist-esm/samples-dev/servicesListSample.js.map +1 -1
  92. package/dist-esm/samples-dev/supportTicketChatTranscriptsNoSubscriptionListSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/supportTicketChatTranscriptsNoSubscriptionListSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/{listSupportTicketsForASubscription.js → supportTicketChatTranscriptsNoSubscriptionListSample.js} +18 -11
  95. package/dist-esm/samples-dev/supportTicketChatTranscriptsNoSubscriptionListSample.js.map +1 -0
  96. package/dist-esm/samples-dev/supportTicketCommunicationsNoSubscriptionListSample.d.ts +2 -0
  97. package/dist-esm/samples-dev/supportTicketCommunicationsNoSubscriptionListSample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/supportTicketCommunicationsNoSubscriptionListSample.js +139 -0
  99. package/dist-esm/samples-dev/supportTicketCommunicationsNoSubscriptionListSample.js.map +1 -0
  100. package/dist-esm/samples-dev/supportTicketsCheckNameAvailabilitySample.js +1 -1
  101. package/dist-esm/samples-dev/supportTicketsCreateSample.js +54 -17
  102. package/dist-esm/samples-dev/supportTicketsCreateSample.js.map +1 -1
  103. package/dist-esm/samples-dev/supportTicketsGetSample.js +1 -1
  104. package/dist-esm/samples-dev/supportTicketsListSample.js +170 -14
  105. package/dist-esm/samples-dev/supportTicketsListSample.js.map +1 -1
  106. package/dist-esm/samples-dev/supportTicketsNoSubscriptionCheckNameAvailabilitySample.d.ts +2 -0
  107. package/dist-esm/samples-dev/supportTicketsNoSubscriptionCheckNameAvailabilitySample.d.ts.map +1 -0
  108. package/dist-esm/samples-dev/{checksWhetherNameIsAvailableForSupportTicketResource.js → supportTicketsNoSubscriptionCheckNameAvailabilitySample.js} +15 -7
  109. package/dist-esm/samples-dev/supportTicketsNoSubscriptionCheckNameAvailabilitySample.js.map +1 -0
  110. package/dist-esm/samples-dev/supportTicketsNoSubscriptionCreateSample.d.ts +2 -0
  111. package/dist-esm/samples-dev/supportTicketsNoSubscriptionCreateSample.d.ts.map +1 -0
  112. package/dist-esm/samples-dev/supportTicketsNoSubscriptionCreateSample.js +127 -0
  113. package/dist-esm/samples-dev/supportTicketsNoSubscriptionCreateSample.js.map +1 -0
  114. package/dist-esm/samples-dev/supportTicketsNoSubscriptionGetSample.d.ts +2 -0
  115. package/dist-esm/samples-dev/supportTicketsNoSubscriptionGetSample.d.ts.map +1 -0
  116. package/dist-esm/samples-dev/supportTicketsNoSubscriptionGetSample.js +36 -0
  117. package/dist-esm/samples-dev/supportTicketsNoSubscriptionGetSample.js.map +1 -0
  118. package/dist-esm/samples-dev/supportTicketsNoSubscriptionListSample.d.ts +2 -0
  119. package/dist-esm/samples-dev/supportTicketsNoSubscriptionListSample.d.ts.map +1 -0
  120. package/dist-esm/samples-dev/supportTicketsNoSubscriptionListSample.js +284 -0
  121. package/dist-esm/samples-dev/supportTicketsNoSubscriptionListSample.js.map +1 -0
  122. package/dist-esm/samples-dev/supportTicketsNoSubscriptionUpdateSample.d.ts +2 -0
  123. package/dist-esm/samples-dev/supportTicketsNoSubscriptionUpdateSample.d.ts.map +1 -0
  124. package/dist-esm/samples-dev/supportTicketsNoSubscriptionUpdateSample.js +102 -0
  125. package/dist-esm/samples-dev/supportTicketsNoSubscriptionUpdateSample.js.map +1 -0
  126. package/dist-esm/samples-dev/supportTicketsUpdateSample.js +29 -9
  127. package/dist-esm/samples-dev/supportTicketsUpdateSample.js.map +1 -1
  128. package/dist-esm/src/lroImpl.d.ts +6 -11
  129. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  130. package/dist-esm/src/lroImpl.js +12 -20
  131. package/dist-esm/src/lroImpl.js.map +1 -1
  132. package/dist-esm/src/microsoftSupport.d.ts +13 -2
  133. package/dist-esm/src/microsoftSupport.d.ts.map +1 -1
  134. package/dist-esm/src/microsoftSupport.js +20 -12
  135. package/dist-esm/src/microsoftSupport.js.map +1 -1
  136. package/dist-esm/src/models/index.d.ts +431 -23
  137. package/dist-esm/src/models/index.d.ts.map +1 -1
  138. package/dist-esm/src/models/index.js +32 -0
  139. package/dist-esm/src/models/index.js.map +1 -1
  140. package/dist-esm/src/models/mappers.d.ts +17 -3
  141. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  142. package/dist-esm/src/models/mappers.js +443 -19
  143. package/dist-esm/src/models/mappers.js.map +1 -1
  144. package/dist-esm/src/models/parameters.d.ts +6 -0
  145. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  146. package/dist-esm/src/models/parameters.js +53 -2
  147. package/dist-esm/src/models/parameters.js.map +1 -1
  148. package/dist-esm/src/operations/chatTranscripts.d.ts +42 -0
  149. package/dist-esm/src/operations/chatTranscripts.d.ts.map +1 -0
  150. package/dist-esm/src/operations/chatTranscripts.js +180 -0
  151. package/dist-esm/src/operations/chatTranscripts.js.map +1 -0
  152. package/dist-esm/src/operations/chatTranscriptsNoSubscription.d.ts +20 -0
  153. package/dist-esm/src/operations/chatTranscriptsNoSubscription.d.ts.map +1 -0
  154. package/dist-esm/src/operations/chatTranscriptsNoSubscription.js +52 -0
  155. package/dist-esm/src/operations/chatTranscriptsNoSubscription.js.map +1 -0
  156. package/dist-esm/src/operations/communications.d.ts +2 -2
  157. package/dist-esm/src/operations/communications.d.ts.map +1 -1
  158. package/dist-esm/src/operations/communications.js +21 -17
  159. package/dist-esm/src/operations/communications.js.map +1 -1
  160. package/dist-esm/src/operations/communicationsNoSubscription.d.ts +45 -0
  161. package/dist-esm/src/operations/communicationsNoSubscription.d.ts.map +1 -0
  162. package/dist-esm/src/operations/communicationsNoSubscription.js +177 -0
  163. package/dist-esm/src/operations/communicationsNoSubscription.js.map +1 -0
  164. package/dist-esm/src/operations/fileWorkspaces.d.ts +25 -0
  165. package/dist-esm/src/operations/fileWorkspaces.d.ts.map +1 -0
  166. package/dist-esm/src/operations/fileWorkspaces.js +79 -0
  167. package/dist-esm/src/operations/fileWorkspaces.js.map +1 -0
  168. package/dist-esm/src/operations/fileWorkspacesNoSubscription.d.ts +25 -0
  169. package/dist-esm/src/operations/fileWorkspacesNoSubscription.d.ts.map +1 -0
  170. package/dist-esm/src/operations/fileWorkspacesNoSubscription.js +71 -0
  171. package/dist-esm/src/operations/fileWorkspacesNoSubscription.js.map +1 -0
  172. package/dist-esm/src/operations/files.d.ts +58 -0
  173. package/dist-esm/src/operations/files.d.ts.map +1 -0
  174. package/dist-esm/src/operations/files.js +244 -0
  175. package/dist-esm/src/operations/files.js.map +1 -0
  176. package/dist-esm/src/operations/filesNoSubscription.d.ts +58 -0
  177. package/dist-esm/src/operations/filesNoSubscription.d.ts.map +1 -0
  178. package/dist-esm/src/operations/filesNoSubscription.js +236 -0
  179. package/dist-esm/src/operations/filesNoSubscription.js.map +1 -0
  180. package/dist-esm/src/operations/index.d.ts +10 -0
  181. package/dist-esm/src/operations/index.d.ts.map +1 -1
  182. package/dist-esm/src/operations/index.js +10 -0
  183. package/dist-esm/src/operations/index.js.map +1 -1
  184. package/dist-esm/src/operations/operations.js +1 -1
  185. package/dist-esm/src/operations/operations.js.map +1 -1
  186. package/dist-esm/src/operations/problemClassifications.js +2 -2
  187. package/dist-esm/src/operations/problemClassifications.js.map +1 -1
  188. package/dist-esm/src/operations/services.js +2 -2
  189. package/dist-esm/src/operations/services.js.map +1 -1
  190. package/dist-esm/src/operations/supportTicketChatTranscriptsNoSubscription.d.ts +35 -0
  191. package/dist-esm/src/operations/supportTicketChatTranscriptsNoSubscription.d.ts.map +1 -0
  192. package/dist-esm/src/operations/supportTicketChatTranscriptsNoSubscription.js +145 -0
  193. package/dist-esm/src/operations/supportTicketChatTranscriptsNoSubscription.js.map +1 -0
  194. package/dist-esm/src/operations/supportTicketCommunicationsNoSubscription.d.ts +45 -0
  195. package/dist-esm/src/operations/supportTicketCommunicationsNoSubscription.d.ts.map +1 -0
  196. package/dist-esm/src/operations/supportTicketCommunicationsNoSubscription.js +155 -0
  197. package/dist-esm/src/operations/supportTicketCommunicationsNoSubscription.js.map +1 -0
  198. package/dist-esm/src/operations/supportTickets.d.ts +15 -17
  199. package/dist-esm/src/operations/supportTickets.d.ts.map +1 -1
  200. package/dist-esm/src/operations/supportTickets.js +30 -28
  201. package/dist-esm/src/operations/supportTickets.js.map +1 -1
  202. package/dist-esm/src/operations/supportTicketsNoSubscription.d.ts +98 -0
  203. package/dist-esm/src/operations/supportTicketsNoSubscription.d.ts.map +1 -0
  204. package/dist-esm/src/operations/supportTicketsNoSubscription.js +332 -0
  205. package/dist-esm/src/operations/supportTicketsNoSubscription.js.map +1 -0
  206. package/dist-esm/src/operationsInterfaces/chatTranscripts.d.ts +19 -0
  207. package/dist-esm/src/operationsInterfaces/chatTranscripts.d.ts.map +1 -0
  208. package/dist-esm/src/operationsInterfaces/chatTranscripts.js +9 -0
  209. package/dist-esm/src/operationsInterfaces/chatTranscripts.js.map +1 -0
  210. package/dist-esm/src/operationsInterfaces/chatTranscriptsNoSubscription.d.ts +12 -0
  211. package/dist-esm/src/operationsInterfaces/chatTranscriptsNoSubscription.d.ts.map +1 -0
  212. package/dist-esm/src/operationsInterfaces/chatTranscriptsNoSubscription.js +9 -0
  213. package/dist-esm/src/operationsInterfaces/chatTranscriptsNoSubscription.js.map +1 -0
  214. package/dist-esm/src/operationsInterfaces/communications.d.ts +2 -2
  215. package/dist-esm/src/operationsInterfaces/communications.d.ts.map +1 -1
  216. package/dist-esm/src/operationsInterfaces/communicationsNoSubscription.d.ts +37 -0
  217. package/dist-esm/src/operationsInterfaces/communicationsNoSubscription.d.ts.map +1 -0
  218. package/dist-esm/src/operationsInterfaces/communicationsNoSubscription.js +9 -0
  219. package/dist-esm/src/operationsInterfaces/communicationsNoSubscription.js.map +1 -0
  220. package/dist-esm/src/operationsInterfaces/fileWorkspaces.d.ts +17 -0
  221. package/dist-esm/src/operationsInterfaces/fileWorkspaces.d.ts.map +1 -0
  222. package/dist-esm/src/operationsInterfaces/fileWorkspaces.js +9 -0
  223. package/dist-esm/src/operationsInterfaces/fileWorkspaces.js.map +1 -0
  224. package/dist-esm/src/operationsInterfaces/fileWorkspacesNoSubscription.d.ts +17 -0
  225. package/dist-esm/src/operationsInterfaces/fileWorkspacesNoSubscription.d.ts.map +1 -0
  226. package/dist-esm/src/operationsInterfaces/fileWorkspacesNoSubscription.js +9 -0
  227. package/dist-esm/src/operationsInterfaces/fileWorkspacesNoSubscription.js.map +1 -0
  228. package/dist-esm/src/operationsInterfaces/files.d.ts +35 -0
  229. package/dist-esm/src/operationsInterfaces/files.d.ts.map +1 -0
  230. package/dist-esm/src/operationsInterfaces/files.js +9 -0
  231. package/dist-esm/src/operationsInterfaces/files.js.map +1 -0
  232. package/dist-esm/src/operationsInterfaces/filesNoSubscription.d.ts +35 -0
  233. package/dist-esm/src/operationsInterfaces/filesNoSubscription.d.ts.map +1 -0
  234. package/dist-esm/src/operationsInterfaces/filesNoSubscription.js +9 -0
  235. package/dist-esm/src/operationsInterfaces/filesNoSubscription.js.map +1 -0
  236. package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
  237. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  238. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  239. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  240. package/dist-esm/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.d.ts +12 -0
  241. package/dist-esm/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.d.ts.map +1 -0
  242. package/dist-esm/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.js +9 -0
  243. package/dist-esm/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.js.map +1 -0
  244. package/dist-esm/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.d.ts +17 -0
  245. package/dist-esm/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.d.ts.map +1 -0
  246. package/dist-esm/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.js +9 -0
  247. package/dist-esm/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.js.map +1 -0
  248. package/dist-esm/src/operationsInterfaces/supportTickets.d.ts +11 -13
  249. package/dist-esm/src/operationsInterfaces/supportTickets.d.ts.map +1 -1
  250. package/dist-esm/src/operationsInterfaces/supportTicketsNoSubscription.d.ts +73 -0
  251. package/dist-esm/src/operationsInterfaces/supportTicketsNoSubscription.d.ts.map +1 -0
  252. package/dist-esm/src/operationsInterfaces/supportTicketsNoSubscription.js +9 -0
  253. package/dist-esm/src/operationsInterfaces/supportTicketsNoSubscription.js.map +1 -0
  254. package/dist-esm/test/support_operations_test.spec.d.ts +4 -0
  255. package/dist-esm/test/support_operations_test.spec.d.ts.map +1 -0
  256. package/dist-esm/test/support_operations_test.spec.js +78 -0
  257. package/dist-esm/test/support_operations_test.spec.js.map +1 -0
  258. package/package.json +16 -10
  259. package/review/arm-support.api.md +464 -19
  260. package/src/lroImpl.ts +31 -23
  261. package/src/microsoftSupport.ts +73 -7
  262. package/src/models/index.ts +513 -23
  263. package/src/models/mappers.ts +473 -19
  264. package/src/models/parameters.ts +61 -2
  265. package/src/operations/chatTranscripts.ts +215 -0
  266. package/src/operations/chatTranscriptsNoSubscription.ts +72 -0
  267. package/src/operations/communications.ts +25 -18
  268. package/src/operations/communicationsNoSubscription.ts +254 -0
  269. package/src/operations/fileWorkspaces.ts +107 -0
  270. package/src/operations/fileWorkspacesNoSubscription.ts +98 -0
  271. package/src/operations/files.ts +303 -0
  272. package/src/operations/filesNoSubscription.ts +294 -0
  273. package/src/operations/index.ts +10 -0
  274. package/src/operations/operations.ts +1 -1
  275. package/src/operations/problemClassifications.ts +2 -2
  276. package/src/operations/services.ts +2 -2
  277. package/src/operations/supportTicketChatTranscriptsNoSubscription.ts +170 -0
  278. package/src/operations/supportTicketCommunicationsNoSubscription.ts +180 -0
  279. package/src/operations/supportTickets.ts +39 -34
  280. package/src/operations/supportTicketsNoSubscription.ts +415 -0
  281. package/src/operationsInterfaces/chatTranscripts.ts +40 -0
  282. package/src/operationsInterfaces/chatTranscriptsNoSubscription.ts +27 -0
  283. package/src/operationsInterfaces/communications.ts +3 -3
  284. package/src/operationsInterfaces/communicationsNoSubscription.ts +77 -0
  285. package/src/operationsInterfaces/fileWorkspaces.ts +36 -0
  286. package/src/operationsInterfaces/fileWorkspacesNoSubscription.ts +36 -0
  287. package/src/operationsInterfaces/files.ts +70 -0
  288. package/src/operationsInterfaces/filesNoSubscription.ts +70 -0
  289. package/src/operationsInterfaces/index.ts +10 -0
  290. package/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.ts +27 -0
  291. package/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.ts +32 -0
  292. package/src/operationsInterfaces/supportTickets.ts +12 -14
  293. package/src/operationsInterfaces/supportTicketsNoSubscription.ts +120 -0
  294. package/types/arm-support.d.ts +805 -50
  295. package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.d.ts +0 -2
  296. package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.d.ts.map +0 -1
  297. package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.js.map +0 -1
  298. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.d.ts +0 -2
  299. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.d.ts.map +0 -1
  300. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.js.map +0 -1
  301. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.d.ts +0 -2
  302. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.d.ts.map +0 -1
  303. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.js.map +0 -1
  304. package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.d.ts +0 -2
  305. package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.d.ts.map +0 -1
  306. package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.js +0 -46
  307. package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.js.map +0 -1
  308. package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.d.ts +0 -2
  309. package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.d.ts.map +0 -1
  310. package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.js +0 -46
  311. package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.js.map +0 -1
  312. package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.d.ts +0 -2
  313. package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.d.ts.map +0 -1
  314. package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.js +0 -49
  315. package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.js.map +0 -1
  316. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.d.ts +0 -2
  317. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.d.ts.map +0 -1
  318. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.js +0 -56
  319. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.js.map +0 -1
  320. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.d.ts +0 -2
  321. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.d.ts.map +0 -1
  322. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.js +0 -60
  323. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.js.map +0 -1
  324. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.d.ts +0 -2
  325. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.d.ts.map +0 -1
  326. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.js +0 -53
  327. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.js.map +0 -1
  328. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.d.ts +0 -2
  329. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.d.ts.map +0 -1
  330. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.js +0 -52
  331. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.js.map +0 -1
  332. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.d.ts +0 -2
  333. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.d.ts.map +0 -1
  334. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.js +0 -56
  335. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.js.map +0 -1
  336. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.d.ts +0 -2
  337. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.d.ts.map +0 -1
  338. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.js +0 -56
  339. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.js.map +0 -1
  340. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.d.ts +0 -2
  341. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.d.ts.map +0 -1
  342. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.js +0 -56
  343. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.js.map +0 -1
  344. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.d.ts +0 -2
  345. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.d.ts.map +0 -1
  346. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.js +0 -53
  347. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.js.map +0 -1
  348. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.d.ts +0 -2
  349. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.d.ts.map +0 -1
  350. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.js +0 -56
  351. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.js.map +0 -1
  352. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.d.ts +0 -2
  353. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.d.ts.map +0 -1
  354. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.js +0 -51
  355. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.js.map +0 -1
  356. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.d.ts +0 -2
  357. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.d.ts.map +0 -1
  358. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.js +0 -51
  359. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.js.map +0 -1
  360. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.d.ts +0 -2
  361. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.d.ts.map +0 -1
  362. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.js +0 -46
  363. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.js.map +0 -1
  364. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.d.ts +0 -2
  365. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.d.ts.map +0 -1
  366. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.js +0 -56
  367. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.js.map +0 -1
  368. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.d.ts +0 -2
  369. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.d.ts.map +0 -1
  370. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.js +0 -56
  371. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.js.map +0 -1
  372. package/dist-esm/samples-dev/getAllOperations.d.ts +0 -2
  373. package/dist-esm/samples-dev/getAllOperations.d.ts.map +0 -1
  374. package/dist-esm/samples-dev/getAllOperations.js.map +0 -1
  375. package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.d.ts +0 -2
  376. package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.d.ts.map +0 -1
  377. package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.js.map +0 -1
  378. package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.d.ts +0 -2
  379. package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.d.ts.map +0 -1
  380. package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.js +0 -30
  381. package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.js.map +0 -1
  382. package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.d.ts +0 -2
  383. package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.d.ts.map +0 -1
  384. package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.js +0 -31
  385. package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.js.map +0 -1
  386. package/dist-esm/samples-dev/getsDetailsOfTheAzureService.d.ts +0 -2
  387. package/dist-esm/samples-dev/getsDetailsOfTheAzureService.d.ts.map +0 -1
  388. package/dist-esm/samples-dev/getsDetailsOfTheAzureService.js +0 -30
  389. package/dist-esm/samples-dev/getsDetailsOfTheAzureService.js.map +0 -1
  390. package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.d.ts +0 -2
  391. package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.d.ts.map +0 -1
  392. package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.js.map +0 -1
  393. package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.d.ts +0 -2
  394. package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.d.ts.map +0 -1
  395. package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.js +0 -50
  396. package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.js.map +0 -1
  397. package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.d.ts +0 -2
  398. package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.d.ts.map +0 -1
  399. package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.js +0 -51
  400. package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.js.map +0 -1
  401. package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.d.ts +0 -2
  402. package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.d.ts.map +0 -1
  403. package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.js +0 -52
  404. package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.js.map +0 -1
  405. package/dist-esm/samples-dev/listSupportTicketsForASubscription.d.ts +0 -2
  406. package/dist-esm/samples-dev/listSupportTicketsForASubscription.d.ts.map +0 -1
  407. package/dist-esm/samples-dev/listSupportTicketsForASubscription.js.map +0 -1
  408. package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.d.ts +0 -2
  409. package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.d.ts.map +0 -1
  410. package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.js +0 -52
  411. package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.js.map +0 -1
  412. package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.d.ts +0 -2
  413. package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.d.ts.map +0 -1
  414. package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.js +0 -53
  415. package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.js.map +0 -1
  416. package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.d.ts +0 -2
  417. package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.d.ts.map +0 -1
  418. package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.js +0 -53
  419. package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.js.map +0 -1
  420. package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.d.ts +0 -2
  421. package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.d.ts.map +0 -1
  422. package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.js +0 -43
  423. package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.js.map +0 -1
  424. package/dist-esm/samples-dev/updateSeverityOfASupportTicket.d.ts +0 -2
  425. package/dist-esm/samples-dev/updateSeverityOfASupportTicket.d.ts.map +0 -1
  426. package/dist-esm/samples-dev/updateSeverityOfASupportTicket.js +0 -31
  427. package/dist-esm/samples-dev/updateSeverityOfASupportTicket.js.map +0 -1
  428. package/dist-esm/samples-dev/updateStatusOfASupportTicket.d.ts +0 -2
  429. package/dist-esm/samples-dev/updateStatusOfASupportTicket.d.ts.map +0 -1
  430. package/dist-esm/samples-dev/updateStatusOfASupportTicket.js +0 -31
  431. package/dist-esm/samples-dev/updateStatusOfASupportTicket.js.map +0 -1
  432. package/dist-esm/test/sampleTest.d.ts +0 -2
  433. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  434. package/dist-esm/test/sampleTest.js +0 -38
  435. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -13,10 +13,10 @@ import { DefaultAzureCredential } from "@azure/identity";
13
13
  import * as dotenv from "dotenv";
14
14
  dotenv.config();
15
15
  /**
16
- * This sample demonstrates how to Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_ or _CreatedDate_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
16
+ * This sample demonstrates how to Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
17
17
  *
18
- * @summary Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_ or _CreatedDate_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
19
- * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json
18
+ * @summary Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
19
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json
20
20
  */
21
21
  function listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription() {
22
22
  var _a, e_1, _b, _c;
@@ -51,20 +51,22 @@ function listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscri
51
51
  });
52
52
  }
53
53
  /**
54
- * This sample demonstrates how to Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_ or _CreatedDate_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
54
+ * This sample demonstrates how to Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
55
55
  *
56
- * @summary Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_ or _CreatedDate_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
57
- * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/ListSupportTicketsBySubscription.json
56
+ * @summary Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
57
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingStateBySubscription.json
58
58
  */
59
- function listSupportTicketsForASubscription() {
59
+ function listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingStateForASubscription() {
60
60
  var _a, e_2, _b, _c;
61
61
  return __awaiter(this, void 0, void 0, function* () {
62
62
  const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
63
+ const filter = "createdDate ge 2020-03-10T22:08:51Z and status eq 'Updating'";
64
+ const options = { filter };
63
65
  const credential = new DefaultAzureCredential();
64
66
  const client = new MicrosoftSupport(credential, subscriptionId);
65
67
  const resArray = new Array();
66
68
  try {
67
- for (var _d = true, _e = __asyncValues(client.supportTickets.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
69
+ for (var _d = true, _e = __asyncValues(client.supportTickets.list(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
68
70
  _c = _f.value;
69
71
  _d = false;
70
72
  try {
@@ -87,13 +89,49 @@ function listSupportTicketsForASubscription() {
87
89
  });
88
90
  }
89
91
  /**
90
- * This sample demonstrates how to Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_ or _CreatedDate_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
92
+ * This sample demonstrates how to Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
91
93
  *
92
- * @summary Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_ or _CreatedDate_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
93
- * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/ListSupportTicketsInOpenStateBySubscription.json
94
+ * @summary Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
95
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTicketsBySubscription.json
94
96
  */
95
- function listSupportTicketsInOpenStateForASubscription() {
97
+ function listSupportTicketsForASubscription() {
96
98
  var _a, e_3, _b, _c;
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
101
+ const credential = new DefaultAzureCredential();
102
+ const client = new MicrosoftSupport(credential, subscriptionId);
103
+ const resArray = new Array();
104
+ try {
105
+ for (var _d = true, _e = __asyncValues(client.supportTickets.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
106
+ _c = _f.value;
107
+ _d = false;
108
+ try {
109
+ let item = _c;
110
+ resArray.push(item);
111
+ }
112
+ finally {
113
+ _d = true;
114
+ }
115
+ }
116
+ }
117
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
118
+ finally {
119
+ try {
120
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
121
+ }
122
+ finally { if (e_3) throw e_3.error; }
123
+ }
124
+ console.log(resArray);
125
+ });
126
+ }
127
+ /**
128
+ * This sample demonstrates how to Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
129
+ *
130
+ * @summary Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
131
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTicketsInOpenStateBySubscription.json
132
+ */
133
+ function listSupportTicketsInOpenStateForASubscription() {
134
+ var _a, e_4, _b, _c;
97
135
  return __awaiter(this, void 0, void 0, function* () {
98
136
  const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
99
137
  const filter = "status eq 'Open'";
@@ -114,12 +152,126 @@ function listSupportTicketsInOpenStateForASubscription() {
114
152
  }
115
153
  }
116
154
  }
117
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
155
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
118
156
  finally {
119
157
  try {
120
158
  if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
121
159
  }
122
- finally { if (e_3) throw e_3.error; }
160
+ finally { if (e_4) throw e_4.error; }
161
+ }
162
+ console.log(resArray);
163
+ });
164
+ }
165
+ /**
166
+ * This sample demonstrates how to Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
167
+ *
168
+ * @summary Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
169
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTicketsInUpdatingStateBySubscription.json
170
+ */
171
+ function listSupportTicketsInUpdatingStateForASubscription() {
172
+ var _a, e_5, _b, _c;
173
+ return __awaiter(this, void 0, void 0, function* () {
174
+ const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
175
+ const filter = "status eq 'Updating'";
176
+ const options = { filter };
177
+ const credential = new DefaultAzureCredential();
178
+ const client = new MicrosoftSupport(credential, subscriptionId);
179
+ const resArray = new Array();
180
+ try {
181
+ for (var _d = true, _e = __asyncValues(client.supportTickets.list(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
182
+ _c = _f.value;
183
+ _d = false;
184
+ try {
185
+ let item = _c;
186
+ resArray.push(item);
187
+ }
188
+ finally {
189
+ _d = true;
190
+ }
191
+ }
192
+ }
193
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
194
+ finally {
195
+ try {
196
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
197
+ }
198
+ finally { if (e_5) throw e_5.error; }
199
+ }
200
+ console.log(resArray);
201
+ });
202
+ }
203
+ /**
204
+ * This sample demonstrates how to Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
205
+ *
206
+ * @summary Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
207
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTicketsProblemClassificationIdEqualsForSubscription.json
208
+ */
209
+ function listSupportTicketsWithACertainProblemClassificationIdForASubscription() {
210
+ var _a, e_6, _b, _c;
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
213
+ const filter = "ProblemClassificationId eq 'compute_vm_problemClassification_guid'";
214
+ const options = { filter };
215
+ const credential = new DefaultAzureCredential();
216
+ const client = new MicrosoftSupport(credential, subscriptionId);
217
+ const resArray = new Array();
218
+ try {
219
+ for (var _d = true, _e = __asyncValues(client.supportTickets.list(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
220
+ _c = _f.value;
221
+ _d = false;
222
+ try {
223
+ let item = _c;
224
+ resArray.push(item);
225
+ }
226
+ finally {
227
+ _d = true;
228
+ }
229
+ }
230
+ }
231
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
232
+ finally {
233
+ try {
234
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
235
+ }
236
+ finally { if (e_6) throw e_6.error; }
237
+ }
238
+ console.log(resArray);
239
+ });
240
+ }
241
+ /**
242
+ * This sample demonstrates how to Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
243
+ *
244
+ * @summary Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
245
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTicketsServiceIdEqualsForSubscription.json
246
+ */
247
+ function listSupportTicketsWithACertainServiceIdForASubscription() {
248
+ var _a, e_7, _b, _c;
249
+ return __awaiter(this, void 0, void 0, function* () {
250
+ const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
251
+ const filter = "ServiceId eq 'vm_windows_service_guid'";
252
+ const options = { filter };
253
+ const credential = new DefaultAzureCredential();
254
+ const client = new MicrosoftSupport(credential, subscriptionId);
255
+ const resArray = new Array();
256
+ try {
257
+ for (var _d = true, _e = __asyncValues(client.supportTickets.list(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
258
+ _c = _f.value;
259
+ _d = false;
260
+ try {
261
+ let item = _c;
262
+ resArray.push(item);
263
+ }
264
+ finally {
265
+ _d = true;
266
+ }
267
+ }
268
+ }
269
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
270
+ finally {
271
+ try {
272
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
273
+ }
274
+ finally { if (e_7) throw e_7.error; }
123
275
  }
124
276
  console.log(resArray);
125
277
  });
@@ -127,8 +279,12 @@ function listSupportTicketsInOpenStateForASubscription() {
127
279
  function main() {
128
280
  return __awaiter(this, void 0, void 0, function* () {
129
281
  listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription();
282
+ listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingStateForASubscription();
130
283
  listSupportTicketsForASubscription();
131
284
  listSupportTicketsInOpenStateForASubscription();
285
+ listSupportTicketsInUpdatingStateForASubscription();
286
+ listSupportTicketsWithACertainProblemClassificationIdForASubscription();
287
+ listSupportTicketsWithACertainServiceIdForASubscription();
132
288
  });
133
289
  }
134
290
  main().catch(console.error);
@@ -1 +1 @@
1
- {"version":3,"file":"supportTicketsListSample.js","sourceRoot":"","sources":["../../samples-dev/supportTicketsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC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AED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=supportTicketsNoSubscriptionCheckNameAvailabilitySample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportTicketsNoSubscriptionCheckNameAvailabilitySample.d.ts","sourceRoot":"","sources":["../../samples-dev/supportTicketsNoSubscriptionCheckNameAvailabilitySample.ts"],"names":[],"mappings":""}
@@ -8,26 +8,34 @@
8
8
  import { __awaiter } from "tslib";
9
9
  // Copyright (c) Microsoft Corporation.
10
10
  // Licensed under the MIT License.
11
+ import { MicrosoftSupport } from "@azure/arm-support";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
11
15
  /**
12
16
  * This sample demonstrates how to Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription.
13
17
  *
14
18
  * @summary Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription.
15
- * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/CheckNameAvailabilityWithSubscription.json
19
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/CheckNameAvailability.json
16
20
  */
17
- import { MicrosoftSupport } from "@azure/arm-support";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
21
  function checksWhetherNameIsAvailableForSupportTicketResource() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
23
+ const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
22
25
  const checkNameAvailabilityInput = {
23
26
  name: "sampleName",
24
27
  type: "Microsoft.Support/supportTickets"
25
28
  };
26
29
  const credential = new DefaultAzureCredential();
27
30
  const client = new MicrosoftSupport(credential, subscriptionId);
28
- const result = yield client.supportTickets.checkNameAvailability(checkNameAvailabilityInput);
31
+ const result = yield client.supportTicketsNoSubscription.checkNameAvailability(checkNameAvailabilityInput);
29
32
  console.log(result);
30
33
  });
31
34
  }
32
- checksWhetherNameIsAvailableForSupportTicketResource().catch(console.error);
33
- //# sourceMappingURL=checksWhetherNameIsAvailableForSupportTicketResource.js.map
35
+ function main() {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ checksWhetherNameIsAvailableForSupportTicketResource();
38
+ });
39
+ }
40
+ main().catch(console.error);
41
+ //# sourceMappingURL=supportTicketsNoSubscriptionCheckNameAvailabilitySample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportTicketsNoSubscriptionCheckNameAvailabilitySample.js","sourceRoot":"","sources":["../../samples-dev/supportTicketsNoSubscriptionCheckNameAvailabilitySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,oDAAoD;;QACjE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACtC,sCAAsC,CAAC;QACzC,MAAM,0BAA0B,GAA+B;YAC7D,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,kCAAkC;SACzC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,qBAAqB,CAC5E,0BAA0B,CAC3B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,oDAAoD,EAAE,CAAC;IACzD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=supportTicketsNoSubscriptionCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportTicketsNoSubscriptionCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/supportTicketsNoSubscriptionCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,127 @@
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 { MicrosoftSupport } from "@azure/arm-support";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>
17
+ *
18
+ * @summary Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>
19
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/CreateBillingSupportTicket.json
20
+ */
21
+ function createATicketForBillingRelatedIssues() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const supportTicketName = "testticket";
24
+ const createSupportTicketParameters = {
25
+ description: "my description",
26
+ contactDetails: {
27
+ country: "usa",
28
+ firstName: "abc",
29
+ lastName: "xyz",
30
+ preferredContactMethod: "email",
31
+ preferredSupportLanguage: "en-US",
32
+ preferredTimeZone: "Pacific Standard Time",
33
+ primaryEmailAddress: "abc@contoso.com"
34
+ },
35
+ fileWorkspaceName: "6f16735c-1530836f-e9970f1a-2e49-47b7-96cd-9746b83aa066",
36
+ problemClassificationId: "/providers/Microsoft.Support/services/billing_service_guid/problemClassifications/billing_problemClassification_guid",
37
+ serviceId: "/providers/Microsoft.Support/services/billing_service_guid",
38
+ severity: "moderate",
39
+ supportPlanId: "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=",
40
+ title: "my title"
41
+ };
42
+ const credential = new DefaultAzureCredential();
43
+ const client = new MicrosoftSupport(credential);
44
+ const result = yield client.supportTicketsNoSubscription.beginCreateAndWait(supportTicketName, createSupportTicketParameters);
45
+ console.log(result);
46
+ });
47
+ }
48
+ /**
49
+ * This sample demonstrates how to Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>
50
+ *
51
+ * @summary Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>
52
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/CreateSubMgmtSupportTicket.json
53
+ */
54
+ function createATicketForSubscriptionManagementRelatedIssues() {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const supportTicketName = "testticket";
57
+ const createSupportTicketParameters = {
58
+ description: "my description",
59
+ contactDetails: {
60
+ country: "usa",
61
+ firstName: "abc",
62
+ lastName: "xyz",
63
+ preferredContactMethod: "email",
64
+ preferredSupportLanguage: "en-US",
65
+ preferredTimeZone: "Pacific Standard Time",
66
+ primaryEmailAddress: "abc@contoso.com"
67
+ },
68
+ fileWorkspaceName: "6f16735c-1530836f-e9970f1a-2e49-47b7-96cd-9746b83aa066",
69
+ problemClassificationId: "/providers/Microsoft.Support/services/subscription_management_service_guid/problemClassifications/subscription_management_problemClassification_guid",
70
+ serviceId: "/providers/Microsoft.Support/services/subscription_management_service_guid",
71
+ severity: "moderate",
72
+ supportPlanId: "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=",
73
+ title: "my title"
74
+ };
75
+ const credential = new DefaultAzureCredential();
76
+ const client = new MicrosoftSupport(credential);
77
+ const result = yield client.supportTicketsNoSubscription.beginCreateAndWait(supportTicketName, createSupportTicketParameters);
78
+ console.log(result);
79
+ });
80
+ }
81
+ /**
82
+ * This sample demonstrates how to Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>
83
+ *
84
+ * @summary Creates a new support ticket for Billing, and Subscription Management issues. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>
85
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/CreateTechnicalSupportTicket.json
86
+ */
87
+ function createATicketForTechnicalIssueRelatedToASpecificResource() {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ const supportTicketName = "testticket";
90
+ const createSupportTicketParameters = {
91
+ description: "my description",
92
+ advancedDiagnosticConsent: "Yes",
93
+ contactDetails: {
94
+ country: "usa",
95
+ firstName: "abc",
96
+ lastName: "xyz",
97
+ preferredContactMethod: "email",
98
+ preferredSupportLanguage: "en-US",
99
+ preferredTimeZone: "Pacific Standard Time",
100
+ primaryEmailAddress: "abc@contoso.com"
101
+ },
102
+ fileWorkspaceName: "6f16735c-1530836f-e9970f1a-2e49-47b7-96cd-9746b83aa066",
103
+ problemClassificationId: "/providers/Microsoft.Support/services/virtual_machine_running_linux_service_guid/problemClassifications/problemClassification_guid",
104
+ problemScopingQuestions: '{"articleId":"076846c1-4c0b-4b21-91c6-1a30246b3867","scopingDetails":[{"question":"When did the problem begin?","controlId":"problem_start_time","orderId":1,"inputType":"static","answer":{"displayValue":"2023-08-31T18:55:00.739Z","value":"2023-08-31T18:55:00.739Z","type":"datetime"}},{"question":"API Type of the Cosmos DB account","controlId":"api_type","orderId":2,"inputType":"static","answer":{"displayValue":"Table","value":"tables","type":"string"}},{"question":"Table name","controlId":"collection_name_table","orderId":11,"inputType":"nonstatic","answer":{"displayValue":"Select Table Name","value":"dont_know_answer","type":"string"}},{"question":"Provide additional details about the issue you\'re facing","controlId":"problem_description","orderId":12,"inputType":"nonstatic","answer":{"displayValue":"test ticket, please ignore and close","value":"test ticket, please ignore and close","type":"string"}}]}',
105
+ secondaryConsent: [
106
+ { type: "virtualmachinerunninglinuxservice", userConsent: "Yes" }
107
+ ],
108
+ serviceId: "/providers/Microsoft.Support/services/cddd3eb5-1830-b494-44fd-782f691479dc",
109
+ severity: "moderate",
110
+ supportPlanId: "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=",
111
+ title: "my title"
112
+ };
113
+ const credential = new DefaultAzureCredential();
114
+ const client = new MicrosoftSupport(credential);
115
+ const result = yield client.supportTicketsNoSubscription.beginCreateAndWait(supportTicketName, createSupportTicketParameters);
116
+ console.log(result);
117
+ });
118
+ }
119
+ function main() {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ createATicketForBillingRelatedIssues();
122
+ createATicketForSubscriptionManagementRelatedIssues();
123
+ createATicketForTechnicalIssueRelatedToASpecificResource();
124
+ });
125
+ }
126
+ main().catch(console.error);
127
+ //# sourceMappingURL=supportTicketsNoSubscriptionCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportTicketsNoSubscriptionCreateSample.js","sourceRoot":"","sources":["../../samples-dev/supportTicketsNoSubscriptionCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAwB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,oCAAoC;;QACjD,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,6BAA6B,GAAyB;YAC1D,WAAW,EAAE,gBAAgB;YAC7B,cAAc,EAAE;gBACd,OAAO,EAAE,KAAK;gBACd,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,KAAK;gB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AC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=supportTicketsNoSubscriptionGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportTicketsNoSubscriptionGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/supportTicketsNoSubscriptionGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
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 { MicrosoftSupport } from "@azure/arm-support";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
17
+ *
18
+ * @summary Gets details for a specific support ticket. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
19
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/GetSupportTicketDetails.json
20
+ */
21
+ function getDetailsOfATicket() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const supportTicketName = "testticket";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new MicrosoftSupport(credential);
26
+ const result = yield client.supportTicketsNoSubscription.get(supportTicketName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ function main() {
31
+ return __awaiter(this, void 0, void 0, function* () {
32
+ getDetailsOfATicket();
33
+ });
34
+ }
35
+ main().catch(console.error);
36
+ //# sourceMappingURL=supportTicketsNoSubscriptionGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportTicketsNoSubscriptionGetSample.js","sourceRoot":"","sources":["../../samples-dev/supportTicketsNoSubscriptionGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAChD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,GAAG,CAC1D,iBAAiB,CAClB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=supportTicketsNoSubscriptionListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportTicketsNoSubscriptionListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/supportTicketsNoSubscriptionListSample.ts"],"names":[],"mappings":""}