@azure/arm-eventgrid 14.2.0 → 15.0.0-alpha.20250730.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/README.md +5 -3
- package/dist/browser/eventGridManagementClient.d.ts +6 -4
- package/dist/browser/eventGridManagementClient.d.ts.map +1 -1
- package/dist/browser/eventGridManagementClient.js +54 -12
- package/dist/browser/eventGridManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +1000 -283
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +174 -16
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +48 -8
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +2025 -563
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +13 -6
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +116 -48
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/caCertificates.js +45 -52
- package/dist/browser/operations/caCertificates.js.map +1 -1
- package/dist/browser/operations/channels.js +34 -46
- package/dist/browser/operations/channels.js.map +1 -1
- package/dist/browser/operations/clientGroups.js +45 -52
- package/dist/browser/operations/clientGroups.js.map +1 -1
- package/dist/browser/operations/clients.js +45 -52
- package/dist/browser/operations/clients.js.map +1 -1
- package/dist/browser/operations/domainEventSubscriptions.js +56 -58
- package/dist/browser/operations/domainEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/browser/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operations/domainTopicEventSubscriptions.js +94 -96
- package/dist/browser/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/domainTopics.js +45 -52
- package/dist/browser/operations/domainTopics.js.map +1 -1
- package/dist/browser/operations/domains.js +78 -97
- package/dist/browser/operations/domains.js.map +1 -1
- package/dist/browser/operations/eventSubscriptions.d.ts +15 -15
- package/dist/browser/operations/eventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operations/eventSubscriptions.js +288 -443
- package/dist/browser/operations/eventSubscriptions.js.map +1 -1
- package/dist/browser/operations/extensionTopics.js +1 -0
- package/dist/browser/operations/extensionTopics.js.map +1 -1
- package/dist/browser/operations/index.d.ts +5 -3
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +5 -3
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operations/namespaceTopicEventSubscriptions.js +56 -58
- package/dist/browser/operations/namespaceTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/namespaceTopics.js +67 -64
- package/dist/browser/operations/namespaceTopics.js.map +1 -1
- package/dist/browser/operations/namespaces.js +100 -109
- package/dist/browser/operations/namespaces.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +244 -0
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/browser/operations/operations.js +10 -27
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/partnerConfigurations.js +65 -84
- package/dist/browser/operations/partnerConfigurations.js.map +1 -1
- package/dist/browser/operations/partnerDestinations.d.ts +114 -0
- package/dist/browser/operations/partnerDestinations.d.ts.map +1 -0
- package/dist/browser/operations/partnerDestinations.js +555 -0
- package/dist/browser/operations/partnerDestinations.js.map +1 -0
- package/dist/browser/operations/partnerNamespaces.js +78 -97
- package/dist/browser/operations/partnerNamespaces.js.map +1 -1
- package/dist/browser/operations/partnerRegistrations.js +78 -97
- package/dist/browser/operations/partnerRegistrations.js.map +1 -1
- package/dist/browser/operations/partnerTopicEventSubscriptions.js +56 -58
- package/dist/browser/operations/partnerTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/partnerTopics.js +56 -85
- package/dist/browser/operations/partnerTopics.js.map +1 -1
- package/dist/browser/operations/permissionBindings.js +45 -52
- package/dist/browser/operations/permissionBindings.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +45 -52
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +23 -40
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/browser/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operations/systemTopicEventSubscriptions.js +86 -88
- package/dist/browser/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/systemTopics.js +78 -97
- package/dist/browser/operations/systemTopics.js.map +1 -1
- package/dist/browser/operations/topicEventSubscriptions.js +56 -58
- package/dist/browser/operations/topicEventSubscriptions.js.map +1 -1
- package/dist/browser/operations/topicSpaces.js +45 -52
- package/dist/browser/operations/topicSpaces.js.map +1 -1
- package/dist/browser/operations/topicTypes.js +19 -53
- package/dist/browser/operations/topicTypes.js.map +1 -1
- package/dist/browser/operations/topics.js +98 -129
- package/dist/browser/operations/topics.js.map +1 -1
- package/dist/browser/operations/verifiedPartners.js +23 -40
- package/dist/browser/operations/verifiedPartners.js.map +1 -1
- package/dist/browser/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/browser/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/operationsInterfaces/eventSubscriptions.d.ts +15 -15
- package/dist/browser/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/eventSubscriptions.js.map +1 -1
- package/dist/browser/operationsInterfaces/index.d.ts +5 -3
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +5 -3
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/browser/operationsInterfaces/partnerDestinations.d.ts +78 -0
- package/dist/browser/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/partnerDestinations.js +9 -0
- package/dist/browser/operationsInterfaces/partnerDestinations.js.map +1 -0
- package/dist/browser/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/browser/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/eventGridManagementClient.d.ts +6 -4
- package/dist/commonjs/eventGridManagementClient.d.ts.map +1 -1
- package/dist/commonjs/eventGridManagementClient.js +53 -11
- package/dist/commonjs/eventGridManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1000 -283
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +176 -18
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +48 -8
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +2030 -568
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +13 -6
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +117 -49
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/caCertificates.js +45 -51
- package/dist/commonjs/operations/caCertificates.js.map +1 -1
- package/dist/commonjs/operations/channels.js +34 -45
- package/dist/commonjs/operations/channels.js.map +1 -1
- package/dist/commonjs/operations/clientGroups.js +45 -51
- package/dist/commonjs/operations/clientGroups.js.map +1 -1
- package/dist/commonjs/operations/clients.js +45 -51
- package/dist/commonjs/operations/clients.js.map +1 -1
- package/dist/commonjs/operations/domainEventSubscriptions.js +56 -57
- package/dist/commonjs/operations/domainEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/commonjs/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operations/domainTopicEventSubscriptions.js +94 -95
- package/dist/commonjs/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/domainTopics.js +45 -51
- package/dist/commonjs/operations/domainTopics.js.map +1 -1
- package/dist/commonjs/operations/domains.js +78 -96
- package/dist/commonjs/operations/domains.js.map +1 -1
- package/dist/commonjs/operations/eventSubscriptions.d.ts +15 -15
- package/dist/commonjs/operations/eventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operations/eventSubscriptions.js +288 -442
- package/dist/commonjs/operations/eventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/extensionTopics.js +1 -0
- package/dist/commonjs/operations/extensionTopics.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts +5 -3
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +5 -3
- package/dist/commonjs/operations/index.js.map +1 -1
- package/dist/commonjs/operations/namespaceTopicEventSubscriptions.js +56 -57
- package/dist/commonjs/operations/namespaceTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/namespaceTopics.js +67 -63
- package/dist/commonjs/operations/namespaceTopics.js.map +1 -1
- package/dist/commonjs/operations/namespaces.js +100 -108
- package/dist/commonjs/operations/namespaces.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +249 -0
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/commonjs/operations/operations.js +10 -26
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/partnerConfigurations.js +65 -83
- package/dist/commonjs/operations/partnerConfigurations.js.map +1 -1
- package/dist/commonjs/operations/partnerDestinations.d.ts +114 -0
- package/dist/commonjs/operations/partnerDestinations.d.ts.map +1 -0
- package/dist/commonjs/operations/partnerDestinations.js +560 -0
- package/dist/commonjs/operations/partnerDestinations.js.map +1 -0
- package/dist/commonjs/operations/partnerNamespaces.js +78 -96
- package/dist/commonjs/operations/partnerNamespaces.js.map +1 -1
- package/dist/commonjs/operations/partnerRegistrations.js +78 -96
- package/dist/commonjs/operations/partnerRegistrations.js.map +1 -1
- package/dist/commonjs/operations/partnerTopicEventSubscriptions.js +56 -57
- package/dist/commonjs/operations/partnerTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/partnerTopics.js +56 -84
- package/dist/commonjs/operations/partnerTopics.js.map +1 -1
- package/dist/commonjs/operations/permissionBindings.js +45 -51
- package/dist/commonjs/operations/permissionBindings.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +45 -51
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +23 -39
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/commonjs/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operations/systemTopicEventSubscriptions.js +86 -87
- package/dist/commonjs/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/systemTopics.js +78 -96
- package/dist/commonjs/operations/systemTopics.js.map +1 -1
- package/dist/commonjs/operations/topicEventSubscriptions.js +56 -57
- package/dist/commonjs/operations/topicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/topicSpaces.js +45 -51
- package/dist/commonjs/operations/topicSpaces.js.map +1 -1
- package/dist/commonjs/operations/topicTypes.js +19 -52
- package/dist/commonjs/operations/topicTypes.js.map +1 -1
- package/dist/commonjs/operations/topics.js +98 -128
- package/dist/commonjs/operations/topics.js.map +1 -1
- package/dist/commonjs/operations/verifiedPartners.js +23 -39
- package/dist/commonjs/operations/verifiedPartners.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/commonjs/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/eventSubscriptions.d.ts +15 -15
- package/dist/commonjs/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/eventSubscriptions.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +5 -3
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +5 -3
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js +10 -0
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/partnerDestinations.d.ts +78 -0
- package/dist/commonjs/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/partnerDestinations.js +10 -0
- package/dist/commonjs/operationsInterfaces/partnerDestinations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/commonjs/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/eventGridManagementClient.d.ts +6 -4
- package/dist/esm/eventGridManagementClient.d.ts.map +1 -1
- package/dist/esm/eventGridManagementClient.js +54 -12
- package/dist/esm/eventGridManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +1000 -283
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +174 -16
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +48 -8
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +2025 -563
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +13 -6
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +116 -48
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/caCertificates.js +45 -52
- package/dist/esm/operations/caCertificates.js.map +1 -1
- package/dist/esm/operations/channels.js +34 -46
- package/dist/esm/operations/channels.js.map +1 -1
- package/dist/esm/operations/clientGroups.js +45 -52
- package/dist/esm/operations/clientGroups.js.map +1 -1
- package/dist/esm/operations/clients.js +45 -52
- package/dist/esm/operations/clients.js.map +1 -1
- package/dist/esm/operations/domainEventSubscriptions.js +56 -58
- package/dist/esm/operations/domainEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/esm/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operations/domainTopicEventSubscriptions.js +94 -96
- package/dist/esm/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/domainTopics.js +45 -52
- package/dist/esm/operations/domainTopics.js.map +1 -1
- package/dist/esm/operations/domains.js +78 -97
- package/dist/esm/operations/domains.js.map +1 -1
- package/dist/esm/operations/eventSubscriptions.d.ts +15 -15
- package/dist/esm/operations/eventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operations/eventSubscriptions.js +288 -443
- package/dist/esm/operations/eventSubscriptions.js.map +1 -1
- package/dist/esm/operations/extensionTopics.js +1 -0
- package/dist/esm/operations/extensionTopics.js.map +1 -1
- package/dist/esm/operations/index.d.ts +5 -3
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +5 -3
- package/dist/esm/operations/index.js.map +1 -1
- package/dist/esm/operations/namespaceTopicEventSubscriptions.js +56 -58
- package/dist/esm/operations/namespaceTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/namespaceTopics.js +67 -64
- package/dist/esm/operations/namespaceTopics.js.map +1 -1
- package/dist/esm/operations/namespaces.js +100 -109
- package/dist/esm/operations/namespaces.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +244 -0
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/esm/operations/operations.js +10 -27
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/partnerConfigurations.js +65 -84
- package/dist/esm/operations/partnerConfigurations.js.map +1 -1
- package/dist/esm/operations/partnerDestinations.d.ts +114 -0
- package/dist/esm/operations/partnerDestinations.d.ts.map +1 -0
- package/dist/esm/operations/partnerDestinations.js +555 -0
- package/dist/esm/operations/partnerDestinations.js.map +1 -0
- package/dist/esm/operations/partnerNamespaces.js +78 -97
- package/dist/esm/operations/partnerNamespaces.js.map +1 -1
- package/dist/esm/operations/partnerRegistrations.js +78 -97
- package/dist/esm/operations/partnerRegistrations.js.map +1 -1
- package/dist/esm/operations/partnerTopicEventSubscriptions.js +56 -58
- package/dist/esm/operations/partnerTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/partnerTopics.js +56 -85
- package/dist/esm/operations/partnerTopics.js.map +1 -1
- package/dist/esm/operations/permissionBindings.js +45 -52
- package/dist/esm/operations/permissionBindings.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +45 -52
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +23 -40
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/esm/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operations/systemTopicEventSubscriptions.js +86 -88
- package/dist/esm/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/systemTopics.js +78 -97
- package/dist/esm/operations/systemTopics.js.map +1 -1
- package/dist/esm/operations/topicEventSubscriptions.js +56 -58
- package/dist/esm/operations/topicEventSubscriptions.js.map +1 -1
- package/dist/esm/operations/topicSpaces.js +45 -52
- package/dist/esm/operations/topicSpaces.js.map +1 -1
- package/dist/esm/operations/topicTypes.js +19 -53
- package/dist/esm/operations/topicTypes.js.map +1 -1
- package/dist/esm/operations/topics.js +98 -129
- package/dist/esm/operations/topics.js.map +1 -1
- package/dist/esm/operations/verifiedPartners.js +23 -40
- package/dist/esm/operations/verifiedPartners.js.map +1 -1
- package/dist/esm/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/esm/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/operationsInterfaces/eventSubscriptions.d.ts +15 -15
- package/dist/esm/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/eventSubscriptions.js.map +1 -1
- package/dist/esm/operationsInterfaces/index.d.ts +5 -3
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +5 -3
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/esm/operationsInterfaces/partnerDestinations.d.ts +78 -0
- package/dist/esm/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/partnerDestinations.js +9 -0
- package/dist/esm/operationsInterfaces/partnerDestinations.js.map +1 -0
- package/dist/esm/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/esm/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/eventGridManagementClient.d.ts +6 -4
- package/dist/react-native/eventGridManagementClient.d.ts.map +1 -1
- package/dist/react-native/eventGridManagementClient.js +54 -12
- package/dist/react-native/eventGridManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1000 -283
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +174 -16
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +48 -8
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +2025 -563
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +13 -6
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +116 -48
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/caCertificates.js +45 -52
- package/dist/react-native/operations/caCertificates.js.map +1 -1
- package/dist/react-native/operations/channels.js +34 -46
- package/dist/react-native/operations/channels.js.map +1 -1
- package/dist/react-native/operations/clientGroups.js +45 -52
- package/dist/react-native/operations/clientGroups.js.map +1 -1
- package/dist/react-native/operations/clients.js +45 -52
- package/dist/react-native/operations/clients.js.map +1 -1
- package/dist/react-native/operations/domainEventSubscriptions.js +56 -58
- package/dist/react-native/operations/domainEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/react-native/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operations/domainTopicEventSubscriptions.js +94 -96
- package/dist/react-native/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/domainTopics.js +45 -52
- package/dist/react-native/operations/domainTopics.js.map +1 -1
- package/dist/react-native/operations/domains.js +78 -97
- package/dist/react-native/operations/domains.js.map +1 -1
- package/dist/react-native/operations/eventSubscriptions.d.ts +15 -15
- package/dist/react-native/operations/eventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operations/eventSubscriptions.js +288 -443
- package/dist/react-native/operations/eventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/extensionTopics.js +1 -0
- package/dist/react-native/operations/extensionTopics.js.map +1 -1
- package/dist/react-native/operations/index.d.ts +5 -3
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +5 -3
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operations/namespaceTopicEventSubscriptions.js +56 -58
- package/dist/react-native/operations/namespaceTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/namespaceTopics.js +67 -64
- package/dist/react-native/operations/namespaceTopics.js.map +1 -1
- package/dist/react-native/operations/namespaces.js +100 -109
- package/dist/react-native/operations/namespaces.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +244 -0
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/react-native/operations/operations.js +10 -27
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/partnerConfigurations.js +65 -84
- package/dist/react-native/operations/partnerConfigurations.js.map +1 -1
- package/dist/react-native/operations/partnerDestinations.d.ts +114 -0
- package/dist/react-native/operations/partnerDestinations.d.ts.map +1 -0
- package/dist/react-native/operations/partnerDestinations.js +555 -0
- package/dist/react-native/operations/partnerDestinations.js.map +1 -0
- package/dist/react-native/operations/partnerNamespaces.js +78 -97
- package/dist/react-native/operations/partnerNamespaces.js.map +1 -1
- package/dist/react-native/operations/partnerRegistrations.js +78 -97
- package/dist/react-native/operations/partnerRegistrations.js.map +1 -1
- package/dist/react-native/operations/partnerTopicEventSubscriptions.js +56 -58
- package/dist/react-native/operations/partnerTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/partnerTopics.js +56 -85
- package/dist/react-native/operations/partnerTopics.js.map +1 -1
- package/dist/react-native/operations/permissionBindings.js +45 -52
- package/dist/react-native/operations/permissionBindings.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +45 -52
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +23 -40
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/react-native/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operations/systemTopicEventSubscriptions.js +86 -88
- package/dist/react-native/operations/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/systemTopics.js +78 -97
- package/dist/react-native/operations/systemTopics.js.map +1 -1
- package/dist/react-native/operations/topicEventSubscriptions.js +56 -58
- package/dist/react-native/operations/topicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operations/topicSpaces.js +45 -52
- package/dist/react-native/operations/topicSpaces.js.map +1 -1
- package/dist/react-native/operations/topicTypes.js +19 -53
- package/dist/react-native/operations/topicTypes.js.map +1 -1
- package/dist/react-native/operations/topics.js +98 -129
- package/dist/react-native/operations/topics.js.map +1 -1
- package/dist/react-native/operations/verifiedPartners.js +23 -40
- package/dist/react-native/operations/verifiedPartners.js.map +1 -1
- package/dist/react-native/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
- package/dist/react-native/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/operationsInterfaces/eventSubscriptions.d.ts +15 -15
- package/dist/react-native/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/eventSubscriptions.js.map +1 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +5 -3
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +5 -3
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/partnerDestinations.d.ts +78 -0
- package/dist/react-native/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/partnerDestinations.js +9 -0
- package/dist/react-native/operationsInterfaces/partnerDestinations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
- package/dist/react-native/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +33 -46
- package/CHANGELOG.md +0 -2065
- package/review/arm-eventgrid.api.md +0 -4226
|
@@ -4,25 +4,27 @@ export * from "./clientGroups.js";
|
|
|
4
4
|
export * from "./clients.js";
|
|
5
5
|
export * from "./domains.js";
|
|
6
6
|
export * from "./domainTopics.js";
|
|
7
|
+
export * from "./domainTopicEventSubscriptions.js";
|
|
7
8
|
export * from "./topicEventSubscriptions.js";
|
|
8
9
|
export * from "./domainEventSubscriptions.js";
|
|
9
|
-
export * from "./namespaceTopicEventSubscriptions.js";
|
|
10
10
|
export * from "./eventSubscriptions.js";
|
|
11
|
-
export * from "./domainTopicEventSubscriptions.js";
|
|
12
11
|
export * from "./systemTopicEventSubscriptions.js";
|
|
12
|
+
export * from "./namespaceTopicEventSubscriptions.js";
|
|
13
13
|
export * from "./partnerTopicEventSubscriptions.js";
|
|
14
14
|
export * from "./namespaces.js";
|
|
15
15
|
export * from "./namespaceTopics.js";
|
|
16
16
|
export * from "./operations.js";
|
|
17
|
-
export * from "./topics.js";
|
|
18
17
|
export * from "./partnerConfigurations.js";
|
|
18
|
+
export * from "./partnerDestinations.js";
|
|
19
19
|
export * from "./partnerNamespaces.js";
|
|
20
20
|
export * from "./partnerRegistrations.js";
|
|
21
21
|
export * from "./partnerTopics.js";
|
|
22
|
+
export * from "./networkSecurityPerimeterConfigurations.js";
|
|
22
23
|
export * from "./permissionBindings.js";
|
|
23
24
|
export * from "./privateEndpointConnections.js";
|
|
24
25
|
export * from "./privateLinkResources.js";
|
|
25
26
|
export * from "./systemTopics.js";
|
|
27
|
+
export * from "./topics.js";
|
|
26
28
|
export * from "./extensionTopics.js";
|
|
27
29
|
export * from "./topicSpaces.js";
|
|
28
30
|
export * from "./topicTypes.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
|
@@ -14,25 +14,27 @@ tslib_1.__exportStar(require("./clientGroups.js"), exports);
|
|
|
14
14
|
tslib_1.__exportStar(require("./clients.js"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./domains.js"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./domainTopics.js"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./domainTopicEventSubscriptions.js"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./topicEventSubscriptions.js"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./domainEventSubscriptions.js"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./namespaceTopicEventSubscriptions.js"), exports);
|
|
20
20
|
tslib_1.__exportStar(require("./eventSubscriptions.js"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./domainTopicEventSubscriptions.js"), exports);
|
|
22
21
|
tslib_1.__exportStar(require("./systemTopicEventSubscriptions.js"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./namespaceTopicEventSubscriptions.js"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./partnerTopicEventSubscriptions.js"), exports);
|
|
24
24
|
tslib_1.__exportStar(require("./namespaces.js"), exports);
|
|
25
25
|
tslib_1.__exportStar(require("./namespaceTopics.js"), exports);
|
|
26
26
|
tslib_1.__exportStar(require("./operations.js"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./topics.js"), exports);
|
|
28
27
|
tslib_1.__exportStar(require("./partnerConfigurations.js"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./partnerDestinations.js"), exports);
|
|
29
29
|
tslib_1.__exportStar(require("./partnerNamespaces.js"), exports);
|
|
30
30
|
tslib_1.__exportStar(require("./partnerRegistrations.js"), exports);
|
|
31
31
|
tslib_1.__exportStar(require("./partnerTopics.js"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./networkSecurityPerimeterConfigurations.js"), exports);
|
|
32
33
|
tslib_1.__exportStar(require("./permissionBindings.js"), exports);
|
|
33
34
|
tslib_1.__exportStar(require("./privateEndpointConnections.js"), exports);
|
|
34
35
|
tslib_1.__exportStar(require("./privateLinkResources.js"), exports);
|
|
35
36
|
tslib_1.__exportStar(require("./systemTopics.js"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./topics.js"), exports);
|
|
36
38
|
tslib_1.__exportStar(require("./extensionTopics.js"), exports);
|
|
37
39
|
tslib_1.__exportStar(require("./topicSpaces.js"), exports);
|
|
38
40
|
tslib_1.__exportStar(require("./topicTypes.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,8DAAoC;AACpC,wDAA8B;AAC9B,4DAAkC;AAClC,uDAA6B;AAC7B,uDAA6B;AAC7B,4DAAkC;AAClC,uEAA6C;AAC7C,wEAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,8DAAoC;AACpC,wDAA8B;AAC9B,4DAAkC;AAClC,uDAA6B;AAC7B,uDAA6B;AAC7B,4DAAkC;AAClC,6EAAmD;AACnD,uEAA6C;AAC7C,wEAA8C;AAC9C,kEAAwC;AACxC,6EAAmD;AACnD,gFAAsD;AACtD,8EAAoD;AACpD,0DAAgC;AAChC,+DAAqC;AACrC,0DAAgC;AAChC,qEAA2C;AAC3C,mEAAyC;AACzC,iEAAuC;AACvC,oEAA0C;AAC1C,6DAAmC;AACnC,sFAA4D;AAC5D,kEAAwC;AACxC,0EAAgD;AAChD,oEAA0C;AAC1C,4DAAkC;AAClC,sDAA4B;AAC5B,+DAAqC;AACrC,2DAAiC;AACjC,0DAAgC;AAChC,gEAAsC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./caCertificates.js\";\nexport * from \"./channels.js\";\nexport * from \"./clientGroups.js\";\nexport * from \"./clients.js\";\nexport * from \"./domains.js\";\nexport * from \"./domainTopics.js\";\nexport * from \"./domainTopicEventSubscriptions.js\";\nexport * from \"./topicEventSubscriptions.js\";\nexport * from \"./domainEventSubscriptions.js\";\nexport * from \"./eventSubscriptions.js\";\nexport * from \"./systemTopicEventSubscriptions.js\";\nexport * from \"./namespaceTopicEventSubscriptions.js\";\nexport * from \"./partnerTopicEventSubscriptions.js\";\nexport * from \"./namespaces.js\";\nexport * from \"./namespaceTopics.js\";\nexport * from \"./operations.js\";\nexport * from \"./partnerConfigurations.js\";\nexport * from \"./partnerDestinations.js\";\nexport * from \"./partnerNamespaces.js\";\nexport * from \"./partnerRegistrations.js\";\nexport * from \"./partnerTopics.js\";\nexport * from \"./networkSecurityPerimeterConfigurations.js\";\nexport * from \"./permissionBindings.js\";\nexport * from \"./privateEndpointConnections.js\";\nexport * from \"./privateLinkResources.js\";\nexport * from \"./systemTopics.js\";\nexport * from \"./topics.js\";\nexport * from \"./extensionTopics.js\";\nexport * from \"./topicSpaces.js\";\nexport * from \"./topicTypes.js\";\nexport * from \"./verifiedPartners.js\";\n"]}
|
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing NamespaceTopicEventSubscriptions operations. */
|
|
20
20
|
class NamespaceTopicEventSubscriptionsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class NamespaceTopicEventSubscriptions class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -42,52 +43,35 @@ class NamespaceTopicEventSubscriptionsImpl {
|
|
|
42
43
|
return this;
|
|
43
44
|
},
|
|
44
45
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
46
|
+
if (settings?.maxPageSize) {
|
|
46
47
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
48
|
}
|
|
48
49
|
return this.listByNamespaceTopicPagingPage(resourceGroupName, namespaceName, topicName, options, settings);
|
|
49
50
|
},
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
|
-
listByNamespaceTopicPagingPage(resourceGroupName, namespaceName, topicName, options, settings) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
});
|
|
53
|
+
async *listByNamespaceTopicPagingPage(resourceGroupName, namespaceName, topicName, options, settings) {
|
|
54
|
+
let result;
|
|
55
|
+
let continuationToken = settings?.continuationToken;
|
|
56
|
+
if (!continuationToken) {
|
|
57
|
+
result = await this._listByNamespaceTopic(resourceGroupName, namespaceName, topicName, options);
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listByNamespaceTopicNext(resourceGroupName, namespaceName, topicName, continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
let page = result.value || [];
|
|
67
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
68
|
+
yield page;
|
|
69
|
+
}
|
|
71
70
|
}
|
|
72
|
-
listByNamespaceTopicPagingAll(resourceGroupName, namespaceName, topicName, options) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByNamespaceTopicPagingPage(resourceGroupName, namespaceName, topicName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
77
|
-
_c = _f.value;
|
|
78
|
-
_d = false;
|
|
79
|
-
const page = _c;
|
|
80
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
-
finally {
|
|
85
|
-
try {
|
|
86
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
87
|
-
}
|
|
88
|
-
finally { if (e_1) throw e_1.error; }
|
|
89
|
-
}
|
|
90
|
-
});
|
|
71
|
+
async *listByNamespaceTopicPagingAll(resourceGroupName, namespaceName, topicName, options) {
|
|
72
|
+
for await (const page of this.listByNamespaceTopicPagingPage(resourceGroupName, namespaceName, topicName, options)) {
|
|
73
|
+
yield* page;
|
|
74
|
+
}
|
|
91
75
|
}
|
|
92
76
|
/**
|
|
93
77
|
* Get properties of an event subscription of a namespace topic.
|
|
@@ -123,14 +107,19 @@ class NamespaceTopicEventSubscriptionsImpl {
|
|
|
123
107
|
return this.client.sendOperationRequest(args, spec);
|
|
124
108
|
};
|
|
125
109
|
const sendOperationFn = async (args, spec) => {
|
|
126
|
-
var _a;
|
|
127
110
|
let currentRawResponse = undefined;
|
|
128
|
-
const providedCallback =
|
|
111
|
+
const providedCallback = args.options?.onResponse;
|
|
129
112
|
const callback = (rawResponse, flatResponse) => {
|
|
130
113
|
currentRawResponse = rawResponse;
|
|
131
|
-
providedCallback
|
|
114
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
115
|
+
};
|
|
116
|
+
const updatedArgs = {
|
|
117
|
+
...args,
|
|
118
|
+
options: {
|
|
119
|
+
...args.options,
|
|
120
|
+
onResponse: callback,
|
|
121
|
+
},
|
|
132
122
|
};
|
|
133
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
134
123
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
135
124
|
return {
|
|
136
125
|
flatResponse,
|
|
@@ -154,8 +143,8 @@ class NamespaceTopicEventSubscriptionsImpl {
|
|
|
154
143
|
spec: createOrUpdateOperationSpec,
|
|
155
144
|
});
|
|
156
145
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
157
|
-
restoreFrom: options
|
|
158
|
-
intervalInMs: options
|
|
146
|
+
restoreFrom: options?.resumeFrom,
|
|
147
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
159
148
|
resourceLocationConfig: "azure-async-operation",
|
|
160
149
|
});
|
|
161
150
|
await poller.poll();
|
|
@@ -190,14 +179,19 @@ class NamespaceTopicEventSubscriptionsImpl {
|
|
|
190
179
|
return this.client.sendOperationRequest(args, spec);
|
|
191
180
|
};
|
|
192
181
|
const sendOperationFn = async (args, spec) => {
|
|
193
|
-
var _a;
|
|
194
182
|
let currentRawResponse = undefined;
|
|
195
|
-
const providedCallback =
|
|
183
|
+
const providedCallback = args.options?.onResponse;
|
|
196
184
|
const callback = (rawResponse, flatResponse) => {
|
|
197
185
|
currentRawResponse = rawResponse;
|
|
198
|
-
providedCallback
|
|
186
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
187
|
+
};
|
|
188
|
+
const updatedArgs = {
|
|
189
|
+
...args,
|
|
190
|
+
options: {
|
|
191
|
+
...args.options,
|
|
192
|
+
onResponse: callback,
|
|
193
|
+
},
|
|
199
194
|
};
|
|
200
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
201
195
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
202
196
|
return {
|
|
203
197
|
flatResponse,
|
|
@@ -220,8 +214,8 @@ class NamespaceTopicEventSubscriptionsImpl {
|
|
|
220
214
|
spec: deleteOperationSpec,
|
|
221
215
|
});
|
|
222
216
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
223
|
-
restoreFrom: options
|
|
224
|
-
intervalInMs: options
|
|
217
|
+
restoreFrom: options?.resumeFrom,
|
|
218
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
225
219
|
resourceLocationConfig: "location",
|
|
226
220
|
});
|
|
227
221
|
await poller.poll();
|
|
@@ -253,14 +247,19 @@ class NamespaceTopicEventSubscriptionsImpl {
|
|
|
253
247
|
return this.client.sendOperationRequest(args, spec);
|
|
254
248
|
};
|
|
255
249
|
const sendOperationFn = async (args, spec) => {
|
|
256
|
-
var _a;
|
|
257
250
|
let currentRawResponse = undefined;
|
|
258
|
-
const providedCallback =
|
|
251
|
+
const providedCallback = args.options?.onResponse;
|
|
259
252
|
const callback = (rawResponse, flatResponse) => {
|
|
260
253
|
currentRawResponse = rawResponse;
|
|
261
|
-
providedCallback
|
|
254
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
255
|
+
};
|
|
256
|
+
const updatedArgs = {
|
|
257
|
+
...args,
|
|
258
|
+
options: {
|
|
259
|
+
...args.options,
|
|
260
|
+
onResponse: callback,
|
|
261
|
+
},
|
|
262
262
|
};
|
|
263
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
264
263
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
265
264
|
return {
|
|
266
265
|
flatResponse,
|
|
@@ -284,8 +283,8 @@ class NamespaceTopicEventSubscriptionsImpl {
|
|
|
284
283
|
spec: updateOperationSpec,
|
|
285
284
|
});
|
|
286
285
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
287
|
-
restoreFrom: options
|
|
288
|
-
intervalInMs: options
|
|
286
|
+
restoreFrom: options?.resumeFrom,
|
|
287
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
289
288
|
resourceLocationConfig: "azure-async-operation",
|
|
290
289
|
});
|
|
291
290
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaceTopicEventSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/namespaceTopicEventSubscriptions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAqB9C,4CAA4C;AAC5C,oEAAoE;AACpE,MAAa,oCAAoC;IAK/C;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,oBAAoB,CACzB,iBAAyB,EACzB,aAAqB,EACrB,SAAiB,EACjB,OAA4E;QAE5E,MAAM,IAAI,GAAG,IAAI,CAAC,6BAA6B,CAC7C,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,8BAA8B,CACxC,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,8BAA8B,CAC3C,iBAAyB,EACzB,aAAqB,EACrB,SAAiB,EACjB,OAA4E,EAC5E,QAAuB;;YAEvB,IAAI,MAAoE,CAAC;YACzE,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QA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AE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { NamespaceTopicEventSubscriptions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { EventGridManagementClient } from \"../eventGridManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Subscription,\n NamespaceTopicEventSubscriptionsListByNamespaceTopicNextOptionalParams,\n NamespaceTopicEventSubscriptionsListByNamespaceTopicOptionalParams,\n NamespaceTopicEventSubscriptionsListByNamespaceTopicResponse,\n NamespaceTopicEventSubscriptionsGetOptionalParams,\n NamespaceTopicEventSubscriptionsGetResponse,\n NamespaceTopicEventSubscriptionsCreateOrUpdateOptionalParams,\n NamespaceTopicEventSubscriptionsCreateOrUpdateResponse,\n NamespaceTopicEventSubscriptionsDeleteOptionalParams,\n SubscriptionUpdateParameters,\n NamespaceTopicEventSubscriptionsUpdateOptionalParams,\n NamespaceTopicEventSubscriptionsUpdateResponse,\n NamespaceTopicEventSubscriptionsGetDeliveryAttributesOptionalParams,\n NamespaceTopicEventSubscriptionsGetDeliveryAttributesResponse,\n NamespaceTopicEventSubscriptionsGetFullUrlOptionalParams,\n NamespaceTopicEventSubscriptionsGetFullUrlResponse,\n NamespaceTopicEventSubscriptionsListByNamespaceTopicNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing NamespaceTopicEventSubscriptions operations. */\nexport class NamespaceTopicEventSubscriptionsImpl\n implements NamespaceTopicEventSubscriptions\n{\n private readonly client: EventGridManagementClient;\n\n /**\n * Initialize a new instance of the class NamespaceTopicEventSubscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: EventGridManagementClient) {\n this.client = client;\n }\n\n /**\n * List event subscriptions that belong to a specific namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param options The options parameters.\n */\n public listByNamespaceTopic(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: NamespaceTopicEventSubscriptionsListByNamespaceTopicOptionalParams,\n ): PagedAsyncIterableIterator<Subscription> {\n const iter = this.listByNamespaceTopicPagingAll(\n resourceGroupName,\n namespaceName,\n topicName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByNamespaceTopicPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByNamespaceTopicPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: NamespaceTopicEventSubscriptionsListByNamespaceTopicOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Subscription[]> {\n let result: NamespaceTopicEventSubscriptionsListByNamespaceTopicResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByNamespaceTopic(\n resourceGroupName,\n namespaceName,\n topicName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByNamespaceTopicNext(\n resourceGroupName,\n namespaceName,\n topicName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByNamespaceTopicPagingAll(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: NamespaceTopicEventSubscriptionsListByNamespaceTopicOptionalParams,\n ): AsyncIterableIterator<Subscription> {\n for await (const page of this.listByNamespaceTopicPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get properties of an event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be found.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n options?: NamespaceTopicEventSubscriptionsGetOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Asynchronously creates or updates an event subscription of a namespace topic with the specified\n * parameters. Existing event subscriptions will be updated with this API.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names\n * must be between 3 and 50 characters in length and use alphanumeric letters only.\n * @param eventSubscriptionInfo Event subscription properties containing the delivery mode, filter\n * information, and others.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n eventSubscriptionInfo: Subscription,\n options?: NamespaceTopicEventSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<NamespaceTopicEventSubscriptionsCreateOrUpdateResponse>,\n NamespaceTopicEventSubscriptionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<NamespaceTopicEventSubscriptionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n eventSubscriptionInfo,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n NamespaceTopicEventSubscriptionsCreateOrUpdateResponse,\n OperationState<NamespaceTopicEventSubscriptionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously creates or updates an event subscription of a namespace topic with the specified\n * parameters. Existing event subscriptions will be updated with this API.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names\n * must be between 3 and 50 characters in length and use alphanumeric letters only.\n * @param eventSubscriptionInfo Event subscription properties containing the delivery mode, filter\n * information, and others.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n eventSubscriptionInfo: Subscription,\n options?: NamespaceTopicEventSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n eventSubscriptionInfo,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete an existing event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be deleted.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n options?: NamespaceTopicEventSubscriptionsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete an existing event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be deleted.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n options?: NamespaceTopicEventSubscriptionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an existing event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be updated.\n * @param eventSubscriptionUpdateParameters Updated event subscription information.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n eventSubscriptionUpdateParameters: SubscriptionUpdateParameters,\n options?: NamespaceTopicEventSubscriptionsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<NamespaceTopicEventSubscriptionsUpdateResponse>,\n NamespaceTopicEventSubscriptionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<NamespaceTopicEventSubscriptionsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n eventSubscriptionUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n NamespaceTopicEventSubscriptionsUpdateResponse,\n OperationState<NamespaceTopicEventSubscriptionsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an existing event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be updated.\n * @param eventSubscriptionUpdateParameters Updated event subscription information.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n eventSubscriptionUpdateParameters: SubscriptionUpdateParameters,\n options?: NamespaceTopicEventSubscriptionsUpdateOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n eventSubscriptionUpdateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * List event subscriptions that belong to a specific namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param options The options parameters.\n */\n private _listByNamespaceTopic(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: NamespaceTopicEventSubscriptionsListByNamespaceTopicOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsListByNamespaceTopicResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, options },\n listByNamespaceTopicOperationSpec,\n );\n }\n\n /**\n * Get all delivery attributes for an event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription.\n * @param options The options parameters.\n */\n getDeliveryAttributes(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n options?: NamespaceTopicEventSubscriptionsGetDeliveryAttributesOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsGetDeliveryAttributesResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n options,\n },\n getDeliveryAttributesOperationSpec,\n );\n }\n\n /**\n * Get the full endpoint URL for an event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription.\n * @param options The options parameters.\n */\n getFullUrl(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n options?: NamespaceTopicEventSubscriptionsGetFullUrlOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsGetFullUrlResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n options,\n },\n getFullUrlOperationSpec,\n );\n }\n\n /**\n * ListByNamespaceTopicNext\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param nextLink The nextLink from the previous successful call to the ListByNamespaceTopic method.\n * @param options The options parameters.\n */\n private _listByNamespaceTopicNext(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n nextLink: string,\n options?: NamespaceTopicEventSubscriptionsListByNamespaceTopicNextOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsListByNamespaceTopicNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, nextLink, options },\n listByNamespaceTopicNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Subscription,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n Parameters.eventSubscriptionName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Subscription,\n },\n 201: {\n bodyMapper: Mappers.Subscription,\n },\n 202: {\n bodyMapper: Mappers.Subscription,\n },\n 204: {\n bodyMapper: Mappers.Subscription,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.eventSubscriptionInfo1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n Parameters.eventSubscriptionName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n Parameters.eventSubscriptionName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Subscription,\n },\n 201: {\n bodyMapper: Mappers.Subscription,\n },\n 202: {\n bodyMapper: Mappers.Subscription,\n },\n 204: {\n bodyMapper: Mappers.Subscription,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.eventSubscriptionUpdateParameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n Parameters.eventSubscriptionName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByNamespaceTopicOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getDeliveryAttributesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeliveryAttributeListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n Parameters.eventSubscriptionName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getFullUrlOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFullUrl,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n Parameters.eventSubscriptionName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByNamespaceTopicNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.nextLink,\n Parameters.topicName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"namespaceTopicEventSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/namespaceTopicEventSubscriptions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAqB9C,4CAA4C;AAC5C,oEAAoE;AACpE,MAAa,oCAAoC;IAG9B,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,oBAAoB,CACzB,iBAAyB,EACzB,aAAqB,EACrB,SAAiB,EACjB,OAA4E;QAE5E,MAAM,IAAI,GAAG,IAAI,CAAC,6BAA6B,CAC7C,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,C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C;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,sBAAsB;KAClC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { NamespaceTopicEventSubscriptions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { EventGridManagementClient } from \"../eventGridManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Subscription,\n NamespaceTopicEventSubscriptionsListByNamespaceTopicNextOptionalParams,\n NamespaceTopicEventSubscriptionsListByNamespaceTopicOptionalParams,\n NamespaceTopicEventSubscriptionsListByNamespaceTopicResponse,\n NamespaceTopicEventSubscriptionsGetOptionalParams,\n NamespaceTopicEventSubscriptionsGetResponse,\n NamespaceTopicEventSubscriptionsCreateOrUpdateOptionalParams,\n NamespaceTopicEventSubscriptionsCreateOrUpdateResponse,\n NamespaceTopicEventSubscriptionsDeleteOptionalParams,\n SubscriptionUpdateParameters,\n NamespaceTopicEventSubscriptionsUpdateOptionalParams,\n NamespaceTopicEventSubscriptionsUpdateResponse,\n NamespaceTopicEventSubscriptionsGetDeliveryAttributesOptionalParams,\n NamespaceTopicEventSubscriptionsGetDeliveryAttributesResponse,\n NamespaceTopicEventSubscriptionsGetFullUrlOptionalParams,\n NamespaceTopicEventSubscriptionsGetFullUrlResponse,\n NamespaceTopicEventSubscriptionsListByNamespaceTopicNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing NamespaceTopicEventSubscriptions operations. */\nexport class NamespaceTopicEventSubscriptionsImpl\n implements NamespaceTopicEventSubscriptions\n{\n private readonly client: EventGridManagementClient;\n\n /**\n * Initialize a new instance of the class NamespaceTopicEventSubscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: EventGridManagementClient) {\n this.client = client;\n }\n\n /**\n * List event subscriptions that belong to a specific namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param options The options parameters.\n */\n public listByNamespaceTopic(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: NamespaceTopicEventSubscriptionsListByNamespaceTopicOptionalParams,\n ): PagedAsyncIterableIterator<Subscription> {\n const iter = this.listByNamespaceTopicPagingAll(\n resourceGroupName,\n namespaceName,\n topicName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByNamespaceTopicPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByNamespaceTopicPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: NamespaceTopicEventSubscriptionsListByNamespaceTopicOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Subscription[]> {\n let result: NamespaceTopicEventSubscriptionsListByNamespaceTopicResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByNamespaceTopic(\n resourceGroupName,\n namespaceName,\n topicName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByNamespaceTopicNext(\n resourceGroupName,\n namespaceName,\n topicName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByNamespaceTopicPagingAll(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: NamespaceTopicEventSubscriptionsListByNamespaceTopicOptionalParams,\n ): AsyncIterableIterator<Subscription> {\n for await (const page of this.listByNamespaceTopicPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get properties of an event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be found.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n options?: NamespaceTopicEventSubscriptionsGetOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Asynchronously creates or updates an event subscription of a namespace topic with the specified\n * parameters. Existing event subscriptions will be updated with this API.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names\n * must be between 3 and 50 characters in length and use alphanumeric letters only.\n * @param eventSubscriptionInfo Event subscription properties containing the delivery mode, filter\n * information, and others.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n eventSubscriptionInfo: Subscription,\n options?: NamespaceTopicEventSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<NamespaceTopicEventSubscriptionsCreateOrUpdateResponse>,\n NamespaceTopicEventSubscriptionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<NamespaceTopicEventSubscriptionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n eventSubscriptionInfo,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n NamespaceTopicEventSubscriptionsCreateOrUpdateResponse,\n OperationState<NamespaceTopicEventSubscriptionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously creates or updates an event subscription of a namespace topic with the specified\n * parameters. Existing event subscriptions will be updated with this API.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names\n * must be between 3 and 50 characters in length and use alphanumeric letters only.\n * @param eventSubscriptionInfo Event subscription properties containing the delivery mode, filter\n * information, and others.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n eventSubscriptionInfo: Subscription,\n options?: NamespaceTopicEventSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n eventSubscriptionInfo,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete an existing event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be deleted.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n options?: NamespaceTopicEventSubscriptionsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete an existing event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be deleted.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n options?: NamespaceTopicEventSubscriptionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an existing event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be updated.\n * @param eventSubscriptionUpdateParameters Updated event subscription information.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n eventSubscriptionUpdateParameters: SubscriptionUpdateParameters,\n options?: NamespaceTopicEventSubscriptionsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<NamespaceTopicEventSubscriptionsUpdateResponse>,\n NamespaceTopicEventSubscriptionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<NamespaceTopicEventSubscriptionsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n eventSubscriptionUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n NamespaceTopicEventSubscriptionsUpdateResponse,\n OperationState<NamespaceTopicEventSubscriptionsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an existing event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription to be updated.\n * @param eventSubscriptionUpdateParameters Updated event subscription information.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n eventSubscriptionUpdateParameters: SubscriptionUpdateParameters,\n options?: NamespaceTopicEventSubscriptionsUpdateOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n eventSubscriptionUpdateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * List event subscriptions that belong to a specific namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param options The options parameters.\n */\n private _listByNamespaceTopic(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: NamespaceTopicEventSubscriptionsListByNamespaceTopicOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsListByNamespaceTopicResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, options },\n listByNamespaceTopicOperationSpec,\n );\n }\n\n /**\n * Get all delivery attributes for an event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription.\n * @param options The options parameters.\n */\n getDeliveryAttributes(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n options?: NamespaceTopicEventSubscriptionsGetDeliveryAttributesOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsGetDeliveryAttributesResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n options,\n },\n getDeliveryAttributesOperationSpec,\n );\n }\n\n /**\n * Get the full endpoint URL for an event subscription of a namespace topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param eventSubscriptionName Name of the event subscription.\n * @param options The options parameters.\n */\n getFullUrl(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n eventSubscriptionName: string,\n options?: NamespaceTopicEventSubscriptionsGetFullUrlOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsGetFullUrlResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n eventSubscriptionName,\n options,\n },\n getFullUrlOperationSpec,\n );\n }\n\n /**\n * ListByNamespaceTopicNext\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param namespaceName Name of the namespace.\n * @param topicName Name of the namespace topic.\n * @param nextLink The nextLink from the previous successful call to the ListByNamespaceTopic method.\n * @param options The options parameters.\n */\n private _listByNamespaceTopicNext(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n nextLink: string,\n options?: NamespaceTopicEventSubscriptionsListByNamespaceTopicNextOptionalParams,\n ): Promise<NamespaceTopicEventSubscriptionsListByNamespaceTopicNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, nextLink, options },\n listByNamespaceTopicNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Subscription,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n Parameters.eventSubscriptionName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Subscription,\n },\n 201: {\n bodyMapper: Mappers.Subscription,\n },\n 202: {\n bodyMapper: Mappers.Subscription,\n },\n 204: {\n bodyMapper: Mappers.Subscription,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.eventSubscriptionInfo1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n Parameters.eventSubscriptionName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n Parameters.eventSubscriptionName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Subscription,\n },\n 201: {\n bodyMapper: Mappers.Subscription,\n },\n 202: {\n bodyMapper: Mappers.Subscription,\n },\n 204: {\n bodyMapper: Mappers.Subscription,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.eventSubscriptionUpdateParameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n Parameters.eventSubscriptionName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByNamespaceTopicOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getDeliveryAttributesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeliveryAttributeListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n Parameters.eventSubscriptionName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getFullUrlOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFullUrl,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.topicName1,\n Parameters.eventSubscriptionName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByNamespaceTopicNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.nextLink,\n Parameters.topicName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|