@azure/arm-support 1.1.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +2154 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.d.ts +2 -0
  9. package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.js +36 -0
  11. package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.js.map +1 -0
  12. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.d.ts +2 -0
  13. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.js +34 -0
  15. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.js.map +1 -0
  16. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.d.ts +2 -0
  17. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.js +33 -0
  19. package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.js.map +1 -0
  20. package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.d.ts +2 -0
  21. package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.js +46 -0
  23. package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.js.map +1 -0
  24. package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.d.ts +2 -0
  25. package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.js +46 -0
  27. package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.js.map +1 -0
  28. package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.d.ts +2 -0
  29. package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.js +49 -0
  31. package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.js.map +1 -0
  32. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.d.ts +2 -0
  33. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.js +56 -0
  35. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.js.map +1 -0
  36. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.d.ts +2 -0
  37. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.js +60 -0
  39. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.js.map +1 -0
  40. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.d.ts +2 -0
  41. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.js +53 -0
  43. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.js.map +1 -0
  44. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.d.ts +2 -0
  45. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.js +52 -0
  47. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.js.map +1 -0
  48. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.d.ts +2 -0
  49. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.js +56 -0
  51. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.js.map +1 -0
  52. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.d.ts +2 -0
  53. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.js +56 -0
  55. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.js.map +1 -0
  56. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.d.ts +2 -0
  57. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.js +56 -0
  59. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.js.map +1 -0
  60. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.d.ts +2 -0
  61. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.js +53 -0
  63. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.js.map +1 -0
  64. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.d.ts +2 -0
  65. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.js +56 -0
  67. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.js.map +1 -0
  68. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.d.ts +2 -0
  69. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.js +51 -0
  71. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.js.map +1 -0
  72. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.d.ts +2 -0
  73. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.js +51 -0
  75. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.js.map +1 -0
  76. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.d.ts +2 -0
  77. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.js +46 -0
  79. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.js.map +1 -0
  80. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.d.ts +2 -0
  81. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.js +56 -0
  83. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.js.map +1 -0
  84. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.d.ts +2 -0
  85. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.js +56 -0
  87. package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.js.map +1 -0
  88. package/dist-esm/samples-dev/getAllOperations.d.ts +2 -0
  89. package/dist-esm/samples-dev/getAllOperations.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/getAllOperations.js +43 -0
  91. package/dist-esm/samples-dev/getAllOperations.js.map +1 -0
  92. package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.d.ts +2 -0
  93. package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.js +31 -0
  95. package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.js.map +1 -0
  96. package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.d.ts +2 -0
  97. package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.js +30 -0
  99. package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.js.map +1 -0
  100. package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.d.ts +2 -0
  101. package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.js +31 -0
  103. package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.js.map +1 -0
  104. package/dist-esm/samples-dev/getsDetailsOfTheAzureService.d.ts +2 -0
  105. package/dist-esm/samples-dev/getsDetailsOfTheAzureService.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/getsDetailsOfTheAzureService.js +30 -0
  107. package/dist-esm/samples-dev/getsDetailsOfTheAzureService.js.map +1 -0
  108. package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.d.ts +2 -0
  109. package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.js +44 -0
  111. package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.js.map +1 -0
  112. package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.d.ts +2 -0
  113. package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.js +43 -0
  115. package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.js.map +1 -0
  116. package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.d.ts +2 -0
  117. package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.js +44 -0
  119. package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.js.map +1 -0
  120. package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.d.ts +2 -0
  121. package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.d.ts.map +1 -0
  122. package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.js +45 -0
  123. package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.js.map +1 -0
  124. package/dist-esm/samples-dev/listSupportTicketsForASubscription.d.ts +2 -0
  125. package/dist-esm/samples-dev/listSupportTicketsForASubscription.d.ts.map +1 -0
  126. package/dist-esm/samples-dev/listSupportTicketsForASubscription.js +43 -0
  127. package/dist-esm/samples-dev/listSupportTicketsForASubscription.js.map +1 -0
  128. package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.d.ts +2 -0
  129. package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.d.ts.map +1 -0
  130. package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.js +45 -0
  131. package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.js.map +1 -0
  132. package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.d.ts +2 -0
  133. package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.d.ts.map +1 -0
  134. package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.js +46 -0
  135. package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.js.map +1 -0
  136. package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.d.ts +2 -0
  137. package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.d.ts.map +1 -0
  138. package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.js +46 -0
  139. package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.js.map +1 -0
  140. package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.d.ts +2 -0
  141. package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.d.ts.map +1 -0
  142. package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.js +43 -0
  143. package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.js.map +1 -0
  144. package/dist-esm/samples-dev/updateSeverityOfASupportTicket.d.ts +2 -0
  145. package/dist-esm/samples-dev/updateSeverityOfASupportTicket.d.ts.map +1 -0
  146. package/dist-esm/samples-dev/updateSeverityOfASupportTicket.js +31 -0
  147. package/dist-esm/samples-dev/updateSeverityOfASupportTicket.js.map +1 -0
  148. package/dist-esm/samples-dev/updateStatusOfASupportTicket.d.ts +2 -0
  149. package/dist-esm/samples-dev/updateStatusOfASupportTicket.d.ts.map +1 -0
  150. package/dist-esm/samples-dev/updateStatusOfASupportTicket.js +31 -0
  151. package/dist-esm/samples-dev/updateStatusOfASupportTicket.js.map +1 -0
  152. package/dist-esm/src/index.d.ts +5 -0
  153. package/dist-esm/src/index.d.ts.map +1 -0
  154. package/dist-esm/src/index.js +12 -0
  155. package/dist-esm/src/index.js.map +1 -0
  156. package/dist-esm/src/lroImpl.d.ts +16 -0
  157. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  158. package/dist-esm/src/lroImpl.js +29 -0
  159. package/dist-esm/src/lroImpl.js.map +1 -0
  160. package/dist-esm/src/microsoftSupport.d.ts +22 -0
  161. package/dist-esm/src/microsoftSupport.d.ts.map +1 -0
  162. package/dist-esm/src/microsoftSupport.js +55 -0
  163. package/dist-esm/src/microsoftSupport.js.map +1 -0
  164. package/dist-esm/src/models/index.d.ts +570 -0
  165. package/dist-esm/src/models/index.d.ts.map +1 -0
  166. package/dist-esm/src/models/index.js +40 -0
  167. package/dist-esm/src/models/index.js.map +1 -0
  168. package/dist-esm/src/models/mappers.d.ts +26 -0
  169. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  170. package/{esm → dist-esm/src}/models/mappers.js +395 -430
  171. package/dist-esm/src/models/mappers.js.map +1 -0
  172. package/dist-esm/src/models/parameters.d.ts +18 -0
  173. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  174. package/dist-esm/src/models/parameters.js +148 -0
  175. package/dist-esm/src/models/parameters.js.map +1 -0
  176. package/dist-esm/src/operations/communications.d.ts +77 -0
  177. package/dist-esm/src/operations/communications.d.ts.map +1 -0
  178. package/dist-esm/src/operations/communications.js +295 -0
  179. package/dist-esm/src/operations/communications.js.map +1 -0
  180. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  181. package/dist-esm/src/operations/index.d.ts.map +1 -0
  182. package/{esm → dist-esm/src}/operations/index.js +3 -5
  183. package/dist-esm/src/operations/index.js.map +1 -0
  184. package/dist-esm/src/operations/operations.d.ts +26 -0
  185. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  186. package/dist-esm/src/operations/operations.js +90 -0
  187. package/dist-esm/src/operations/operations.js.map +1 -0
  188. package/dist-esm/src/operations/problemClassifications.d.ts +41 -0
  189. package/dist-esm/src/operations/problemClassifications.d.ts.map +1 -0
  190. package/dist-esm/src/operations/problemClassifications.js +127 -0
  191. package/dist-esm/src/operations/problemClassifications.js.map +1 -0
  192. package/dist-esm/src/operations/services.d.ts +44 -0
  193. package/dist-esm/src/operations/services.d.ts.map +1 -0
  194. package/dist-esm/src/operations/services.js +126 -0
  195. package/dist-esm/src/operations/services.js.map +1 -0
  196. package/dist-esm/src/operations/supportTickets.d.ts +115 -0
  197. package/dist-esm/src/operations/supportTickets.d.ts.map +1 -0
  198. package/dist-esm/src/operations/supportTickets.js +341 -0
  199. package/dist-esm/src/operations/supportTickets.js.map +1 -0
  200. package/dist-esm/src/operationsInterfaces/communications.d.ts +49 -0
  201. package/dist-esm/src/operationsInterfaces/communications.d.ts.map +1 -0
  202. package/dist-esm/src/operationsInterfaces/communications.js +9 -0
  203. package/dist-esm/src/operationsInterfaces/communications.js.map +1 -0
  204. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  205. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  206. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  207. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  208. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  209. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  210. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  211. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  212. package/dist-esm/src/operationsInterfaces/problemClassifications.d.ts +22 -0
  213. package/dist-esm/src/operationsInterfaces/problemClassifications.d.ts.map +1 -0
  214. package/dist-esm/src/operationsInterfaces/problemClassifications.js +9 -0
  215. package/dist-esm/src/operationsInterfaces/problemClassifications.js.map +1 -0
  216. package/dist-esm/src/operationsInterfaces/services.d.ts +23 -0
  217. package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
  218. package/dist-esm/src/operationsInterfaces/services.js +9 -0
  219. package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
  220. package/dist-esm/src/operationsInterfaces/supportTickets.d.ts +90 -0
  221. package/dist-esm/src/operationsInterfaces/supportTickets.d.ts.map +1 -0
  222. package/dist-esm/src/operationsInterfaces/supportTickets.js +9 -0
  223. package/dist-esm/src/operationsInterfaces/supportTickets.js.map +1 -0
  224. package/dist-esm/test/sampleTest.d.ts +2 -0
  225. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  226. package/dist-esm/test/sampleTest.js +40 -0
  227. package/dist-esm/test/sampleTest.js.map +1 -0
  228. package/package.json +77 -33
  229. package/review/arm-support.api.md +459 -0
  230. package/rollup.config.js +181 -30
  231. package/src/index.ts +12 -0
  232. package/src/lroImpl.ts +34 -0
  233. package/src/microsoftSupport.ts +82 -43
  234. package/src/models/index.ts +430 -827
  235. package/src/models/mappers.ts +400 -436
  236. package/src/models/parameters.ts +105 -48
  237. package/src/operations/communications.ts +275 -216
  238. package/src/operations/index.ts +3 -5
  239. package/src/operations/operations.ts +66 -42
  240. package/src/operations/problemClassifications.ts +101 -89
  241. package/src/operations/services.ts +94 -82
  242. package/src/operations/supportTickets.ts +301 -285
  243. package/src/operationsInterfaces/communications.ts +94 -0
  244. package/src/operationsInterfaces/index.ts +13 -0
  245. package/src/operationsInterfaces/operations.ts +22 -0
  246. package/src/operationsInterfaces/problemClassifications.ts +43 -0
  247. package/src/operationsInterfaces/services.ts +42 -0
  248. package/src/operationsInterfaces/supportTickets.ts +137 -0
  249. package/tsconfig.json +5 -4
  250. package/types/arm-support.d.ts +844 -0
  251. package/types/tsdoc-metadata.json +11 -0
  252. package/dist/arm-support.js +0 -2026
  253. package/dist/arm-support.js.map +0 -1
  254. package/dist/arm-support.min.js +0 -1
  255. package/dist/arm-support.min.js.map +0 -1
  256. package/esm/microsoftSupport.d.ts +0 -28
  257. package/esm/microsoftSupport.d.ts.map +0 -1
  258. package/esm/microsoftSupport.js +0 -42
  259. package/esm/microsoftSupport.js.map +0 -1
  260. package/esm/microsoftSupportContext.d.ts +0 -22
  261. package/esm/microsoftSupportContext.d.ts.map +0 -1
  262. package/esm/microsoftSupportContext.js +0 -61
  263. package/esm/microsoftSupportContext.js.map +0 -1
  264. package/esm/models/communicationsMappers.d.ts +0 -2
  265. package/esm/models/communicationsMappers.d.ts.map +0 -1
  266. package/esm/models/communicationsMappers.js +0 -9
  267. package/esm/models/communicationsMappers.js.map +0 -1
  268. package/esm/models/index.d.ts +0 -973
  269. package/esm/models/index.d.ts.map +0 -1
  270. package/esm/models/index.js +0 -8
  271. package/esm/models/index.js.map +0 -1
  272. package/esm/models/mappers.d.ts +0 -28
  273. package/esm/models/mappers.d.ts.map +0 -1
  274. package/esm/models/mappers.js.map +0 -1
  275. package/esm/models/operationsMappers.d.ts +0 -2
  276. package/esm/models/operationsMappers.d.ts.map +0 -1
  277. package/esm/models/operationsMappers.js +0 -9
  278. package/esm/models/operationsMappers.js.map +0 -1
  279. package/esm/models/parameters.d.ts +0 -12
  280. package/esm/models/parameters.d.ts.map +0 -1
  281. package/esm/models/parameters.js +0 -115
  282. package/esm/models/parameters.js.map +0 -1
  283. package/esm/models/problemClassificationsMappers.d.ts +0 -2
  284. package/esm/models/problemClassificationsMappers.d.ts.map +0 -1
  285. package/esm/models/problemClassificationsMappers.js +0 -9
  286. package/esm/models/problemClassificationsMappers.js.map +0 -1
  287. package/esm/models/servicesMappers.d.ts +0 -2
  288. package/esm/models/servicesMappers.d.ts.map +0 -1
  289. package/esm/models/servicesMappers.js +0 -9
  290. package/esm/models/servicesMappers.js.map +0 -1
  291. package/esm/models/supportTicketsMappers.d.ts +0 -2
  292. package/esm/models/supportTicketsMappers.d.ts.map +0 -1
  293. package/esm/models/supportTicketsMappers.js +0 -9
  294. package/esm/models/supportTicketsMappers.js.map +0 -1
  295. package/esm/operations/communications.d.ts +0 -121
  296. package/esm/operations/communications.d.ts.map +0 -1
  297. package/esm/operations/communications.js +0 -207
  298. package/esm/operations/communications.js.map +0 -1
  299. package/esm/operations/index.d.ts.map +0 -1
  300. package/esm/operations/index.js.map +0 -1
  301. package/esm/operations/operations.d.ts +0 -28
  302. package/esm/operations/operations.d.ts.map +0 -1
  303. package/esm/operations/operations.js +0 -51
  304. package/esm/operations/operations.js.map +0 -1
  305. package/esm/operations/problemClassifications.d.ts +0 -57
  306. package/esm/operations/problemClassifications.d.ts.map +0 -1
  307. package/esm/operations/problemClassifications.js +0 -85
  308. package/esm/operations/problemClassifications.js.map +0 -1
  309. package/esm/operations/services.d.ts +0 -52
  310. package/esm/operations/services.d.ts.map +0 -1
  311. package/esm/operations/services.js +0 -79
  312. package/esm/operations/services.js.map +0 -1
  313. package/esm/operations/supportTickets.d.ts +0 -171
  314. package/esm/operations/supportTickets.d.ts.map +0 -1
  315. package/esm/operations/supportTickets.js +0 -265
  316. package/esm/operations/supportTickets.js.map +0 -1
  317. package/src/microsoftSupportContext.ts +0 -68
  318. package/src/models/communicationsMappers.ts +0 -25
  319. package/src/models/operationsMappers.ts +0 -16
  320. package/src/models/problemClassificationsMappers.ts +0 -15
  321. package/src/models/servicesMappers.ts +0 -15
  322. package/src/models/supportTicketsMappers.ts +0 -27
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription.
13
+ *
14
+ * @summary Check the availability of a resource name. This API should be used to check the uniqueness of the name for support ticket creation for the selected subscription.
15
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/CheckNameAvailabilityWithSubscription.json
16
+ */
17
+ import { MicrosoftSupport } from "@azure/arm-support";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function checksWhetherNameIsAvailableForSupportTicketResource() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const checkNameAvailabilityInput = {
23
+ name: "sampleName",
24
+ type: "Microsoft.Support/supportTickets"
25
+ };
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new MicrosoftSupport(credential, subscriptionId);
28
+ const result = yield client.supportTickets.checkNameAvailability(checkNameAvailabilityInput);
29
+ console.log(result);
30
+ });
31
+ }
32
+ checksWhetherNameIsAvailableForSupportTicketResource().catch(console.error);
33
+ //# sourceMappingURL=checksWhetherNameIsAvailableForSupportTicketResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checksWhetherNameIsAvailableForSupportTicketResource.js","sourceRoot":"","sources":["../../samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,oDAAoD;;QACjE,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,0BAA0B,GAA+B;YAC7D,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,kCAAkC;SACzC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,qBAAqB,CAC9D,0BAA0B,CAC3B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oDAAoD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=createATicketForBillingRelatedIssues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketForBillingRelatedIssues.d.ts","sourceRoot":"","sources":["../../samples-dev/createATicketForBillingRelatedIssues.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
13
+ *
14
+ * @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
15
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/CreateBillingSupportTicketForSubscription.json
16
+ */
17
+ import { MicrosoftSupport } from "@azure/arm-support";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function createATicketForBillingRelatedIssues() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const supportTicketName = "testticket";
23
+ const createSupportTicketParameters = {
24
+ description: "my description",
25
+ contactDetails: {
26
+ country: "usa",
27
+ firstName: "abc",
28
+ lastName: "xyz",
29
+ preferredContactMethod: "email",
30
+ preferredSupportLanguage: "en-US",
31
+ preferredTimeZone: "Pacific Standard Time",
32
+ primaryEmailAddress: "abc@contoso.com"
33
+ },
34
+ problemClassificationId: "/providers/Microsoft.Support/services/billing_service_guid/problemClassifications/billing_problemClassification_guid",
35
+ serviceId: "/providers/Microsoft.Support/services/billing_service_guid",
36
+ severity: "moderate",
37
+ title: "my title"
38
+ };
39
+ const credential = new DefaultAzureCredential();
40
+ const client = new MicrosoftSupport(credential, subscriptionId);
41
+ const result = yield client.supportTickets.beginCreateAndWait(supportTicketName, createSupportTicketParameters);
42
+ console.log(result);
43
+ });
44
+ }
45
+ createATicketForBillingRelatedIssues().catch(console.error);
46
+ //# sourceMappingURL=createATicketForBillingRelatedIssues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketForBillingRelatedIssues.js","sourceRoot":"","sources":["../../samples-dev/createATicketForBillingRelatedIssues.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAwB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,oCAAoC;;QACjD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,6BAA6B,GAAyB;YAC1D,WAAW,EAAE,gBAAgB;YAC7B,cAAc,EAAE;gBACd,OAAO,EAAE,KAAK;gBACd,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,KAAK;gBACf,sBAAsB,EAAE,OAAO;gBAC/B,wBAAwB,EAAE,OAAO;gBACjC,iBAAiB,EAAE,uBAAuB;gBAC1C,mBAAmB,EAAE,iBAAiB;aACvC;YACD,uBAAuB,EACrB,sHAAsH;YACxH,SAAS,EAAE,4DAA4D;YACvE,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,UAAU;SAClB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAC3D,iBAAiB,EACjB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oCAAoC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=createATicketForSubscriptionManagementRelatedIssues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketForSubscriptionManagementRelatedIssues.d.ts","sourceRoot":"","sources":["../../samples-dev/createATicketForSubscriptionManagementRelatedIssues.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
13
+ *
14
+ * @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
15
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/CreateSubMgmtSupportTicketForSubscription.json
16
+ */
17
+ import { MicrosoftSupport } from "@azure/arm-support";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function createATicketForSubscriptionManagementRelatedIssues() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const supportTicketName = "testticket";
23
+ const createSupportTicketParameters = {
24
+ description: "my description",
25
+ contactDetails: {
26
+ country: "usa",
27
+ firstName: "abc",
28
+ lastName: "xyz",
29
+ preferredContactMethod: "email",
30
+ preferredSupportLanguage: "en-US",
31
+ preferredTimeZone: "Pacific Standard Time",
32
+ primaryEmailAddress: "abc@contoso.com"
33
+ },
34
+ problemClassificationId: "/providers/Microsoft.Support/services/subscription_management_service_guid/problemClassifications/subscription_management_problemClassification_guid",
35
+ serviceId: "/providers/Microsoft.Support/services/subscription_management_service_guid",
36
+ severity: "moderate",
37
+ title: "my title"
38
+ };
39
+ const credential = new DefaultAzureCredential();
40
+ const client = new MicrosoftSupport(credential, subscriptionId);
41
+ const result = yield client.supportTickets.beginCreateAndWait(supportTicketName, createSupportTicketParameters);
42
+ console.log(result);
43
+ });
44
+ }
45
+ createATicketForSubscriptionManagementRelatedIssues().catch(console.error);
46
+ //# sourceMappingURL=createATicketForSubscriptionManagementRelatedIssues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketForSubscriptionManagementRelatedIssues.js","sourceRoot":"","sources":["../../samples-dev/createATicketForSubscriptionManagementRelatedIssues.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAwB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,mDAAmD;;QAChE,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,6BAA6B,GAAyB;YAC1D,WAAW,EAAE,gBAAgB;YAC7B,cAAc,EAAE;gBACd,OAAO,EAAE,KAAK;gBACd,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,KAAK;gBACf,sBAAsB,EAAE,OAAO;gBAC/B,wBAAwB,EAAE,OAAO;gBACjC,iBAAiB,EAAE,uBAAuB;gBAC1C,mBAAmB,EAAE,iBAAiB;aACvC;YACD,uBAAuB,EACrB,sJAAsJ;YACxJ,SAAS,EACP,4EAA4E;YAC9E,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,UAAU;SAClB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAC3D,iBAAiB,EACjB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mDAAmD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=createATicketForTechnicalIssueRelatedToASpecificResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketForTechnicalIssueRelatedToASpecificResource.d.ts","sourceRoot":"","sources":["../../samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.ts"],"names":[],"mappings":""}
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
13
+ *
14
+ * @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
15
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/CreateTechnicalSupportTicketForSubscription.json
16
+ */
17
+ import { MicrosoftSupport } from "@azure/arm-support";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function createATicketForTechnicalIssueRelatedToASpecificResource() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const supportTicketName = "testticket";
23
+ const createSupportTicketParameters = {
24
+ description: "my description",
25
+ contactDetails: {
26
+ country: "usa",
27
+ firstName: "abc",
28
+ lastName: "xyz",
29
+ preferredContactMethod: "email",
30
+ preferredSupportLanguage: "en-US",
31
+ preferredTimeZone: "Pacific Standard Time",
32
+ primaryEmailAddress: "abc@contoso.com"
33
+ },
34
+ problemClassificationId: "/providers/Microsoft.Support/services/virtual_machine_running_linux_service_guid/problemClassifications/problemClassification_guid",
35
+ serviceId: "/providers/Microsoft.Support/services/cddd3eb5-1830-b494-44fd-782f691479dc",
36
+ severity: "moderate",
37
+ technicalTicketDetails: {
38
+ resourceId: "/subscriptions/subid/resourceGroups/test/providers/Microsoft.Compute/virtualMachines/testserver"
39
+ },
40
+ title: "my title"
41
+ };
42
+ const credential = new DefaultAzureCredential();
43
+ const client = new MicrosoftSupport(credential, subscriptionId);
44
+ const result = yield client.supportTickets.beginCreateAndWait(supportTicketName, createSupportTicketParameters);
45
+ console.log(result);
46
+ });
47
+ }
48
+ createATicketForTechnicalIssueRelatedToASpecificResource().catch(console.error);
49
+ //# sourceMappingURL=createATicketForTechnicalIssueRelatedToASpecificResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketForTechnicalIssueRelatedToASpecificResource.js","sourceRoot":"","sources":["../../samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAwB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,wDAAwD;;QACrE,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,6BAA6B,GAAyB;YAC1D,WAAW,EAAE,gBAAgB;YAC7B,cAAc,EAAE;gBACd,OAAO,EAAE,KAAK;gBACd,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,KAAK;gBACf,sBAAsB,EAAE,OAAO;gBAC/B,wBAAwB,EAAE,OAAO;gBACjC,iBAAiB,EAAE,uBAAuB;gBAC1C,mBAAmB,EAAE,iBAAiB;aACvC;YACD,uBAAuB,EACrB,oIAAoI;YACtI,SAAS,EACP,4EAA4E;YAC9E,QAAQ,EAAE,UAAU;YACpB,sBAAsB,EAAE;gBACtB,UAAU,EACR,iGAAiG;aACpG;YACD,KAAK,EAAE,UAAU;SAClB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAC3D,iBAAiB,EACjB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wDAAwD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.d.ts","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.ts"],"names":[],"mappings":""}
@@ -0,0 +1,56 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
13
+ *
14
+ * @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
15
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForActiveJobs.json
16
+ */
17
+ import { MicrosoftSupport } from "@azure/arm-support";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const supportTicketName = "testticket";
23
+ const createSupportTicketParameters = {
24
+ description: "my description",
25
+ contactDetails: {
26
+ country: "usa",
27
+ firstName: "abc",
28
+ lastName: "xyz",
29
+ preferredContactMethod: "email",
30
+ preferredSupportLanguage: "en-US",
31
+ preferredTimeZone: "Pacific Standard Time",
32
+ primaryEmailAddress: "abc@contoso.com"
33
+ },
34
+ problemClassificationId: "/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/batch_problemClassification_guid",
35
+ quotaTicketDetails: {
36
+ quotaChangeRequestSubType: "Account",
37
+ quotaChangeRequestVersion: "1.0",
38
+ quotaChangeRequests: [
39
+ {
40
+ payload: '{"AccountName":"test","NewLimit":200,"Type":"Jobs"}',
41
+ region: "EastUS"
42
+ }
43
+ ]
44
+ },
45
+ serviceId: "/providers/Microsoft.Support/services/quota_service_guid",
46
+ severity: "moderate",
47
+ title: "my title"
48
+ };
49
+ const credential = new DefaultAzureCredential();
50
+ const client = new MicrosoftSupport(credential, subscriptionId);
51
+ const result = yield client.supportTickets.beginCreateAndWait(supportTicketName, createSupportTicketParameters);
52
+ console.log(result);
53
+ });
54
+ }
55
+ createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount().catch(console.error);
56
+ //# sourceMappingURL=createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.js","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAwB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,+EAA+E;;QAC5F,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,6BAA6B,GAAyB;YAC1D,WAAW,EAAE,gBAAgB;YAC7B,cAAc,EAAE;gBACd,OAAO,EAAE,KAAK;gBACd,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,KAAK;gBACf,sBAAsB,EAAE,OAAO;gBAC/B,wBAAwB,EAAE,OAAO;gBACjC,iBAAiB,EAAE,uBAAuB;gBAC1C,mBAAmB,EAAE,iBAAiB;aACvC;YACD,uBAAuB,EACrB,kHAAkH;YACpH,kBAAkB,EAAE;gBAClB,yBAAyB,EAAE,SAAS;gBACpC,yBAAyB,EAAE,KAAK;gBAChC,mBAAmB,EAAE;oBACnB;wBACE,OAAO,EAAE,qDAAqD;wBAC9D,MAAM,EAAE,QAAQ;qBACjB;iBACF;aACF;YACD,SAAS,EAAE,0DAA0D;YACrE,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,UAAU;SAClB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAC3D,iBAAiB,EACjB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,+EAA+E,EAAE,CAAC,KAAK,CACrF,OAAO,CAAC,KAAK,CACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.d.ts","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.ts"],"names":[],"mappings":""}
@@ -0,0 +1,60 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
13
+ *
14
+ * @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
15
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/CreateSqlManagedInstanceQuotaTicket.json
16
+ */
17
+ import { MicrosoftSupport } from "@azure/arm-support";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const supportTicketName = "testticket";
23
+ const createSupportTicketParameters = {
24
+ description: "my description",
25
+ contactDetails: {
26
+ country: "usa",
27
+ firstName: "abc",
28
+ lastName: "xyz",
29
+ preferredContactMethod: "email",
30
+ preferredSupportLanguage: "en-US",
31
+ preferredTimeZone: "Pacific Standard Time",
32
+ primaryEmailAddress: "abc@contoso.com"
33
+ },
34
+ problemClassificationId: "/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/sql_managedinstance_problemClassification_guid",
35
+ quotaTicketDetails: {
36
+ quotaChangeRequestSubType: "SQLMI",
37
+ quotaChangeRequestVersion: "1.0",
38
+ quotaChangeRequests: [
39
+ {
40
+ payload: '{"NewLimit":200, "Metadata":null, "Type":"vCore"}',
41
+ region: "EastUS"
42
+ },
43
+ {
44
+ payload: '{"NewLimit":200, "Metadata":null, "Type":"Subnet"}',
45
+ region: "EastUS"
46
+ }
47
+ ]
48
+ },
49
+ serviceId: "/providers/Microsoft.Support/services/quota_service_guid",
50
+ severity: "moderate",
51
+ title: "my title"
52
+ };
53
+ const credential = new DefaultAzureCredential();
54
+ const client = new MicrosoftSupport(credential, subscriptionId);
55
+ const result = yield client.supportTickets.beginCreateAndWait(supportTicketName, createSupportTicketParameters);
56
+ console.log(result);
57
+ });
58
+ }
59
+ createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance().catch(console.error);
60
+ //# sourceMappingURL=createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.js","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAwB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,6DAA6D;;QAC1E,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,6BAA6B,GAAyB;YAC1D,WAAW,EAAE,gBAAgB;YAC7B,cAAc,EAAE;gBACd,OAAO,EAAE,KAAK;gBACd,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,KAAK;gBACf,sBAAsB,EAAE,OAAO;gBAC/B,wBAAwB,EAAE,OAAO;gBACjC,iBAAiB,EAAE,uBAAuB;gBAC1C,mBAAmB,EAAE,iBAAiB;aACvC;YACD,uBAAuB,EACrB,gIAAgI;YAClI,kBAAkB,EAAE;gBAClB,yBAAyB,EAAE,OAAO;gBAClC,yBAAyB,EAAE,KAAK;gBAChC,mBAAmB,EAAE;oBACnB;wBACE,OAAO,EAAE,mDAAmD;wBAC5D,MAAM,EAAE,QAAQ;qBACjB;oBACD;wBACE,OAAO,EAAE,oDAAoD;wBAC7D,MAAM,EAAE,QAAQ;qBACjB;iBACF;aACF;YACD,SAAS,EAAE,0DAA0D;YACrE,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,UAAU;SAClB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAC3D,iBAAiB,EACjB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6DAA6D,EAAE,CAAC,KAAK,CACnE,OAAO,CAAC,KAAK,CACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.d.ts","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.ts"],"names":[],"mappings":""}
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
13
+ *
14
+ * @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
15
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/CreateBatchQuotaTicketForSubscription.json
16
+ */
17
+ import { MicrosoftSupport } from "@azure/arm-support";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const supportTicketName = "testticket";
23
+ const createSupportTicketParameters = {
24
+ description: "my description",
25
+ contactDetails: {
26
+ country: "usa",
27
+ firstName: "abc",
28
+ lastName: "xyz",
29
+ preferredContactMethod: "email",
30
+ preferredSupportLanguage: "en-US",
31
+ preferredTimeZone: "Pacific Standard Time",
32
+ primaryEmailAddress: "abc@contoso.com"
33
+ },
34
+ problemClassificationId: "/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/batch_problemClassification_guid",
35
+ quotaTicketDetails: {
36
+ quotaChangeRequestSubType: "Subscription",
37
+ quotaChangeRequestVersion: "1.0",
38
+ quotaChangeRequests: [
39
+ { payload: '{"NewLimit":200,"Type":"Account"}', region: "EastUS" }
40
+ ]
41
+ },
42
+ serviceId: "/providers/Microsoft.Support/services/quota_service_guid",
43
+ severity: "moderate",
44
+ title: "my title"
45
+ };
46
+ const credential = new DefaultAzureCredential();
47
+ const client = new MicrosoftSupport(credential, subscriptionId);
48
+ const result = yield client.supportTickets.beginCreateAndWait(supportTicketName, createSupportTicketParameters);
49
+ console.log(result);
50
+ });
51
+ }
52
+ createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription().catch(console.error);
53
+ //# sourceMappingURL=createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.js","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAwB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,mEAAmE;;QAChF,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,6BAA6B,GAAyB;YAC1D,WAAW,EAAE,gBAAgB;YAC7B,cAAc,EAAE;gBACd,OAAO,EAAE,KAAK;gBACd,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,KAAK;gBACf,sBAAsB,EAAE,OAAO;gBAC/B,wBAAwB,EAAE,OAAO;gBACjC,iBAAiB,EAAE,uBAAuB;gBAC1C,mBAAmB,EAAE,iBAAiB;aACvC;YACD,uBAAuB,EACrB,kHAAkH;YACpH,kBAAkB,EAAE;gBAClB,yBAAyB,EAAE,cAAc;gBACzC,yBAAyB,EAAE,KAAK;gBAChC,mBAAmB,EAAE;oBACnB,EAAE,OAAO,EAAE,mCAAmC,EAAE,MAAM,EAAE,QAAQ,EAAE;iBACnE;aACF;YACD,SAAS,EAAE,0DAA0D;YACrE,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,UAAU;SAClB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAC3D,iBAAiB,EACjB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mEAAmE,EAAE,CAAC,KAAK,CACzE,OAAO,CAAC,KAAK,CACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=createATicketToRequestQuotaIncreaseForComputeVMCores.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketToRequestQuotaIncreaseForComputeVMCores.d.ts","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.ts"],"names":[],"mappings":""}
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
13
+ *
14
+ * @summary Creates a new support ticket for Subscription and Service limits (Quota), Technical, Billing, and Subscription Management issues for the specified subscription. Learn the [prerequisites](https://aka.ms/supportAPI) required to create a support ticket.<br/><br/>Always call the Services and ProblemClassifications API to get the most recent set of services and problem categories required for support ticket creation.<br/><br/>Adding attachments is not currently supported via the API. To add a file to an existing support ticket, visit the [Manage support ticket](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/managesupportrequest) page in the Azure portal, select the support ticket, and use the file upload control to add a new file.<br/><br/>Providing consent to share diagnostic information with Azure support is currently not supported via the API. The Azure support engineer working on your ticket will reach out to you for consent if your issue requires gathering diagnostic information from your Azure resources.<br/><br/>**Creating a support ticket for on-behalf-of**: Include _x-ms-authorization-auxiliary_ header to provide an auxiliary token as per [documentation](https://docs.microsoft.com/azure/azure-resource-manager/management/authenticate-multi-tenant). The primary token will be from the tenant for whom a support ticket is being raised against the subscription, i.e. Cloud solution provider (CSP) customer tenant. The auxiliary token will be from the Cloud solution provider (CSP) partner tenant.
15
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/CreateCoresQuotaTicketForSubscription.json
16
+ */
17
+ import { MicrosoftSupport } from "@azure/arm-support";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function createATicketToRequestQuotaIncreaseForComputeVMCores() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const supportTicketName = "testticket";
23
+ const createSupportTicketParameters = {
24
+ description: "my description",
25
+ contactDetails: {
26
+ country: "usa",
27
+ firstName: "abc",
28
+ lastName: "xyz",
29
+ preferredContactMethod: "email",
30
+ preferredSupportLanguage: "en-US",
31
+ preferredTimeZone: "Pacific Standard Time",
32
+ primaryEmailAddress: "abc@contoso.com"
33
+ },
34
+ problemClassificationId: "/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/cores_problemClassification_guid",
35
+ quotaTicketDetails: {
36
+ quotaChangeRequestVersion: "1.0",
37
+ quotaChangeRequests: [
38
+ { payload: '{"SKU":"DSv3 Series","NewLimit":104}', region: "EastUS" }
39
+ ]
40
+ },
41
+ serviceId: "/providers/Microsoft.Support/services/quota_service_guid",
42
+ severity: "moderate",
43
+ title: "my title"
44
+ };
45
+ const credential = new DefaultAzureCredential();
46
+ const client = new MicrosoftSupport(credential, subscriptionId);
47
+ const result = yield client.supportTickets.beginCreateAndWait(supportTicketName, createSupportTicketParameters);
48
+ console.log(result);
49
+ });
50
+ }
51
+ createATicketToRequestQuotaIncreaseForComputeVMCores().catch(console.error);
52
+ //# sourceMappingURL=createATicketToRequestQuotaIncreaseForComputeVMCores.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketToRequestQuotaIncreaseForComputeVMCores.js","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAwB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,oDAAoD;;QACjE,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,6BAA6B,GAAyB;YAC1D,WAAW,EAAE,gBAAgB;YAC7B,cAAc,EAAE;gBACd,OAAO,EAAE,KAAK;gBACd,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,KAAK;gBACf,sBAAsB,EAAE,OAAO;gBAC/B,wBAAwB,EAAE,OAAO;gBACjC,iBAAiB,EAAE,uBAAuB;gBAC1C,mBAAmB,EAAE,iBAAiB;aACvC;YACD,uBAAuB,EACrB,kHAAkH;YACpH,kBAAkB,EAAE;gBAClB,yBAAyB,EAAE,KAAK;gBAChC,mBAAmB,EAAE;oBACnB,EAAE,OAAO,EAAE,sCAAsC,EAAE,MAAM,EAAE,QAAQ,EAAE;iBACtE;aACF;YACD,SAAS,EAAE,0DAA0D;YACrE,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,UAAU;SAClB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAC3D,iBAAiB,EACjB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oDAAoD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.d.ts","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.ts"],"names":[],"mappings":""}