@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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +2154 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.d.ts +2 -0
- package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.d.ts.map +1 -0
- package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.js +36 -0
- package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.js.map +1 -0
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.d.ts +2 -0
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.js +34 -0
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.js.map +1 -0
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.d.ts +2 -0
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.js +33 -0
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.js.map +1 -0
- package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.js +46 -0
- package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.js.map +1 -0
- package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.js +46 -0
- package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.js.map +1 -0
- package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.js +49 -0
- package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.js +56 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.js +60 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.js +53 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.js +52 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.js +56 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.js +56 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.js +56 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.js +53 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.js +56 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.js +51 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.js +51 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.js +46 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.js +56 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.js.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.d.ts +2 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.d.ts.map +1 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.js +56 -0
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.js.map +1 -0
- package/dist-esm/samples-dev/getAllOperations.d.ts +2 -0
- package/dist-esm/samples-dev/getAllOperations.d.ts.map +1 -0
- package/dist-esm/samples-dev/getAllOperations.js +43 -0
- package/dist-esm/samples-dev/getAllOperations.js.map +1 -0
- package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.d.ts +2 -0
- package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.d.ts.map +1 -0
- package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.js +31 -0
- package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.js.map +1 -0
- package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.d.ts +2 -0
- package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.d.ts.map +1 -0
- package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.js +30 -0
- package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.js.map +1 -0
- package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.d.ts +2 -0
- package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.d.ts.map +1 -0
- package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.js +31 -0
- package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.js.map +1 -0
- package/dist-esm/samples-dev/getsDetailsOfTheAzureService.d.ts +2 -0
- package/dist-esm/samples-dev/getsDetailsOfTheAzureService.d.ts.map +1 -0
- package/dist-esm/samples-dev/getsDetailsOfTheAzureService.js +30 -0
- package/dist-esm/samples-dev/getsDetailsOfTheAzureService.js.map +1 -0
- package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.d.ts +2 -0
- package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.d.ts.map +1 -0
- package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.js +44 -0
- package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.js.map +1 -0
- package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.d.ts +2 -0
- package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.d.ts.map +1 -0
- package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.js +43 -0
- package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.js.map +1 -0
- package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.d.ts +2 -0
- package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.d.ts.map +1 -0
- package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.js +44 -0
- package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.js.map +1 -0
- package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.d.ts +2 -0
- package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.js +45 -0
- package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.js.map +1 -0
- package/dist-esm/samples-dev/listSupportTicketsForASubscription.d.ts +2 -0
- package/dist-esm/samples-dev/listSupportTicketsForASubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/listSupportTicketsForASubscription.js +43 -0
- package/dist-esm/samples-dev/listSupportTicketsForASubscription.js.map +1 -0
- package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.d.ts +2 -0
- package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.js +45 -0
- package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.js.map +1 -0
- package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.d.ts +2 -0
- package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.d.ts.map +1 -0
- package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.js +46 -0
- package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.js.map +1 -0
- package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.d.ts +2 -0
- package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.d.ts.map +1 -0
- package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.js +46 -0
- package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.js.map +1 -0
- package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.d.ts +2 -0
- package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.js +43 -0
- package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.js.map +1 -0
- package/dist-esm/samples-dev/updateSeverityOfASupportTicket.d.ts +2 -0
- package/dist-esm/samples-dev/updateSeverityOfASupportTicket.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateSeverityOfASupportTicket.js +31 -0
- package/dist-esm/samples-dev/updateSeverityOfASupportTicket.js.map +1 -0
- package/dist-esm/samples-dev/updateStatusOfASupportTicket.d.ts +2 -0
- package/dist-esm/samples-dev/updateStatusOfASupportTicket.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateStatusOfASupportTicket.js +31 -0
- package/dist-esm/samples-dev/updateStatusOfASupportTicket.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/microsoftSupport.d.ts +22 -0
- package/dist-esm/src/microsoftSupport.d.ts.map +1 -0
- package/dist-esm/src/microsoftSupport.js +55 -0
- package/dist-esm/src/microsoftSupport.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +570 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +40 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +26 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +395 -430
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +18 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +148 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/communications.d.ts +77 -0
- package/dist-esm/src/operations/communications.d.ts.map +1 -0
- package/dist-esm/src/operations/communications.js +295 -0
- package/dist-esm/src/operations/communications.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +90 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/problemClassifications.d.ts +41 -0
- package/dist-esm/src/operations/problemClassifications.d.ts.map +1 -0
- package/dist-esm/src/operations/problemClassifications.js +127 -0
- package/dist-esm/src/operations/problemClassifications.js.map +1 -0
- package/dist-esm/src/operations/services.d.ts +44 -0
- package/dist-esm/src/operations/services.d.ts.map +1 -0
- package/dist-esm/src/operations/services.js +126 -0
- package/dist-esm/src/operations/services.js.map +1 -0
- package/dist-esm/src/operations/supportTickets.d.ts +115 -0
- package/dist-esm/src/operations/supportTickets.d.ts.map +1 -0
- package/dist-esm/src/operations/supportTickets.js +341 -0
- package/dist-esm/src/operations/supportTickets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/communications.d.ts +49 -0
- package/dist-esm/src/operationsInterfaces/communications.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/communications.js +9 -0
- package/dist-esm/src/operationsInterfaces/communications.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/problemClassifications.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/problemClassifications.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/problemClassifications.js +9 -0
- package/dist-esm/src/operationsInterfaces/problemClassifications.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/services.d.ts +23 -0
- package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/services.js +9 -0
- package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/supportTickets.d.ts +90 -0
- package/dist-esm/src/operationsInterfaces/supportTickets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/supportTickets.js +9 -0
- package/dist-esm/src/operationsInterfaces/supportTickets.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +77 -33
- package/review/arm-support.api.md +459 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/microsoftSupport.ts +82 -43
- package/src/models/index.ts +430 -827
- package/src/models/mappers.ts +400 -436
- package/src/models/parameters.ts +105 -48
- package/src/operations/communications.ts +275 -216
- package/src/operations/index.ts +3 -5
- package/src/operations/operations.ts +66 -42
- package/src/operations/problemClassifications.ts +101 -89
- package/src/operations/services.ts +94 -82
- package/src/operations/supportTickets.ts +301 -285
- package/src/operationsInterfaces/communications.ts +94 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/problemClassifications.ts +43 -0
- package/src/operationsInterfaces/services.ts +42 -0
- package/src/operationsInterfaces/supportTickets.ts +137 -0
- package/tsconfig.json +5 -4
- package/types/arm-support.d.ts +844 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-support.js +0 -2026
- package/dist/arm-support.js.map +0 -1
- package/dist/arm-support.min.js +0 -1
- package/dist/arm-support.min.js.map +0 -1
- package/esm/microsoftSupport.d.ts +0 -28
- package/esm/microsoftSupport.d.ts.map +0 -1
- package/esm/microsoftSupport.js +0 -42
- package/esm/microsoftSupport.js.map +0 -1
- package/esm/microsoftSupportContext.d.ts +0 -22
- package/esm/microsoftSupportContext.d.ts.map +0 -1
- package/esm/microsoftSupportContext.js +0 -61
- package/esm/microsoftSupportContext.js.map +0 -1
- package/esm/models/communicationsMappers.d.ts +0 -2
- package/esm/models/communicationsMappers.d.ts.map +0 -1
- package/esm/models/communicationsMappers.js +0 -9
- package/esm/models/communicationsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -973
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -28
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -115
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/problemClassificationsMappers.d.ts +0 -2
- package/esm/models/problemClassificationsMappers.d.ts.map +0 -1
- package/esm/models/problemClassificationsMappers.js +0 -9
- package/esm/models/problemClassificationsMappers.js.map +0 -1
- package/esm/models/servicesMappers.d.ts +0 -2
- package/esm/models/servicesMappers.d.ts.map +0 -1
- package/esm/models/servicesMappers.js +0 -9
- package/esm/models/servicesMappers.js.map +0 -1
- package/esm/models/supportTicketsMappers.d.ts +0 -2
- package/esm/models/supportTicketsMappers.d.ts.map +0 -1
- package/esm/models/supportTicketsMappers.js +0 -9
- package/esm/models/supportTicketsMappers.js.map +0 -1
- package/esm/operations/communications.d.ts +0 -121
- package/esm/operations/communications.d.ts.map +0 -1
- package/esm/operations/communications.js +0 -207
- package/esm/operations/communications.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/problemClassifications.d.ts +0 -57
- package/esm/operations/problemClassifications.d.ts.map +0 -1
- package/esm/operations/problemClassifications.js +0 -85
- package/esm/operations/problemClassifications.js.map +0 -1
- package/esm/operations/services.d.ts +0 -52
- package/esm/operations/services.d.ts.map +0 -1
- package/esm/operations/services.js +0 -79
- package/esm/operations/services.js.map +0 -1
- package/esm/operations/supportTickets.d.ts +0 -171
- package/esm/operations/supportTickets.d.ts.map +0 -1
- package/esm/operations/supportTickets.js +0 -265
- package/esm/operations/supportTickets.js.map +0 -1
- package/src/microsoftSupportContext.ts +0 -68
- package/src/models/communicationsMappers.ts +0 -25
- package/src/models/operationsMappers.ts +0 -16
- package/src/models/problemClassificationsMappers.ts +0 -15
- package/src/models/servicesMappers.ts +0 -15
- package/src/models/supportTicketsMappers.ts +0 -27
|
@@ -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/CreateBatchQuotaTicketForSpecificBatchAccountForDedicatedCores.json
|
|
16
|
+
*/
|
|
17
|
+
import { MicrosoftSupport } from "@azure/arm-support";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount() {
|
|
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","VMFamily":"standardA0_A7Family","NewLimit":200,"Type":"Dedicated"}',
|
|
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
|
+
createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount().catch(console.error);
|
|
56
|
+
//# sourceMappingURL=createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.js","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.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,2EAA2E;;QACxF,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,EACL,2FAA2F;wBAC7F,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,2EAA2E,EAAE,CAAC,KAAK,CACjF,OAAO,CAAC,KAAK,CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.d.ts","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.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/CreateMachineLearningQuotaTicketForDedicatedCores.json
|
|
16
|
+
*/
|
|
17
|
+
import { MicrosoftSupport } from "@azure/arm-support";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService() {
|
|
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/machine_learning_service_problemClassification_guid",
|
|
35
|
+
quotaTicketDetails: {
|
|
36
|
+
quotaChangeRequestSubType: "BatchAml",
|
|
37
|
+
quotaChangeRequestVersion: "1.0",
|
|
38
|
+
quotaChangeRequests: [
|
|
39
|
+
{
|
|
40
|
+
payload: '{"VMFamily":"standardA0_A7Family","NewLimit":200,"Type":"Dedicated"}',
|
|
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
|
+
createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService().catch(console.error);
|
|
56
|
+
//# sourceMappingURL=createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.js","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.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,oFAAoF;;QACjG,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,qIAAqI;YACvI,kBAAkB,EAAE;gBAClB,yBAAyB,EAAE,UAAU;gBACrC,yBAAyB,EAAE,KAAK;gBAChC,mBAAmB,EAAE;oBACnB;wBACE,OAAO,EACL,sEAAsE;wBACxE,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,oFAAoF,EAAE,CAAC,KAAK,CAC1F,OAAO,CAAC,KAAK,CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAllOperations.d.ts","sourceRoot":"","sources":["../../samples-dev/getAllOperations.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
/**
|
|
12
|
+
* This sample demonstrates how to This lists all the available Microsoft Support REST API operations.
|
|
13
|
+
*
|
|
14
|
+
* @summary This lists all the available Microsoft Support REST API operations.
|
|
15
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/ListOperations.json
|
|
16
|
+
*/
|
|
17
|
+
import { MicrosoftSupport } from "@azure/arm-support";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function getAllOperations() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
23
|
+
const credential = new DefaultAzureCredential();
|
|
24
|
+
const client = new MicrosoftSupport(credential, subscriptionId);
|
|
25
|
+
const resArray = new Array();
|
|
26
|
+
try {
|
|
27
|
+
for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
28
|
+
let item = _c.value;
|
|
29
|
+
resArray.push(item);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
33
|
+
finally {
|
|
34
|
+
try {
|
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
36
|
+
}
|
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
|
38
|
+
}
|
|
39
|
+
console.log(resArray);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
getAllOperations().catch(console.error);
|
|
43
|
+
//# sourceMappingURL=getAllOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAllOperations.js","sourceRoot":"","sources":["../../samples-dev/getAllOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,gBAAgB;;;QAC7B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,gBAAgB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCommunicationDetailsForASubscriptionSupportTicket.d.ts","sourceRoot":"","sources":["../../samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 Returns communication details for a support ticket.
|
|
13
|
+
*
|
|
14
|
+
* @summary Returns communication details for a support ticket.
|
|
15
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/GetCommunicationDetailsForSubscriptionSupportTicket.json
|
|
16
|
+
*/
|
|
17
|
+
import { MicrosoftSupport } from "@azure/arm-support";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function getCommunicationDetailsForASubscriptionSupportTicket() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "subid";
|
|
22
|
+
const supportTicketName = "testticket";
|
|
23
|
+
const communicationName = "testmessage";
|
|
24
|
+
const credential = new DefaultAzureCredential();
|
|
25
|
+
const client = new MicrosoftSupport(credential, subscriptionId);
|
|
26
|
+
const result = yield client.communications.get(supportTicketName, communicationName);
|
|
27
|
+
console.log(result);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
getCommunicationDetailsForASubscriptionSupportTicket().catch(console.error);
|
|
31
|
+
//# sourceMappingURL=getCommunicationDetailsForASubscriptionSupportTicket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCommunicationDetailsForASubscriptionSupportTicket.js","sourceRoot":"","sources":["../../samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,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,iBAAiB,GAAG,aAAa,CAAC;QACxC,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,GAAG,CAC5C,iBAAiB,EACjB,iBAAiB,CAClB,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 @@
|
|
|
1
|
+
{"version":3,"file":"getDetailsOfASubscriptionTicket.d.ts","sourceRoot":"","sources":["../../samples-dev/getDetailsOfASubscriptionTicket.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 Get ticket details for an Azure subscription. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
|
|
13
|
+
*
|
|
14
|
+
* @summary Get ticket details for an Azure subscription. Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
|
|
15
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/GetSubscriptionSupportTicketDetails.json
|
|
16
|
+
*/
|
|
17
|
+
import { MicrosoftSupport } from "@azure/arm-support";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function getDetailsOfASubscriptionTicket() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "subid";
|
|
22
|
+
const supportTicketName = "testticket";
|
|
23
|
+
const credential = new DefaultAzureCredential();
|
|
24
|
+
const client = new MicrosoftSupport(credential, subscriptionId);
|
|
25
|
+
const result = yield client.supportTickets.get(supportTicketName);
|
|
26
|
+
console.log(result);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
getDetailsOfASubscriptionTicket().catch(console.error);
|
|
30
|
+
//# sourceMappingURL=getDetailsOfASubscriptionTicket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDetailsOfASubscriptionTicket.js","sourceRoot":"","sources":["../../samples-dev/getDetailsOfASubscriptionTicket.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,+BAA+B;;QAC5C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,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,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAClE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,+BAA+B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getsDetailsOfProblemClassificationForAzureService.d.ts","sourceRoot":"","sources":["../../samples-dev/getsDetailsOfProblemClassificationForAzureService.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 Get problem classification details for a specific Azure service.
|
|
13
|
+
*
|
|
14
|
+
* @summary Get problem classification details for a specific Azure service.
|
|
15
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/GetProblemClassification.json
|
|
16
|
+
*/
|
|
17
|
+
import { MicrosoftSupport } from "@azure/arm-support";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function getsDetailsOfProblemClassificationForAzureService() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
+
const serviceName = "service_guid";
|
|
23
|
+
const problemClassificationName = "problemClassification_guid";
|
|
24
|
+
const credential = new DefaultAzureCredential();
|
|
25
|
+
const client = new MicrosoftSupport(credential, subscriptionId);
|
|
26
|
+
const result = yield client.problemClassifications.get(serviceName, problemClassificationName);
|
|
27
|
+
console.log(result);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
getsDetailsOfProblemClassificationForAzureService().catch(console.error);
|
|
31
|
+
//# sourceMappingURL=getsDetailsOfProblemClassificationForAzureService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getsDetailsOfProblemClassificationForAzureService.js","sourceRoot":"","sources":["../../samples-dev/getsDetailsOfProblemClassificationForAzureService.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,iDAAiD;;QAC9D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,yBAAyB,GAAG,4BAA4B,CAAC;QAC/D,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,sBAAsB,CAAC,GAAG,CACpD,WAAW,EACX,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iDAAiD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getsDetailsOfTheAzureService.d.ts","sourceRoot":"","sources":["../../samples-dev/getsDetailsOfTheAzureService.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 Gets a specific Azure service for support ticket creation.
|
|
13
|
+
*
|
|
14
|
+
* @summary Gets a specific Azure service for support ticket creation.
|
|
15
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/GetService.json
|
|
16
|
+
*/
|
|
17
|
+
import { MicrosoftSupport } from "@azure/arm-support";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function getsDetailsOfTheAzureService() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
+
const serviceName = "service_guid";
|
|
23
|
+
const credential = new DefaultAzureCredential();
|
|
24
|
+
const client = new MicrosoftSupport(credential, subscriptionId);
|
|
25
|
+
const result = yield client.services.get(serviceName);
|
|
26
|
+
console.log(result);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
getsDetailsOfTheAzureService().catch(console.error);
|
|
30
|
+
//# sourceMappingURL=getsDetailsOfTheAzureService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getsDetailsOfTheAzureService.js","sourceRoot":"","sources":["../../samples-dev/getsDetailsOfTheAzureService.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,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,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACtD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.d.ts","sourceRoot":"","sources":["../../samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
/**
|
|
12
|
+
* This sample demonstrates how to Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids.
|
|
13
|
+
*
|
|
14
|
+
* @summary Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids.
|
|
15
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/ListProblemClassifications.json
|
|
16
|
+
*/
|
|
17
|
+
import { MicrosoftSupport } from "@azure/arm-support";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
23
|
+
const serviceName = "service_guid";
|
|
24
|
+
const credential = new DefaultAzureCredential();
|
|
25
|
+
const client = new MicrosoftSupport(credential, subscriptionId);
|
|
26
|
+
const resArray = new Array();
|
|
27
|
+
try {
|
|
28
|
+
for (var _b = __asyncValues(client.problemClassifications.list(serviceName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
29
|
+
let item = _c.value;
|
|
30
|
+
resArray.push(item);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
34
|
+
finally {
|
|
35
|
+
try {
|
|
36
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
37
|
+
}
|
|
38
|
+
finally { if (e_1) throw e_1.error; }
|
|
39
|
+
}
|
|
40
|
+
console.log(resArray);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated().catch(console.error);
|
|
44
|
+
//# sourceMappingURL=getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.js","sourceRoot":"","sources":["../../samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,6EAA6E;;;QAC1F,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA,IAAA;gBAA3D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6EAA6E,EAAE,CAAC,KAAK,CACnF,OAAO,CAAC,KAAK,CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getsListOfServicesForWhichASupportTicketCanBeCreated.d.ts","sourceRoot":"","sources":["../../samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
/**
|
|
12
|
+
* This sample demonstrates how to Lists all the Azure services available for support ticket creation. For **Technical** issues, select the Service Id that maps to the Azure service/product as displayed in the **Services** drop-down list on the Azure portal's [New support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview) page. Always use the service and its corresponding problem classification(s) obtained programmatically for support ticket creation. This practice ensures that you always have the most recent set of service and problem classification Ids.
|
|
13
|
+
*
|
|
14
|
+
* @summary Lists all the Azure services available for support ticket creation. For **Technical** issues, select the Service Id that maps to the Azure service/product as displayed in the **Services** drop-down list on the Azure portal's [New support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview) page. Always use the service and its corresponding problem classification(s) obtained programmatically for support ticket creation. This practice ensures that you always have the most recent set of service and problem classification Ids.
|
|
15
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/ListServices.json
|
|
16
|
+
*/
|
|
17
|
+
import { MicrosoftSupport } from "@azure/arm-support";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function getsListOfServicesForWhichASupportTicketCanBeCreated() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
23
|
+
const credential = new DefaultAzureCredential();
|
|
24
|
+
const client = new MicrosoftSupport(credential, subscriptionId);
|
|
25
|
+
const resArray = new Array();
|
|
26
|
+
try {
|
|
27
|
+
for (var _b = __asyncValues(client.services.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
28
|
+
let item = _c.value;
|
|
29
|
+
resArray.push(item);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
33
|
+
finally {
|
|
34
|
+
try {
|
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
36
|
+
}
|
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
|
38
|
+
}
|
|
39
|
+
console.log(resArray);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
getsListOfServicesForWhichASupportTicketCanBeCreated().catch(console.error);
|
|
43
|
+
//# sourceMappingURL=getsListOfServicesForWhichASupportTicketCanBeCreated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getsListOfServicesForWhichASupportTicketCanBeCreated.js","sourceRoot":"","sources":["../../samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,oDAAoD;;;QACjE,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAlC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,oDAAoD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listCommunicationsForASubscriptionSupportTicket.d.ts","sourceRoot":"","sources":["../../samples-dev/listCommunicationsForASubscriptionSupportTicket.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
/**
|
|
12
|
+
* This sample demonstrates how to Lists all communications (attachments not included) for a support ticket. <br/></br> You can also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter parameter. The only type of communication supported today is _Web_. Output will be a paged result with _nextLink_, using which you can retrieve the next set of Communication results. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
|
|
13
|
+
*
|
|
14
|
+
* @summary Lists all communications (attachments not included) for a support ticket. <br/></br> You can also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter parameter. The only type of communication supported today is _Web_. Output will be a paged result with _nextLink_, using which you can retrieve the next set of Communication results. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
|
|
15
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/ListCommunicationsForSubscriptionSupportTicket.json
|
|
16
|
+
*/
|
|
17
|
+
import { MicrosoftSupport } from "@azure/arm-support";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function listCommunicationsForASubscriptionSupportTicket() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "subid";
|
|
23
|
+
const supportTicketName = "testticket";
|
|
24
|
+
const credential = new DefaultAzureCredential();
|
|
25
|
+
const client = new MicrosoftSupport(credential, subscriptionId);
|
|
26
|
+
const resArray = new Array();
|
|
27
|
+
try {
|
|
28
|
+
for (var _b = __asyncValues(client.communications.list(supportTicketName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
29
|
+
let item = _c.value;
|
|
30
|
+
resArray.push(item);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
34
|
+
finally {
|
|
35
|
+
try {
|
|
36
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
37
|
+
}
|
|
38
|
+
finally { if (e_1) throw e_1.error; }
|
|
39
|
+
}
|
|
40
|
+
console.log(resArray);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
listCommunicationsForASubscriptionSupportTicket().catch(console.error);
|
|
44
|
+
//# sourceMappingURL=listCommunicationsForASubscriptionSupportTicket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listCommunicationsForASubscriptionSupportTicket.js","sourceRoot":"","sources":["../../samples-dev/listCommunicationsForASubscriptionSupportTicket.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,+CAA+C;;;QAC5D,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAA,IAAA;gBAAzD,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,+CAA+C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.d.ts","sourceRoot":"","sources":["../../samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
/**
|
|
12
|
+
* This sample demonstrates how to Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_ or _CreatedDate_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
|
|
13
|
+
*
|
|
14
|
+
* @summary Lists all the support tickets for an Azure subscription. You can also filter the support tickets by _Status_ or _CreatedDate_ using the $filter parameter. Output will be a paged result with _nextLink_, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
|
|
15
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2020-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json
|
|
16
|
+
*/
|
|
17
|
+
import { MicrosoftSupport } from "@azure/arm-support";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "subid";
|
|
23
|
+
const filter = "createdDate ge 2020-03-10T22:08:51Z and status eq 'Open'";
|
|
24
|
+
const options = { filter: filter };
|
|
25
|
+
const credential = new DefaultAzureCredential();
|
|
26
|
+
const client = new MicrosoftSupport(credential, subscriptionId);
|
|
27
|
+
const resArray = new Array();
|
|
28
|
+
try {
|
|
29
|
+
for (var _b = __asyncValues(client.supportTickets.list(options)), _c; _c = yield _b.next(), !_c.done;) {
|
|
30
|
+
let item = _c.value;
|
|
31
|
+
resArray.push(item);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
35
|
+
finally {
|
|
36
|
+
try {
|
|
37
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
38
|
+
}
|
|
39
|
+
finally { if (e_1) throw e_1.error; }
|
|
40
|
+
}
|
|
41
|
+
console.log(resArray);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription().catch(console.error);
|
|
45
|
+
//# sourceMappingURL=listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.js","sourceRoot":"","sources":["../../samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,4EAA4E;;;QACzF,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,MAAM,GAAG,0DAA0D,CAAC;QAC1E,MAAM,OAAO,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA,IAAA;gBAA/C,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,4EAA4E,EAAE,CAAC,KAAK,CAClF,OAAO,CAAC,KAAK,CACd,CAAC"}
|