@azure/arm-support 2.1.1-alpha.20231017.1 → 2.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +111 -10
- package/README.md +1 -1
- package/dist/index.js +2451 -300
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/chatTranscriptsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/chatTranscriptsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/chatTranscriptsGetSample.js +38 -0
- package/dist-esm/samples-dev/chatTranscriptsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/chatTranscriptsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/chatTranscriptsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.js → chatTranscriptsListSample.js} +18 -11
- package/dist-esm/samples-dev/chatTranscriptsListSample.js.map +1 -0
- package/dist-esm/samples-dev/chatTranscriptsNoSubscriptionGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/chatTranscriptsNoSubscriptionGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/chatTranscriptsNoSubscriptionGetSample.js +37 -0
- package/dist-esm/samples-dev/chatTranscriptsNoSubscriptionGetSample.js.map +1 -0
- package/dist-esm/samples-dev/communicationsCheckNameAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/communicationsCreateSample.js +1 -1
- package/dist-esm/samples-dev/communicationsGetSample.js +1 -1
- package/dist-esm/samples-dev/communicationsListSample.js +3 -3
- package/dist-esm/samples-dev/communicationsNoSubscriptionCheckNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/communicationsNoSubscriptionCheckNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{checksWhetherNameIsAvailableForCommunicationResource.js → communicationsNoSubscriptionCheckNameAvailabilitySample.js} +15 -7
- package/dist-esm/samples-dev/communicationsNoSubscriptionCheckNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/communicationsNoSubscriptionCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/communicationsNoSubscriptionCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{addCommunicationToSubscriptionTicket.js → communicationsNoSubscriptionCreateSample.js} +15 -9
- package/dist-esm/samples-dev/communicationsNoSubscriptionCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/communicationsNoSubscriptionGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/communicationsNoSubscriptionGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{getCommunicationDetailsForASubscriptionSupportTicket.js → communicationsNoSubscriptionGetSample.js} +15 -9
- package/dist-esm/samples-dev/communicationsNoSubscriptionGetSample.js.map +1 -0
- package/dist-esm/samples-dev/fileWorkspacesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileWorkspacesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileWorkspacesCreateSample.js +37 -0
- package/dist-esm/samples-dev/fileWorkspacesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/fileWorkspacesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileWorkspacesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileWorkspacesGetSample.js +37 -0
- package/dist-esm/samples-dev/fileWorkspacesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionCreateSample.js +36 -0
- package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionGetSample.js +36 -0
- package/dist-esm/samples-dev/fileWorkspacesNoSubscriptionGetSample.js.map +1 -0
- package/dist-esm/samples-dev/filesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesCreateSample.js +43 -0
- package/dist-esm/samples-dev/filesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/filesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesGetSample.js +38 -0
- package/dist-esm/samples-dev/filesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/filesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{getAllOperations.js → filesListSample.js} +18 -10
- package/dist-esm/samples-dev/filesListSample.js.map +1 -0
- package/dist-esm/samples-dev/filesNoSubscriptionCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesNoSubscriptionCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesNoSubscriptionCreateSample.js +42 -0
- package/dist-esm/samples-dev/filesNoSubscriptionCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/filesNoSubscriptionGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesNoSubscriptionGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesNoSubscriptionGetSample.js +37 -0
- package/dist-esm/samples-dev/filesNoSubscriptionGetSample.js.map +1 -0
- package/dist-esm/samples-dev/filesNoSubscriptionListSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesNoSubscriptionListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesNoSubscriptionListSample.js +57 -0
- package/dist-esm/samples-dev/filesNoSubscriptionListSample.js.map +1 -0
- package/dist-esm/samples-dev/filesNoSubscriptionUploadSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesNoSubscriptionUploadSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesNoSubscriptionUploadSample.js +41 -0
- package/dist-esm/samples-dev/filesNoSubscriptionUploadSample.js.map +1 -0
- package/dist-esm/samples-dev/filesUploadSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesUploadSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesUploadSample.js +42 -0
- package/dist-esm/samples-dev/filesUploadSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/problemClassificationsGetSample.js +2 -4
- package/dist-esm/samples-dev/problemClassificationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/problemClassificationsListSample.js +2 -4
- package/dist-esm/samples-dev/problemClassificationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesGetSample.js +2 -4
- package/dist-esm/samples-dev/servicesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesListSample.js +2 -4
- package/dist-esm/samples-dev/servicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/supportTicketChatTranscriptsNoSubscriptionListSample.d.ts +2 -0
- package/dist-esm/samples-dev/supportTicketChatTranscriptsNoSubscriptionListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{listSupportTicketsForASubscription.js → supportTicketChatTranscriptsNoSubscriptionListSample.js} +18 -11
- package/dist-esm/samples-dev/supportTicketChatTranscriptsNoSubscriptionListSample.js.map +1 -0
- package/dist-esm/samples-dev/supportTicketCommunicationsNoSubscriptionListSample.d.ts +2 -0
- package/dist-esm/samples-dev/supportTicketCommunicationsNoSubscriptionListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/supportTicketCommunicationsNoSubscriptionListSample.js +139 -0
- package/dist-esm/samples-dev/supportTicketCommunicationsNoSubscriptionListSample.js.map +1 -0
- package/dist-esm/samples-dev/supportTicketsCheckNameAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/supportTicketsCreateSample.js +54 -17
- package/dist-esm/samples-dev/supportTicketsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/supportTicketsGetSample.js +1 -1
- package/dist-esm/samples-dev/supportTicketsListSample.js +170 -14
- package/dist-esm/samples-dev/supportTicketsListSample.js.map +1 -1
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionCheckNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionCheckNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{checksWhetherNameIsAvailableForSupportTicketResource.js → supportTicketsNoSubscriptionCheckNameAvailabilitySample.js} +15 -7
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionCheckNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionCreateSample.js +127 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionGetSample.js +36 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionGetSample.js.map +1 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionListSample.d.ts +2 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionListSample.js +284 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionListSample.js.map +1 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionUpdateSample.js +102 -0
- package/dist-esm/samples-dev/supportTicketsNoSubscriptionUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/supportTicketsUpdateSample.js +29 -9
- package/dist-esm/samples-dev/supportTicketsUpdateSample.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/microsoftSupport.d.ts +13 -2
- package/dist-esm/src/microsoftSupport.d.ts.map +1 -1
- package/dist-esm/src/microsoftSupport.js +20 -12
- package/dist-esm/src/microsoftSupport.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +431 -23
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +32 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +17 -3
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +443 -19
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +6 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +53 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/chatTranscripts.d.ts +42 -0
- package/dist-esm/src/operations/chatTranscripts.d.ts.map +1 -0
- package/dist-esm/src/operations/chatTranscripts.js +180 -0
- package/dist-esm/src/operations/chatTranscripts.js.map +1 -0
- package/dist-esm/src/operations/chatTranscriptsNoSubscription.d.ts +20 -0
- package/dist-esm/src/operations/chatTranscriptsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operations/chatTranscriptsNoSubscription.js +52 -0
- package/dist-esm/src/operations/chatTranscriptsNoSubscription.js.map +1 -0
- package/dist-esm/src/operations/communications.d.ts +2 -2
- package/dist-esm/src/operations/communications.d.ts.map +1 -1
- package/dist-esm/src/operations/communications.js +21 -17
- package/dist-esm/src/operations/communications.js.map +1 -1
- package/dist-esm/src/operations/communicationsNoSubscription.d.ts +45 -0
- package/dist-esm/src/operations/communicationsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operations/communicationsNoSubscription.js +177 -0
- package/dist-esm/src/operations/communicationsNoSubscription.js.map +1 -0
- package/dist-esm/src/operations/fileWorkspaces.d.ts +25 -0
- package/dist-esm/src/operations/fileWorkspaces.d.ts.map +1 -0
- package/dist-esm/src/operations/fileWorkspaces.js +79 -0
- package/dist-esm/src/operations/fileWorkspaces.js.map +1 -0
- package/dist-esm/src/operations/fileWorkspacesNoSubscription.d.ts +25 -0
- package/dist-esm/src/operations/fileWorkspacesNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operations/fileWorkspacesNoSubscription.js +71 -0
- package/dist-esm/src/operations/fileWorkspacesNoSubscription.js.map +1 -0
- package/dist-esm/src/operations/files.d.ts +58 -0
- package/dist-esm/src/operations/files.d.ts.map +1 -0
- package/dist-esm/src/operations/files.js +244 -0
- package/dist-esm/src/operations/files.js.map +1 -0
- package/dist-esm/src/operations/filesNoSubscription.d.ts +58 -0
- package/dist-esm/src/operations/filesNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operations/filesNoSubscription.js +236 -0
- package/dist-esm/src/operations/filesNoSubscription.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +10 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +10 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.js +1 -1
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/problemClassifications.js +2 -2
- package/dist-esm/src/operations/problemClassifications.js.map +1 -1
- package/dist-esm/src/operations/services.js +2 -2
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operations/supportTicketChatTranscriptsNoSubscription.d.ts +35 -0
- package/dist-esm/src/operations/supportTicketChatTranscriptsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operations/supportTicketChatTranscriptsNoSubscription.js +145 -0
- package/dist-esm/src/operations/supportTicketChatTranscriptsNoSubscription.js.map +1 -0
- package/dist-esm/src/operations/supportTicketCommunicationsNoSubscription.d.ts +45 -0
- package/dist-esm/src/operations/supportTicketCommunicationsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operations/supportTicketCommunicationsNoSubscription.js +155 -0
- package/dist-esm/src/operations/supportTicketCommunicationsNoSubscription.js.map +1 -0
- package/dist-esm/src/operations/supportTickets.d.ts +15 -17
- package/dist-esm/src/operations/supportTickets.d.ts.map +1 -1
- package/dist-esm/src/operations/supportTickets.js +30 -28
- package/dist-esm/src/operations/supportTickets.js.map +1 -1
- package/dist-esm/src/operations/supportTicketsNoSubscription.d.ts +98 -0
- package/dist-esm/src/operations/supportTicketsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operations/supportTicketsNoSubscription.js +332 -0
- package/dist-esm/src/operations/supportTicketsNoSubscription.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/chatTranscripts.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/chatTranscripts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/chatTranscripts.js +9 -0
- package/dist-esm/src/operationsInterfaces/chatTranscripts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/chatTranscriptsNoSubscription.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/chatTranscriptsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/chatTranscriptsNoSubscription.js +9 -0
- package/dist-esm/src/operationsInterfaces/chatTranscriptsNoSubscription.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/communications.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/communications.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/communicationsNoSubscription.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/communicationsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/communicationsNoSubscription.js +9 -0
- package/dist-esm/src/operationsInterfaces/communicationsNoSubscription.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileWorkspaces.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/fileWorkspaces.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileWorkspaces.js +9 -0
- package/dist-esm/src/operationsInterfaces/fileWorkspaces.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileWorkspacesNoSubscription.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/fileWorkspacesNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileWorkspacesNoSubscription.js +9 -0
- package/dist-esm/src/operationsInterfaces/fileWorkspacesNoSubscription.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/files.d.ts +35 -0
- package/dist-esm/src/operationsInterfaces/files.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/files.js +9 -0
- package/dist-esm/src/operationsInterfaces/files.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/filesNoSubscription.d.ts +35 -0
- package/dist-esm/src/operationsInterfaces/filesNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/filesNoSubscription.js +9 -0
- package/dist-esm/src/operationsInterfaces/filesNoSubscription.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +10 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.js +9 -0
- package/dist-esm/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.js +9 -0
- package/dist-esm/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/supportTickets.d.ts +11 -13
- package/dist-esm/src/operationsInterfaces/supportTickets.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/supportTicketsNoSubscription.d.ts +73 -0
- package/dist-esm/src/operationsInterfaces/supportTicketsNoSubscription.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/supportTicketsNoSubscription.js +9 -0
- package/dist-esm/src/operationsInterfaces/supportTicketsNoSubscription.js.map +1 -0
- package/dist-esm/test/support_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/support_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/support_operations_test.spec.js +78 -0
- package/dist-esm/test/support_operations_test.spec.js.map +1 -0
- package/package.json +16 -10
- package/review/arm-support.api.md +464 -19
- package/src/lroImpl.ts +31 -23
- package/src/microsoftSupport.ts +73 -7
- package/src/models/index.ts +513 -23
- package/src/models/mappers.ts +473 -19
- package/src/models/parameters.ts +61 -2
- package/src/operations/chatTranscripts.ts +215 -0
- package/src/operations/chatTranscriptsNoSubscription.ts +72 -0
- package/src/operations/communications.ts +25 -18
- package/src/operations/communicationsNoSubscription.ts +254 -0
- package/src/operations/fileWorkspaces.ts +107 -0
- package/src/operations/fileWorkspacesNoSubscription.ts +98 -0
- package/src/operations/files.ts +303 -0
- package/src/operations/filesNoSubscription.ts +294 -0
- package/src/operations/index.ts +10 -0
- package/src/operations/operations.ts +1 -1
- package/src/operations/problemClassifications.ts +2 -2
- package/src/operations/services.ts +2 -2
- package/src/operations/supportTicketChatTranscriptsNoSubscription.ts +170 -0
- package/src/operations/supportTicketCommunicationsNoSubscription.ts +180 -0
- package/src/operations/supportTickets.ts +39 -34
- package/src/operations/supportTicketsNoSubscription.ts +415 -0
- package/src/operationsInterfaces/chatTranscripts.ts +40 -0
- package/src/operationsInterfaces/chatTranscriptsNoSubscription.ts +27 -0
- package/src/operationsInterfaces/communications.ts +3 -3
- package/src/operationsInterfaces/communicationsNoSubscription.ts +77 -0
- package/src/operationsInterfaces/fileWorkspaces.ts +36 -0
- package/src/operationsInterfaces/fileWorkspacesNoSubscription.ts +36 -0
- package/src/operationsInterfaces/files.ts +70 -0
- package/src/operationsInterfaces/filesNoSubscription.ts +70 -0
- package/src/operationsInterfaces/index.ts +10 -0
- package/src/operationsInterfaces/supportTicketChatTranscriptsNoSubscription.ts +27 -0
- package/src/operationsInterfaces/supportTicketCommunicationsNoSubscription.ts +32 -0
- package/src/operationsInterfaces/supportTickets.ts +12 -14
- package/src/operationsInterfaces/supportTicketsNoSubscription.ts +120 -0
- package/types/arm-support.d.ts +805 -50
- package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.d.ts +0 -2
- package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.d.ts.map +0 -1
- package/dist-esm/samples-dev/addCommunicationToSubscriptionTicket.js.map +0 -1
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.d.ts +0 -2
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForCommunicationResource.js.map +0 -1
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.d.ts +0 -2
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/checksWhetherNameIsAvailableForSupportTicketResource.js.map +0 -1
- package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.js +0 -46
- package/dist-esm/samples-dev/createATicketForBillingRelatedIssues.js.map +0 -1
- package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.js +0 -46
- package/dist-esm/samples-dev/createATicketForSubscriptionManagementRelatedIssues.js.map +0 -1
- package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.js +0 -49
- package/dist-esm/samples-dev/createATicketForTechnicalIssueRelatedToASpecificResource.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.js +0 -56
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedulesForABatchAccount.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.js +0 -60
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForAzureSqlManagedInstance.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.js +0 -53
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForBatchAccountsForASubscription.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.js +0 -52
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForComputeVMCores.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.js +0 -56
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForAzureSynapseAnalytics.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.js +0 -56
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForDtUsForSqlDatabase.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.js +0 -56
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForABatchAccount.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.js +0 -53
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForLowPriorityCoresForMachineLearningService.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.js +0 -56
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForPoolsForABatchAccount.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.js +0 -51
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForAzureSynapseAnalytics.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.js +0 -51
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServersForSqlDatabase.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.js +0 -46
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForServicesThatDoNotRequireAdditionalDetailsInTheQuotaTicketDetailsObject.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.js +0 -56
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForABatchAccount.js.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.d.ts +0 -2
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.d.ts.map +0 -1
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.js +0 -56
- package/dist-esm/samples-dev/createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresForMachineLearningService.js.map +0 -1
- package/dist-esm/samples-dev/getAllOperations.d.ts +0 -2
- package/dist-esm/samples-dev/getAllOperations.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAllOperations.js.map +0 -1
- package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.d.ts +0 -2
- package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.d.ts.map +0 -1
- package/dist-esm/samples-dev/getCommunicationDetailsForASubscriptionSupportTicket.js.map +0 -1
- package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.d.ts +0 -2
- package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.d.ts.map +0 -1
- package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.js +0 -30
- package/dist-esm/samples-dev/getDetailsOfASubscriptionTicket.js.map +0 -1
- package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.d.ts +0 -2
- package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.d.ts.map +0 -1
- package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.js +0 -31
- package/dist-esm/samples-dev/getsDetailsOfProblemClassificationForAzureService.js.map +0 -1
- package/dist-esm/samples-dev/getsDetailsOfTheAzureService.d.ts +0 -2
- package/dist-esm/samples-dev/getsDetailsOfTheAzureService.d.ts.map +0 -1
- package/dist-esm/samples-dev/getsDetailsOfTheAzureService.js +0 -30
- package/dist-esm/samples-dev/getsDetailsOfTheAzureService.js.map +0 -1
- package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.d.ts +0 -2
- package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.d.ts.map +0 -1
- package/dist-esm/samples-dev/getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated.js.map +0 -1
- package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.d.ts +0 -2
- package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.d.ts.map +0 -1
- package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.js +0 -50
- package/dist-esm/samples-dev/getsListOfServicesForWhichASupportTicketCanBeCreated.js.map +0 -1
- package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.d.ts +0 -2
- package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.d.ts.map +0 -1
- package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.js +0 -51
- package/dist-esm/samples-dev/listCommunicationsForASubscriptionSupportTicket.js.map +0 -1
- package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.d.ts +0 -2
- package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.d.ts.map +0 -1
- package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.js +0 -52
- package/dist-esm/samples-dev/listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription.js.map +0 -1
- package/dist-esm/samples-dev/listSupportTicketsForASubscription.d.ts +0 -2
- package/dist-esm/samples-dev/listSupportTicketsForASubscription.d.ts.map +0 -1
- package/dist-esm/samples-dev/listSupportTicketsForASubscription.js.map +0 -1
- package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.d.ts +0 -2
- package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.d.ts.map +0 -1
- package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.js +0 -52
- package/dist-esm/samples-dev/listSupportTicketsInOpenStateForASubscription.js.map +0 -1
- package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.d.ts +0 -2
- package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.d.ts.map +0 -1
- package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.js +0 -53
- package/dist-esm/samples-dev/listWebCommunicationCreatedOnOrAfterASpecificDateForASubscriptionSupportTicket.js.map +0 -1
- package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.d.ts +0 -2
- package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.d.ts.map +0 -1
- package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.js +0 -53
- package/dist-esm/samples-dev/listWebCommunicationsForASubscriptionSupportTicket.js.map +0 -1
- package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.d.ts +0 -2
- package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.d.ts.map +0 -1
- package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.js +0 -43
- package/dist-esm/samples-dev/updateContactDetailsOfASupportTicket.js.map +0 -1
- package/dist-esm/samples-dev/updateSeverityOfASupportTicket.d.ts +0 -2
- package/dist-esm/samples-dev/updateSeverityOfASupportTicket.d.ts.map +0 -1
- package/dist-esm/samples-dev/updateSeverityOfASupportTicket.js +0 -31
- package/dist-esm/samples-dev/updateSeverityOfASupportTicket.js.map +0 -1
- package/dist-esm/samples-dev/updateStatusOfASupportTicket.d.ts +0 -2
- package/dist-esm/samples-dev/updateStatusOfASupportTicket.d.ts.map +0 -1
- package/dist-esm/samples-dev/updateStatusOfASupportTicket.js +0 -31
- package/dist-esm/samples-dev/updateStatusOfASupportTicket.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -0,0 +1,284 @@
|
|
|
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
|
+
import { MicrosoftSupport } from "@azure/arm-support";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
|
|
17
|
+
*
|
|
18
|
+
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenState.json
|
|
20
|
+
*/
|
|
21
|
+
function listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription() {
|
|
22
|
+
var _a, e_1, _b, _c;
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const filter = "createdDate ge 2020-03-10T22:08:51Z and status eq 'Open'";
|
|
25
|
+
const options = { filter };
|
|
26
|
+
const credential = new DefaultAzureCredential();
|
|
27
|
+
const client = new MicrosoftSupport(credential);
|
|
28
|
+
const resArray = new Array();
|
|
29
|
+
try {
|
|
30
|
+
for (var _d = true, _e = __asyncValues(client.supportTicketsNoSubscription.list(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
31
|
+
_c = _f.value;
|
|
32
|
+
_d = false;
|
|
33
|
+
try {
|
|
34
|
+
let item = _c;
|
|
35
|
+
resArray.push(item);
|
|
36
|
+
}
|
|
37
|
+
finally {
|
|
38
|
+
_d = true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
43
|
+
finally {
|
|
44
|
+
try {
|
|
45
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
46
|
+
}
|
|
47
|
+
finally { if (e_1) throw e_1.error; }
|
|
48
|
+
}
|
|
49
|
+
console.log(resArray);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
|
|
54
|
+
*
|
|
55
|
+
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, 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.
|
|
56
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingState.json
|
|
57
|
+
*/
|
|
58
|
+
function listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingStateForASubscription() {
|
|
59
|
+
var _a, e_2, _b, _c;
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const filter = "createdDate ge 2020-03-10T22:08:51Z and status eq 'Updating'";
|
|
62
|
+
const options = { filter };
|
|
63
|
+
const credential = new DefaultAzureCredential();
|
|
64
|
+
const client = new MicrosoftSupport(credential);
|
|
65
|
+
const resArray = new Array();
|
|
66
|
+
try {
|
|
67
|
+
for (var _d = true, _e = __asyncValues(client.supportTicketsNoSubscription.list(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
68
|
+
_c = _f.value;
|
|
69
|
+
_d = false;
|
|
70
|
+
try {
|
|
71
|
+
let item = _c;
|
|
72
|
+
resArray.push(item);
|
|
73
|
+
}
|
|
74
|
+
finally {
|
|
75
|
+
_d = true;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
80
|
+
finally {
|
|
81
|
+
try {
|
|
82
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
83
|
+
}
|
|
84
|
+
finally { if (e_2) throw e_2.error; }
|
|
85
|
+
}
|
|
86
|
+
console.log(resArray);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
|
|
91
|
+
*
|
|
92
|
+
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, using which you can retrieve the next set of support tickets. <br/><br/>Support ticket data is available for 18 months after ticket creation. If a ticket was created more than 18 months ago, a request for data might cause an error.
|
|
93
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTickets.json
|
|
94
|
+
*/
|
|
95
|
+
function listSupportTicketsForASubscription() {
|
|
96
|
+
var _a, e_3, _b, _c;
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
const credential = new DefaultAzureCredential();
|
|
99
|
+
const client = new MicrosoftSupport(credential);
|
|
100
|
+
const resArray = new Array();
|
|
101
|
+
try {
|
|
102
|
+
for (var _d = true, _e = __asyncValues(client.supportTicketsNoSubscription.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
103
|
+
_c = _f.value;
|
|
104
|
+
_d = false;
|
|
105
|
+
try {
|
|
106
|
+
let item = _c;
|
|
107
|
+
resArray.push(item);
|
|
108
|
+
}
|
|
109
|
+
finally {
|
|
110
|
+
_d = true;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
115
|
+
finally {
|
|
116
|
+
try {
|
|
117
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
118
|
+
}
|
|
119
|
+
finally { if (e_3) throw e_3.error; }
|
|
120
|
+
}
|
|
121
|
+
console.log(resArray);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, 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.
|
|
126
|
+
*
|
|
127
|
+
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, 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.
|
|
128
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTicketsInOpenState.json
|
|
129
|
+
*/
|
|
130
|
+
function listSupportTicketsInOpenStateForASubscription() {
|
|
131
|
+
var _a, e_4, _b, _c;
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
const filter = "status eq 'Open'";
|
|
134
|
+
const options = { filter };
|
|
135
|
+
const credential = new DefaultAzureCredential();
|
|
136
|
+
const client = new MicrosoftSupport(credential);
|
|
137
|
+
const resArray = new Array();
|
|
138
|
+
try {
|
|
139
|
+
for (var _d = true, _e = __asyncValues(client.supportTicketsNoSubscription.list(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
140
|
+
_c = _f.value;
|
|
141
|
+
_d = false;
|
|
142
|
+
try {
|
|
143
|
+
let item = _c;
|
|
144
|
+
resArray.push(item);
|
|
145
|
+
}
|
|
146
|
+
finally {
|
|
147
|
+
_d = true;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
152
|
+
finally {
|
|
153
|
+
try {
|
|
154
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
155
|
+
}
|
|
156
|
+
finally { if (e_4) throw e_4.error; }
|
|
157
|
+
}
|
|
158
|
+
console.log(resArray);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, 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.
|
|
163
|
+
*
|
|
164
|
+
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, 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.
|
|
165
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTicketsInUpdatingState.json
|
|
166
|
+
*/
|
|
167
|
+
function listSupportTicketsInUpdatingStateForASubscription() {
|
|
168
|
+
var _a, e_5, _b, _c;
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
const filter = "status eq 'Updating'";
|
|
171
|
+
const options = { filter };
|
|
172
|
+
const credential = new DefaultAzureCredential();
|
|
173
|
+
const client = new MicrosoftSupport(credential);
|
|
174
|
+
const resArray = new Array();
|
|
175
|
+
try {
|
|
176
|
+
for (var _d = true, _e = __asyncValues(client.supportTicketsNoSubscription.list(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
177
|
+
_c = _f.value;
|
|
178
|
+
_d = false;
|
|
179
|
+
try {
|
|
180
|
+
let item = _c;
|
|
181
|
+
resArray.push(item);
|
|
182
|
+
}
|
|
183
|
+
finally {
|
|
184
|
+
_d = true;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
189
|
+
finally {
|
|
190
|
+
try {
|
|
191
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
192
|
+
}
|
|
193
|
+
finally { if (e_5) throw e_5.error; }
|
|
194
|
+
}
|
|
195
|
+
console.log(resArray);
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, 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.
|
|
200
|
+
*
|
|
201
|
+
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, 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.
|
|
202
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTicketsProblemClassificationIdEquals.json
|
|
203
|
+
*/
|
|
204
|
+
function listSupportTicketsWithACertainProblemClassificationIdForASubscription() {
|
|
205
|
+
var _a, e_6, _b, _c;
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
const filter = "ProblemClassificationId eq 'compute_vm_problemClassification_guid'";
|
|
208
|
+
const options = { filter };
|
|
209
|
+
const credential = new DefaultAzureCredential();
|
|
210
|
+
const client = new MicrosoftSupport(credential);
|
|
211
|
+
const resArray = new Array();
|
|
212
|
+
try {
|
|
213
|
+
for (var _d = true, _e = __asyncValues(client.supportTicketsNoSubscription.list(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
214
|
+
_c = _f.value;
|
|
215
|
+
_d = false;
|
|
216
|
+
try {
|
|
217
|
+
let item = _c;
|
|
218
|
+
resArray.push(item);
|
|
219
|
+
}
|
|
220
|
+
finally {
|
|
221
|
+
_d = true;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
226
|
+
finally {
|
|
227
|
+
try {
|
|
228
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
229
|
+
}
|
|
230
|
+
finally { if (e_6) throw e_6.error; }
|
|
231
|
+
}
|
|
232
|
+
console.log(resArray);
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* This sample demonstrates how to Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, 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.
|
|
237
|
+
*
|
|
238
|
+
* @summary Lists all the support tickets. <br/><br/>You can also filter the support tickets by <i>Status</i>, <i>CreatedDate</i>, , <i>ServiceId</i>, and <i>ProblemClassificationId</i> using the $filter parameter. Output will be a paged result with <i>nextLink</i>, 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.
|
|
239
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListSupportTicketsServiceIdEquals.json
|
|
240
|
+
*/
|
|
241
|
+
function listSupportTicketsWithACertainServiceIdForASubscription() {
|
|
242
|
+
var _a, e_7, _b, _c;
|
|
243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
const filter = "ServiceId eq 'vm_windows_service_guid'";
|
|
245
|
+
const options = { filter };
|
|
246
|
+
const credential = new DefaultAzureCredential();
|
|
247
|
+
const client = new MicrosoftSupport(credential);
|
|
248
|
+
const resArray = new Array();
|
|
249
|
+
try {
|
|
250
|
+
for (var _d = true, _e = __asyncValues(client.supportTicketsNoSubscription.list(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
251
|
+
_c = _f.value;
|
|
252
|
+
_d = false;
|
|
253
|
+
try {
|
|
254
|
+
let item = _c;
|
|
255
|
+
resArray.push(item);
|
|
256
|
+
}
|
|
257
|
+
finally {
|
|
258
|
+
_d = true;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
263
|
+
finally {
|
|
264
|
+
try {
|
|
265
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
266
|
+
}
|
|
267
|
+
finally { if (e_7) throw e_7.error; }
|
|
268
|
+
}
|
|
269
|
+
console.log(resArray);
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
function main() {
|
|
273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateForASubscription();
|
|
275
|
+
listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingStateForASubscription();
|
|
276
|
+
listSupportTicketsForASubscription();
|
|
277
|
+
listSupportTicketsInOpenStateForASubscription();
|
|
278
|
+
listSupportTicketsInUpdatingStateForASubscription();
|
|
279
|
+
listSupportTicketsWithACertainProblemClassificationIdForASubscription();
|
|
280
|
+
listSupportTicketsWithACertainServiceIdForASubscription();
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
main().catch(console.error);
|
|
284
|
+
//# sourceMappingURL=supportTicketsNoSubscriptionListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportTicketsNoSubscriptionListSample.js","sourceRoot":"","sources":["../../samples-dev/supportTicketsNoSubscriptionListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4EAA4E;;;QACzF,MAAM,MAAM,GAAG,0DAA0D,CAAC;QAC1E,MAAM,OAAO,GAAmD,EAAE,MAAM,EAAE,CAAC;QAC3E,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAChD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,4BAA4B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA,IAAA;gBAAjD,cAAiD;gBAAjD,WAAiD;;oBAA7D,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,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CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportTicketsNoSubscriptionUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/supportTicketsNoSubscriptionUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { MicrosoftSupport } from "@azure/arm-support";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
17
|
+
*
|
|
18
|
+
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/UpdateAdvancedDiagnosticConsentOfSupportTicket.json
|
|
20
|
+
*/
|
|
21
|
+
function updateAdvancedDiagnosticConsentOfASupportTicket() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const supportTicketName = "testticket";
|
|
24
|
+
const updateSupportTicket = {
|
|
25
|
+
advancedDiagnosticConsent: "Yes"
|
|
26
|
+
};
|
|
27
|
+
const credential = new DefaultAzureCredential();
|
|
28
|
+
const client = new MicrosoftSupport(credential);
|
|
29
|
+
const result = yield client.supportTicketsNoSubscription.update(supportTicketName, updateSupportTicket);
|
|
30
|
+
console.log(result);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
35
|
+
*
|
|
36
|
+
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
37
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/UpdateContactDetailsOfSupportTicket.json
|
|
38
|
+
*/
|
|
39
|
+
function updateContactDetailsOfASupportTicket() {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
const supportTicketName = "testticket";
|
|
42
|
+
const updateSupportTicket = {
|
|
43
|
+
contactDetails: {
|
|
44
|
+
additionalEmailAddresses: ["tname@contoso.com", "teamtest@contoso.com"],
|
|
45
|
+
country: "USA",
|
|
46
|
+
firstName: "first name",
|
|
47
|
+
lastName: "last name",
|
|
48
|
+
phoneNumber: "123-456-7890",
|
|
49
|
+
preferredContactMethod: "email",
|
|
50
|
+
preferredSupportLanguage: "en-US",
|
|
51
|
+
preferredTimeZone: "Pacific Standard Time",
|
|
52
|
+
primaryEmailAddress: "test.name@contoso.com"
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const credential = new DefaultAzureCredential();
|
|
56
|
+
const client = new MicrosoftSupport(credential);
|
|
57
|
+
const result = yield client.supportTicketsNoSubscription.update(supportTicketName, updateSupportTicket);
|
|
58
|
+
console.log(result);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
63
|
+
*
|
|
64
|
+
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
65
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/UpdateSeverityOfSupportTicket.json
|
|
66
|
+
*/
|
|
67
|
+
function updateSeverityOfASupportTicket() {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
const supportTicketName = "testticket";
|
|
70
|
+
const updateSupportTicket = { severity: "critical" };
|
|
71
|
+
const credential = new DefaultAzureCredential();
|
|
72
|
+
const client = new MicrosoftSupport(credential);
|
|
73
|
+
const result = yield client.supportTicketsNoSubscription.update(supportTicketName, updateSupportTicket);
|
|
74
|
+
console.log(result);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
79
|
+
*
|
|
80
|
+
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
81
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/UpdateStatusOfSupportTicket.json
|
|
82
|
+
*/
|
|
83
|
+
function updateStatusOfASupportTicket() {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
const supportTicketName = "testticket";
|
|
86
|
+
const updateSupportTicket = { status: "closed" };
|
|
87
|
+
const credential = new DefaultAzureCredential();
|
|
88
|
+
const client = new MicrosoftSupport(credential);
|
|
89
|
+
const result = yield client.supportTicketsNoSubscription.update(supportTicketName, updateSupportTicket);
|
|
90
|
+
console.log(result);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function main() {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
updateAdvancedDiagnosticConsentOfASupportTicket();
|
|
96
|
+
updateContactDetailsOfASupportTicket();
|
|
97
|
+
updateSeverityOfASupportTicket();
|
|
98
|
+
updateStatusOfASupportTicket();
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
main().catch(console.error);
|
|
102
|
+
//# sourceMappingURL=supportTicketsNoSubscriptionUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportTicketsNoSubscriptionUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/supportTicketsNoSubscriptionUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAuB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,+CAA+C;;QAC5D,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,mBAAmB,GAAwB;YAC/C,yBAAyB,EAAE,KAAK;SACjC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAg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mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,mBAAmB,GAAwB,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;QACtE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAChD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,MAAM,CAC7D,iBAAiB,EACjB,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,+CAA+C,EAAE,CAAC;QAClD,oCAAoC,EAAE,CAAC;QACvC,8BAA8B,EAAE,CAAC;QACjC,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -13,10 +13,29 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
15
15
|
/**
|
|
16
|
-
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API
|
|
16
|
+
* This sample demonstrates how to This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
17
17
|
*
|
|
18
|
-
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API
|
|
19
|
-
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/
|
|
18
|
+
* @summary This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/UpdateAdvancedDiagnosticConsentOfSupportTicketForSubscription.json
|
|
20
|
+
*/
|
|
21
|
+
function updateAdvancedDiagnosticConsentOfASupportTicket() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
|
|
24
|
+
const supportTicketName = "testticket";
|
|
25
|
+
const updateSupportTicket = {
|
|
26
|
+
advancedDiagnosticConsent: "Yes"
|
|
27
|
+
};
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new MicrosoftSupport(credential, subscriptionId);
|
|
30
|
+
const result = yield client.supportTickets.update(supportTicketName, updateSupportTicket);
|
|
31
|
+
console.log(result);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* This sample demonstrates how to This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
36
|
+
*
|
|
37
|
+
* @summary This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
38
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/UpdateContactDetailsOfSupportTicketForSubscription.json
|
|
20
39
|
*/
|
|
21
40
|
function updateContactDetailsOfASupportTicket() {
|
|
22
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -42,10 +61,10 @@ function updateContactDetailsOfASupportTicket() {
|
|
|
42
61
|
});
|
|
43
62
|
}
|
|
44
63
|
/**
|
|
45
|
-
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API
|
|
64
|
+
* This sample demonstrates how to This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
46
65
|
*
|
|
47
|
-
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API
|
|
48
|
-
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/
|
|
66
|
+
* @summary This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
67
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/UpdateSeverityOfSupportTicketForSubscription.json
|
|
49
68
|
*/
|
|
50
69
|
function updateSeverityOfASupportTicket() {
|
|
51
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -59,10 +78,10 @@ function updateSeverityOfASupportTicket() {
|
|
|
59
78
|
});
|
|
60
79
|
}
|
|
61
80
|
/**
|
|
62
|
-
* This sample demonstrates how to This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API
|
|
81
|
+
* This sample demonstrates how to This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
63
82
|
*
|
|
64
|
-
* @summary This API allows you to update the severity level, ticket status, and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API
|
|
65
|
-
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/
|
|
83
|
+
* @summary This API allows you to update the severity level, ticket status, advanced diagnostic consent and your contact information in the support ticket.<br/><br/>Note: The severity levels cannot be changed if a support ticket is actively being worked upon by an Azure support engineer. In such a case, contact your support engineer to request severity update by adding a new communication using the Communications API.
|
|
84
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/UpdateStatusOfSupportTicketForSubscription.json
|
|
66
85
|
*/
|
|
67
86
|
function updateStatusOfASupportTicket() {
|
|
68
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -77,6 +96,7 @@ function updateStatusOfASupportTicket() {
|
|
|
77
96
|
}
|
|
78
97
|
function main() {
|
|
79
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
updateAdvancedDiagnosticConsentOfASupportTicket();
|
|
80
100
|
updateContactDetailsOfASupportTicket();
|
|
81
101
|
updateSeverityOfASupportTicket();
|
|
82
102
|
updateStatusOfASupportTicket();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportTicketsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/supportTicketsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAA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AAU,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,MAAM,CAC/C,iBAAiB,EACjB,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,OAAO,CAAC;QACzE,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,mBAAmB,GAAwB,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;QACtE,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,MAAM,CAC/C,iBAAiB,EACjB,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,oCAAoC,EAAE,CAAC;QACvC,8BAA8B,EAAE,CAAC;QACjC,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"supportTicketsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/supportTicketsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAuB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;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CAAoC,EAAE,CAAC;QACvC,8BAA8B,EAAE,CAAC;QACjC,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
requestPath: string;
|
|
7
|
-
requestMethod: string;
|
|
8
|
-
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
|
|
2
|
+
export declare function createLroSpec<T>(inputs: {
|
|
3
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
4
|
+
args: Record<string, unknown>;
|
|
5
|
+
spec: {
|
|
9
6
|
readonly requestBody?: unknown;
|
|
10
7
|
readonly path?: string;
|
|
11
8
|
readonly httpMethod: string;
|
|
12
|
-
} & Record<string, any
|
|
13
|
-
|
|
14
|
-
sendPollRequest(path: string): Promise<LroResponse<T>>;
|
|
15
|
-
}
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
}): LongRunningOperation<T>;
|
|
16
11
|
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
package/dist-esm/src/lroImpl.js
CHANGED
|
@@ -5,25 +5,17 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
sendPollRequest(path) {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
|
|
25
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
26
|
-
});
|
|
27
|
-
}
|
|
8
|
+
import { __rest } from "tslib";
|
|
9
|
+
export function createLroSpec(inputs) {
|
|
10
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
11
|
+
return {
|
|
12
|
+
requestMethod: spec.httpMethod,
|
|
13
|
+
requestPath: spec.path,
|
|
14
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
15
|
+
sendPollRequest: (path, options) => {
|
|
16
|
+
const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
|
|
17
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
28
20
|
}
|
|
29
21
|
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAQH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { Operations, Services, ProblemClassifications, SupportTickets, Communications } from "./operationsInterfaces";
|
|
3
|
+
import { Operations, Services, ProblemClassifications, SupportTickets, SupportTicketsNoSubscription, Communications, CommunicationsNoSubscription, SupportTicketCommunicationsNoSubscription, ChatTranscripts, SupportTicketChatTranscriptsNoSubscription, ChatTranscriptsNoSubscription, FileWorkspaces, FileWorkspacesNoSubscription, Files, FilesNoSubscription } from "./operationsInterfaces";
|
|
4
4
|
import { MicrosoftSupportOptionalParams } from "./models";
|
|
5
5
|
export declare class MicrosoftSupport extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
7
7
|
apiVersion: string;
|
|
8
|
-
subscriptionId
|
|
8
|
+
subscriptionId?: string;
|
|
9
9
|
/**
|
|
10
10
|
* Initializes a new instance of the MicrosoftSupport class.
|
|
11
11
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -13,12 +13,23 @@ export declare class MicrosoftSupport extends coreClient.ServiceClient {
|
|
|
13
13
|
* @param options The parameter options
|
|
14
14
|
*/
|
|
15
15
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftSupportOptionalParams);
|
|
16
|
+
constructor(credentials: coreAuth.TokenCredential, options?: MicrosoftSupportOptionalParams);
|
|
16
17
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
17
18
|
private addCustomApiVersionPolicy;
|
|
18
19
|
operations: Operations;
|
|
19
20
|
services: Services;
|
|
20
21
|
problemClassifications: ProblemClassifications;
|
|
21
22
|
supportTickets: SupportTickets;
|
|
23
|
+
supportTicketsNoSubscription: SupportTicketsNoSubscription;
|
|
22
24
|
communications: Communications;
|
|
25
|
+
communicationsNoSubscription: CommunicationsNoSubscription;
|
|
26
|
+
supportTicketCommunicationsNoSubscription: SupportTicketCommunicationsNoSubscription;
|
|
27
|
+
chatTranscripts: ChatTranscripts;
|
|
28
|
+
supportTicketChatTranscriptsNoSubscription: SupportTicketChatTranscriptsNoSubscription;
|
|
29
|
+
chatTranscriptsNoSubscription: ChatTranscriptsNoSubscription;
|
|
30
|
+
fileWorkspaces: FileWorkspaces;
|
|
31
|
+
fileWorkspacesNoSubscription: FileWorkspacesNoSubscription;
|
|
32
|
+
files: Files;
|
|
33
|
+
filesNoSubscription: FilesNoSubscription;
|
|
23
34
|
}
|
|
24
35
|
//# sourceMappingURL=microsoftSupport.d.ts.map
|