@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
package/dist/index.js CHANGED
@@ -76,6 +76,14 @@ exports.KnownSeverityLevel = void 0;
76
76
  /** Highestcriticalimpact */
77
77
  KnownSeverityLevel["Highestcriticalimpact"] = "highestcriticalimpact";
78
78
  })(exports.KnownSeverityLevel || (exports.KnownSeverityLevel = {}));
79
+ /** Known values of {@link Consent} that the service accepts. */
80
+ exports.KnownConsent = void 0;
81
+ (function (KnownConsent) {
82
+ /** Yes */
83
+ KnownConsent["Yes"] = "Yes";
84
+ /** No */
85
+ KnownConsent["No"] = "No";
86
+ })(exports.KnownConsent || (exports.KnownConsent = {}));
79
87
  /** Known values of {@link PreferredContactMethod} that the service accepts. */
80
88
  exports.KnownPreferredContactMethod = void 0;
81
89
  (function (KnownPreferredContactMethod) {
@@ -84,6 +92,14 @@ exports.KnownPreferredContactMethod = void 0;
84
92
  /** Phone */
85
93
  KnownPreferredContactMethod["Phone"] = "phone";
86
94
  })(exports.KnownPreferredContactMethod || (exports.KnownPreferredContactMethod = {}));
95
+ /** Known values of {@link UserConsent} that the service accepts. */
96
+ exports.KnownUserConsent = void 0;
97
+ (function (KnownUserConsent) {
98
+ /** Yes */
99
+ KnownUserConsent["Yes"] = "Yes";
100
+ /** No */
101
+ KnownUserConsent["No"] = "No";
102
+ })(exports.KnownUserConsent || (exports.KnownUserConsent = {}));
87
103
  /** Known values of {@link Status} that the service accepts. */
88
104
  exports.KnownStatus = void 0;
89
105
  (function (KnownStatus) {
@@ -108,6 +124,22 @@ exports.KnownCommunicationDirection = void 0;
108
124
  /** Outbound */
109
125
  KnownCommunicationDirection["Outbound"] = "outbound";
110
126
  })(exports.KnownCommunicationDirection || (exports.KnownCommunicationDirection = {}));
127
+ /** Known values of {@link TranscriptContentType} that the service accepts. */
128
+ exports.KnownTranscriptContentType = void 0;
129
+ (function (KnownTranscriptContentType) {
130
+ })(exports.KnownTranscriptContentType || (exports.KnownTranscriptContentType = {}));
131
+ /** Known values of {@link CreatedByType} that the service accepts. */
132
+ exports.KnownCreatedByType = void 0;
133
+ (function (KnownCreatedByType) {
134
+ /** User */
135
+ KnownCreatedByType["User"] = "User";
136
+ /** Application */
137
+ KnownCreatedByType["Application"] = "Application";
138
+ /** ManagedIdentity */
139
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
140
+ /** Key */
141
+ KnownCreatedByType["Key"] = "Key";
142
+ })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
111
143
 
112
144
  /*
113
145
  * Copyright (c) Microsoft Corporation.
@@ -194,40 +226,43 @@ const OperationDisplay = {
194
226
  }
195
227
  }
196
228
  };
197
- const ExceptionResponse = {
229
+ const ErrorResponse = {
198
230
  type: {
199
231
  name: "Composite",
200
- className: "ExceptionResponse",
232
+ className: "ErrorResponse",
201
233
  modelProperties: {
202
234
  error: {
203
235
  serializedName: "error",
204
236
  type: {
205
237
  name: "Composite",
206
- className: "ServiceError"
238
+ className: "ErrorDetail"
207
239
  }
208
240
  }
209
241
  }
210
242
  }
211
243
  };
212
- const ServiceError = {
244
+ const ErrorDetail = {
213
245
  type: {
214
246
  name: "Composite",
215
- className: "ServiceError",
247
+ className: "ErrorDetail",
216
248
  modelProperties: {
217
249
  code: {
218
250
  serializedName: "code",
251
+ readOnly: true,
219
252
  type: {
220
253
  name: "String"
221
254
  }
222
255
  },
223
256
  message: {
224
257
  serializedName: "message",
258
+ readOnly: true,
225
259
  type: {
226
260
  name: "String"
227
261
  }
228
262
  },
229
263
  target: {
230
264
  serializedName: "target",
265
+ readOnly: true,
231
266
  type: {
232
267
  name: "String"
233
268
  }
@@ -240,7 +275,20 @@ const ServiceError = {
240
275
  element: {
241
276
  type: {
242
277
  name: "Composite",
243
- className: "ServiceErrorDetail"
278
+ className: "ErrorDetail"
279
+ }
280
+ }
281
+ }
282
+ },
283
+ additionalInfo: {
284
+ serializedName: "additionalInfo",
285
+ readOnly: true,
286
+ type: {
287
+ name: "Sequence",
288
+ element: {
289
+ type: {
290
+ name: "Composite",
291
+ className: "ErrorAdditionalInfo"
244
292
  }
245
293
  }
246
294
  }
@@ -248,29 +296,24 @@ const ServiceError = {
248
296
  }
249
297
  }
250
298
  };
251
- const ServiceErrorDetail = {
299
+ const ErrorAdditionalInfo = {
252
300
  type: {
253
301
  name: "Composite",
254
- className: "ServiceErrorDetail",
302
+ className: "ErrorAdditionalInfo",
255
303
  modelProperties: {
256
- code: {
257
- serializedName: "code",
304
+ type: {
305
+ serializedName: "type",
258
306
  readOnly: true,
259
307
  type: {
260
308
  name: "String"
261
309
  }
262
310
  },
263
- message: {
264
- serializedName: "message",
311
+ info: {
312
+ serializedName: "info",
265
313
  readOnly: true,
266
314
  type: {
267
- name: "String"
268
- }
269
- },
270
- target: {
271
- serializedName: "target",
272
- type: {
273
- name: "String"
315
+ name: "Dictionary",
316
+ value: { type: { name: "any" } }
274
317
  }
275
318
  }
276
319
  }
@@ -393,6 +436,38 @@ const ProblemClassification = {
393
436
  type: {
394
437
  name: "String"
395
438
  }
439
+ },
440
+ secondaryConsentEnabled: {
441
+ serializedName: "properties.secondaryConsentEnabled",
442
+ type: {
443
+ name: "Sequence",
444
+ element: {
445
+ type: {
446
+ name: "Composite",
447
+ className: "SecondaryConsentEnabled"
448
+ }
449
+ }
450
+ }
451
+ }
452
+ }
453
+ }
454
+ };
455
+ const SecondaryConsentEnabled = {
456
+ type: {
457
+ name: "Composite",
458
+ className: "SecondaryConsentEnabled",
459
+ modelProperties: {
460
+ description: {
461
+ serializedName: "description",
462
+ type: {
463
+ name: "String"
464
+ }
465
+ },
466
+ type: {
467
+ serializedName: "type",
468
+ type: {
469
+ name: "String"
470
+ }
396
471
  }
397
472
  }
398
473
  }
@@ -548,6 +623,24 @@ const SupportTicketDetails = {
548
623
  name: "Boolean"
549
624
  }
550
625
  },
626
+ advancedDiagnosticConsent: {
627
+ serializedName: "properties.advancedDiagnosticConsent",
628
+ type: {
629
+ name: "String"
630
+ }
631
+ },
632
+ problemScopingQuestions: {
633
+ serializedName: "properties.problemScopingQuestions",
634
+ type: {
635
+ name: "String"
636
+ }
637
+ },
638
+ supportPlanId: {
639
+ serializedName: "properties.supportPlanId",
640
+ type: {
641
+ name: "String"
642
+ }
643
+ },
551
644
  contactDetails: {
552
645
  serializedName: "properties.contactDetails",
553
646
  type: {
@@ -576,6 +669,13 @@ const SupportTicketDetails = {
576
669
  name: "String"
577
670
  }
578
671
  },
672
+ supportPlanDisplayName: {
673
+ serializedName: "properties.supportPlanDisplayName",
674
+ readOnly: true,
675
+ type: {
676
+ name: "String"
677
+ }
678
+ },
579
679
  title: {
580
680
  serializedName: "properties.title",
581
681
  type: {
@@ -622,6 +722,12 @@ const SupportTicketDetails = {
622
722
  name: "DateTime"
623
723
  }
624
724
  },
725
+ fileWorkspaceName: {
726
+ serializedName: "properties.fileWorkspaceName",
727
+ type: {
728
+ name: "String"
729
+ }
730
+ },
625
731
  technicalTicketDetails: {
626
732
  serializedName: "properties.technicalTicketDetails",
627
733
  type: {
@@ -635,6 +741,18 @@ const SupportTicketDetails = {
635
741
  name: "Composite",
636
742
  className: "QuotaTicketDetails"
637
743
  }
744
+ },
745
+ secondaryConsent: {
746
+ serializedName: "properties.secondaryConsent",
747
+ type: {
748
+ name: "Sequence",
749
+ element: {
750
+ type: {
751
+ name: "Composite",
752
+ className: "SecondaryConsent"
753
+ }
754
+ }
755
+ }
638
756
  }
639
757
  }
640
758
  }
@@ -823,6 +941,26 @@ const QuotaChangeRequest = {
823
941
  }
824
942
  }
825
943
  };
944
+ const SecondaryConsent = {
945
+ type: {
946
+ name: "Composite",
947
+ className: "SecondaryConsent",
948
+ modelProperties: {
949
+ userConsent: {
950
+ serializedName: "userConsent",
951
+ type: {
952
+ name: "String"
953
+ }
954
+ },
955
+ type: {
956
+ serializedName: "type",
957
+ type: {
958
+ name: "String"
959
+ }
960
+ }
961
+ }
962
+ }
963
+ };
826
964
  const UpdateSupportTicket = {
827
965
  type: {
828
966
  name: "Composite",
@@ -846,6 +984,24 @@ const UpdateSupportTicket = {
846
984
  name: "Composite",
847
985
  className: "UpdateContactProfile"
848
986
  }
987
+ },
988
+ advancedDiagnosticConsent: {
989
+ serializedName: "advancedDiagnosticConsent",
990
+ type: {
991
+ name: "String"
992
+ }
993
+ },
994
+ secondaryConsent: {
995
+ serializedName: "secondaryConsent",
996
+ type: {
997
+ name: "Sequence",
998
+ element: {
999
+ type: {
1000
+ name: "Composite",
1001
+ className: "SecondaryConsent"
1002
+ }
1003
+ }
1004
+ }
849
1005
  }
850
1006
  }
851
1007
  }
@@ -1011,82 +1167,396 @@ const CommunicationDetails = {
1011
1167
  }
1012
1168
  }
1013
1169
  };
1014
-
1015
- var Mappers = /*#__PURE__*/Object.freeze({
1016
- __proto__: null,
1017
- CheckNameAvailabilityInput: CheckNameAvailabilityInput,
1018
- CheckNameAvailabilityOutput: CheckNameAvailabilityOutput,
1019
- CommunicationDetails: CommunicationDetails,
1020
- CommunicationsListResult: CommunicationsListResult,
1021
- ContactProfile: ContactProfile,
1022
- ExceptionResponse: ExceptionResponse,
1023
- Operation: Operation,
1024
- OperationDisplay: OperationDisplay,
1025
- OperationsListResult: OperationsListResult,
1026
- ProblemClassification: ProblemClassification,
1027
- ProblemClassificationsListResult: ProblemClassificationsListResult,
1028
- QuotaChangeRequest: QuotaChangeRequest,
1029
- QuotaTicketDetails: QuotaTicketDetails,
1030
- Service: Service,
1031
- ServiceError: ServiceError,
1032
- ServiceErrorDetail: ServiceErrorDetail,
1033
- ServiceLevelAgreement: ServiceLevelAgreement,
1034
- ServicesListResult: ServicesListResult,
1035
- SupportEngineer: SupportEngineer,
1036
- SupportTicketDetails: SupportTicketDetails,
1037
- SupportTicketsListResult: SupportTicketsListResult,
1038
- TechnicalTicketDetails: TechnicalTicketDetails,
1039
- UpdateContactProfile: UpdateContactProfile,
1040
- UpdateSupportTicket: UpdateSupportTicket
1041
- });
1042
-
1043
- /*
1044
- * Copyright (c) Microsoft Corporation.
1045
- * Licensed under the MIT License.
1046
- *
1047
- * Code generated by Microsoft (R) AutoRest Code Generator.
1048
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1049
- */
1050
- const accept = {
1051
- parameterPath: "accept",
1052
- mapper: {
1053
- defaultValue: "application/json",
1054
- isConstant: true,
1055
- serializedName: "Accept",
1056
- type: {
1057
- name: "String"
1170
+ const ChatTranscriptsListResult = {
1171
+ type: {
1172
+ name: "Composite",
1173
+ className: "ChatTranscriptsListResult",
1174
+ modelProperties: {
1175
+ value: {
1176
+ serializedName: "value",
1177
+ type: {
1178
+ name: "Sequence",
1179
+ element: {
1180
+ type: {
1181
+ name: "Composite",
1182
+ className: "ChatTranscriptDetails"
1183
+ }
1184
+ }
1185
+ }
1186
+ },
1187
+ nextLink: {
1188
+ serializedName: "nextLink",
1189
+ type: {
1190
+ name: "String"
1191
+ }
1192
+ }
1058
1193
  }
1059
1194
  }
1060
1195
  };
1061
- const $host = {
1062
- parameterPath: "$host",
1063
- mapper: {
1064
- serializedName: "$host",
1065
- required: true,
1066
- type: {
1067
- name: "String"
1068
- }
1069
- },
1070
- skipEncoding: true
1071
- };
1072
- const apiVersion = {
1073
- parameterPath: "apiVersion",
1074
- mapper: {
1075
- defaultValue: "2020-04-01",
1076
- isConstant: true,
1077
- serializedName: "api-version",
1078
- type: {
1079
- name: "String"
1196
+ const MessageProperties = {
1197
+ type: {
1198
+ name: "Composite",
1199
+ className: "MessageProperties",
1200
+ modelProperties: {
1201
+ contentType: {
1202
+ serializedName: "contentType",
1203
+ readOnly: true,
1204
+ type: {
1205
+ name: "String"
1206
+ }
1207
+ },
1208
+ communicationDirection: {
1209
+ serializedName: "communicationDirection",
1210
+ readOnly: true,
1211
+ type: {
1212
+ name: "String"
1213
+ }
1214
+ },
1215
+ sender: {
1216
+ serializedName: "sender",
1217
+ type: {
1218
+ name: "String"
1219
+ }
1220
+ },
1221
+ body: {
1222
+ serializedName: "body",
1223
+ required: true,
1224
+ type: {
1225
+ name: "String"
1226
+ }
1227
+ },
1228
+ createdDate: {
1229
+ serializedName: "createdDate",
1230
+ readOnly: true,
1231
+ type: {
1232
+ name: "DateTime"
1233
+ }
1234
+ }
1080
1235
  }
1081
1236
  }
1082
1237
  };
1083
- const serviceName = {
1084
- parameterPath: "serviceName",
1085
- mapper: {
1086
- serializedName: "serviceName",
1087
- required: true,
1088
- type: {
1089
- name: "String"
1238
+ const Resource = {
1239
+ type: {
1240
+ name: "Composite",
1241
+ className: "Resource",
1242
+ modelProperties: {
1243
+ id: {
1244
+ serializedName: "id",
1245
+ readOnly: true,
1246
+ type: {
1247
+ name: "String"
1248
+ }
1249
+ },
1250
+ name: {
1251
+ serializedName: "name",
1252
+ readOnly: true,
1253
+ type: {
1254
+ name: "String"
1255
+ }
1256
+ },
1257
+ type: {
1258
+ serializedName: "type",
1259
+ readOnly: true,
1260
+ type: {
1261
+ name: "String"
1262
+ }
1263
+ },
1264
+ systemData: {
1265
+ serializedName: "systemData",
1266
+ type: {
1267
+ name: "Composite",
1268
+ className: "SystemData"
1269
+ }
1270
+ }
1271
+ }
1272
+ }
1273
+ };
1274
+ const SystemData = {
1275
+ type: {
1276
+ name: "Composite",
1277
+ className: "SystemData",
1278
+ modelProperties: {
1279
+ createdBy: {
1280
+ serializedName: "createdBy",
1281
+ type: {
1282
+ name: "String"
1283
+ }
1284
+ },
1285
+ createdByType: {
1286
+ serializedName: "createdByType",
1287
+ type: {
1288
+ name: "String"
1289
+ }
1290
+ },
1291
+ createdAt: {
1292
+ serializedName: "createdAt",
1293
+ type: {
1294
+ name: "DateTime"
1295
+ }
1296
+ },
1297
+ lastModifiedBy: {
1298
+ serializedName: "lastModifiedBy",
1299
+ type: {
1300
+ name: "String"
1301
+ }
1302
+ },
1303
+ lastModifiedByType: {
1304
+ serializedName: "lastModifiedByType",
1305
+ type: {
1306
+ name: "String"
1307
+ }
1308
+ },
1309
+ lastModifiedAt: {
1310
+ serializedName: "lastModifiedAt",
1311
+ type: {
1312
+ name: "DateTime"
1313
+ }
1314
+ }
1315
+ }
1316
+ }
1317
+ };
1318
+ const FilesListResult = {
1319
+ type: {
1320
+ name: "Composite",
1321
+ className: "FilesListResult",
1322
+ modelProperties: {
1323
+ value: {
1324
+ serializedName: "value",
1325
+ type: {
1326
+ name: "Sequence",
1327
+ element: {
1328
+ type: {
1329
+ name: "Composite",
1330
+ className: "FileDetails"
1331
+ }
1332
+ }
1333
+ }
1334
+ },
1335
+ nextLink: {
1336
+ serializedName: "nextLink",
1337
+ type: {
1338
+ name: "String"
1339
+ }
1340
+ }
1341
+ }
1342
+ }
1343
+ };
1344
+ const UploadFile = {
1345
+ type: {
1346
+ name: "Composite",
1347
+ className: "UploadFile",
1348
+ modelProperties: {
1349
+ content: {
1350
+ serializedName: "content",
1351
+ type: {
1352
+ name: "String"
1353
+ }
1354
+ },
1355
+ chunkIndex: {
1356
+ serializedName: "chunkIndex",
1357
+ type: {
1358
+ name: "Number"
1359
+ }
1360
+ }
1361
+ }
1362
+ }
1363
+ };
1364
+ const ProxyResource = {
1365
+ type: {
1366
+ name: "Composite",
1367
+ className: "ProxyResource",
1368
+ modelProperties: Object.assign({}, Resource.type.modelProperties)
1369
+ }
1370
+ };
1371
+ const ChatTranscriptDetails = {
1372
+ type: {
1373
+ name: "Composite",
1374
+ className: "ChatTranscriptDetails",
1375
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { messages: {
1376
+ serializedName: "properties.messages",
1377
+ type: {
1378
+ name: "Sequence",
1379
+ element: {
1380
+ type: {
1381
+ name: "Composite",
1382
+ className: "MessageProperties"
1383
+ }
1384
+ }
1385
+ }
1386
+ }, startTime: {
1387
+ serializedName: "properties.startTime",
1388
+ readOnly: true,
1389
+ type: {
1390
+ name: "DateTime"
1391
+ }
1392
+ } })
1393
+ }
1394
+ };
1395
+ const FileWorkspaceDetails = {
1396
+ type: {
1397
+ name: "Composite",
1398
+ className: "FileWorkspaceDetails",
1399
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { createdOn: {
1400
+ serializedName: "properties.createdOn",
1401
+ readOnly: true,
1402
+ type: {
1403
+ name: "DateTime"
1404
+ }
1405
+ }, expirationTime: {
1406
+ serializedName: "properties.expirationTime",
1407
+ readOnly: true,
1408
+ type: {
1409
+ name: "DateTime"
1410
+ }
1411
+ } })
1412
+ }
1413
+ };
1414
+ const FileDetails = {
1415
+ type: {
1416
+ name: "Composite",
1417
+ className: "FileDetails",
1418
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { createdOn: {
1419
+ serializedName: "properties.createdOn",
1420
+ readOnly: true,
1421
+ type: {
1422
+ name: "DateTime"
1423
+ }
1424
+ }, chunkSize: {
1425
+ serializedName: "properties.chunkSize",
1426
+ type: {
1427
+ name: "Number"
1428
+ }
1429
+ }, fileSize: {
1430
+ serializedName: "properties.fileSize",
1431
+ type: {
1432
+ name: "Number"
1433
+ }
1434
+ }, numberOfChunks: {
1435
+ serializedName: "properties.numberOfChunks",
1436
+ type: {
1437
+ name: "Number"
1438
+ }
1439
+ } })
1440
+ }
1441
+ };
1442
+ const SupportTicketsNoSubscriptionCreateHeaders = {
1443
+ type: {
1444
+ name: "Composite",
1445
+ className: "SupportTicketsNoSubscriptionCreateHeaders",
1446
+ modelProperties: {
1447
+ location: {
1448
+ serializedName: "location",
1449
+ type: {
1450
+ name: "String"
1451
+ }
1452
+ }
1453
+ }
1454
+ }
1455
+ };
1456
+ const CommunicationsNoSubscriptionCreateHeaders = {
1457
+ type: {
1458
+ name: "Composite",
1459
+ className: "CommunicationsNoSubscriptionCreateHeaders",
1460
+ modelProperties: {
1461
+ location: {
1462
+ serializedName: "location",
1463
+ type: {
1464
+ name: "String"
1465
+ }
1466
+ }
1467
+ }
1468
+ }
1469
+ };
1470
+
1471
+ var Mappers = /*#__PURE__*/Object.freeze({
1472
+ __proto__: null,
1473
+ ChatTranscriptDetails: ChatTranscriptDetails,
1474
+ ChatTranscriptsListResult: ChatTranscriptsListResult,
1475
+ CheckNameAvailabilityInput: CheckNameAvailabilityInput,
1476
+ CheckNameAvailabilityOutput: CheckNameAvailabilityOutput,
1477
+ CommunicationDetails: CommunicationDetails,
1478
+ CommunicationsListResult: CommunicationsListResult,
1479
+ CommunicationsNoSubscriptionCreateHeaders: CommunicationsNoSubscriptionCreateHeaders,
1480
+ ContactProfile: ContactProfile,
1481
+ ErrorAdditionalInfo: ErrorAdditionalInfo,
1482
+ ErrorDetail: ErrorDetail,
1483
+ ErrorResponse: ErrorResponse,
1484
+ FileDetails: FileDetails,
1485
+ FileWorkspaceDetails: FileWorkspaceDetails,
1486
+ FilesListResult: FilesListResult,
1487
+ MessageProperties: MessageProperties,
1488
+ Operation: Operation,
1489
+ OperationDisplay: OperationDisplay,
1490
+ OperationsListResult: OperationsListResult,
1491
+ ProblemClassification: ProblemClassification,
1492
+ ProblemClassificationsListResult: ProblemClassificationsListResult,
1493
+ ProxyResource: ProxyResource,
1494
+ QuotaChangeRequest: QuotaChangeRequest,
1495
+ QuotaTicketDetails: QuotaTicketDetails,
1496
+ Resource: Resource,
1497
+ SecondaryConsent: SecondaryConsent,
1498
+ SecondaryConsentEnabled: SecondaryConsentEnabled,
1499
+ Service: Service,
1500
+ ServiceLevelAgreement: ServiceLevelAgreement,
1501
+ ServicesListResult: ServicesListResult,
1502
+ SupportEngineer: SupportEngineer,
1503
+ SupportTicketDetails: SupportTicketDetails,
1504
+ SupportTicketsListResult: SupportTicketsListResult,
1505
+ SupportTicketsNoSubscriptionCreateHeaders: SupportTicketsNoSubscriptionCreateHeaders,
1506
+ SystemData: SystemData,
1507
+ TechnicalTicketDetails: TechnicalTicketDetails,
1508
+ UpdateContactProfile: UpdateContactProfile,
1509
+ UpdateSupportTicket: UpdateSupportTicket,
1510
+ UploadFile: UploadFile
1511
+ });
1512
+
1513
+ /*
1514
+ * Copyright (c) Microsoft Corporation.
1515
+ * Licensed under the MIT License.
1516
+ *
1517
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1518
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1519
+ */
1520
+ const accept = {
1521
+ parameterPath: "accept",
1522
+ mapper: {
1523
+ defaultValue: "application/json",
1524
+ isConstant: true,
1525
+ serializedName: "Accept",
1526
+ type: {
1527
+ name: "String"
1528
+ }
1529
+ }
1530
+ };
1531
+ const $host = {
1532
+ parameterPath: "$host",
1533
+ mapper: {
1534
+ serializedName: "$host",
1535
+ required: true,
1536
+ type: {
1537
+ name: "String"
1538
+ }
1539
+ },
1540
+ skipEncoding: true
1541
+ };
1542
+ const apiVersion = {
1543
+ parameterPath: "apiVersion",
1544
+ mapper: {
1545
+ defaultValue: "2022-09-01-preview",
1546
+ isConstant: true,
1547
+ serializedName: "api-version",
1548
+ type: {
1549
+ name: "String"
1550
+ }
1551
+ }
1552
+ };
1553
+ const serviceName = {
1554
+ parameterPath: "serviceName",
1555
+ mapper: {
1556
+ serializedName: "serviceName",
1557
+ required: true,
1558
+ type: {
1559
+ name: "String"
1090
1560
  }
1091
1561
  }
1092
1562
  };
@@ -1186,6 +1656,57 @@ const createCommunicationParameters = {
1186
1656
  parameterPath: "createCommunicationParameters",
1187
1657
  mapper: CommunicationDetails
1188
1658
  };
1659
+ const chatTranscriptName = {
1660
+ parameterPath: "chatTranscriptName",
1661
+ mapper: {
1662
+ serializedName: "chatTranscriptName",
1663
+ required: true,
1664
+ type: {
1665
+ name: "String"
1666
+ }
1667
+ }
1668
+ };
1669
+ const fileWorkspaceName = {
1670
+ parameterPath: "fileWorkspaceName",
1671
+ mapper: {
1672
+ serializedName: "fileWorkspaceName",
1673
+ required: true,
1674
+ type: {
1675
+ name: "String"
1676
+ }
1677
+ }
1678
+ };
1679
+ const fileWorkspaceName1 = {
1680
+ parameterPath: "fileWorkspaceName",
1681
+ mapper: {
1682
+ constraints: {
1683
+ Pattern: new RegExp("^[0-9a-zA-Z_\\-. ]+$")
1684
+ },
1685
+ serializedName: "fileWorkspaceName",
1686
+ required: true,
1687
+ type: {
1688
+ name: "String"
1689
+ }
1690
+ }
1691
+ };
1692
+ const fileName = {
1693
+ parameterPath: "fileName",
1694
+ mapper: {
1695
+ serializedName: "fileName",
1696
+ required: true,
1697
+ type: {
1698
+ name: "String"
1699
+ }
1700
+ }
1701
+ };
1702
+ const createFileParameters = {
1703
+ parameterPath: "createFileParameters",
1704
+ mapper: FileDetails
1705
+ };
1706
+ const uploadFile = {
1707
+ parameterPath: "uploadFile",
1708
+ mapper: UploadFile
1709
+ };
1189
1710
 
1190
1711
  /*
1191
1712
  * Copyright (c) Microsoft Corporation.
@@ -1262,12 +1783,12 @@ class OperationsImpl {
1262
1783
  * @param options The options parameters.
1263
1784
  */
1264
1785
  _list(options) {
1265
- return this.client.sendOperationRequest({ options }, listOperationSpec$4);
1786
+ return this.client.sendOperationRequest({ options }, listOperationSpec$a);
1266
1787
  }
1267
1788
  }
1268
1789
  // Operation Specifications
1269
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1270
- const listOperationSpec$4 = {
1790
+ const serializer$e = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1791
+ const listOperationSpec$a = {
1271
1792
  path: "/providers/Microsoft.Support/operations",
1272
1793
  httpMethod: "GET",
1273
1794
  responses: {
@@ -1275,13 +1796,13 @@ const listOperationSpec$4 = {
1275
1796
  bodyMapper: OperationsListResult
1276
1797
  },
1277
1798
  default: {
1278
- bodyMapper: ExceptionResponse
1799
+ bodyMapper: ErrorResponse
1279
1800
  }
1280
1801
  },
1281
1802
  queryParameters: [apiVersion],
1282
1803
  urlParameters: [$host],
1283
1804
  headerParameters: [accept],
1284
- serializer: serializer$4
1805
+ serializer: serializer$e
1285
1806
  };
1286
1807
 
1287
1808
  /*
@@ -1371,7 +1892,7 @@ class ServicesImpl {
1371
1892
  * @param options The options parameters.
1372
1893
  */
1373
1894
  _list(options) {
1374
- return this.client.sendOperationRequest({ options }, listOperationSpec$3);
1895
+ return this.client.sendOperationRequest({ options }, listOperationSpec$9);
1375
1896
  }
1376
1897
  /**
1377
1898
  * Gets a specific Azure service for support ticket creation.
@@ -1379,12 +1900,12 @@ class ServicesImpl {
1379
1900
  * @param options The options parameters.
1380
1901
  */
1381
1902
  get(serviceName, options) {
1382
- return this.client.sendOperationRequest({ serviceName, options }, getOperationSpec$3);
1903
+ return this.client.sendOperationRequest({ serviceName, options }, getOperationSpec$b);
1383
1904
  }
1384
1905
  }
1385
1906
  // Operation Specifications
1386
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1387
- const listOperationSpec$3 = {
1907
+ const serializer$d = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1908
+ const listOperationSpec$9 = {
1388
1909
  path: "/providers/Microsoft.Support/services",
1389
1910
  httpMethod: "GET",
1390
1911
  responses: {
@@ -1392,15 +1913,15 @@ const listOperationSpec$3 = {
1392
1913
  bodyMapper: ServicesListResult
1393
1914
  },
1394
1915
  default: {
1395
- bodyMapper: ExceptionResponse
1916
+ bodyMapper: ErrorResponse
1396
1917
  }
1397
1918
  },
1398
1919
  queryParameters: [apiVersion],
1399
1920
  urlParameters: [$host],
1400
1921
  headerParameters: [accept],
1401
- serializer: serializer$3
1922
+ serializer: serializer$d
1402
1923
  };
1403
- const getOperationSpec$3 = {
1924
+ const getOperationSpec$b = {
1404
1925
  path: "/providers/Microsoft.Support/services/{serviceName}",
1405
1926
  httpMethod: "GET",
1406
1927
  responses: {
@@ -1408,13 +1929,13 @@ const getOperationSpec$3 = {
1408
1929
  bodyMapper: Service
1409
1930
  },
1410
1931
  default: {
1411
- bodyMapper: ExceptionResponse
1932
+ bodyMapper: ErrorResponse
1412
1933
  }
1413
1934
  },
1414
1935
  queryParameters: [apiVersion],
1415
1936
  urlParameters: [$host, serviceName],
1416
1937
  headerParameters: [accept],
1417
- serializer: serializer$3
1938
+ serializer: serializer$d
1418
1939
  };
1419
1940
 
1420
1941
  /*
@@ -1500,7 +2021,7 @@ class ProblemClassificationsImpl {
1500
2021
  * @param options The options parameters.
1501
2022
  */
1502
2023
  _list(serviceName, options) {
1503
- return this.client.sendOperationRequest({ serviceName, options }, listOperationSpec$2);
2024
+ return this.client.sendOperationRequest({ serviceName, options }, listOperationSpec$8);
1504
2025
  }
1505
2026
  /**
1506
2027
  * Get problem classification details for a specific Azure service.
@@ -1509,12 +2030,12 @@ class ProblemClassificationsImpl {
1509
2030
  * @param options The options parameters.
1510
2031
  */
1511
2032
  get(serviceName, problemClassificationName, options) {
1512
- return this.client.sendOperationRequest({ serviceName, problemClassificationName, options }, getOperationSpec$2);
2033
+ return this.client.sendOperationRequest({ serviceName, problemClassificationName, options }, getOperationSpec$a);
1513
2034
  }
1514
2035
  }
1515
2036
  // Operation Specifications
1516
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1517
- const listOperationSpec$2 = {
2037
+ const serializer$c = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2038
+ const listOperationSpec$8 = {
1518
2039
  path: "/providers/Microsoft.Support/services/{serviceName}/problemClassifications",
1519
2040
  httpMethod: "GET",
1520
2041
  responses: {
@@ -1522,15 +2043,15 @@ const listOperationSpec$2 = {
1522
2043
  bodyMapper: ProblemClassificationsListResult
1523
2044
  },
1524
2045
  default: {
1525
- bodyMapper: ExceptionResponse
2046
+ bodyMapper: ErrorResponse
1526
2047
  }
1527
2048
  },
1528
2049
  queryParameters: [apiVersion],
1529
2050
  urlParameters: [$host, serviceName],
1530
2051
  headerParameters: [accept],
1531
- serializer: serializer$2
2052
+ serializer: serializer$c
1532
2053
  };
1533
- const getOperationSpec$2 = {
2054
+ const getOperationSpec$a = {
1534
2055
  path: "/providers/Microsoft.Support/services/{serviceName}/problemClassifications/{problemClassificationName}",
1535
2056
  httpMethod: "GET",
1536
2057
  responses: {
@@ -1538,7 +2059,7 @@ const getOperationSpec$2 = {
1538
2059
  bodyMapper: ProblemClassification
1539
2060
  },
1540
2061
  default: {
1541
- bodyMapper: ExceptionResponse
2062
+ bodyMapper: ErrorResponse
1542
2063
  }
1543
2064
  },
1544
2065
  queryParameters: [apiVersion],
@@ -1548,7 +2069,7 @@ const getOperationSpec$2 = {
1548
2069
  problemClassificationName
1549
2070
  ],
1550
2071
  headerParameters: [accept],
1551
- serializer: serializer$2
2072
+ serializer: serializer$c
1552
2073
  };
1553
2074
 
1554
2075
  /*
@@ -1558,25 +2079,17 @@ const getOperationSpec$2 = {
1558
2079
  * Code generated by Microsoft (R) AutoRest Code Generator.
1559
2080
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1560
2081
  */
1561
- class LroImpl {
1562
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1563
- this.sendOperationFn = sendOperationFn;
1564
- this.args = args;
1565
- this.spec = spec;
1566
- this.requestPath = requestPath;
1567
- this.requestMethod = requestMethod;
1568
- }
1569
- sendInitialRequest() {
1570
- return tslib.__awaiter(this, void 0, void 0, function* () {
1571
- return this.sendOperationFn(this.args, this.spec);
1572
- });
1573
- }
1574
- sendPollRequest(path) {
1575
- return tslib.__awaiter(this, void 0, void 0, function* () {
1576
- const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1577
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1578
- });
1579
- }
2082
+ function createLroSpec(inputs) {
2083
+ const { args, spec, sendOperationFn } = inputs;
2084
+ return {
2085
+ requestMethod: spec.httpMethod,
2086
+ requestPath: spec.path,
2087
+ sendInitialRequest: () => sendOperationFn(args, spec),
2088
+ sendPollRequest: (path, options) => {
2089
+ const restSpec = tslib.__rest(spec, ["requestBody"]);
2090
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2091
+ }
2092
+ };
1580
2093
  }
1581
2094
 
1582
2095
  /*
@@ -1598,10 +2111,10 @@ class SupportTicketsImpl {
1598
2111
  }
1599
2112
  /**
1600
2113
  * Lists all the support tickets for an Azure subscription. You can also filter the support tickets by
1601
- * _Status_ or _CreatedDate_ using the $filter parameter. Output will be a paged result with
1602
- * _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket
1603
- * data is available for 18 months after ticket creation. If a ticket was created more than 18 months
1604
- * ago, a request for data might cause an error.
2114
+ * _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter.
2115
+ * Output will be a paged result with _nextLink_, using which you can retrieve the next set of support
2116
+ * tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket
2117
+ * was created more than 18 months ago, a request for data might cause an error.
1605
2118
  * @param options The options parameters.
1606
2119
  */
1607
2120
  list(options) {
@@ -1673,18 +2186,18 @@ class SupportTicketsImpl {
1673
2186
  * @param options The options parameters.
1674
2187
  */
1675
2188
  checkNameAvailability(checkNameAvailabilityInput, options) {
1676
- return this.client.sendOperationRequest({ checkNameAvailabilityInput, options }, checkNameAvailabilityOperationSpec$1);
2189
+ return this.client.sendOperationRequest({ checkNameAvailabilityInput, options }, checkNameAvailabilityOperationSpec$3);
1677
2190
  }
1678
2191
  /**
1679
2192
  * Lists all the support tickets for an Azure subscription. You can also filter the support tickets by
1680
- * _Status_ or _CreatedDate_ using the $filter parameter. Output will be a paged result with
1681
- * _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket
1682
- * data is available for 18 months after ticket creation. If a ticket was created more than 18 months
1683
- * ago, a request for data might cause an error.
2193
+ * _Status_, _CreatedDate_, _ServiceId_, and _ProblemClassificationId_ using the $filter parameter.
2194
+ * Output will be a paged result with _nextLink_, using which you can retrieve the next set of support
2195
+ * tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket
2196
+ * was created more than 18 months ago, a request for data might cause an error.
1684
2197
  * @param options The options parameters.
1685
2198
  */
1686
2199
  _list(options) {
1687
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
2200
+ return this.client.sendOperationRequest({ options }, listOperationSpec$7);
1688
2201
  }
1689
2202
  /**
1690
2203
  * Get ticket details for an Azure subscription. Support ticket data is available for 18 months after
@@ -1694,22 +2207,20 @@ class SupportTicketsImpl {
1694
2207
  * @param options The options parameters.
1695
2208
  */
1696
2209
  get(supportTicketName, options) {
1697
- return this.client.sendOperationRequest({ supportTicketName, options }, getOperationSpec$1);
2210
+ return this.client.sendOperationRequest({ supportTicketName, options }, getOperationSpec$9);
1698
2211
  }
1699
2212
  /**
1700
- * This API allows you to update the severity level, ticket status, and your contact information in the
1701
- * support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively
1702
- * being worked upon by an Azure support engineer. In such a case, contact your support engineer to
1703
- * request severity update by adding a new communication using the Communications
1704
- * API.<br/><br/>Changing the ticket status to _closed_ is allowed only on an unassigned case. When an
1705
- * engineer is actively working on the ticket, send your ticket closure request by sending a note to
1706
- * your engineer.
2213
+ * This API allows you to update the severity level, ticket status, advanced diagnostic consent and
2214
+ * your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed
2215
+ * if a support ticket is actively being worked upon by an Azure support engineer. In such a case,
2216
+ * contact your support engineer to request severity update by adding a new communication using the
2217
+ * Communications API.
1707
2218
  * @param supportTicketName Support ticket name.
1708
2219
  * @param updateSupportTicket UpdateSupportTicket object.
1709
2220
  * @param options The options parameters.
1710
2221
  */
1711
2222
  update(supportTicketName, updateSupportTicket, options) {
1712
- return this.client.sendOperationRequest({ supportTicketName, updateSupportTicket, options }, updateOperationSpec);
2223
+ return this.client.sendOperationRequest({ supportTicketName, updateSupportTicket, options }, updateOperationSpec$1);
1713
2224
  }
1714
2225
  /**
1715
2226
  * Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and
@@ -1738,7 +2249,7 @@ class SupportTicketsImpl {
1738
2249
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1739
2250
  return this.client.sendOperationRequest(args, spec);
1740
2251
  });
1741
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2252
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1742
2253
  var _a;
1743
2254
  let currentRawResponse = undefined;
1744
2255
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1757,11 +2268,15 @@ class SupportTicketsImpl {
1757
2268
  }
1758
2269
  };
1759
2270
  });
1760
- const lro = new LroImpl(sendOperation, { supportTicketName, createSupportTicketParameters, options }, createOperationSpec$1);
1761
- const poller = new coreLro.LroEngine(lro, {
1762
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2271
+ const lro = createLroSpec({
2272
+ sendOperationFn,
2273
+ args: { supportTicketName, createSupportTicketParameters, options },
2274
+ spec: createOperationSpec$7
2275
+ });
2276
+ const poller = yield coreLro.createHttpPoller(lro, {
2277
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1763
2278
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1764
- lroResourceLocationConfig: "azure-async-operation"
2279
+ resourceLocationConfig: "azure-async-operation"
1765
2280
  });
1766
2281
  yield poller.poll();
1767
2282
  return poller;
@@ -1801,12 +2316,12 @@ class SupportTicketsImpl {
1801
2316
  * @param options The options parameters.
1802
2317
  */
1803
2318
  _listNext(nextLink, options) {
1804
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
2319
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$7);
1805
2320
  }
1806
2321
  }
1807
2322
  // Operation Specifications
1808
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1809
- const checkNameAvailabilityOperationSpec$1 = {
2323
+ const serializer$b = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2324
+ const checkNameAvailabilityOperationSpec$3 = {
1810
2325
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/checkNameAvailability",
1811
2326
  httpMethod: "POST",
1812
2327
  responses: {
@@ -1814,7 +2329,7 @@ const checkNameAvailabilityOperationSpec$1 = {
1814
2329
  bodyMapper: CheckNameAvailabilityOutput
1815
2330
  },
1816
2331
  default: {
1817
- bodyMapper: ExceptionResponse
2332
+ bodyMapper: ErrorResponse
1818
2333
  }
1819
2334
  },
1820
2335
  requestBody: checkNameAvailabilityInput,
@@ -1822,9 +2337,9 @@ const checkNameAvailabilityOperationSpec$1 = {
1822
2337
  urlParameters: [$host, subscriptionId],
1823
2338
  headerParameters: [accept, contentType],
1824
2339
  mediaType: "json",
1825
- serializer: serializer$1
2340
+ serializer: serializer$b
1826
2341
  };
1827
- const listOperationSpec$1 = {
2342
+ const listOperationSpec$7 = {
1828
2343
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets",
1829
2344
  httpMethod: "GET",
1830
2345
  responses: {
@@ -1832,15 +2347,15 @@ const listOperationSpec$1 = {
1832
2347
  bodyMapper: SupportTicketsListResult
1833
2348
  },
1834
2349
  default: {
1835
- bodyMapper: ExceptionResponse
2350
+ bodyMapper: ErrorResponse
1836
2351
  }
1837
2352
  },
1838
2353
  queryParameters: [apiVersion, top, filter],
1839
2354
  urlParameters: [$host, subscriptionId],
1840
2355
  headerParameters: [accept],
1841
- serializer: serializer$1
2356
+ serializer: serializer$b
1842
2357
  };
1843
- const getOperationSpec$1 = {
2358
+ const getOperationSpec$9 = {
1844
2359
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}",
1845
2360
  httpMethod: "GET",
1846
2361
  responses: {
@@ -1848,7 +2363,7 @@ const getOperationSpec$1 = {
1848
2363
  bodyMapper: SupportTicketDetails
1849
2364
  },
1850
2365
  default: {
1851
- bodyMapper: ExceptionResponse
2366
+ bodyMapper: ErrorResponse
1852
2367
  }
1853
2368
  },
1854
2369
  queryParameters: [apiVersion],
@@ -1858,9 +2373,9 @@ const getOperationSpec$1 = {
1858
2373
  supportTicketName
1859
2374
  ],
1860
2375
  headerParameters: [accept],
1861
- serializer: serializer$1
2376
+ serializer: serializer$b
1862
2377
  };
1863
- const updateOperationSpec = {
2378
+ const updateOperationSpec$1 = {
1864
2379
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}",
1865
2380
  httpMethod: "PATCH",
1866
2381
  responses: {
@@ -1868,7 +2383,7 @@ const updateOperationSpec = {
1868
2383
  bodyMapper: SupportTicketDetails
1869
2384
  },
1870
2385
  default: {
1871
- bodyMapper: ExceptionResponse
2386
+ bodyMapper: ErrorResponse
1872
2387
  }
1873
2388
  },
1874
2389
  requestBody: updateSupportTicket,
@@ -1880,9 +2395,9 @@ const updateOperationSpec = {
1880
2395
  ],
1881
2396
  headerParameters: [accept, contentType],
1882
2397
  mediaType: "json",
1883
- serializer: serializer$1
2398
+ serializer: serializer$b
1884
2399
  };
1885
- const createOperationSpec$1 = {
2400
+ const createOperationSpec$7 = {
1886
2401
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}",
1887
2402
  httpMethod: "PUT",
1888
2403
  responses: {
@@ -1899,7 +2414,7 @@ const createOperationSpec$1 = {
1899
2414
  bodyMapper: SupportTicketDetails
1900
2415
  },
1901
2416
  default: {
1902
- bodyMapper: ExceptionResponse
2417
+ bodyMapper: ErrorResponse
1903
2418
  }
1904
2419
  },
1905
2420
  requestBody: createSupportTicketParameters,
@@ -1911,9 +2426,9 @@ const createOperationSpec$1 = {
1911
2426
  ],
1912
2427
  headerParameters: [accept, contentType],
1913
2428
  mediaType: "json",
1914
- serializer: serializer$1
2429
+ serializer: serializer$b
1915
2430
  };
1916
- const listNextOperationSpec$1 = {
2431
+ const listNextOperationSpec$7 = {
1917
2432
  path: "{nextLink}",
1918
2433
  httpMethod: "GET",
1919
2434
  responses: {
@@ -1921,7 +2436,7 @@ const listNextOperationSpec$1 = {
1921
2436
  bodyMapper: SupportTicketsListResult
1922
2437
  },
1923
2438
  default: {
1924
- bodyMapper: ExceptionResponse
2439
+ bodyMapper: ErrorResponse
1925
2440
  }
1926
2441
  },
1927
2442
  urlParameters: [
@@ -1930,7 +2445,7 @@ const listNextOperationSpec$1 = {
1930
2445
  nextLink
1931
2446
  ],
1932
2447
  headerParameters: [accept],
1933
- serializer: serializer$1
2448
+ serializer: serializer$b
1934
2449
  };
1935
2450
 
1936
2451
  /*
@@ -1941,27 +2456,25 @@ const listNextOperationSpec$1 = {
1941
2456
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1942
2457
  */
1943
2458
  /// <reference lib="esnext.asynciterable" />
1944
- /** Class containing Communications operations. */
1945
- class CommunicationsImpl {
2459
+ /** Class containing SupportTicketsNoSubscription operations. */
2460
+ class SupportTicketsNoSubscriptionImpl {
1946
2461
  /**
1947
- * Initialize a new instance of the class Communications class.
2462
+ * Initialize a new instance of the class SupportTicketsNoSubscription class.
1948
2463
  * @param client Reference to the service client
1949
2464
  */
1950
2465
  constructor(client) {
1951
2466
  this.client = client;
1952
2467
  }
1953
2468
  /**
1954
- * Lists all communications (attachments not included) for a support ticket. <br/></br> You can also
1955
- * filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter
1956
- * parameter. The only type of communication supported today is _Web_. Output will be a paged result
1957
- * with _nextLink_, using which you can retrieve the next set of Communication results.
1958
- * <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was
1959
- * created more than 18 months ago, a request for data might cause an error.
1960
- * @param supportTicketName Support ticket name.
2469
+ * Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>,
2470
+ * <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter
2471
+ * parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next
2472
+ * set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket
2473
+ * creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
1961
2474
  * @param options The options parameters.
1962
2475
  */
1963
- list(supportTicketName, options) {
1964
- const iter = this.listPagingAll(supportTicketName, options);
2476
+ list(options) {
2477
+ const iter = this.listPagingAll(options);
1965
2478
  return {
1966
2479
  next() {
1967
2480
  return iter.next();
@@ -1973,23 +2486,23 @@ class CommunicationsImpl {
1973
2486
  if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1974
2487
  throw new Error("maxPageSize is not supported by this operation.");
1975
2488
  }
1976
- return this.listPagingPage(supportTicketName, options, settings);
2489
+ return this.listPagingPage(options, settings);
1977
2490
  }
1978
2491
  };
1979
2492
  }
1980
- listPagingPage(supportTicketName, options, settings) {
2493
+ listPagingPage(options, settings) {
1981
2494
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1982
2495
  let result;
1983
2496
  let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1984
2497
  if (!continuationToken) {
1985
- result = yield tslib.__await(this._list(supportTicketName, options));
2498
+ result = yield tslib.__await(this._list(options));
1986
2499
  let page = result.value || [];
1987
2500
  continuationToken = result.nextLink;
1988
2501
  setContinuationToken(page, continuationToken);
1989
2502
  yield yield tslib.__await(page);
1990
2503
  }
1991
2504
  while (continuationToken) {
1992
- result = yield tslib.__await(this._listNext(supportTicketName, continuationToken, options));
2505
+ result = yield tslib.__await(this._listNext(continuationToken, options));
1993
2506
  continuationToken = result.nextLink;
1994
2507
  let page = result.value || [];
1995
2508
  setContinuationToken(page, continuationToken);
@@ -1997,11 +2510,11 @@ class CommunicationsImpl {
1997
2510
  }
1998
2511
  });
1999
2512
  }
2000
- listPagingAll(supportTicketName, options) {
2513
+ listPagingAll(options) {
2001
2514
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2002
2515
  var _a, e_1, _b, _c;
2003
2516
  try {
2004
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(supportTicketName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2517
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2005
2518
  _c = _f.value;
2006
2519
  _d = false;
2007
2520
  try {
@@ -2024,49 +2537,67 @@ class CommunicationsImpl {
2024
2537
  }
2025
2538
  /**
2026
2539
  * Check the availability of a resource name. This API should be used to check the uniqueness of the
2027
- * name for adding a new communication to the support ticket.
2028
- * @param supportTicketName Support ticket name.
2540
+ * name for support ticket creation for the selected subscription.
2029
2541
  * @param checkNameAvailabilityInput Input to check.
2030
2542
  * @param options The options parameters.
2031
2543
  */
2032
- checkNameAvailability(supportTicketName, checkNameAvailabilityInput, options) {
2033
- return this.client.sendOperationRequest({ supportTicketName, checkNameAvailabilityInput, options }, checkNameAvailabilityOperationSpec);
2544
+ checkNameAvailability(checkNameAvailabilityInput, options) {
2545
+ return this.client.sendOperationRequest({ checkNameAvailabilityInput, options }, checkNameAvailabilityOperationSpec$2);
2034
2546
  }
2035
2547
  /**
2036
- * Lists all communications (attachments not included) for a support ticket. <br/></br> You can also
2037
- * filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter
2038
- * parameter. The only type of communication supported today is _Web_. Output will be a paged result
2039
- * with _nextLink_, using which you can retrieve the next set of Communication results.
2040
- * <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was
2041
- * created more than 18 months ago, a request for data might cause an error.
2548
+ * Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>,
2549
+ * <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter
2550
+ * parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next
2551
+ * set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket
2552
+ * creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
2553
+ * @param options The options parameters.
2554
+ */
2555
+ _list(options) {
2556
+ return this.client.sendOperationRequest({ options }, listOperationSpec$6);
2557
+ }
2558
+ /**
2559
+ * Gets details for a specific support ticket. Support ticket data is available for 18 months after
2560
+ * ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an
2561
+ * error.
2042
2562
  * @param supportTicketName Support ticket name.
2043
2563
  * @param options The options parameters.
2044
2564
  */
2045
- _list(supportTicketName, options) {
2046
- return this.client.sendOperationRequest({ supportTicketName, options }, listOperationSpec);
2565
+ get(supportTicketName, options) {
2566
+ return this.client.sendOperationRequest({ supportTicketName, options }, getOperationSpec$8);
2047
2567
  }
2048
2568
  /**
2049
- * Returns communication details for a support ticket.
2569
+ * This API allows you to update the severity level, ticket status, and your contact information in the
2570
+ * support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively
2571
+ * being worked upon by an Azure support engineer. In such a case, contact your support engineer to
2572
+ * request severity update by adding a new communication using the Communications API.
2050
2573
  * @param supportTicketName Support ticket name.
2051
- * @param communicationName Communication name.
2574
+ * @param updateSupportTicket UpdateSupportTicket object.
2052
2575
  * @param options The options parameters.
2053
2576
  */
2054
- get(supportTicketName, communicationName, options) {
2055
- return this.client.sendOperationRequest({ supportTicketName, communicationName, options }, getOperationSpec);
2577
+ update(supportTicketName, updateSupportTicket, options) {
2578
+ return this.client.sendOperationRequest({ supportTicketName, updateSupportTicket, options }, updateOperationSpec);
2056
2579
  }
2057
2580
  /**
2058
- * Adds a new customer communication to an Azure support ticket.
2581
+ * Creates a new support ticket for Billing, and Subscription Management issues. Learn the
2582
+ * [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call
2583
+ * the Services and ProblemClassifications API to get the most recent set of services and problem
2584
+ * categories required for support ticket creation.<br/><br/>Adding attachments is not currently
2585
+ * supported via the API. To add a file to an existing support ticket, visit the [Manage support
2586
+ * ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest)
2587
+ * page in the Azure portal, select the support ticket, and use the file upload control to add a new
2588
+ * file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not
2589
+ * supported via the API. The Azure support engineer working on your ticket will reach out to you for
2590
+ * consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>
2059
2591
  * @param supportTicketName Support ticket name.
2060
- * @param communicationName Communication name.
2061
- * @param createCommunicationParameters Communication object.
2592
+ * @param createSupportTicketParameters Support ticket request payload.
2062
2593
  * @param options The options parameters.
2063
2594
  */
2064
- beginCreate(supportTicketName, communicationName, createCommunicationParameters, options) {
2595
+ beginCreate(supportTicketName, createSupportTicketParameters, options) {
2065
2596
  return tslib.__awaiter(this, void 0, void 0, function* () {
2066
2597
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2067
2598
  return this.client.sendOperationRequest(args, spec);
2068
2599
  });
2069
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2600
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2070
2601
  var _a;
2071
2602
  let currentRawResponse = undefined;
2072
2603
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2085,160 +2616,161 @@ class CommunicationsImpl {
2085
2616
  }
2086
2617
  };
2087
2618
  });
2088
- const lro = new LroImpl(sendOperation, {
2089
- supportTicketName,
2090
- communicationName,
2091
- createCommunicationParameters,
2092
- options
2093
- }, createOperationSpec);
2094
- const poller = new coreLro.LroEngine(lro, {
2095
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2619
+ const lro = createLroSpec({
2620
+ sendOperationFn,
2621
+ args: { supportTicketName, createSupportTicketParameters, options },
2622
+ spec: createOperationSpec$6
2623
+ });
2624
+ const poller = yield coreLro.createHttpPoller(lro, {
2625
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2096
2626
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2097
- lroResourceLocationConfig: "azure-async-operation"
2627
+ resourceLocationConfig: "azure-async-operation"
2098
2628
  });
2099
2629
  yield poller.poll();
2100
2630
  return poller;
2101
2631
  });
2102
2632
  }
2103
2633
  /**
2104
- * Adds a new customer communication to an Azure support ticket.
2634
+ * Creates a new support ticket for Billing, and Subscription Management issues. Learn the
2635
+ * [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call
2636
+ * the Services and ProblemClassifications API to get the most recent set of services and problem
2637
+ * categories required for support ticket creation.<br/><br/>Adding attachments is not currently
2638
+ * supported via the API. To add a file to an existing support ticket, visit the [Manage support
2639
+ * ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest)
2640
+ * page in the Azure portal, select the support ticket, and use the file upload control to add a new
2641
+ * file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not
2642
+ * supported via the API. The Azure support engineer working on your ticket will reach out to you for
2643
+ * consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>
2105
2644
  * @param supportTicketName Support ticket name.
2106
- * @param communicationName Communication name.
2107
- * @param createCommunicationParameters Communication object.
2645
+ * @param createSupportTicketParameters Support ticket request payload.
2108
2646
  * @param options The options parameters.
2109
2647
  */
2110
- beginCreateAndWait(supportTicketName, communicationName, createCommunicationParameters, options) {
2648
+ beginCreateAndWait(supportTicketName, createSupportTicketParameters, options) {
2111
2649
  return tslib.__awaiter(this, void 0, void 0, function* () {
2112
- const poller = yield this.beginCreate(supportTicketName, communicationName, createCommunicationParameters, options);
2650
+ const poller = yield this.beginCreate(supportTicketName, createSupportTicketParameters, options);
2113
2651
  return poller.pollUntilDone();
2114
2652
  });
2115
2653
  }
2116
2654
  /**
2117
2655
  * ListNext
2118
- * @param supportTicketName Support ticket name.
2119
2656
  * @param nextLink The nextLink from the previous successful call to the List method.
2120
2657
  * @param options The options parameters.
2121
2658
  */
2122
- _listNext(supportTicketName, nextLink, options) {
2123
- return this.client.sendOperationRequest({ supportTicketName, nextLink, options }, listNextOperationSpec);
2659
+ _listNext(nextLink, options) {
2660
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$6);
2124
2661
  }
2125
2662
  }
2126
2663
  // Operation Specifications
2127
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2128
- const checkNameAvailabilityOperationSpec = {
2129
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/checkNameAvailability",
2664
+ const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2665
+ const checkNameAvailabilityOperationSpec$2 = {
2666
+ path: "/providers/Microsoft.Support/checkNameAvailability",
2130
2667
  httpMethod: "POST",
2131
2668
  responses: {
2132
2669
  200: {
2133
2670
  bodyMapper: CheckNameAvailabilityOutput
2134
2671
  },
2135
2672
  default: {
2136
- bodyMapper: ExceptionResponse
2673
+ bodyMapper: ErrorResponse
2137
2674
  }
2138
2675
  },
2139
2676
  requestBody: checkNameAvailabilityInput,
2140
2677
  queryParameters: [apiVersion],
2141
- urlParameters: [
2142
- $host,
2143
- subscriptionId,
2144
- supportTicketName
2145
- ],
2678
+ urlParameters: [$host],
2146
2679
  headerParameters: [accept, contentType],
2147
2680
  mediaType: "json",
2148
- serializer
2681
+ serializer: serializer$a
2149
2682
  };
2150
- const listOperationSpec = {
2151
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications",
2683
+ const listOperationSpec$6 = {
2684
+ path: "/providers/Microsoft.Support/supportTickets",
2152
2685
  httpMethod: "GET",
2153
2686
  responses: {
2154
2687
  200: {
2155
- bodyMapper: CommunicationsListResult
2688
+ bodyMapper: SupportTicketsListResult
2156
2689
  },
2157
2690
  default: {
2158
- bodyMapper: ExceptionResponse
2691
+ bodyMapper: ErrorResponse
2159
2692
  }
2160
2693
  },
2161
2694
  queryParameters: [apiVersion, top, filter],
2162
- urlParameters: [
2163
- $host,
2164
- subscriptionId,
2165
- supportTicketName
2166
- ],
2695
+ urlParameters: [$host],
2167
2696
  headerParameters: [accept],
2168
- serializer
2697
+ serializer: serializer$a
2169
2698
  };
2170
- const getOperationSpec = {
2171
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}",
2699
+ const getOperationSpec$8 = {
2700
+ path: "/providers/Microsoft.Support/supportTickets/{supportTicketName}",
2172
2701
  httpMethod: "GET",
2173
2702
  responses: {
2174
2703
  200: {
2175
- bodyMapper: CommunicationDetails
2704
+ bodyMapper: SupportTicketDetails
2176
2705
  },
2177
2706
  default: {
2178
- bodyMapper: ExceptionResponse
2707
+ bodyMapper: ErrorResponse
2179
2708
  }
2180
2709
  },
2181
2710
  queryParameters: [apiVersion],
2182
- urlParameters: [
2183
- $host,
2184
- subscriptionId,
2185
- supportTicketName,
2186
- communicationName
2187
- ],
2711
+ urlParameters: [$host, supportTicketName],
2188
2712
  headerParameters: [accept],
2189
- serializer
2713
+ serializer: serializer$a
2190
2714
  };
2191
- const createOperationSpec = {
2192
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}",
2715
+ const updateOperationSpec = {
2716
+ path: "/providers/Microsoft.Support/supportTickets/{supportTicketName}",
2717
+ httpMethod: "PATCH",
2718
+ responses: {
2719
+ 200: {
2720
+ bodyMapper: SupportTicketDetails
2721
+ },
2722
+ default: {
2723
+ bodyMapper: ErrorResponse
2724
+ }
2725
+ },
2726
+ requestBody: updateSupportTicket,
2727
+ queryParameters: [apiVersion],
2728
+ urlParameters: [$host, supportTicketName],
2729
+ headerParameters: [accept, contentType],
2730
+ mediaType: "json",
2731
+ serializer: serializer$a
2732
+ };
2733
+ const createOperationSpec$6 = {
2734
+ path: "/providers/Microsoft.Support/supportTickets/{supportTicketName}",
2193
2735
  httpMethod: "PUT",
2194
2736
  responses: {
2195
2737
  200: {
2196
- bodyMapper: CommunicationDetails
2738
+ bodyMapper: SupportTicketDetails
2197
2739
  },
2198
2740
  201: {
2199
- bodyMapper: CommunicationDetails
2741
+ bodyMapper: SupportTicketDetails
2200
2742
  },
2201
2743
  202: {
2202
- bodyMapper: CommunicationDetails
2744
+ bodyMapper: SupportTicketDetails
2203
2745
  },
2204
2746
  204: {
2205
- bodyMapper: CommunicationDetails
2747
+ bodyMapper: SupportTicketDetails
2206
2748
  },
2207
2749
  default: {
2208
- bodyMapper: ExceptionResponse
2750
+ bodyMapper: ErrorResponse
2209
2751
  }
2210
2752
  },
2211
- requestBody: createCommunicationParameters,
2753
+ requestBody: createSupportTicketParameters,
2212
2754
  queryParameters: [apiVersion],
2213
- urlParameters: [
2214
- $host,
2215
- subscriptionId,
2216
- supportTicketName,
2217
- communicationName
2218
- ],
2755
+ urlParameters: [$host, supportTicketName],
2219
2756
  headerParameters: [accept, contentType],
2220
2757
  mediaType: "json",
2221
- serializer
2758
+ serializer: serializer$a
2222
2759
  };
2223
- const listNextOperationSpec = {
2760
+ const listNextOperationSpec$6 = {
2224
2761
  path: "{nextLink}",
2225
2762
  httpMethod: "GET",
2226
2763
  responses: {
2227
2764
  200: {
2228
- bodyMapper: CommunicationsListResult
2765
+ bodyMapper: SupportTicketsListResult
2229
2766
  },
2230
2767
  default: {
2231
- bodyMapper: ExceptionResponse
2768
+ bodyMapper: ErrorResponse
2232
2769
  }
2233
2770
  },
2234
- urlParameters: [
2235
- $host,
2236
- subscriptionId,
2237
- supportTicketName,
2238
- nextLink
2239
- ],
2771
+ urlParameters: [$host, nextLink],
2240
2772
  headerParameters: [accept],
2241
- serializer
2773
+ serializer: serializer$a
2242
2774
  };
2243
2775
 
2244
2776
  /*
@@ -2248,20 +2780,1629 @@ const listNextOperationSpec = {
2248
2780
  * Code generated by Microsoft (R) AutoRest Code Generator.
2249
2781
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2250
2782
  */
2251
- class MicrosoftSupport extends coreClient__namespace.ServiceClient {
2783
+ /// <reference lib="esnext.asynciterable" />
2784
+ /** Class containing Communications operations. */
2785
+ class CommunicationsImpl {
2252
2786
  /**
2253
- * Initializes a new instance of the MicrosoftSupport class.
2254
- * @param credentials Subscription credentials which uniquely identify client subscription.
2255
- * @param subscriptionId Azure subscription Id.
2256
- * @param options The parameter options
2787
+ * Initialize a new instance of the class Communications class.
2788
+ * @param client Reference to the service client
2257
2789
  */
2258
- constructor(credentials, subscriptionId, options) {
2259
- var _a, _b, _c;
2260
- if (credentials === undefined) {
2261
- throw new Error("'credentials' cannot be null");
2790
+ constructor(client) {
2791
+ this.client = client;
2792
+ }
2793
+ /**
2794
+ * Lists all communications (attachments not included) for a support ticket. <br/></br> You can also
2795
+ * filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter
2796
+ * parameter. The only type of communication supported today is _Web_. Output will be a paged result
2797
+ * with _nextLink_, using which you can retrieve the next set of Communication results.
2798
+ * <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was
2799
+ * created more than 18 months ago, a request for data might cause an error.
2800
+ * @param supportTicketName Support ticket name.
2801
+ * @param options The options parameters.
2802
+ */
2803
+ list(supportTicketName, options) {
2804
+ const iter = this.listPagingAll(supportTicketName, options);
2805
+ return {
2806
+ next() {
2807
+ return iter.next();
2808
+ },
2809
+ [Symbol.asyncIterator]() {
2810
+ return this;
2811
+ },
2812
+ byPage: (settings) => {
2813
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2814
+ throw new Error("maxPageSize is not supported by this operation.");
2815
+ }
2816
+ return this.listPagingPage(supportTicketName, options, settings);
2817
+ }
2818
+ };
2819
+ }
2820
+ listPagingPage(supportTicketName, options, settings) {
2821
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2822
+ let result;
2823
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2824
+ if (!continuationToken) {
2825
+ result = yield tslib.__await(this._list(supportTicketName, options));
2826
+ let page = result.value || [];
2827
+ continuationToken = result.nextLink;
2828
+ setContinuationToken(page, continuationToken);
2829
+ yield yield tslib.__await(page);
2830
+ }
2831
+ while (continuationToken) {
2832
+ result = yield tslib.__await(this._listNext(supportTicketName, continuationToken, options));
2833
+ continuationToken = result.nextLink;
2834
+ let page = result.value || [];
2835
+ setContinuationToken(page, continuationToken);
2836
+ yield yield tslib.__await(page);
2837
+ }
2838
+ });
2839
+ }
2840
+ listPagingAll(supportTicketName, options) {
2841
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2842
+ var _a, e_1, _b, _c;
2843
+ try {
2844
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(supportTicketName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2845
+ _c = _f.value;
2846
+ _d = false;
2847
+ try {
2848
+ const page = _c;
2849
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2850
+ }
2851
+ finally {
2852
+ _d = true;
2853
+ }
2854
+ }
2855
+ }
2856
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2857
+ finally {
2858
+ try {
2859
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2860
+ }
2861
+ finally { if (e_1) throw e_1.error; }
2862
+ }
2863
+ });
2864
+ }
2865
+ /**
2866
+ * Check the availability of a resource name. This API should be used to check the uniqueness of the
2867
+ * name for adding a new communication to the support ticket.
2868
+ * @param supportTicketName Support ticket name.
2869
+ * @param checkNameAvailabilityInput Input to check.
2870
+ * @param options The options parameters.
2871
+ */
2872
+ checkNameAvailability(supportTicketName, checkNameAvailabilityInput, options) {
2873
+ return this.client.sendOperationRequest({ supportTicketName, checkNameAvailabilityInput, options }, checkNameAvailabilityOperationSpec$1);
2874
+ }
2875
+ /**
2876
+ * Lists all communications (attachments not included) for a support ticket. <br/></br> You can also
2877
+ * filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter
2878
+ * parameter. The only type of communication supported today is _Web_. Output will be a paged result
2879
+ * with _nextLink_, using which you can retrieve the next set of Communication results.
2880
+ * <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was
2881
+ * created more than 18 months ago, a request for data might cause an error.
2882
+ * @param supportTicketName Support ticket name.
2883
+ * @param options The options parameters.
2884
+ */
2885
+ _list(supportTicketName, options) {
2886
+ return this.client.sendOperationRequest({ supportTicketName, options }, listOperationSpec$5);
2887
+ }
2888
+ /**
2889
+ * Returns communication details for a support ticket.
2890
+ * @param supportTicketName Support ticket name.
2891
+ * @param communicationName Communication name.
2892
+ * @param options The options parameters.
2893
+ */
2894
+ get(supportTicketName, communicationName, options) {
2895
+ return this.client.sendOperationRequest({ supportTicketName, communicationName, options }, getOperationSpec$7);
2896
+ }
2897
+ /**
2898
+ * Adds a new customer communication to an Azure support ticket.
2899
+ * @param supportTicketName Support ticket name.
2900
+ * @param communicationName Communication name.
2901
+ * @param createCommunicationParameters Communication object.
2902
+ * @param options The options parameters.
2903
+ */
2904
+ beginCreate(supportTicketName, communicationName, createCommunicationParameters, options) {
2905
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2906
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2907
+ return this.client.sendOperationRequest(args, spec);
2908
+ });
2909
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2910
+ var _a;
2911
+ let currentRawResponse = undefined;
2912
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2913
+ const callback = (rawResponse, flatResponse) => {
2914
+ currentRawResponse = rawResponse;
2915
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2916
+ };
2917
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2918
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2919
+ return {
2920
+ flatResponse,
2921
+ rawResponse: {
2922
+ statusCode: currentRawResponse.status,
2923
+ body: currentRawResponse.parsedBody,
2924
+ headers: currentRawResponse.headers.toJSON()
2925
+ }
2926
+ };
2927
+ });
2928
+ const lro = createLroSpec({
2929
+ sendOperationFn,
2930
+ args: {
2931
+ supportTicketName,
2932
+ communicationName,
2933
+ createCommunicationParameters,
2934
+ options
2935
+ },
2936
+ spec: createOperationSpec$5
2937
+ });
2938
+ const poller = yield coreLro.createHttpPoller(lro, {
2939
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2940
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2941
+ resourceLocationConfig: "azure-async-operation"
2942
+ });
2943
+ yield poller.poll();
2944
+ return poller;
2945
+ });
2946
+ }
2947
+ /**
2948
+ * Adds a new customer communication to an Azure support ticket.
2949
+ * @param supportTicketName Support ticket name.
2950
+ * @param communicationName Communication name.
2951
+ * @param createCommunicationParameters Communication object.
2952
+ * @param options The options parameters.
2953
+ */
2954
+ beginCreateAndWait(supportTicketName, communicationName, createCommunicationParameters, options) {
2955
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2956
+ const poller = yield this.beginCreate(supportTicketName, communicationName, createCommunicationParameters, options);
2957
+ return poller.pollUntilDone();
2958
+ });
2959
+ }
2960
+ /**
2961
+ * ListNext
2962
+ * @param supportTicketName Support ticket name.
2963
+ * @param nextLink The nextLink from the previous successful call to the List method.
2964
+ * @param options The options parameters.
2965
+ */
2966
+ _listNext(supportTicketName, nextLink, options) {
2967
+ return this.client.sendOperationRequest({ supportTicketName, nextLink, options }, listNextOperationSpec$5);
2968
+ }
2969
+ }
2970
+ // Operation Specifications
2971
+ const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2972
+ const checkNameAvailabilityOperationSpec$1 = {
2973
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/checkNameAvailability",
2974
+ httpMethod: "POST",
2975
+ responses: {
2976
+ 200: {
2977
+ bodyMapper: CheckNameAvailabilityOutput
2978
+ },
2979
+ default: {
2980
+ bodyMapper: ErrorResponse
2981
+ }
2982
+ },
2983
+ requestBody: checkNameAvailabilityInput,
2984
+ queryParameters: [apiVersion],
2985
+ urlParameters: [
2986
+ $host,
2987
+ subscriptionId,
2988
+ supportTicketName
2989
+ ],
2990
+ headerParameters: [accept, contentType],
2991
+ mediaType: "json",
2992
+ serializer: serializer$9
2993
+ };
2994
+ const listOperationSpec$5 = {
2995
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications",
2996
+ httpMethod: "GET",
2997
+ responses: {
2998
+ 200: {
2999
+ bodyMapper: CommunicationsListResult
3000
+ },
3001
+ default: {
3002
+ bodyMapper: ErrorResponse
3003
+ }
3004
+ },
3005
+ queryParameters: [apiVersion, top, filter],
3006
+ urlParameters: [
3007
+ $host,
3008
+ subscriptionId,
3009
+ supportTicketName
3010
+ ],
3011
+ headerParameters: [accept],
3012
+ serializer: serializer$9
3013
+ };
3014
+ const getOperationSpec$7 = {
3015
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}",
3016
+ httpMethod: "GET",
3017
+ responses: {
3018
+ 200: {
3019
+ bodyMapper: CommunicationDetails
3020
+ },
3021
+ default: {
3022
+ bodyMapper: ErrorResponse
3023
+ }
3024
+ },
3025
+ queryParameters: [apiVersion],
3026
+ urlParameters: [
3027
+ $host,
3028
+ subscriptionId,
3029
+ supportTicketName,
3030
+ communicationName
3031
+ ],
3032
+ headerParameters: [accept],
3033
+ serializer: serializer$9
3034
+ };
3035
+ const createOperationSpec$5 = {
3036
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}",
3037
+ httpMethod: "PUT",
3038
+ responses: {
3039
+ 200: {
3040
+ bodyMapper: CommunicationDetails
3041
+ },
3042
+ 201: {
3043
+ bodyMapper: CommunicationDetails
3044
+ },
3045
+ 202: {
3046
+ bodyMapper: CommunicationDetails
3047
+ },
3048
+ 204: {
3049
+ bodyMapper: CommunicationDetails
3050
+ },
3051
+ default: {
3052
+ bodyMapper: ErrorResponse
3053
+ }
3054
+ },
3055
+ requestBody: createCommunicationParameters,
3056
+ queryParameters: [apiVersion],
3057
+ urlParameters: [
3058
+ $host,
3059
+ subscriptionId,
3060
+ supportTicketName,
3061
+ communicationName
3062
+ ],
3063
+ headerParameters: [accept, contentType],
3064
+ mediaType: "json",
3065
+ serializer: serializer$9
3066
+ };
3067
+ const listNextOperationSpec$5 = {
3068
+ path: "{nextLink}",
3069
+ httpMethod: "GET",
3070
+ responses: {
3071
+ 200: {
3072
+ bodyMapper: CommunicationsListResult
3073
+ },
3074
+ default: {
3075
+ bodyMapper: ErrorResponse
3076
+ }
3077
+ },
3078
+ urlParameters: [
3079
+ $host,
3080
+ subscriptionId,
3081
+ supportTicketName,
3082
+ nextLink
3083
+ ],
3084
+ headerParameters: [accept],
3085
+ serializer: serializer$9
3086
+ };
3087
+
3088
+ /*
3089
+ * Copyright (c) Microsoft Corporation.
3090
+ * Licensed under the MIT License.
3091
+ *
3092
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3093
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3094
+ */
3095
+ /** Class containing CommunicationsNoSubscription operations. */
3096
+ class CommunicationsNoSubscriptionImpl {
3097
+ /**
3098
+ * Initialize a new instance of the class CommunicationsNoSubscription class.
3099
+ * @param client Reference to the service client
3100
+ */
3101
+ constructor(client) {
3102
+ this.client = client;
3103
+ }
3104
+ /**
3105
+ * Check the availability of a resource name. This API should be used to check the uniqueness of the
3106
+ * name for adding a new communication to the support ticket.
3107
+ * @param supportTicketName Support ticket name.
3108
+ * @param checkNameAvailabilityInput Input to check.
3109
+ * @param options The options parameters.
3110
+ */
3111
+ checkNameAvailability(supportTicketName, checkNameAvailabilityInput, options) {
3112
+ return this.client.sendOperationRequest({ supportTicketName, checkNameAvailabilityInput, options }, checkNameAvailabilityOperationSpec);
3113
+ }
3114
+ /**
3115
+ * Returns communication details for a support ticket.
3116
+ * @param supportTicketName Support ticket name.
3117
+ * @param communicationName Communication name.
3118
+ * @param options The options parameters.
3119
+ */
3120
+ get(supportTicketName, communicationName, options) {
3121
+ return this.client.sendOperationRequest({ supportTicketName, communicationName, options }, getOperationSpec$6);
3122
+ }
3123
+ /**
3124
+ * Adds a new customer communication to an Azure support ticket.
3125
+ * @param supportTicketName Support ticket name.
3126
+ * @param communicationName Communication name.
3127
+ * @param createCommunicationParameters Communication object.
3128
+ * @param options The options parameters.
3129
+ */
3130
+ beginCreate(supportTicketName, communicationName, createCommunicationParameters, options) {
3131
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3132
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3133
+ return this.client.sendOperationRequest(args, spec);
3134
+ });
3135
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3136
+ var _a;
3137
+ let currentRawResponse = undefined;
3138
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3139
+ const callback = (rawResponse, flatResponse) => {
3140
+ currentRawResponse = rawResponse;
3141
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3142
+ };
3143
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3144
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3145
+ return {
3146
+ flatResponse,
3147
+ rawResponse: {
3148
+ statusCode: currentRawResponse.status,
3149
+ body: currentRawResponse.parsedBody,
3150
+ headers: currentRawResponse.headers.toJSON()
3151
+ }
3152
+ };
3153
+ });
3154
+ const lro = createLroSpec({
3155
+ sendOperationFn,
3156
+ args: {
3157
+ supportTicketName,
3158
+ communicationName,
3159
+ createCommunicationParameters,
3160
+ options
3161
+ },
3162
+ spec: createOperationSpec$4
3163
+ });
3164
+ const poller = yield coreLro.createHttpPoller(lro, {
3165
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3166
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3167
+ resourceLocationConfig: "azure-async-operation"
3168
+ });
3169
+ yield poller.poll();
3170
+ return poller;
3171
+ });
3172
+ }
3173
+ /**
3174
+ * Adds a new customer communication to an Azure support ticket.
3175
+ * @param supportTicketName Support ticket name.
3176
+ * @param communicationName Communication name.
3177
+ * @param createCommunicationParameters Communication object.
3178
+ * @param options The options parameters.
3179
+ */
3180
+ beginCreateAndWait(supportTicketName, communicationName, createCommunicationParameters, options) {
3181
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3182
+ const poller = yield this.beginCreate(supportTicketName, communicationName, createCommunicationParameters, options);
3183
+ return poller.pollUntilDone();
3184
+ });
3185
+ }
3186
+ }
3187
+ // Operation Specifications
3188
+ const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3189
+ const checkNameAvailabilityOperationSpec = {
3190
+ path: "/providers/Microsoft.Support/supportTickets/{supportTicketName}/checkNameAvailability",
3191
+ httpMethod: "POST",
3192
+ responses: {
3193
+ 200: {
3194
+ bodyMapper: CheckNameAvailabilityOutput
3195
+ },
3196
+ default: {
3197
+ bodyMapper: ErrorResponse
3198
+ }
3199
+ },
3200
+ requestBody: checkNameAvailabilityInput,
3201
+ queryParameters: [apiVersion],
3202
+ urlParameters: [$host, supportTicketName],
3203
+ headerParameters: [accept, contentType],
3204
+ mediaType: "json",
3205
+ serializer: serializer$8
3206
+ };
3207
+ const getOperationSpec$6 = {
3208
+ path: "/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}",
3209
+ httpMethod: "GET",
3210
+ responses: {
3211
+ 200: {
3212
+ bodyMapper: CommunicationDetails
3213
+ },
3214
+ default: {
3215
+ bodyMapper: ErrorResponse
3216
+ }
3217
+ },
3218
+ queryParameters: [apiVersion],
3219
+ urlParameters: [
3220
+ $host,
3221
+ supportTicketName,
3222
+ communicationName
3223
+ ],
3224
+ headerParameters: [accept],
3225
+ serializer: serializer$8
3226
+ };
3227
+ const createOperationSpec$4 = {
3228
+ path: "/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}",
3229
+ httpMethod: "PUT",
3230
+ responses: {
3231
+ 200: {
3232
+ bodyMapper: CommunicationDetails
3233
+ },
3234
+ 201: {
3235
+ bodyMapper: CommunicationDetails
3236
+ },
3237
+ 202: {
3238
+ bodyMapper: CommunicationDetails
3239
+ },
3240
+ 204: {
3241
+ bodyMapper: CommunicationDetails
3242
+ },
3243
+ default: {
3244
+ bodyMapper: ErrorResponse
3245
+ }
3246
+ },
3247
+ requestBody: createCommunicationParameters,
3248
+ queryParameters: [apiVersion],
3249
+ urlParameters: [
3250
+ $host,
3251
+ supportTicketName,
3252
+ communicationName
3253
+ ],
3254
+ headerParameters: [accept, contentType],
3255
+ mediaType: "json",
3256
+ serializer: serializer$8
3257
+ };
3258
+
3259
+ /*
3260
+ * Copyright (c) Microsoft Corporation.
3261
+ * Licensed under the MIT License.
3262
+ *
3263
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3264
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3265
+ */
3266
+ /// <reference lib="esnext.asynciterable" />
3267
+ /** Class containing SupportTicketCommunicationsNoSubscription operations. */
3268
+ class SupportTicketCommunicationsNoSubscriptionImpl {
3269
+ /**
3270
+ * Initialize a new instance of the class SupportTicketCommunicationsNoSubscription class.
3271
+ * @param client Reference to the service client
3272
+ */
3273
+ constructor(client) {
3274
+ this.client = client;
3275
+ }
3276
+ /**
3277
+ * Lists all communications (attachments not included) for a support ticket. <br/></br> You can also
3278
+ * filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter
3279
+ * parameter. The only type of communication supported today is _Web_. Output will be a paged result
3280
+ * with _nextLink_, using which you can retrieve the next set of Communication results.
3281
+ * <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was
3282
+ * created more than 18 months ago, a request for data might cause an error.
3283
+ * @param supportTicketName Support ticket name
3284
+ * @param options The options parameters.
3285
+ */
3286
+ list(supportTicketName, options) {
3287
+ const iter = this.listPagingAll(supportTicketName, options);
3288
+ return {
3289
+ next() {
3290
+ return iter.next();
3291
+ },
3292
+ [Symbol.asyncIterator]() {
3293
+ return this;
3294
+ },
3295
+ byPage: (settings) => {
3296
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3297
+ throw new Error("maxPageSize is not supported by this operation.");
3298
+ }
3299
+ return this.listPagingPage(supportTicketName, options, settings);
3300
+ }
3301
+ };
3302
+ }
3303
+ listPagingPage(supportTicketName, options, settings) {
3304
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3305
+ let result;
3306
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3307
+ if (!continuationToken) {
3308
+ result = yield tslib.__await(this._list(supportTicketName, options));
3309
+ let page = result.value || [];
3310
+ continuationToken = result.nextLink;
3311
+ setContinuationToken(page, continuationToken);
3312
+ yield yield tslib.__await(page);
3313
+ }
3314
+ while (continuationToken) {
3315
+ result = yield tslib.__await(this._listNext(supportTicketName, continuationToken, options));
3316
+ continuationToken = result.nextLink;
3317
+ let page = result.value || [];
3318
+ setContinuationToken(page, continuationToken);
3319
+ yield yield tslib.__await(page);
3320
+ }
3321
+ });
3322
+ }
3323
+ listPagingAll(supportTicketName, options) {
3324
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3325
+ var _a, e_1, _b, _c;
3326
+ try {
3327
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(supportTicketName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3328
+ _c = _f.value;
3329
+ _d = false;
3330
+ try {
3331
+ const page = _c;
3332
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3333
+ }
3334
+ finally {
3335
+ _d = true;
3336
+ }
3337
+ }
3338
+ }
3339
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3340
+ finally {
3341
+ try {
3342
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3343
+ }
3344
+ finally { if (e_1) throw e_1.error; }
3345
+ }
3346
+ });
3347
+ }
3348
+ /**
3349
+ * Lists all communications (attachments not included) for a support ticket. <br/></br> You can also
3350
+ * filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter
3351
+ * parameter. The only type of communication supported today is _Web_. Output will be a paged result
3352
+ * with _nextLink_, using which you can retrieve the next set of Communication results.
3353
+ * <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was
3354
+ * created more than 18 months ago, a request for data might cause an error.
3355
+ * @param supportTicketName Support ticket name
3356
+ * @param options The options parameters.
3357
+ */
3358
+ _list(supportTicketName, options) {
3359
+ return this.client.sendOperationRequest({ supportTicketName, options }, listOperationSpec$4);
3360
+ }
3361
+ /**
3362
+ * ListNext
3363
+ * @param supportTicketName Support ticket name
3364
+ * @param nextLink The nextLink from the previous successful call to the List method.
3365
+ * @param options The options parameters.
3366
+ */
3367
+ _listNext(supportTicketName, nextLink, options) {
3368
+ return this.client.sendOperationRequest({ supportTicketName, nextLink, options }, listNextOperationSpec$4);
3369
+ }
3370
+ }
3371
+ // Operation Specifications
3372
+ const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3373
+ const listOperationSpec$4 = {
3374
+ path: "/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications",
3375
+ httpMethod: "GET",
3376
+ responses: {
3377
+ 200: {
3378
+ bodyMapper: CommunicationsListResult
3379
+ },
3380
+ default: {
3381
+ bodyMapper: ErrorResponse
3382
+ }
3383
+ },
3384
+ queryParameters: [apiVersion, top, filter],
3385
+ urlParameters: [$host, supportTicketName],
3386
+ headerParameters: [accept],
3387
+ serializer: serializer$7
3388
+ };
3389
+ const listNextOperationSpec$4 = {
3390
+ path: "{nextLink}",
3391
+ httpMethod: "GET",
3392
+ responses: {
3393
+ 200: {
3394
+ bodyMapper: CommunicationsListResult
3395
+ },
3396
+ default: {
3397
+ bodyMapper: ErrorResponse
3398
+ }
3399
+ },
3400
+ urlParameters: [
3401
+ $host,
3402
+ supportTicketName,
3403
+ nextLink
3404
+ ],
3405
+ headerParameters: [accept],
3406
+ serializer: serializer$7
3407
+ };
3408
+
3409
+ /*
3410
+ * Copyright (c) Microsoft Corporation.
3411
+ * Licensed under the MIT License.
3412
+ *
3413
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3414
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3415
+ */
3416
+ /// <reference lib="esnext.asynciterable" />
3417
+ /** Class containing ChatTranscripts operations. */
3418
+ class ChatTranscriptsImpl {
3419
+ /**
3420
+ * Initialize a new instance of the class ChatTranscripts class.
3421
+ * @param client Reference to the service client
3422
+ */
3423
+ constructor(client) {
3424
+ this.client = client;
3425
+ }
3426
+ /**
3427
+ * Lists all chat transcripts for a support ticket under subscription
3428
+ * @param supportTicketName Support ticket name.
3429
+ * @param options The options parameters.
3430
+ */
3431
+ list(supportTicketName, options) {
3432
+ const iter = this.listPagingAll(supportTicketName, options);
3433
+ return {
3434
+ next() {
3435
+ return iter.next();
3436
+ },
3437
+ [Symbol.asyncIterator]() {
3438
+ return this;
3439
+ },
3440
+ byPage: (settings) => {
3441
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3442
+ throw new Error("maxPageSize is not supported by this operation.");
3443
+ }
3444
+ return this.listPagingPage(supportTicketName, options, settings);
3445
+ }
3446
+ };
3447
+ }
3448
+ listPagingPage(supportTicketName, options, settings) {
3449
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3450
+ let result;
3451
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3452
+ if (!continuationToken) {
3453
+ result = yield tslib.__await(this._list(supportTicketName, options));
3454
+ let page = result.value || [];
3455
+ continuationToken = result.nextLink;
3456
+ setContinuationToken(page, continuationToken);
3457
+ yield yield tslib.__await(page);
3458
+ }
3459
+ while (continuationToken) {
3460
+ result = yield tslib.__await(this._listNext(supportTicketName, continuationToken, options));
3461
+ continuationToken = result.nextLink;
3462
+ let page = result.value || [];
3463
+ setContinuationToken(page, continuationToken);
3464
+ yield yield tslib.__await(page);
3465
+ }
3466
+ });
3467
+ }
3468
+ listPagingAll(supportTicketName, options) {
3469
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3470
+ var _a, e_1, _b, _c;
3471
+ try {
3472
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(supportTicketName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3473
+ _c = _f.value;
3474
+ _d = false;
3475
+ try {
3476
+ const page = _c;
3477
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3478
+ }
3479
+ finally {
3480
+ _d = true;
3481
+ }
3482
+ }
3483
+ }
3484
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3485
+ finally {
3486
+ try {
3487
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3488
+ }
3489
+ finally { if (e_1) throw e_1.error; }
3490
+ }
3491
+ });
3492
+ }
3493
+ /**
3494
+ * Lists all chat transcripts for a support ticket under subscription
3495
+ * @param supportTicketName Support ticket name.
3496
+ * @param options The options parameters.
3497
+ */
3498
+ _list(supportTicketName, options) {
3499
+ return this.client.sendOperationRequest({ supportTicketName, options }, listOperationSpec$3);
3500
+ }
3501
+ /**
3502
+ * Returns chatTranscript details for a support ticket under a subscription.
3503
+ * @param supportTicketName Support ticket name.
3504
+ * @param chatTranscriptName ChatTranscript name.
3505
+ * @param options The options parameters.
3506
+ */
3507
+ get(supportTicketName, chatTranscriptName, options) {
3508
+ return this.client.sendOperationRequest({ supportTicketName, chatTranscriptName, options }, getOperationSpec$5);
3509
+ }
3510
+ /**
3511
+ * ListNext
3512
+ * @param supportTicketName Support ticket name.
3513
+ * @param nextLink The nextLink from the previous successful call to the List method.
3514
+ * @param options The options parameters.
3515
+ */
3516
+ _listNext(supportTicketName, nextLink, options) {
3517
+ return this.client.sendOperationRequest({ supportTicketName, nextLink, options }, listNextOperationSpec$3);
3518
+ }
3519
+ }
3520
+ // Operation Specifications
3521
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3522
+ const listOperationSpec$3 = {
3523
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts",
3524
+ httpMethod: "GET",
3525
+ responses: {
3526
+ 200: {
3527
+ bodyMapper: ChatTranscriptsListResult
3528
+ },
3529
+ default: {
3530
+ bodyMapper: ErrorResponse
3531
+ }
3532
+ },
3533
+ queryParameters: [apiVersion],
3534
+ urlParameters: [
3535
+ $host,
3536
+ subscriptionId,
3537
+ supportTicketName
3538
+ ],
3539
+ headerParameters: [accept],
3540
+ serializer: serializer$6
3541
+ };
3542
+ const getOperationSpec$5 = {
3543
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName}",
3544
+ httpMethod: "GET",
3545
+ responses: {
3546
+ 200: {
3547
+ bodyMapper: ChatTranscriptDetails
3548
+ },
3549
+ default: {
3550
+ bodyMapper: ErrorResponse
3551
+ }
3552
+ },
3553
+ queryParameters: [apiVersion],
3554
+ urlParameters: [
3555
+ $host,
3556
+ subscriptionId,
3557
+ supportTicketName,
3558
+ chatTranscriptName
3559
+ ],
3560
+ headerParameters: [accept],
3561
+ serializer: serializer$6
3562
+ };
3563
+ const listNextOperationSpec$3 = {
3564
+ path: "{nextLink}",
3565
+ httpMethod: "GET",
3566
+ responses: {
3567
+ 200: {
3568
+ bodyMapper: ChatTranscriptsListResult
3569
+ },
3570
+ default: {
3571
+ bodyMapper: ErrorResponse
3572
+ }
3573
+ },
3574
+ urlParameters: [
3575
+ $host,
3576
+ subscriptionId,
3577
+ supportTicketName,
3578
+ nextLink
3579
+ ],
3580
+ headerParameters: [accept],
3581
+ serializer: serializer$6
3582
+ };
3583
+
3584
+ /*
3585
+ * Copyright (c) Microsoft Corporation.
3586
+ * Licensed under the MIT License.
3587
+ *
3588
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3589
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3590
+ */
3591
+ /// <reference lib="esnext.asynciterable" />
3592
+ /** Class containing SupportTicketChatTranscriptsNoSubscription operations. */
3593
+ class SupportTicketChatTranscriptsNoSubscriptionImpl {
3594
+ /**
3595
+ * Initialize a new instance of the class SupportTicketChatTranscriptsNoSubscription class.
3596
+ * @param client Reference to the service client
3597
+ */
3598
+ constructor(client) {
3599
+ this.client = client;
3600
+ }
3601
+ /**
3602
+ * Lists all chat transcripts for a support ticket
3603
+ * @param supportTicketName Support ticket name
3604
+ * @param options The options parameters.
3605
+ */
3606
+ list(supportTicketName, options) {
3607
+ const iter = this.listPagingAll(supportTicketName, options);
3608
+ return {
3609
+ next() {
3610
+ return iter.next();
3611
+ },
3612
+ [Symbol.asyncIterator]() {
3613
+ return this;
3614
+ },
3615
+ byPage: (settings) => {
3616
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3617
+ throw new Error("maxPageSize is not supported by this operation.");
3618
+ }
3619
+ return this.listPagingPage(supportTicketName, options, settings);
3620
+ }
3621
+ };
3622
+ }
3623
+ listPagingPage(supportTicketName, options, settings) {
3624
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3625
+ let result;
3626
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3627
+ if (!continuationToken) {
3628
+ result = yield tslib.__await(this._list(supportTicketName, options));
3629
+ let page = result.value || [];
3630
+ continuationToken = result.nextLink;
3631
+ setContinuationToken(page, continuationToken);
3632
+ yield yield tslib.__await(page);
3633
+ }
3634
+ while (continuationToken) {
3635
+ result = yield tslib.__await(this._listNext(supportTicketName, continuationToken, options));
3636
+ continuationToken = result.nextLink;
3637
+ let page = result.value || [];
3638
+ setContinuationToken(page, continuationToken);
3639
+ yield yield tslib.__await(page);
3640
+ }
3641
+ });
3642
+ }
3643
+ listPagingAll(supportTicketName, options) {
3644
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3645
+ var _a, e_1, _b, _c;
3646
+ try {
3647
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(supportTicketName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3648
+ _c = _f.value;
3649
+ _d = false;
3650
+ try {
3651
+ const page = _c;
3652
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3653
+ }
3654
+ finally {
3655
+ _d = true;
3656
+ }
3657
+ }
3658
+ }
3659
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3660
+ finally {
3661
+ try {
3662
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3663
+ }
3664
+ finally { if (e_1) throw e_1.error; }
3665
+ }
3666
+ });
3667
+ }
3668
+ /**
3669
+ * Lists all chat transcripts for a support ticket
3670
+ * @param supportTicketName Support ticket name
3671
+ * @param options The options parameters.
3672
+ */
3673
+ _list(supportTicketName, options) {
3674
+ return this.client.sendOperationRequest({ supportTicketName, options }, listOperationSpec$2);
3675
+ }
3676
+ /**
3677
+ * ListNext
3678
+ * @param supportTicketName Support ticket name
3679
+ * @param nextLink The nextLink from the previous successful call to the List method.
3680
+ * @param options The options parameters.
3681
+ */
3682
+ _listNext(supportTicketName, nextLink, options) {
3683
+ return this.client.sendOperationRequest({ supportTicketName, nextLink, options }, listNextOperationSpec$2);
3684
+ }
3685
+ }
3686
+ // Operation Specifications
3687
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3688
+ const listOperationSpec$2 = {
3689
+ path: "/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts",
3690
+ httpMethod: "GET",
3691
+ responses: {
3692
+ 200: {
3693
+ bodyMapper: ChatTranscriptsListResult
3694
+ },
3695
+ default: {
3696
+ bodyMapper: ErrorResponse
3697
+ }
3698
+ },
3699
+ queryParameters: [apiVersion],
3700
+ urlParameters: [$host, supportTicketName],
3701
+ headerParameters: [accept],
3702
+ serializer: serializer$5
3703
+ };
3704
+ const listNextOperationSpec$2 = {
3705
+ path: "{nextLink}",
3706
+ httpMethod: "GET",
3707
+ responses: {
3708
+ 200: {
3709
+ bodyMapper: ChatTranscriptsListResult
3710
+ },
3711
+ default: {
3712
+ bodyMapper: ErrorResponse
3713
+ }
3714
+ },
3715
+ urlParameters: [
3716
+ $host,
3717
+ supportTicketName,
3718
+ nextLink
3719
+ ],
3720
+ headerParameters: [accept],
3721
+ serializer: serializer$5
3722
+ };
3723
+
3724
+ /*
3725
+ * Copyright (c) Microsoft Corporation.
3726
+ * Licensed under the MIT License.
3727
+ *
3728
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3729
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3730
+ */
3731
+ /** Class containing ChatTranscriptsNoSubscription operations. */
3732
+ class ChatTranscriptsNoSubscriptionImpl {
3733
+ /**
3734
+ * Initialize a new instance of the class ChatTranscriptsNoSubscription class.
3735
+ * @param client Reference to the service client
3736
+ */
3737
+ constructor(client) {
3738
+ this.client = client;
3739
+ }
3740
+ /**
3741
+ * Returns chatTranscript details for a no subscription support ticket.
3742
+ * @param supportTicketName Support ticket name.
3743
+ * @param chatTranscriptName ChatTranscript name.
3744
+ * @param options The options parameters.
3745
+ */
3746
+ get(supportTicketName, chatTranscriptName, options) {
3747
+ return this.client.sendOperationRequest({ supportTicketName, chatTranscriptName, options }, getOperationSpec$4);
3748
+ }
3749
+ }
3750
+ // Operation Specifications
3751
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3752
+ const getOperationSpec$4 = {
3753
+ path: "/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts/{chatTranscriptName}",
3754
+ httpMethod: "GET",
3755
+ responses: {
3756
+ 200: {
3757
+ bodyMapper: ChatTranscriptDetails
3758
+ },
3759
+ default: {
3760
+ bodyMapper: ErrorResponse
3761
+ }
3762
+ },
3763
+ queryParameters: [apiVersion],
3764
+ urlParameters: [
3765
+ $host,
3766
+ supportTicketName,
3767
+ chatTranscriptName
3768
+ ],
3769
+ headerParameters: [accept],
3770
+ serializer: serializer$4
3771
+ };
3772
+
3773
+ /*
3774
+ * Copyright (c) Microsoft Corporation.
3775
+ * Licensed under the MIT License.
3776
+ *
3777
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3778
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3779
+ */
3780
+ /** Class containing FileWorkspaces operations. */
3781
+ class FileWorkspacesImpl {
3782
+ /**
3783
+ * Initialize a new instance of the class FileWorkspaces class.
3784
+ * @param client Reference to the service client
3785
+ */
3786
+ constructor(client) {
3787
+ this.client = client;
3788
+ }
3789
+ /**
3790
+ * Gets details for a specific file workspace in an Azure subscription.
3791
+ * @param fileWorkspaceName File Workspace Name
3792
+ * @param options The options parameters.
3793
+ */
3794
+ get(fileWorkspaceName, options) {
3795
+ return this.client.sendOperationRequest({ fileWorkspaceName, options }, getOperationSpec$3);
3796
+ }
3797
+ /**
3798
+ * Creates a new file workspace for the specified subscription.
3799
+ * @param fileWorkspaceName File workspace name.
3800
+ * @param options The options parameters.
3801
+ */
3802
+ create(fileWorkspaceName, options) {
3803
+ return this.client.sendOperationRequest({ fileWorkspaceName, options }, createOperationSpec$3);
3804
+ }
3805
+ }
3806
+ // Operation Specifications
3807
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3808
+ const getOperationSpec$3 = {
3809
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}",
3810
+ httpMethod: "GET",
3811
+ responses: {
3812
+ 200: {
3813
+ bodyMapper: FileWorkspaceDetails
3814
+ },
3815
+ default: {
3816
+ bodyMapper: ErrorResponse
3817
+ }
3818
+ },
3819
+ queryParameters: [apiVersion],
3820
+ urlParameters: [
3821
+ $host,
3822
+ subscriptionId,
3823
+ fileWorkspaceName
3824
+ ],
3825
+ headerParameters: [accept],
3826
+ serializer: serializer$3
3827
+ };
3828
+ const createOperationSpec$3 = {
3829
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}",
3830
+ httpMethod: "PUT",
3831
+ responses: {
3832
+ 201: {
3833
+ bodyMapper: FileWorkspaceDetails
3834
+ },
3835
+ default: {
3836
+ bodyMapper: ErrorResponse
3837
+ }
3838
+ },
3839
+ queryParameters: [apiVersion],
3840
+ urlParameters: [
3841
+ $host,
3842
+ subscriptionId,
3843
+ fileWorkspaceName1
3844
+ ],
3845
+ headerParameters: [accept],
3846
+ serializer: serializer$3
3847
+ };
3848
+
3849
+ /*
3850
+ * Copyright (c) Microsoft Corporation.
3851
+ * Licensed under the MIT License.
3852
+ *
3853
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3854
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3855
+ */
3856
+ /** Class containing FileWorkspacesNoSubscription operations. */
3857
+ class FileWorkspacesNoSubscriptionImpl {
3858
+ /**
3859
+ * Initialize a new instance of the class FileWorkspacesNoSubscription class.
3860
+ * @param client Reference to the service client
3861
+ */
3862
+ constructor(client) {
3863
+ this.client = client;
3864
+ }
3865
+ /**
3866
+ * Gets details for a specific file workspace.
3867
+ * @param fileWorkspaceName File Workspace Name
3868
+ * @param options The options parameters.
3869
+ */
3870
+ get(fileWorkspaceName, options) {
3871
+ return this.client.sendOperationRequest({ fileWorkspaceName, options }, getOperationSpec$2);
3872
+ }
3873
+ /**
3874
+ * Creates a new file workspace.
3875
+ * @param fileWorkspaceName File workspace name.
3876
+ * @param options The options parameters.
3877
+ */
3878
+ create(fileWorkspaceName, options) {
3879
+ return this.client.sendOperationRequest({ fileWorkspaceName, options }, createOperationSpec$2);
3880
+ }
3881
+ }
3882
+ // Operation Specifications
3883
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3884
+ const getOperationSpec$2 = {
3885
+ path: "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}",
3886
+ httpMethod: "GET",
3887
+ responses: {
3888
+ 200: {
3889
+ bodyMapper: FileWorkspaceDetails
3890
+ },
3891
+ default: {
3892
+ bodyMapper: ErrorResponse
3893
+ }
3894
+ },
3895
+ queryParameters: [apiVersion],
3896
+ urlParameters: [$host, fileWorkspaceName],
3897
+ headerParameters: [accept],
3898
+ serializer: serializer$2
3899
+ };
3900
+ const createOperationSpec$2 = {
3901
+ path: "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}",
3902
+ httpMethod: "PUT",
3903
+ responses: {
3904
+ 201: {
3905
+ bodyMapper: FileWorkspaceDetails
3906
+ },
3907
+ default: {
3908
+ bodyMapper: ErrorResponse
3909
+ }
3910
+ },
3911
+ queryParameters: [apiVersion],
3912
+ urlParameters: [$host, fileWorkspaceName1],
3913
+ headerParameters: [accept],
3914
+ serializer: serializer$2
3915
+ };
3916
+
3917
+ /*
3918
+ * Copyright (c) Microsoft Corporation.
3919
+ * Licensed under the MIT License.
3920
+ *
3921
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3922
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3923
+ */
3924
+ /// <reference lib="esnext.asynciterable" />
3925
+ /** Class containing Files operations. */
3926
+ class FilesImpl {
3927
+ /**
3928
+ * Initialize a new instance of the class Files class.
3929
+ * @param client Reference to the service client
3930
+ */
3931
+ constructor(client) {
3932
+ this.client = client;
3933
+ }
3934
+ /**
3935
+ * Lists all the Files information under a workspace for an Azure subscription.
3936
+ * @param fileWorkspaceName File Workspace Name
3937
+ * @param options The options parameters.
3938
+ */
3939
+ list(fileWorkspaceName, options) {
3940
+ const iter = this.listPagingAll(fileWorkspaceName, options);
3941
+ return {
3942
+ next() {
3943
+ return iter.next();
3944
+ },
3945
+ [Symbol.asyncIterator]() {
3946
+ return this;
3947
+ },
3948
+ byPage: (settings) => {
3949
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3950
+ throw new Error("maxPageSize is not supported by this operation.");
3951
+ }
3952
+ return this.listPagingPage(fileWorkspaceName, options, settings);
3953
+ }
3954
+ };
3955
+ }
3956
+ listPagingPage(fileWorkspaceName, options, settings) {
3957
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3958
+ let result;
3959
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3960
+ if (!continuationToken) {
3961
+ result = yield tslib.__await(this._list(fileWorkspaceName, options));
3962
+ let page = result.value || [];
3963
+ continuationToken = result.nextLink;
3964
+ setContinuationToken(page, continuationToken);
3965
+ yield yield tslib.__await(page);
3966
+ }
3967
+ while (continuationToken) {
3968
+ result = yield tslib.__await(this._listNext(fileWorkspaceName, continuationToken, options));
3969
+ continuationToken = result.nextLink;
3970
+ let page = result.value || [];
3971
+ setContinuationToken(page, continuationToken);
3972
+ yield yield tslib.__await(page);
3973
+ }
3974
+ });
3975
+ }
3976
+ listPagingAll(fileWorkspaceName, options) {
3977
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3978
+ var _a, e_1, _b, _c;
3979
+ try {
3980
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(fileWorkspaceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3981
+ _c = _f.value;
3982
+ _d = false;
3983
+ try {
3984
+ const page = _c;
3985
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3986
+ }
3987
+ finally {
3988
+ _d = true;
3989
+ }
3990
+ }
3991
+ }
3992
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3993
+ finally {
3994
+ try {
3995
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3996
+ }
3997
+ finally { if (e_1) throw e_1.error; }
3998
+ }
3999
+ });
4000
+ }
4001
+ /**
4002
+ * Lists all the Files information under a workspace for an Azure subscription.
4003
+ * @param fileWorkspaceName File Workspace Name
4004
+ * @param options The options parameters.
4005
+ */
4006
+ _list(fileWorkspaceName, options) {
4007
+ return this.client.sendOperationRequest({ fileWorkspaceName, options }, listOperationSpec$1);
4008
+ }
4009
+ /**
4010
+ * Returns details of a specific file in a work space.
4011
+ * @param fileWorkspaceName File Workspace Name
4012
+ * @param fileName File Name
4013
+ * @param options The options parameters.
4014
+ */
4015
+ get(fileWorkspaceName, fileName, options) {
4016
+ return this.client.sendOperationRequest({ fileWorkspaceName, fileName, options }, getOperationSpec$1);
4017
+ }
4018
+ /**
4019
+ * Creates a new file under a workspace for the specified subscription.
4020
+ * @param fileWorkspaceName File workspace name.
4021
+ * @param fileName File name.
4022
+ * @param createFileParameters Create file object
4023
+ * @param options The options parameters.
4024
+ */
4025
+ create(fileWorkspaceName, fileName, createFileParameters, options) {
4026
+ return this.client.sendOperationRequest({ fileWorkspaceName, fileName, createFileParameters, options }, createOperationSpec$1);
4027
+ }
4028
+ /**
4029
+ * This API allows you to upload content to a file
4030
+ * @param fileWorkspaceName File WorkspaceName
4031
+ * @param fileName File Name
4032
+ * @param uploadFile UploadFile object
4033
+ * @param options The options parameters.
4034
+ */
4035
+ upload(fileWorkspaceName, fileName, uploadFile, options) {
4036
+ return this.client.sendOperationRequest({ fileWorkspaceName, fileName, uploadFile, options }, uploadOperationSpec$1);
4037
+ }
4038
+ /**
4039
+ * ListNext
4040
+ * @param fileWorkspaceName File Workspace Name
4041
+ * @param nextLink The nextLink from the previous successful call to the List method.
4042
+ * @param options The options parameters.
4043
+ */
4044
+ _listNext(fileWorkspaceName, nextLink, options) {
4045
+ return this.client.sendOperationRequest({ fileWorkspaceName, nextLink, options }, listNextOperationSpec$1);
4046
+ }
4047
+ }
4048
+ // Operation Specifications
4049
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4050
+ const listOperationSpec$1 = {
4051
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files",
4052
+ httpMethod: "GET",
4053
+ responses: {
4054
+ 200: {
4055
+ bodyMapper: FilesListResult
4056
+ },
4057
+ default: {
4058
+ bodyMapper: ErrorResponse
4059
+ }
4060
+ },
4061
+ queryParameters: [apiVersion],
4062
+ urlParameters: [
4063
+ $host,
4064
+ subscriptionId,
4065
+ fileWorkspaceName
4066
+ ],
4067
+ headerParameters: [accept],
4068
+ serializer: serializer$1
4069
+ };
4070
+ const getOperationSpec$1 = {
4071
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}",
4072
+ httpMethod: "GET",
4073
+ responses: {
4074
+ 200: {
4075
+ bodyMapper: FileDetails
4076
+ },
4077
+ default: {
4078
+ bodyMapper: ErrorResponse
4079
+ }
4080
+ },
4081
+ queryParameters: [apiVersion],
4082
+ urlParameters: [
4083
+ $host,
4084
+ subscriptionId,
4085
+ fileWorkspaceName,
4086
+ fileName
4087
+ ],
4088
+ headerParameters: [accept],
4089
+ serializer: serializer$1
4090
+ };
4091
+ const createOperationSpec$1 = {
4092
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}",
4093
+ httpMethod: "PUT",
4094
+ responses: {
4095
+ 201: {
4096
+ bodyMapper: FileDetails
4097
+ },
4098
+ default: {
4099
+ bodyMapper: ErrorResponse
4100
+ }
4101
+ },
4102
+ requestBody: createFileParameters,
4103
+ queryParameters: [apiVersion],
4104
+ urlParameters: [
4105
+ $host,
4106
+ subscriptionId,
4107
+ fileWorkspaceName1,
4108
+ fileName
4109
+ ],
4110
+ headerParameters: [accept, contentType],
4111
+ mediaType: "json",
4112
+ serializer: serializer$1
4113
+ };
4114
+ const uploadOperationSpec$1 = {
4115
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}/upload",
4116
+ httpMethod: "POST",
4117
+ responses: {
4118
+ 204: {},
4119
+ default: {
4120
+ bodyMapper: ErrorResponse
4121
+ }
4122
+ },
4123
+ requestBody: uploadFile,
4124
+ queryParameters: [apiVersion],
4125
+ urlParameters: [
4126
+ $host,
4127
+ subscriptionId,
4128
+ fileWorkspaceName,
4129
+ fileName
4130
+ ],
4131
+ headerParameters: [accept, contentType],
4132
+ mediaType: "json",
4133
+ serializer: serializer$1
4134
+ };
4135
+ const listNextOperationSpec$1 = {
4136
+ path: "{nextLink}",
4137
+ httpMethod: "GET",
4138
+ responses: {
4139
+ 200: {
4140
+ bodyMapper: FilesListResult
4141
+ },
4142
+ default: {
4143
+ bodyMapper: ErrorResponse
4144
+ }
4145
+ },
4146
+ urlParameters: [
4147
+ $host,
4148
+ subscriptionId,
4149
+ nextLink,
4150
+ fileWorkspaceName
4151
+ ],
4152
+ headerParameters: [accept],
4153
+ serializer: serializer$1
4154
+ };
4155
+
4156
+ /*
4157
+ * Copyright (c) Microsoft Corporation.
4158
+ * Licensed under the MIT License.
4159
+ *
4160
+ * Code generated by Microsoft (R) AutoRest Code Generator.
4161
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4162
+ */
4163
+ /// <reference lib="esnext.asynciterable" />
4164
+ /** Class containing FilesNoSubscription operations. */
4165
+ class FilesNoSubscriptionImpl {
4166
+ /**
4167
+ * Initialize a new instance of the class FilesNoSubscription class.
4168
+ * @param client Reference to the service client
4169
+ */
4170
+ constructor(client) {
4171
+ this.client = client;
4172
+ }
4173
+ /**
4174
+ * Lists all the Files information under a workspace for an Azure subscription.
4175
+ * @param fileWorkspaceName File Workspace Name
4176
+ * @param options The options parameters.
4177
+ */
4178
+ list(fileWorkspaceName, options) {
4179
+ const iter = this.listPagingAll(fileWorkspaceName, options);
4180
+ return {
4181
+ next() {
4182
+ return iter.next();
4183
+ },
4184
+ [Symbol.asyncIterator]() {
4185
+ return this;
4186
+ },
4187
+ byPage: (settings) => {
4188
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4189
+ throw new Error("maxPageSize is not supported by this operation.");
4190
+ }
4191
+ return this.listPagingPage(fileWorkspaceName, options, settings);
4192
+ }
4193
+ };
4194
+ }
4195
+ listPagingPage(fileWorkspaceName, options, settings) {
4196
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4197
+ let result;
4198
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4199
+ if (!continuationToken) {
4200
+ result = yield tslib.__await(this._list(fileWorkspaceName, options));
4201
+ let page = result.value || [];
4202
+ continuationToken = result.nextLink;
4203
+ setContinuationToken(page, continuationToken);
4204
+ yield yield tslib.__await(page);
4205
+ }
4206
+ while (continuationToken) {
4207
+ result = yield tslib.__await(this._listNext(fileWorkspaceName, continuationToken, options));
4208
+ continuationToken = result.nextLink;
4209
+ let page = result.value || [];
4210
+ setContinuationToken(page, continuationToken);
4211
+ yield yield tslib.__await(page);
4212
+ }
4213
+ });
4214
+ }
4215
+ listPagingAll(fileWorkspaceName, options) {
4216
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
4217
+ var _a, e_1, _b, _c;
4218
+ try {
4219
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(fileWorkspaceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
4220
+ _c = _f.value;
4221
+ _d = false;
4222
+ try {
4223
+ const page = _c;
4224
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4225
+ }
4226
+ finally {
4227
+ _d = true;
4228
+ }
4229
+ }
4230
+ }
4231
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
4232
+ finally {
4233
+ try {
4234
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
4235
+ }
4236
+ finally { if (e_1) throw e_1.error; }
4237
+ }
4238
+ });
4239
+ }
4240
+ /**
4241
+ * Lists all the Files information under a workspace for an Azure subscription.
4242
+ * @param fileWorkspaceName File Workspace Name
4243
+ * @param options The options parameters.
4244
+ */
4245
+ _list(fileWorkspaceName, options) {
4246
+ return this.client.sendOperationRequest({ fileWorkspaceName, options }, listOperationSpec);
4247
+ }
4248
+ /**
4249
+ * Returns details of a specific file in a work space.
4250
+ * @param fileWorkspaceName File Workspace Name
4251
+ * @param fileName File Name
4252
+ * @param options The options parameters.
4253
+ */
4254
+ get(fileWorkspaceName, fileName, options) {
4255
+ return this.client.sendOperationRequest({ fileWorkspaceName, fileName, options }, getOperationSpec);
4256
+ }
4257
+ /**
4258
+ * Creates a new file under a workspace.
4259
+ * @param fileWorkspaceName File workspace name.
4260
+ * @param fileName File name.
4261
+ * @param createFileParameters Create file object
4262
+ * @param options The options parameters.
4263
+ */
4264
+ create(fileWorkspaceName, fileName, createFileParameters, options) {
4265
+ return this.client.sendOperationRequest({ fileWorkspaceName, fileName, createFileParameters, options }, createOperationSpec);
4266
+ }
4267
+ /**
4268
+ * This API allows you to upload content to a file
4269
+ * @param fileWorkspaceName File WorkspaceName
4270
+ * @param fileName File Name
4271
+ * @param uploadFile UploadFile object
4272
+ * @param options The options parameters.
4273
+ */
4274
+ upload(fileWorkspaceName, fileName, uploadFile, options) {
4275
+ return this.client.sendOperationRequest({ fileWorkspaceName, fileName, uploadFile, options }, uploadOperationSpec);
4276
+ }
4277
+ /**
4278
+ * ListNext
4279
+ * @param fileWorkspaceName File Workspace Name
4280
+ * @param nextLink The nextLink from the previous successful call to the List method.
4281
+ * @param options The options parameters.
4282
+ */
4283
+ _listNext(fileWorkspaceName, nextLink, options) {
4284
+ return this.client.sendOperationRequest({ fileWorkspaceName, nextLink, options }, listNextOperationSpec);
4285
+ }
4286
+ }
4287
+ // Operation Specifications
4288
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4289
+ const listOperationSpec = {
4290
+ path: "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files",
4291
+ httpMethod: "GET",
4292
+ responses: {
4293
+ 200: {
4294
+ bodyMapper: FilesListResult
4295
+ },
4296
+ default: {
4297
+ bodyMapper: ErrorResponse
4298
+ }
4299
+ },
4300
+ queryParameters: [apiVersion],
4301
+ urlParameters: [$host, fileWorkspaceName],
4302
+ headerParameters: [accept],
4303
+ serializer
4304
+ };
4305
+ const getOperationSpec = {
4306
+ path: "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}",
4307
+ httpMethod: "GET",
4308
+ responses: {
4309
+ 200: {
4310
+ bodyMapper: FileDetails
4311
+ },
4312
+ default: {
4313
+ bodyMapper: ErrorResponse
4314
+ }
4315
+ },
4316
+ queryParameters: [apiVersion],
4317
+ urlParameters: [
4318
+ $host,
4319
+ fileWorkspaceName,
4320
+ fileName
4321
+ ],
4322
+ headerParameters: [accept],
4323
+ serializer
4324
+ };
4325
+ const createOperationSpec = {
4326
+ path: "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}",
4327
+ httpMethod: "PUT",
4328
+ responses: {
4329
+ 201: {
4330
+ bodyMapper: FileDetails
4331
+ },
4332
+ default: {
4333
+ bodyMapper: ErrorResponse
4334
+ }
4335
+ },
4336
+ requestBody: createFileParameters,
4337
+ queryParameters: [apiVersion],
4338
+ urlParameters: [
4339
+ $host,
4340
+ fileWorkspaceName1,
4341
+ fileName
4342
+ ],
4343
+ headerParameters: [accept, contentType],
4344
+ mediaType: "json",
4345
+ serializer
4346
+ };
4347
+ const uploadOperationSpec = {
4348
+ path: "/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}/upload",
4349
+ httpMethod: "POST",
4350
+ responses: {
4351
+ 204: {},
4352
+ default: {
4353
+ bodyMapper: ErrorResponse
4354
+ }
4355
+ },
4356
+ requestBody: uploadFile,
4357
+ queryParameters: [apiVersion],
4358
+ urlParameters: [
4359
+ $host,
4360
+ fileWorkspaceName,
4361
+ fileName
4362
+ ],
4363
+ headerParameters: [accept, contentType],
4364
+ mediaType: "json",
4365
+ serializer
4366
+ };
4367
+ const listNextOperationSpec = {
4368
+ path: "{nextLink}",
4369
+ httpMethod: "GET",
4370
+ responses: {
4371
+ 200: {
4372
+ bodyMapper: FilesListResult
4373
+ },
4374
+ default: {
4375
+ bodyMapper: ErrorResponse
4376
+ }
4377
+ },
4378
+ urlParameters: [
4379
+ $host,
4380
+ nextLink,
4381
+ fileWorkspaceName
4382
+ ],
4383
+ headerParameters: [accept],
4384
+ serializer
4385
+ };
4386
+
4387
+ /*
4388
+ * Copyright (c) Microsoft Corporation.
4389
+ * Licensed under the MIT License.
4390
+ *
4391
+ * Code generated by Microsoft (R) AutoRest Code Generator.
4392
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4393
+ */
4394
+ class MicrosoftSupport extends coreClient__namespace.ServiceClient {
4395
+ constructor(credentials, subscriptionIdOrOptions, options) {
4396
+ var _a, _b, _c;
4397
+ if (credentials === undefined) {
4398
+ throw new Error("'credentials' cannot be null");
4399
+ }
4400
+ let subscriptionId;
4401
+ if (typeof subscriptionIdOrOptions === "string") {
4402
+ subscriptionId = subscriptionIdOrOptions;
2262
4403
  }
2263
- if (subscriptionId === undefined) {
2264
- throw new Error("'subscriptionId' cannot be null");
4404
+ else if (typeof subscriptionIdOrOptions === "object") {
4405
+ options = subscriptionIdOrOptions;
2265
4406
  }
2266
4407
  // Initializing default values for options
2267
4408
  if (!options) {
@@ -2271,7 +4412,7 @@ class MicrosoftSupport extends coreClient__namespace.ServiceClient {
2271
4412
  requestContentType: "application/json; charset=utf-8",
2272
4413
  credential: credentials
2273
4414
  };
2274
- const packageDetails = `azsdk-js-arm-support/2.1.1`;
4415
+ const packageDetails = `azsdk-js-arm-support/2.2.0-beta.1`;
2275
4416
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2276
4417
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2277
4418
  : `${packageDetails}`;
@@ -2304,12 +4445,22 @@ class MicrosoftSupport extends coreClient__namespace.ServiceClient {
2304
4445
  this.subscriptionId = subscriptionId;
2305
4446
  // Assigning values to Constant parameters
2306
4447
  this.$host = options.$host || "https://management.azure.com";
2307
- this.apiVersion = options.apiVersion || "2020-04-01";
4448
+ this.apiVersion = options.apiVersion || "2022-09-01-preview";
2308
4449
  this.operations = new OperationsImpl(this);
2309
4450
  this.services = new ServicesImpl(this);
2310
4451
  this.problemClassifications = new ProblemClassificationsImpl(this);
2311
4452
  this.supportTickets = new SupportTicketsImpl(this);
4453
+ this.supportTicketsNoSubscription = new SupportTicketsNoSubscriptionImpl(this);
2312
4454
  this.communications = new CommunicationsImpl(this);
4455
+ this.communicationsNoSubscription = new CommunicationsNoSubscriptionImpl(this);
4456
+ this.supportTicketCommunicationsNoSubscription = new SupportTicketCommunicationsNoSubscriptionImpl(this);
4457
+ this.chatTranscripts = new ChatTranscriptsImpl(this);
4458
+ this.supportTicketChatTranscriptsNoSubscription = new SupportTicketChatTranscriptsNoSubscriptionImpl(this);
4459
+ this.chatTranscriptsNoSubscription = new ChatTranscriptsNoSubscriptionImpl(this);
4460
+ this.fileWorkspaces = new FileWorkspacesImpl(this);
4461
+ this.fileWorkspacesNoSubscription = new FileWorkspacesNoSubscriptionImpl(this);
4462
+ this.files = new FilesImpl(this);
4463
+ this.filesNoSubscription = new FilesNoSubscriptionImpl(this);
2313
4464
  this.addCustomApiVersionPolicy(options.apiVersion);
2314
4465
  }
2315
4466
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */