@azure/arm-eventgrid 14.0.0-beta.2 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -80
- package/README.md +1 -1
- package/dist/index.js +4289 -5700
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/channelsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/channelsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/channelsGetFullUrlSample.js +1 -1
- package/dist-esm/samples-dev/channelsGetSample.js +1 -1
- package/dist-esm/samples-dev/channelsListByPartnerNamespaceSample.js +1 -1
- package/dist-esm/samples-dev/channelsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/domainEventSubscriptionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/domainEventSubscriptionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/domainEventSubscriptionsGetDeliveryAttributesSample.js +1 -1
- package/dist-esm/samples-dev/domainEventSubscriptionsGetFullUrlSample.js +1 -1
- package/dist-esm/samples-dev/domainEventSubscriptionsGetSample.js +1 -1
- package/dist-esm/samples-dev/domainEventSubscriptionsListSample.js +1 -1
- package/dist-esm/samples-dev/domainEventSubscriptionsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/domainTopicEventSubscriptionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/domainTopicEventSubscriptionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/domainTopicEventSubscriptionsGetDeliveryAttributesSample.js +1 -1
- package/dist-esm/samples-dev/domainTopicEventSubscriptionsGetFullUrlSample.js +1 -1
- package/dist-esm/samples-dev/domainTopicEventSubscriptionsGetSample.js +1 -1
- package/dist-esm/samples-dev/domainTopicEventSubscriptionsListSample.js +1 -1
- package/dist-esm/samples-dev/domainTopicEventSubscriptionsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/domainTopicsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/domainTopicsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/domainTopicsGetSample.js +1 -1
- package/dist-esm/samples-dev/domainTopicsListByDomainSample.js +1 -1
- package/dist-esm/samples-dev/domainsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/domainsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/domainsGetSample.js +1 -1
- package/dist-esm/samples-dev/domainsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/domainsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/domainsListSharedAccessKeysSample.js +1 -1
- package/dist-esm/samples-dev/domainsRegenerateKeySample.js +1 -1
- package/dist-esm/samples-dev/domainsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/eventSubscriptionsCreateOrUpdateSample.js +13 -14
- package/dist-esm/samples-dev/eventSubscriptionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/eventSubscriptionsDeleteSample.js +4 -4
- package/dist-esm/samples-dev/eventSubscriptionsGetDeliveryAttributesSample.js +3 -3
- package/dist-esm/samples-dev/eventSubscriptionsGetDeliveryAttributesSample.js.map +1 -1
- package/dist-esm/samples-dev/eventSubscriptionsGetFullUrlSample.js +4 -4
- package/dist-esm/samples-dev/eventSubscriptionsGetSample.js +11 -11
- package/dist-esm/samples-dev/eventSubscriptionsListByDomainTopicSample.js +1 -1
- package/dist-esm/samples-dev/eventSubscriptionsListByResourceSample.js +1 -1
- package/dist-esm/samples-dev/eventSubscriptionsListGlobalByResourceGroupForTopicTypeSample.js +1 -1
- package/dist-esm/samples-dev/eventSubscriptionsListGlobalByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/eventSubscriptionsListGlobalBySubscriptionForTopicTypeSample.js +1 -1
- package/dist-esm/samples-dev/eventSubscriptionsListGlobalBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/eventSubscriptionsListRegionalByResourceGroupForTopicTypeSample.js +1 -1
- package/dist-esm/samples-dev/eventSubscriptionsListRegionalByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/eventSubscriptionsListRegionalBySubscriptionForTopicTypeSample.js +1 -1
- package/dist-esm/samples-dev/eventSubscriptionsListRegionalBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/eventSubscriptionsUpdateSample.js +11 -11
- package/dist-esm/samples-dev/extensionTopicsGetSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/partnerConfigurationsAuthorizePartnerSample.js +1 -1
- package/dist-esm/samples-dev/partnerConfigurationsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/partnerConfigurationsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/partnerConfigurationsGetSample.js +1 -1
- package/dist-esm/samples-dev/partnerConfigurationsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/partnerConfigurationsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/partnerConfigurationsUnauthorizePartnerSample.js +1 -1
- package/dist-esm/samples-dev/partnerConfigurationsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/partnerNamespacesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/partnerNamespacesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/partnerNamespacesGetSample.js +1 -1
- package/dist-esm/samples-dev/partnerNamespacesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/partnerNamespacesListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/partnerNamespacesListSharedAccessKeysSample.js +1 -1
- package/dist-esm/samples-dev/partnerNamespacesRegenerateKeySample.js +1 -1
- package/dist-esm/samples-dev/partnerNamespacesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/partnerRegistrationsCreateOrUpdateSample.js +1 -8
- package/dist-esm/samples-dev/partnerRegistrationsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/partnerRegistrationsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/partnerRegistrationsGetSample.js +1 -1
- package/dist-esm/samples-dev/partnerRegistrationsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/partnerRegistrationsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/partnerRegistrationsUpdateSample.js +2 -3
- package/dist-esm/samples-dev/partnerRegistrationsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/partnerTopicEventSubscriptionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicEventSubscriptionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicEventSubscriptionsGetDeliveryAttributesSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicEventSubscriptionsGetFullUrlSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicEventSubscriptionsGetSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicEventSubscriptionsListByPartnerTopicSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicEventSubscriptionsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicsActivateSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicsDeactivateSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicsGetSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/partnerTopicsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByResourceSample.js +1 -1
- package/dist-esm/samples-dev/systemTopicEventSubscriptionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/systemTopicEventSubscriptionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/systemTopicEventSubscriptionsGetDeliveryAttributesSample.js +1 -1
- package/dist-esm/samples-dev/systemTopicEventSubscriptionsGetFullUrlSample.js +1 -1
- package/dist-esm/samples-dev/systemTopicEventSubscriptionsGetSample.js +1 -1
- package/dist-esm/samples-dev/systemTopicEventSubscriptionsListBySystemTopicSample.js +1 -1
- package/dist-esm/samples-dev/systemTopicEventSubscriptionsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/systemTopicsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/systemTopicsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/systemTopicsGetSample.js +1 -1
- package/dist-esm/samples-dev/systemTopicsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/systemTopicsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/systemTopicsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/topicEventSubscriptionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/topicEventSubscriptionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/topicEventSubscriptionsGetDeliveryAttributesSample.js +1 -1
- package/dist-esm/samples-dev/topicEventSubscriptionsGetFullUrlSample.js +1 -1
- package/dist-esm/samples-dev/topicEventSubscriptionsGetSample.js +1 -1
- package/dist-esm/samples-dev/topicEventSubscriptionsListSample.js +1 -1
- package/dist-esm/samples-dev/topicEventSubscriptionsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/topicTypesGetSample.js +1 -1
- package/dist-esm/samples-dev/topicTypesListEventTypesSample.js +1 -1
- package/dist-esm/samples-dev/topicTypesListSample.js +1 -1
- package/dist-esm/samples-dev/topicsCreateOrUpdateSample.js +1 -29
- package/dist-esm/samples-dev/topicsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/topicsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/topicsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/topicsGetSample.js +1 -1
- package/dist-esm/samples-dev/topicsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/topicsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/topicsListEventTypesSample.js +1 -1
- package/dist-esm/samples-dev/topicsListSharedAccessKeysSample.js +1 -1
- package/dist-esm/samples-dev/topicsRegenerateKeySample.js +1 -1
- package/dist-esm/samples-dev/topicsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/verifiedPartnersGetSample.js +1 -1
- package/dist-esm/samples-dev/verifiedPartnersListSample.js +1 -1
- package/dist-esm/src/eventGridManagementClient.d.ts +6 -6
- package/dist-esm/src/eventGridManagementClient.d.ts.map +1 -1
- package/dist-esm/src/eventGridManagementClient.js +35 -8
- package/dist-esm/src/eventGridManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +520 -1037
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +56 -119
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +28 -53
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +626 -1270
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +6 -11
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +29 -61
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/domainEventSubscriptions.d.ts +9 -9
- package/dist-esm/src/operations/domainEventSubscriptions.d.ts.map +1 -1
- package/dist-esm/src/operations/domainEventSubscriptions.js +30 -30
- package/dist-esm/src/operations/domainEventSubscriptions.js.map +1 -1
- package/dist-esm/src/operations/domainTopicEventSubscriptions.js +12 -12
- package/dist-esm/src/operations/domainTopicEventSubscriptions.js.map +1 -1
- package/dist-esm/src/operations/eventSubscriptions.js +12 -12
- package/dist-esm/src/operations/eventSubscriptions.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +3 -5
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/partnerNamespaces.js +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +7 -7
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/topicEventSubscriptions.d.ts +9 -9
- package/dist-esm/src/operations/topicEventSubscriptions.d.ts.map +1 -1
- package/dist-esm/src/operations/topicEventSubscriptions.js +40 -40
- package/dist-esm/src/operations/topicEventSubscriptions.js.map +1 -1
- package/dist-esm/src/operations/topics.js +1 -1
- package/dist-esm/src/operationsInterfaces/domainEventSubscriptions.d.ts +9 -9
- package/dist-esm/src/operationsInterfaces/domainEventSubscriptions.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -5
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +3 -5
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +7 -7
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/topicEventSubscriptions.d.ts +9 -9
- package/dist-esm/src/operationsInterfaces/topicEventSubscriptions.d.ts.map +1 -1
- package/dist-esm/test/eventgrid_examples.d.ts.map +1 -1
- package/dist-esm/test/eventgrid_examples.js +18 -20
- package/dist-esm/test/eventgrid_examples.js.map +1 -1
- package/package.json +9 -5
- package/review/arm-eventgrid.api.md +44 -457
- package/src/eventGridManagementClient.ts +48 -22
- package/src/models/index.ts +582 -1175
- package/src/models/mappers.ts +663 -1384
- package/src/models/parameters.ts +36 -76
- package/src/operations/domainEventSubscriptions.ts +42 -42
- package/src/operations/domainTopicEventSubscriptions.ts +12 -12
- package/src/operations/eventSubscriptions.ts +12 -12
- package/src/operations/index.ts +3 -5
- package/src/operations/partnerNamespaces.ts +1 -1
- package/src/operations/privateEndpointConnections.ts +11 -11
- package/src/operations/topicEventSubscriptions.ts +52 -52
- package/src/operations/topics.ts +1 -1
- package/src/operationsInterfaces/domainEventSubscriptions.ts +16 -16
- package/src/operationsInterfaces/index.ts +3 -5
- package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
- package/src/operationsInterfaces/topicEventSubscriptions.ts +16 -16
- package/types/arm-eventgrid.d.ts +95 -780
- package/dist-esm/samples-dev/eventChannelsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/eventChannelsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/eventChannelsCreateOrUpdateSample.js +0 -40
- package/dist-esm/samples-dev/eventChannelsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/eventChannelsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/eventChannelsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/eventChannelsDeleteSample.js +0 -32
- package/dist-esm/samples-dev/eventChannelsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/eventChannelsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/eventChannelsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/eventChannelsGetSample.js +0 -32
- package/dist-esm/samples-dev/eventChannelsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/eventChannelsListByPartnerNamespaceSample.d.ts +0 -2
- package/dist-esm/samples-dev/eventChannelsListByPartnerNamespaceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/eventChannelsListByPartnerNamespaceSample.js +0 -45
- package/dist-esm/samples-dev/eventChannelsListByPartnerNamespaceSample.js.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsActivateSample.d.ts +0 -2
- package/dist-esm/samples-dev/partnerDestinationsActivateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsActivateSample.js +0 -31
- package/dist-esm/samples-dev/partnerDestinationsActivateSample.js.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/partnerDestinationsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsCreateOrUpdateSample.js +0 -39
- package/dist-esm/samples-dev/partnerDestinationsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/partnerDestinationsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsDeleteSample.js +0 -31
- package/dist-esm/samples-dev/partnerDestinationsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/partnerDestinationsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsGetSample.js +0 -31
- package/dist-esm/samples-dev/partnerDestinationsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/partnerDestinationsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsListByResourceGroupSample.js +0 -44
- package/dist-esm/samples-dev/partnerDestinationsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/partnerDestinationsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsListBySubscriptionSample.js +0 -43
- package/dist-esm/samples-dev/partnerDestinationsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/partnerDestinationsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/partnerDestinationsUpdateSample.js +0 -34
- package/dist-esm/samples-dev/partnerDestinationsUpdateSample.js.map +0 -1
- package/dist-esm/src/operations/eventChannels.d.ts +0 -72
- package/dist-esm/src/operations/eventChannels.d.ts.map +0 -1
- package/dist-esm/src/operations/eventChannels.js +0 -271
- package/dist-esm/src/operations/eventChannels.js.map +0 -1
- package/dist-esm/src/operations/partnerDestinations.d.ts +0 -98
- package/dist-esm/src/operations/partnerDestinations.d.ts.map +0 -1
- package/dist-esm/src/operations/partnerDestinations.js +0 -421
- package/dist-esm/src/operations/partnerDestinations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/eventChannels.d.ts +0 -47
- package/dist-esm/src/operationsInterfaces/eventChannels.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/eventChannels.js +0 -9
- package/dist-esm/src/operationsInterfaces/eventChannels.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/partnerDestinations.d.ts +0 -62
- package/dist-esm/src/operationsInterfaces/partnerDestinations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/partnerDestinations.js +0 -9
- package/dist-esm/src/operationsInterfaces/partnerDestinations.js.map +0 -1
- package/src/operations/eventChannels.ts +0 -384
- package/src/operations/partnerDestinations.ts +0 -546
- package/src/operationsInterfaces/eventChannels.ts +0 -89
- package/src/operationsInterfaces/partnerDestinations.ts +0 -116
|
@@ -1,546 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import { PartnerDestinations } from "../operationsInterfaces";
|
|
11
|
-
import * as coreClient from "@azure/core-client";
|
|
12
|
-
import * as Mappers from "../models/mappers";
|
|
13
|
-
import * as Parameters from "../models/parameters";
|
|
14
|
-
import { EventGridManagementClient } from "../eventGridManagementClient";
|
|
15
|
-
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
-
import { LroImpl } from "../lroImpl";
|
|
17
|
-
import {
|
|
18
|
-
PartnerDestination,
|
|
19
|
-
PartnerDestinationsListBySubscriptionNextOptionalParams,
|
|
20
|
-
PartnerDestinationsListBySubscriptionOptionalParams,
|
|
21
|
-
PartnerDestinationsListByResourceGroupNextOptionalParams,
|
|
22
|
-
PartnerDestinationsListByResourceGroupOptionalParams,
|
|
23
|
-
PartnerDestinationsGetOptionalParams,
|
|
24
|
-
PartnerDestinationsGetResponse,
|
|
25
|
-
PartnerDestinationsCreateOrUpdateOptionalParams,
|
|
26
|
-
PartnerDestinationsCreateOrUpdateResponse,
|
|
27
|
-
PartnerDestinationsDeleteOptionalParams,
|
|
28
|
-
PartnerDestinationUpdateParameters,
|
|
29
|
-
PartnerDestinationsUpdateOptionalParams,
|
|
30
|
-
PartnerDestinationsUpdateResponse,
|
|
31
|
-
PartnerDestinationsListBySubscriptionResponse,
|
|
32
|
-
PartnerDestinationsListByResourceGroupResponse,
|
|
33
|
-
PartnerDestinationsActivateOptionalParams,
|
|
34
|
-
PartnerDestinationsActivateResponse,
|
|
35
|
-
PartnerDestinationsListBySubscriptionNextResponse,
|
|
36
|
-
PartnerDestinationsListByResourceGroupNextResponse
|
|
37
|
-
} from "../models";
|
|
38
|
-
|
|
39
|
-
/// <reference lib="esnext.asynciterable" />
|
|
40
|
-
/** Class containing PartnerDestinations operations. */
|
|
41
|
-
export class PartnerDestinationsImpl implements PartnerDestinations {
|
|
42
|
-
private readonly client: EventGridManagementClient;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Initialize a new instance of the class PartnerDestinations class.
|
|
46
|
-
* @param client Reference to the service client
|
|
47
|
-
*/
|
|
48
|
-
constructor(client: EventGridManagementClient) {
|
|
49
|
-
this.client = client;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* List all the partner destinations under an Azure subscription.
|
|
54
|
-
* @param options The options parameters.
|
|
55
|
-
*/
|
|
56
|
-
public listBySubscription(
|
|
57
|
-
options?: PartnerDestinationsListBySubscriptionOptionalParams
|
|
58
|
-
): PagedAsyncIterableIterator<PartnerDestination> {
|
|
59
|
-
const iter = this.listBySubscriptionPagingAll(options);
|
|
60
|
-
return {
|
|
61
|
-
next() {
|
|
62
|
-
return iter.next();
|
|
63
|
-
},
|
|
64
|
-
[Symbol.asyncIterator]() {
|
|
65
|
-
return this;
|
|
66
|
-
},
|
|
67
|
-
byPage: () => {
|
|
68
|
-
return this.listBySubscriptionPagingPage(options);
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
private async *listBySubscriptionPagingPage(
|
|
74
|
-
options?: PartnerDestinationsListBySubscriptionOptionalParams
|
|
75
|
-
): AsyncIterableIterator<PartnerDestination[]> {
|
|
76
|
-
let result = await this._listBySubscription(options);
|
|
77
|
-
yield result.value || [];
|
|
78
|
-
let continuationToken = result.nextLink;
|
|
79
|
-
while (continuationToken) {
|
|
80
|
-
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
81
|
-
continuationToken = result.nextLink;
|
|
82
|
-
yield result.value || [];
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private async *listBySubscriptionPagingAll(
|
|
87
|
-
options?: PartnerDestinationsListBySubscriptionOptionalParams
|
|
88
|
-
): AsyncIterableIterator<PartnerDestination> {
|
|
89
|
-
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
90
|
-
yield* page;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* List all the partner destinations under a resource group.
|
|
96
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
97
|
-
* @param options The options parameters.
|
|
98
|
-
*/
|
|
99
|
-
public listByResourceGroup(
|
|
100
|
-
resourceGroupName: string,
|
|
101
|
-
options?: PartnerDestinationsListByResourceGroupOptionalParams
|
|
102
|
-
): PagedAsyncIterableIterator<PartnerDestination> {
|
|
103
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
104
|
-
return {
|
|
105
|
-
next() {
|
|
106
|
-
return iter.next();
|
|
107
|
-
},
|
|
108
|
-
[Symbol.asyncIterator]() {
|
|
109
|
-
return this;
|
|
110
|
-
},
|
|
111
|
-
byPage: () => {
|
|
112
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
private async *listByResourceGroupPagingPage(
|
|
118
|
-
resourceGroupName: string,
|
|
119
|
-
options?: PartnerDestinationsListByResourceGroupOptionalParams
|
|
120
|
-
): AsyncIterableIterator<PartnerDestination[]> {
|
|
121
|
-
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
122
|
-
yield result.value || [];
|
|
123
|
-
let continuationToken = result.nextLink;
|
|
124
|
-
while (continuationToken) {
|
|
125
|
-
result = await this._listByResourceGroupNext(
|
|
126
|
-
resourceGroupName,
|
|
127
|
-
continuationToken,
|
|
128
|
-
options
|
|
129
|
-
);
|
|
130
|
-
continuationToken = result.nextLink;
|
|
131
|
-
yield result.value || [];
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
private async *listByResourceGroupPagingAll(
|
|
136
|
-
resourceGroupName: string,
|
|
137
|
-
options?: PartnerDestinationsListByResourceGroupOptionalParams
|
|
138
|
-
): AsyncIterableIterator<PartnerDestination> {
|
|
139
|
-
for await (const page of this.listByResourceGroupPagingPage(
|
|
140
|
-
resourceGroupName,
|
|
141
|
-
options
|
|
142
|
-
)) {
|
|
143
|
-
yield* page;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Get properties of a partner destination.
|
|
149
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
150
|
-
* @param partnerDestinationName Name of the partner destination.
|
|
151
|
-
* @param options The options parameters.
|
|
152
|
-
*/
|
|
153
|
-
get(
|
|
154
|
-
resourceGroupName: string,
|
|
155
|
-
partnerDestinationName: string,
|
|
156
|
-
options?: PartnerDestinationsGetOptionalParams
|
|
157
|
-
): Promise<PartnerDestinationsGetResponse> {
|
|
158
|
-
return this.client.sendOperationRequest(
|
|
159
|
-
{ resourceGroupName, partnerDestinationName, options },
|
|
160
|
-
getOperationSpec
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Asynchronously creates a new partner destination with the specified parameters.
|
|
166
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
167
|
-
* @param partnerDestinationName Name of the partner destination.
|
|
168
|
-
* @param partnerDestination Partner destination create information.
|
|
169
|
-
* @param options The options parameters.
|
|
170
|
-
*/
|
|
171
|
-
createOrUpdate(
|
|
172
|
-
resourceGroupName: string,
|
|
173
|
-
partnerDestinationName: string,
|
|
174
|
-
partnerDestination: PartnerDestination,
|
|
175
|
-
options?: PartnerDestinationsCreateOrUpdateOptionalParams
|
|
176
|
-
): Promise<PartnerDestinationsCreateOrUpdateResponse> {
|
|
177
|
-
return this.client.sendOperationRequest(
|
|
178
|
-
{
|
|
179
|
-
resourceGroupName,
|
|
180
|
-
partnerDestinationName,
|
|
181
|
-
partnerDestination,
|
|
182
|
-
options
|
|
183
|
-
},
|
|
184
|
-
createOrUpdateOperationSpec
|
|
185
|
-
);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Delete existing partner destination.
|
|
190
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
191
|
-
* @param partnerDestinationName Name of the partner destination.
|
|
192
|
-
* @param options The options parameters.
|
|
193
|
-
*/
|
|
194
|
-
async beginDelete(
|
|
195
|
-
resourceGroupName: string,
|
|
196
|
-
partnerDestinationName: string,
|
|
197
|
-
options?: PartnerDestinationsDeleteOptionalParams
|
|
198
|
-
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
199
|
-
const directSendOperation = async (
|
|
200
|
-
args: coreClient.OperationArguments,
|
|
201
|
-
spec: coreClient.OperationSpec
|
|
202
|
-
): Promise<void> => {
|
|
203
|
-
return this.client.sendOperationRequest(args, spec);
|
|
204
|
-
};
|
|
205
|
-
const sendOperation = async (
|
|
206
|
-
args: coreClient.OperationArguments,
|
|
207
|
-
spec: coreClient.OperationSpec
|
|
208
|
-
) => {
|
|
209
|
-
let currentRawResponse:
|
|
210
|
-
| coreClient.FullOperationResponse
|
|
211
|
-
| undefined = undefined;
|
|
212
|
-
const providedCallback = args.options?.onResponse;
|
|
213
|
-
const callback: coreClient.RawResponseCallback = (
|
|
214
|
-
rawResponse: coreClient.FullOperationResponse,
|
|
215
|
-
flatResponse: unknown
|
|
216
|
-
) => {
|
|
217
|
-
currentRawResponse = rawResponse;
|
|
218
|
-
providedCallback?.(rawResponse, flatResponse);
|
|
219
|
-
};
|
|
220
|
-
const updatedArgs = {
|
|
221
|
-
...args,
|
|
222
|
-
options: {
|
|
223
|
-
...args.options,
|
|
224
|
-
onResponse: callback
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
228
|
-
return {
|
|
229
|
-
flatResponse,
|
|
230
|
-
rawResponse: {
|
|
231
|
-
statusCode: currentRawResponse!.status,
|
|
232
|
-
body: currentRawResponse!.parsedBody,
|
|
233
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
const lro = new LroImpl(
|
|
239
|
-
sendOperation,
|
|
240
|
-
{ resourceGroupName, partnerDestinationName, options },
|
|
241
|
-
deleteOperationSpec
|
|
242
|
-
);
|
|
243
|
-
const poller = new LroEngine(lro, {
|
|
244
|
-
resumeFrom: options?.resumeFrom,
|
|
245
|
-
intervalInMs: options?.updateIntervalInMs
|
|
246
|
-
});
|
|
247
|
-
await poller.poll();
|
|
248
|
-
return poller;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* Delete existing partner destination.
|
|
253
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
254
|
-
* @param partnerDestinationName Name of the partner destination.
|
|
255
|
-
* @param options The options parameters.
|
|
256
|
-
*/
|
|
257
|
-
async beginDeleteAndWait(
|
|
258
|
-
resourceGroupName: string,
|
|
259
|
-
partnerDestinationName: string,
|
|
260
|
-
options?: PartnerDestinationsDeleteOptionalParams
|
|
261
|
-
): Promise<void> {
|
|
262
|
-
const poller = await this.beginDelete(
|
|
263
|
-
resourceGroupName,
|
|
264
|
-
partnerDestinationName,
|
|
265
|
-
options
|
|
266
|
-
);
|
|
267
|
-
return poller.pollUntilDone();
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Asynchronously updates a partner destination with the specified parameters.
|
|
272
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
273
|
-
* @param partnerDestinationName Name of the partner destination.
|
|
274
|
-
* @param partnerDestinationUpdateParameters Partner destination update information.
|
|
275
|
-
* @param options The options parameters.
|
|
276
|
-
*/
|
|
277
|
-
update(
|
|
278
|
-
resourceGroupName: string,
|
|
279
|
-
partnerDestinationName: string,
|
|
280
|
-
partnerDestinationUpdateParameters: PartnerDestinationUpdateParameters,
|
|
281
|
-
options?: PartnerDestinationsUpdateOptionalParams
|
|
282
|
-
): Promise<PartnerDestinationsUpdateResponse> {
|
|
283
|
-
return this.client.sendOperationRequest(
|
|
284
|
-
{
|
|
285
|
-
resourceGroupName,
|
|
286
|
-
partnerDestinationName,
|
|
287
|
-
partnerDestinationUpdateParameters,
|
|
288
|
-
options
|
|
289
|
-
},
|
|
290
|
-
updateOperationSpec
|
|
291
|
-
);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* List all the partner destinations under an Azure subscription.
|
|
296
|
-
* @param options The options parameters.
|
|
297
|
-
*/
|
|
298
|
-
private _listBySubscription(
|
|
299
|
-
options?: PartnerDestinationsListBySubscriptionOptionalParams
|
|
300
|
-
): Promise<PartnerDestinationsListBySubscriptionResponse> {
|
|
301
|
-
return this.client.sendOperationRequest(
|
|
302
|
-
{ options },
|
|
303
|
-
listBySubscriptionOperationSpec
|
|
304
|
-
);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* List all the partner destinations under a resource group.
|
|
309
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
310
|
-
* @param options The options parameters.
|
|
311
|
-
*/
|
|
312
|
-
private _listByResourceGroup(
|
|
313
|
-
resourceGroupName: string,
|
|
314
|
-
options?: PartnerDestinationsListByResourceGroupOptionalParams
|
|
315
|
-
): Promise<PartnerDestinationsListByResourceGroupResponse> {
|
|
316
|
-
return this.client.sendOperationRequest(
|
|
317
|
-
{ resourceGroupName, options },
|
|
318
|
-
listByResourceGroupOperationSpec
|
|
319
|
-
);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Activate a newly created partner destination.
|
|
324
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
325
|
-
* @param partnerDestinationName Name of the partner destination.
|
|
326
|
-
* @param options The options parameters.
|
|
327
|
-
*/
|
|
328
|
-
activate(
|
|
329
|
-
resourceGroupName: string,
|
|
330
|
-
partnerDestinationName: string,
|
|
331
|
-
options?: PartnerDestinationsActivateOptionalParams
|
|
332
|
-
): Promise<PartnerDestinationsActivateResponse> {
|
|
333
|
-
return this.client.sendOperationRequest(
|
|
334
|
-
{ resourceGroupName, partnerDestinationName, options },
|
|
335
|
-
activateOperationSpec
|
|
336
|
-
);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* ListBySubscriptionNext
|
|
341
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
342
|
-
* @param options The options parameters.
|
|
343
|
-
*/
|
|
344
|
-
private _listBySubscriptionNext(
|
|
345
|
-
nextLink: string,
|
|
346
|
-
options?: PartnerDestinationsListBySubscriptionNextOptionalParams
|
|
347
|
-
): Promise<PartnerDestinationsListBySubscriptionNextResponse> {
|
|
348
|
-
return this.client.sendOperationRequest(
|
|
349
|
-
{ nextLink, options },
|
|
350
|
-
listBySubscriptionNextOperationSpec
|
|
351
|
-
);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* ListByResourceGroupNext
|
|
356
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
357
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
358
|
-
* @param options The options parameters.
|
|
359
|
-
*/
|
|
360
|
-
private _listByResourceGroupNext(
|
|
361
|
-
resourceGroupName: string,
|
|
362
|
-
nextLink: string,
|
|
363
|
-
options?: PartnerDestinationsListByResourceGroupNextOptionalParams
|
|
364
|
-
): Promise<PartnerDestinationsListByResourceGroupNextResponse> {
|
|
365
|
-
return this.client.sendOperationRequest(
|
|
366
|
-
{ resourceGroupName, nextLink, options },
|
|
367
|
-
listByResourceGroupNextOperationSpec
|
|
368
|
-
);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
// Operation Specifications
|
|
372
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
373
|
-
|
|
374
|
-
const getOperationSpec: coreClient.OperationSpec = {
|
|
375
|
-
path:
|
|
376
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}",
|
|
377
|
-
httpMethod: "GET",
|
|
378
|
-
responses: {
|
|
379
|
-
200: {
|
|
380
|
-
bodyMapper: Mappers.PartnerDestination
|
|
381
|
-
},
|
|
382
|
-
default: {}
|
|
383
|
-
},
|
|
384
|
-
queryParameters: [Parameters.apiVersion],
|
|
385
|
-
urlParameters: [
|
|
386
|
-
Parameters.$host,
|
|
387
|
-
Parameters.subscriptionId,
|
|
388
|
-
Parameters.resourceGroupName,
|
|
389
|
-
Parameters.partnerDestinationName
|
|
390
|
-
],
|
|
391
|
-
headerParameters: [Parameters.accept],
|
|
392
|
-
serializer
|
|
393
|
-
};
|
|
394
|
-
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
395
|
-
path:
|
|
396
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}",
|
|
397
|
-
httpMethod: "PUT",
|
|
398
|
-
responses: {
|
|
399
|
-
200: {
|
|
400
|
-
bodyMapper: Mappers.PartnerDestination
|
|
401
|
-
},
|
|
402
|
-
201: {
|
|
403
|
-
bodyMapper: Mappers.PartnerDestination
|
|
404
|
-
},
|
|
405
|
-
default: {}
|
|
406
|
-
},
|
|
407
|
-
requestBody: Parameters.partnerDestination,
|
|
408
|
-
queryParameters: [Parameters.apiVersion],
|
|
409
|
-
urlParameters: [
|
|
410
|
-
Parameters.$host,
|
|
411
|
-
Parameters.subscriptionId,
|
|
412
|
-
Parameters.resourceGroupName,
|
|
413
|
-
Parameters.partnerDestinationName
|
|
414
|
-
],
|
|
415
|
-
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
416
|
-
mediaType: "json",
|
|
417
|
-
serializer
|
|
418
|
-
};
|
|
419
|
-
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
420
|
-
path:
|
|
421
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}",
|
|
422
|
-
httpMethod: "DELETE",
|
|
423
|
-
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
424
|
-
queryParameters: [Parameters.apiVersion],
|
|
425
|
-
urlParameters: [
|
|
426
|
-
Parameters.$host,
|
|
427
|
-
Parameters.subscriptionId,
|
|
428
|
-
Parameters.resourceGroupName,
|
|
429
|
-
Parameters.partnerDestinationName
|
|
430
|
-
],
|
|
431
|
-
serializer
|
|
432
|
-
};
|
|
433
|
-
const updateOperationSpec: coreClient.OperationSpec = {
|
|
434
|
-
path:
|
|
435
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}",
|
|
436
|
-
httpMethod: "PATCH",
|
|
437
|
-
responses: {
|
|
438
|
-
200: {},
|
|
439
|
-
201: {
|
|
440
|
-
bodyMapper: Mappers.PartnerDestination
|
|
441
|
-
},
|
|
442
|
-
default: {}
|
|
443
|
-
},
|
|
444
|
-
requestBody: Parameters.partnerDestinationUpdateParameters,
|
|
445
|
-
queryParameters: [Parameters.apiVersion],
|
|
446
|
-
urlParameters: [
|
|
447
|
-
Parameters.$host,
|
|
448
|
-
Parameters.subscriptionId,
|
|
449
|
-
Parameters.resourceGroupName,
|
|
450
|
-
Parameters.partnerDestinationName
|
|
451
|
-
],
|
|
452
|
-
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
453
|
-
mediaType: "json",
|
|
454
|
-
serializer
|
|
455
|
-
};
|
|
456
|
-
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
457
|
-
path:
|
|
458
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/partnerDestinations",
|
|
459
|
-
httpMethod: "GET",
|
|
460
|
-
responses: {
|
|
461
|
-
200: {
|
|
462
|
-
bodyMapper: Mappers.PartnerDestinationsListResult
|
|
463
|
-
},
|
|
464
|
-
default: {}
|
|
465
|
-
},
|
|
466
|
-
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
467
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
468
|
-
headerParameters: [Parameters.accept],
|
|
469
|
-
serializer
|
|
470
|
-
};
|
|
471
|
-
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
472
|
-
path:
|
|
473
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations",
|
|
474
|
-
httpMethod: "GET",
|
|
475
|
-
responses: {
|
|
476
|
-
200: {
|
|
477
|
-
bodyMapper: Mappers.PartnerDestinationsListResult
|
|
478
|
-
},
|
|
479
|
-
default: {}
|
|
480
|
-
},
|
|
481
|
-
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
482
|
-
urlParameters: [
|
|
483
|
-
Parameters.$host,
|
|
484
|
-
Parameters.subscriptionId,
|
|
485
|
-
Parameters.resourceGroupName
|
|
486
|
-
],
|
|
487
|
-
headerParameters: [Parameters.accept],
|
|
488
|
-
serializer
|
|
489
|
-
};
|
|
490
|
-
const activateOperationSpec: coreClient.OperationSpec = {
|
|
491
|
-
path:
|
|
492
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}/activate",
|
|
493
|
-
httpMethod: "POST",
|
|
494
|
-
responses: {
|
|
495
|
-
200: {
|
|
496
|
-
bodyMapper: Mappers.PartnerDestination
|
|
497
|
-
},
|
|
498
|
-
default: {}
|
|
499
|
-
},
|
|
500
|
-
queryParameters: [Parameters.apiVersion],
|
|
501
|
-
urlParameters: [
|
|
502
|
-
Parameters.$host,
|
|
503
|
-
Parameters.subscriptionId,
|
|
504
|
-
Parameters.resourceGroupName,
|
|
505
|
-
Parameters.partnerDestinationName
|
|
506
|
-
],
|
|
507
|
-
headerParameters: [Parameters.accept],
|
|
508
|
-
serializer
|
|
509
|
-
};
|
|
510
|
-
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
511
|
-
path: "{nextLink}",
|
|
512
|
-
httpMethod: "GET",
|
|
513
|
-
responses: {
|
|
514
|
-
200: {
|
|
515
|
-
bodyMapper: Mappers.PartnerDestinationsListResult
|
|
516
|
-
},
|
|
517
|
-
default: {}
|
|
518
|
-
},
|
|
519
|
-
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
520
|
-
urlParameters: [
|
|
521
|
-
Parameters.$host,
|
|
522
|
-
Parameters.subscriptionId,
|
|
523
|
-
Parameters.nextLink
|
|
524
|
-
],
|
|
525
|
-
headerParameters: [Parameters.accept],
|
|
526
|
-
serializer
|
|
527
|
-
};
|
|
528
|
-
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
529
|
-
path: "{nextLink}",
|
|
530
|
-
httpMethod: "GET",
|
|
531
|
-
responses: {
|
|
532
|
-
200: {
|
|
533
|
-
bodyMapper: Mappers.PartnerDestinationsListResult
|
|
534
|
-
},
|
|
535
|
-
default: {}
|
|
536
|
-
},
|
|
537
|
-
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
538
|
-
urlParameters: [
|
|
539
|
-
Parameters.$host,
|
|
540
|
-
Parameters.subscriptionId,
|
|
541
|
-
Parameters.resourceGroupName,
|
|
542
|
-
Parameters.nextLink
|
|
543
|
-
],
|
|
544
|
-
headerParameters: [Parameters.accept],
|
|
545
|
-
serializer
|
|
546
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
-
import {
|
|
12
|
-
EventChannel,
|
|
13
|
-
EventChannelsListByPartnerNamespaceOptionalParams,
|
|
14
|
-
EventChannelsGetOptionalParams,
|
|
15
|
-
EventChannelsGetResponse,
|
|
16
|
-
EventChannelsCreateOrUpdateOptionalParams,
|
|
17
|
-
EventChannelsCreateOrUpdateResponse,
|
|
18
|
-
EventChannelsDeleteOptionalParams
|
|
19
|
-
} from "../models";
|
|
20
|
-
|
|
21
|
-
/// <reference lib="esnext.asynciterable" />
|
|
22
|
-
/** Interface representing a EventChannels. */
|
|
23
|
-
export interface EventChannels {
|
|
24
|
-
/**
|
|
25
|
-
* List all the event channels in a partner namespace.
|
|
26
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
27
|
-
* @param partnerNamespaceName Name of the partner namespace.
|
|
28
|
-
* @param options The options parameters.
|
|
29
|
-
*/
|
|
30
|
-
listByPartnerNamespace(
|
|
31
|
-
resourceGroupName: string,
|
|
32
|
-
partnerNamespaceName: string,
|
|
33
|
-
options?: EventChannelsListByPartnerNamespaceOptionalParams
|
|
34
|
-
): PagedAsyncIterableIterator<EventChannel>;
|
|
35
|
-
/**
|
|
36
|
-
* Get properties of an event channel.
|
|
37
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
38
|
-
* @param partnerNamespaceName Name of the partner namespace.
|
|
39
|
-
* @param eventChannelName Name of the event channel.
|
|
40
|
-
* @param options The options parameters.
|
|
41
|
-
*/
|
|
42
|
-
get(
|
|
43
|
-
resourceGroupName: string,
|
|
44
|
-
partnerNamespaceName: string,
|
|
45
|
-
eventChannelName: string,
|
|
46
|
-
options?: EventChannelsGetOptionalParams
|
|
47
|
-
): Promise<EventChannelsGetResponse>;
|
|
48
|
-
/**
|
|
49
|
-
* Asynchronously creates a new event channel with the specified parameters.
|
|
50
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
51
|
-
* @param partnerNamespaceName Name of the partner namespace.
|
|
52
|
-
* @param eventChannelName Name of the event channel.
|
|
53
|
-
* @param eventChannelInfo EventChannel information.
|
|
54
|
-
* @param options The options parameters.
|
|
55
|
-
*/
|
|
56
|
-
createOrUpdate(
|
|
57
|
-
resourceGroupName: string,
|
|
58
|
-
partnerNamespaceName: string,
|
|
59
|
-
eventChannelName: string,
|
|
60
|
-
eventChannelInfo: EventChannel,
|
|
61
|
-
options?: EventChannelsCreateOrUpdateOptionalParams
|
|
62
|
-
): Promise<EventChannelsCreateOrUpdateResponse>;
|
|
63
|
-
/**
|
|
64
|
-
* Delete existing event channel.
|
|
65
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
66
|
-
* @param partnerNamespaceName Name of the partner namespace.
|
|
67
|
-
* @param eventChannelName Name of the event channel.
|
|
68
|
-
* @param options The options parameters.
|
|
69
|
-
*/
|
|
70
|
-
beginDelete(
|
|
71
|
-
resourceGroupName: string,
|
|
72
|
-
partnerNamespaceName: string,
|
|
73
|
-
eventChannelName: string,
|
|
74
|
-
options?: EventChannelsDeleteOptionalParams
|
|
75
|
-
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
76
|
-
/**
|
|
77
|
-
* Delete existing event channel.
|
|
78
|
-
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
79
|
-
* @param partnerNamespaceName Name of the partner namespace.
|
|
80
|
-
* @param eventChannelName Name of the event channel.
|
|
81
|
-
* @param options The options parameters.
|
|
82
|
-
*/
|
|
83
|
-
beginDeleteAndWait(
|
|
84
|
-
resourceGroupName: string,
|
|
85
|
-
partnerNamespaceName: string,
|
|
86
|
-
eventChannelName: string,
|
|
87
|
-
options?: EventChannelsDeleteOptionalParams
|
|
88
|
-
): Promise<void>;
|
|
89
|
-
}
|