@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
|
@@ -8,23 +8,26 @@
|
|
|
8
8
|
import { __asyncValues, __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
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();
|
|
11
15
|
/**
|
|
12
|
-
* This sample demonstrates how to
|
|
16
|
+
* This sample demonstrates how to Lists all the Files information under a workspace for an Azure subscription.
|
|
13
17
|
*
|
|
14
|
-
* @summary
|
|
15
|
-
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/
|
|
18
|
+
* @summary Lists all the Files information under a workspace for an Azure subscription.
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListFilesForSubscriptionUnderFileWorkspace.json
|
|
16
20
|
*/
|
|
17
|
-
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function getAllOperations() {
|
|
21
|
+
function listFilesUnderAWorkspaceForASubscription() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "
|
|
24
|
+
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
|
|
25
|
+
const fileWorkspaceName = "testworkspace";
|
|
23
26
|
const credential = new DefaultAzureCredential();
|
|
24
27
|
const client = new MicrosoftSupport(credential, subscriptionId);
|
|
25
28
|
const resArray = new Array();
|
|
26
29
|
try {
|
|
27
|
-
for (var _d = true, _e = __asyncValues(client.
|
|
30
|
+
for (var _d = true, _e = __asyncValues(client.files.list(fileWorkspaceName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
28
31
|
_c = _f.value;
|
|
29
32
|
_d = false;
|
|
30
33
|
try {
|
|
@@ -46,5 +49,10 @@ function getAllOperations() {
|
|
|
46
49
|
console.log(resArray);
|
|
47
50
|
});
|
|
48
51
|
}
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
function main() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
listFilesUnderAWorkspaceForASubscription();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
main().catch(console.error);
|
|
58
|
+
//# sourceMappingURL=filesListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesListSample.js","sourceRoot":"","sources":["../../samples-dev/filesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,wCAAwC;;;QACrD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,OAAO,CAAC;QACzE,MAAM,iBAAiB,GAAG,eAAe,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAA,IAAA;gBAApC,cAAoC;gBAApC,WAAoC;;oBAAhD,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,wCAAwC,EAAE,CAAC;IAC7C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesNoSubscriptionCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/filesNoSubscriptionCreateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 Creates a new file under a workspace.
|
|
17
|
+
*
|
|
18
|
+
* @summary Creates a new file under a workspace.
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/CreateFile.json
|
|
20
|
+
*/
|
|
21
|
+
function createAFileWorkspace() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const fileWorkspaceName = "testworkspace";
|
|
24
|
+
const fileName = "test.txt";
|
|
25
|
+
const createFileParameters = {
|
|
26
|
+
chunkSize: 41423,
|
|
27
|
+
fileSize: 41423,
|
|
28
|
+
numberOfChunks: 1
|
|
29
|
+
};
|
|
30
|
+
const credential = new DefaultAzureCredential();
|
|
31
|
+
const client = new MicrosoftSupport(credential);
|
|
32
|
+
const result = yield client.filesNoSubscription.create(fileWorkspaceName, fileName, createFileParameters);
|
|
33
|
+
console.log(result);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function main() {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
createAFileWorkspace();
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
main().catch(console.error);
|
|
42
|
+
//# sourceMappingURL=filesNoSubscriptionCreateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesNoSubscriptionCreateSample.js","sourceRoot":"","sources":["../../samples-dev/filesNoSubscriptionCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAe,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,iBAAiB,GAAG,eAAe,CAAC;QAC1C,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,oBAAoB,GAAgB;YACxC,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,KAAK;YACf,cAAc,EAAE,CAAC;SAClB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAChD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,MAAM,CACpD,iBAAiB,EACjB,QAAQ,EACR,oBAAoB,CACrB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,oBAAoB,EAAE,CAAC;IACzB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesNoSubscriptionGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/filesNoSubscriptionGetSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 Returns details of a specific file in a work space.
|
|
17
|
+
*
|
|
18
|
+
* @summary Returns details of a specific file in a work space.
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/GetFileDetails.json
|
|
20
|
+
*/
|
|
21
|
+
function getDetailsOfASubscriptionFile() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const fileWorkspaceName = "testworkspace";
|
|
24
|
+
const fileName = "test.txt";
|
|
25
|
+
const credential = new DefaultAzureCredential();
|
|
26
|
+
const client = new MicrosoftSupport(credential);
|
|
27
|
+
const result = yield client.filesNoSubscription.get(fileWorkspaceName, fileName);
|
|
28
|
+
console.log(result);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function main() {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
getDetailsOfASubscriptionFile();
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
main().catch(console.error);
|
|
37
|
+
//# sourceMappingURL=filesNoSubscriptionGetSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesNoSubscriptionGetSample.js","sourceRoot":"","sources":["../../samples-dev/filesNoSubscriptionGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,MAAM,iBAAiB,GAAG,eAAe,CAAC;QAC1C,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAChD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,GAAG,CACjD,iBAAiB,EACjB,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,6BAA6B,EAAE,CAAC;IAClC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesNoSubscriptionListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/filesNoSubscriptionListSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 Files information under a workspace for an Azure subscription.
|
|
17
|
+
*
|
|
18
|
+
* @summary Lists all the Files information under a workspace for an Azure subscription.
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListFilesUnderFileWorkspace.json
|
|
20
|
+
*/
|
|
21
|
+
function listFilesUnderAWorkspace() {
|
|
22
|
+
var _a, e_1, _b, _c;
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const fileWorkspaceName = "testworkspace";
|
|
25
|
+
const credential = new DefaultAzureCredential();
|
|
26
|
+
const client = new MicrosoftSupport(credential);
|
|
27
|
+
const resArray = new Array();
|
|
28
|
+
try {
|
|
29
|
+
for (var _d = true, _e = __asyncValues(client.filesNoSubscription.list(fileWorkspaceName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
30
|
+
_c = _f.value;
|
|
31
|
+
_d = false;
|
|
32
|
+
try {
|
|
33
|
+
let item = _c;
|
|
34
|
+
resArray.push(item);
|
|
35
|
+
}
|
|
36
|
+
finally {
|
|
37
|
+
_d = true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
42
|
+
finally {
|
|
43
|
+
try {
|
|
44
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
45
|
+
}
|
|
46
|
+
finally { if (e_1) throw e_1.error; }
|
|
47
|
+
}
|
|
48
|
+
console.log(resArray);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function main() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
listFilesUnderAWorkspace();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
main().catch(console.error);
|
|
57
|
+
//# sourceMappingURL=filesNoSubscriptionListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesNoSubscriptionListSample.js","sourceRoot":"","sources":["../../samples-dev/filesNoSubscriptionListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,wBAAwB;;;QACrC,MAAM,iBAAiB,GAAG,eAAe,CAAC;QAC1C,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,mBAAmB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAA,IAAA;gBAAlD,cAAkD;gBAAlD,WAAkD;;oBAA9D,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,wBAAwB,EAAE,CAAC;IAC7B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesNoSubscriptionUploadSample.d.ts","sourceRoot":"","sources":["../../samples-dev/filesNoSubscriptionUploadSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 upload content to a file
|
|
17
|
+
*
|
|
18
|
+
* @summary This API allows you to upload content to a file
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/UploadFile.json
|
|
20
|
+
*/
|
|
21
|
+
function uploadFile() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const fileWorkspaceName = "testworkspaceName";
|
|
24
|
+
const fileName = "test.txt";
|
|
25
|
+
const uploadFile = {
|
|
26
|
+
chunkIndex: 0,
|
|
27
|
+
content: "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABd"
|
|
28
|
+
};
|
|
29
|
+
const credential = new DefaultAzureCredential();
|
|
30
|
+
const client = new MicrosoftSupport(credential);
|
|
31
|
+
const result = yield client.filesNoSubscription.upload(fileWorkspaceName, fileName, uploadFile);
|
|
32
|
+
console.log(result);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function main() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
uploadFile();
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
main().catch(console.error);
|
|
41
|
+
//# sourceMappingURL=filesNoSubscriptionUploadSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesNoSubscriptionUploadSample.js","sourceRoot":"","sources":["../../samples-dev/filesNoSubscriptionUploadSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAc,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,UAAU;;QACvB,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAe;YAC7B,UAAU,EAAE,CAAC;YACb,OAAO,EACL,yIAAyI;SAC5I,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAChD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,MAAM,CACpD,iBAAiB,EACjB,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,UAAU,EAAE,CAAC;IACf,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesUploadSample.d.ts","sourceRoot":"","sources":["../../samples-dev/filesUploadSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 upload content to a file
|
|
17
|
+
*
|
|
18
|
+
* @summary This API allows you to upload content to a file
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/UploadFileForSubscription.json
|
|
20
|
+
*/
|
|
21
|
+
function uploadFileForSubscription() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] || "subid";
|
|
24
|
+
const fileWorkspaceName = "testworkspaceName";
|
|
25
|
+
const fileName = "test.txt";
|
|
26
|
+
const uploadFile = {
|
|
27
|
+
chunkIndex: 0,
|
|
28
|
+
content: "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABd"
|
|
29
|
+
};
|
|
30
|
+
const credential = new DefaultAzureCredential();
|
|
31
|
+
const client = new MicrosoftSupport(credential, subscriptionId);
|
|
32
|
+
const result = yield client.files.upload(fileWorkspaceName, fileName, uploadFile);
|
|
33
|
+
console.log(result);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function main() {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
uploadFileForSubscription();
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
main().catch(console.error);
|
|
42
|
+
//# sourceMappingURL=filesUploadSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesUploadSample.js","sourceRoot":"","sources":["../../samples-dev/filesUploadSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAc,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,OAAO,CAAC;QACzE,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAe;YAC7B,UAAU,EAAE,CAAC;YACb,OAAO,EACL,yIAAyI;SAC5I,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,KAAK,CAAC,MAAM,CACtC,iBAAiB,EACjB,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,yBAAyB,EAAE,CAAC;IAC9B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to This lists all the available Microsoft Support REST API operations.
|
|
17
17
|
*
|
|
18
18
|
* @summary This lists all the available Microsoft Support REST API operations.
|
|
19
|
-
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListOperations.json
|
|
20
20
|
*/
|
|
21
21
|
function getAllOperations() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,16 +16,14 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get problem classification details for a specific Azure service.
|
|
17
17
|
*
|
|
18
18
|
* @summary Get problem classification details for a specific Azure service.
|
|
19
|
-
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/GetProblemClassification.json
|
|
20
20
|
*/
|
|
21
21
|
function getsDetailsOfProblemClassificationForAzureService() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] ||
|
|
24
|
-
"00000000-0000-0000-0000-000000000000";
|
|
25
23
|
const serviceName = "service_guid";
|
|
26
24
|
const problemClassificationName = "problemClassification_guid";
|
|
27
25
|
const credential = new DefaultAzureCredential();
|
|
28
|
-
const client = new MicrosoftSupport(credential
|
|
26
|
+
const client = new MicrosoftSupport(credential);
|
|
29
27
|
const result = yield client.problemClassifications.get(serviceName, problemClassificationName);
|
|
30
28
|
console.log(result);
|
|
31
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"problemClassificationsGetSample.js","sourceRoot":"","sources":["../../samples-dev/problemClassificationsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iDAAiD;;QAC9D,MAAM,
|
|
1
|
+
{"version":3,"file":"problemClassificationsGetSample.js","sourceRoot":"","sources":["../../samples-dev/problemClassificationsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iDAAiD;;QAC9D,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,yBAAyB,GAAG,4BAA4B,CAAC;QAC/D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAChD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,GAAG,CACpD,WAAW,EACX,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iDAAiD,EAAE,CAAC;IACtD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,16 +16,14 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids.
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists all the problem classifications (categories) available for a specific Azure service. Always use the service and problem classifications obtained programmatically. This practice ensures that you always have the most recent set of service and problem classification Ids.
|
|
19
|
-
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListProblemClassifications.json
|
|
20
20
|
*/
|
|
21
21
|
function getsListOfProblemClassificationsForAServiceForWhichASupportTicketCanBeCreated() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] ||
|
|
25
|
-
"00000000-0000-0000-0000-000000000000";
|
|
26
24
|
const serviceName = "service_guid";
|
|
27
25
|
const credential = new DefaultAzureCredential();
|
|
28
|
-
const client = new MicrosoftSupport(credential
|
|
26
|
+
const client = new MicrosoftSupport(credential);
|
|
29
27
|
const resArray = new Array();
|
|
30
28
|
try {
|
|
31
29
|
for (var _d = true, _e = __asyncValues(client.problemClassifications.list(serviceName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"problemClassificationsListSample.js","sourceRoot":"","sources":["../../samples-dev/problemClassificationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,6EAA6E;;;QAC1F,MAAM,
|
|
1
|
+
{"version":3,"file":"problemClassificationsListSample.js","sourceRoot":"","sources":["../../samples-dev/problemClassificationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,6EAA6E;;;QAC1F,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,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,sBAAsB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA,IAAA;gBAA/C,cAA+C;gBAA/C,WAA+C;;oBAA3D,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,6EAA6E,EAAE,CAAC;IAClF,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,15 +16,13 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets a specific Azure service for support ticket creation.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets a specific Azure service for support ticket creation.
|
|
19
|
-
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/GetService.json
|
|
20
20
|
*/
|
|
21
21
|
function getsDetailsOfTheAzureService() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] ||
|
|
24
|
-
"00000000-0000-0000-0000-000000000000";
|
|
25
23
|
const serviceName = "service_guid";
|
|
26
24
|
const credential = new DefaultAzureCredential();
|
|
27
|
-
const client = new MicrosoftSupport(credential
|
|
25
|
+
const client = new MicrosoftSupport(credential);
|
|
28
26
|
const result = yield client.services.get(serviceName);
|
|
29
27
|
console.log(result);
|
|
30
28
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servicesGetSample.js","sourceRoot":"","sources":["../../samples-dev/servicesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,
|
|
1
|
+
{"version":3,"file":"servicesGetSample.js","sourceRoot":"","sources":["../../samples-dev/servicesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAChD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACtD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,15 +16,13 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists all the Azure services available for support ticket creation. For **Technical** issues, select the Service Id that maps to the Azure service/product as displayed in the **Services** drop-down list on the Azure portal's [New support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview) page. Always use the service and its corresponding problem classification(s) obtained programmatically for support ticket creation. This practice ensures that you always have the most recent set of service and problem classification Ids.
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists all the Azure services available for support ticket creation. For **Technical** issues, select the Service Id that maps to the Azure service/product as displayed in the **Services** drop-down list on the Azure portal's [New support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview) page. Always use the service and its corresponding problem classification(s) obtained programmatically for support ticket creation. This practice ensures that you always have the most recent set of service and problem classification Ids.
|
|
19
|
-
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListServices.json
|
|
20
20
|
*/
|
|
21
21
|
function getsListOfServicesForWhichASupportTicketCanBeCreated() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const subscriptionId = process.env["SUPPORT_SUBSCRIPTION_ID"] ||
|
|
25
|
-
"00000000-0000-0000-0000-000000000000";
|
|
26
24
|
const credential = new DefaultAzureCredential();
|
|
27
|
-
const client = new MicrosoftSupport(credential
|
|
25
|
+
const client = new MicrosoftSupport(credential);
|
|
28
26
|
const resArray = new Array();
|
|
29
27
|
try {
|
|
30
28
|
for (var _d = true, _e = __asyncValues(client.services.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servicesListSample.js","sourceRoot":"","sources":["../../samples-dev/servicesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,oDAAoD;;;QACjE,MAAM,
|
|
1
|
+
{"version":3,"file":"servicesListSample.js","sourceRoot":"","sources":["../../samples-dev/servicesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,oDAAoD;;;QACjE,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,QAAQ,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAtB,cAAsB;gBAAtB,WAAsB;;oBAAlC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,oDAAoD,EAAE,CAAC;IACzD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportTicketChatTranscriptsNoSubscriptionListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/supportTicketChatTranscriptsNoSubscriptionListSample.ts"],"names":[],"mappings":""}
|
|
@@ -8,23 +8,25 @@
|
|
|
8
8
|
import { __asyncValues, __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
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();
|
|
11
15
|
/**
|
|
12
|
-
* This sample demonstrates how to Lists all
|
|
16
|
+
* This sample demonstrates how to Lists all chat transcripts for a support ticket
|
|
13
17
|
*
|
|
14
|
-
* @summary Lists all
|
|
15
|
-
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/
|
|
18
|
+
* @summary Lists all chat transcripts for a support ticket
|
|
19
|
+
* x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/examples/ListChatTranscriptsForSupportTicket.json
|
|
16
20
|
*/
|
|
17
|
-
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function listSupportTicketsForASubscription() {
|
|
21
|
+
function listCommunicationsForANoSubscriptionSupportTicket() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const
|
|
24
|
+
const supportTicketName = "testticket";
|
|
23
25
|
const credential = new DefaultAzureCredential();
|
|
24
|
-
const client = new MicrosoftSupport(credential
|
|
26
|
+
const client = new MicrosoftSupport(credential);
|
|
25
27
|
const resArray = new Array();
|
|
26
28
|
try {
|
|
27
|
-
for (var _d = true, _e = __asyncValues(client.
|
|
29
|
+
for (var _d = true, _e = __asyncValues(client.supportTicketChatTranscriptsNoSubscription.list(supportTicketName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
28
30
|
_c = _f.value;
|
|
29
31
|
_d = false;
|
|
30
32
|
try {
|
|
@@ -46,5 +48,10 @@ function listSupportTicketsForASubscription() {
|
|
|
46
48
|
console.log(resArray);
|
|
47
49
|
});
|
|
48
50
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
function main() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
listCommunicationsForANoSubscriptionSupportTicket();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
main().catch(console.error);
|
|
57
|
+
//# sourceMappingURL=supportTicketChatTranscriptsNoSubscriptionListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportTicketChatTranscriptsNoSubscriptionListSample.js","sourceRoot":"","sources":["../../samples-dev/supportTicketChatTranscriptsNoSubscriptionListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iDAAiD;;;QAC9D,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,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,0CAA0C,CAAC,IAAI,CAC3E,iBAAiB,CAClB,CAAA,IAAA;gBAFsB,cAEtB;gBAFsB,WAEtB;;oBAFU,IAAI,IAAI,KAAA,CAAA;oBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,iDAAiD,EAAE,CAAC;IACtD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportTicketCommunicationsNoSubscriptionListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/supportTicketCommunicationsNoSubscriptionListSample.ts"],"names":[],"mappings":""}
|