@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,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 @@
|
|
|
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 @@
|
|
|
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"}
|
package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.d.ts.map
ADDED
|
@@ -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 @@
|
|
|
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"}
|
package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.d.ts.map
ADDED
|
@@ -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
|
package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.js.map
ADDED
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.d.ts","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.ts"],"names":[],"mappings":""}
|
package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.js
ADDED
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.d.ts","sourceRoot":"","sources":["../../samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.ts"],"names":[],"mappings":""}
|