@azure/arm-eventgrid 30.0.0-alpha.20210929.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/LICENSE +21 -0
- package/README.md +94 -0
- package/dist/index.js +10620 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/eventGridManagementClient.d.ts +31 -0
- package/dist-esm/src/eventGridManagementClient.d.ts.map +1 -0
- package/dist-esm/src/eventGridManagementClient.js +38 -0
- package/dist-esm/src/eventGridManagementClient.js.map +1 -0
- package/dist-esm/src/eventGridManagementClientContext.d.ts +17 -0
- package/dist-esm/src/eventGridManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/eventGridManagementClientContext.js +50 -0
- package/dist-esm/src/eventGridManagementClientContext.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +2765 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +289 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +139 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +2979 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +53 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +415 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/domainTopics.d.ts +79 -0
- package/dist-esm/src/operations/domainTopics.d.ts.map +1 -0
- package/dist-esm/src/operations/domainTopics.js +310 -0
- package/dist-esm/src/operations/domainTopics.js.map +1 -0
- package/dist-esm/src/operations/domains.d.ts +122 -0
- package/dist-esm/src/operations/domains.d.ts.map +1 -0
- package/dist-esm/src/operations/domains.js +522 -0
- package/dist-esm/src/operations/domains.js.map +1 -0
- package/dist-esm/src/operations/eventChannels.d.ts +72 -0
- package/dist-esm/src/operations/eventChannels.d.ts.map +1 -0
- package/dist-esm/src/operations/eventChannels.js +269 -0
- package/dist-esm/src/operations/eventChannels.js.map +1 -0
- package/dist-esm/src/operations/eventSubscriptions.d.ts +404 -0
- package/dist-esm/src/operations/eventSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operations/eventSubscriptions.js +1504 -0
- package/dist-esm/src/operations/eventSubscriptions.js.map +1 -0
- package/dist-esm/src/operations/extensionTopics.d.ts +24 -0
- package/dist-esm/src/operations/extensionTopics.d.ts.map +1 -0
- package/dist-esm/src/operations/extensionTopics.js +50 -0
- package/dist-esm/src/operations/extensionTopics.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +17 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +24 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +88 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/partnerNamespaces.d.ts +122 -0
- package/dist-esm/src/operations/partnerNamespaces.d.ts.map +1 -0
- package/dist-esm/src/operations/partnerNamespaces.js +537 -0
- package/dist-esm/src/operations/partnerNamespaces.js.map +1 -0
- package/dist-esm/src/operations/partnerRegistrations.d.ts +83 -0
- package/dist-esm/src/operations/partnerRegistrations.d.ts.map +1 -0
- package/dist-esm/src/operations/partnerRegistrations.js +349 -0
- package/dist-esm/src/operations/partnerRegistrations.js.map +1 -0
- package/dist-esm/src/operations/partnerTopicEventSubscriptions.d.ts +128 -0
- package/dist-esm/src/operations/partnerTopicEventSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operations/partnerTopicEventSubscriptions.js +483 -0
- package/dist-esm/src/operations/partnerTopicEventSubscriptions.js.map +1 -0
- package/dist-esm/src/operations/partnerTopics.d.ts +97 -0
- package/dist-esm/src/operations/partnerTopics.d.ts.map +1 -0
- package/dist-esm/src/operations/partnerTopics.js +408 -0
- package/dist-esm/src/operations/partnerTopics.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +105 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +362 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +58 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +184 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/systemTopicEventSubscriptions.d.ts +128 -0
- package/dist-esm/src/operations/systemTopicEventSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operations/systemTopicEventSubscriptions.js +483 -0
- package/dist-esm/src/operations/systemTopicEventSubscriptions.js.map +1 -0
- package/dist-esm/src/operations/systemTopics.d.ts +107 -0
- package/dist-esm/src/operations/systemTopics.d.ts.map +1 -0
- package/dist-esm/src/operations/systemTopics.js +482 -0
- package/dist-esm/src/operations/systemTopics.js.map +1 -0
- package/dist-esm/src/operations/topicTypes.d.ts +46 -0
- package/dist-esm/src/operations/topicTypes.d.ts.map +1 -0
- package/dist-esm/src/operations/topicTypes.js +175 -0
- package/dist-esm/src/operations/topicTypes.js.map +1 -0
- package/dist-esm/src/operations/topics.d.ts +150 -0
- package/dist-esm/src/operations/topics.d.ts.map +1 -0
- package/dist-esm/src/operations/topics.js +656 -0
- package/dist-esm/src/operations/topics.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/domainTopics.d.ts +54 -0
- package/dist-esm/src/operationsInterfaces/domainTopics.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/domainTopics.js +9 -0
- package/dist-esm/src/operationsInterfaces/domainTopics.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/domains.d.ts +86 -0
- package/dist-esm/src/operationsInterfaces/domains.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/domains.js +9 -0
- package/dist-esm/src/operationsInterfaces/domains.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/eventChannels.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/eventChannels.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/eventChannels.js +9 -0
- package/dist-esm/src/operationsInterfaces/eventChannels.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/eventSubscriptions.d.ts +217 -0
- package/dist-esm/src/operationsInterfaces/eventSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/eventSubscriptions.js +9 -0
- package/dist-esm/src/operationsInterfaces/eventSubscriptions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensionTopics.d.ts +16 -0
- package/dist-esm/src/operationsInterfaces/extensionTopics.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensionTopics.js +9 -0
- package/dist-esm/src/operationsInterfaces/extensionTopics.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +24 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/partnerNamespaces.d.ts +86 -0
- package/dist-esm/src/operationsInterfaces/partnerNamespaces.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/partnerNamespaces.js +9 -0
- package/dist-esm/src/operationsInterfaces/partnerNamespaces.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/partnerRegistrations.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/partnerRegistrations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/partnerRegistrations.js +9 -0
- package/dist-esm/src/operationsInterfaces/partnerRegistrations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/partnerTopicEventSubscriptions.d.ts +103 -0
- package/dist-esm/src/operationsInterfaces/partnerTopicEventSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/partnerTopicEventSubscriptions.js +9 -0
- package/dist-esm/src/operationsInterfaces/partnerTopicEventSubscriptions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/partnerTopics.d.ts +61 -0
- package/dist-esm/src/operationsInterfaces/partnerTopics.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/partnerTopics.js +9 -0
- package/dist-esm/src/operationsInterfaces/partnerTopics.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +27 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.d.ts +103 -0
- package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.js +9 -0
- package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/systemTopics.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/systemTopics.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/systemTopics.js +9 -0
- package/dist-esm/src/operationsInterfaces/systemTopics.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/topicTypes.d.ts +23 -0
- package/dist-esm/src/operationsInterfaces/topicTypes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/topicTypes.js +9 -0
- package/dist-esm/src/operationsInterfaces/topicTypes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/topics.d.ts +103 -0
- package/dist-esm/src/operationsInterfaces/topics.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/topics.js +9 -0
- package/dist-esm/src/operationsInterfaces/topics.js.map +1 -0
- package/dist-esm/test/eventgrid_examples.d.ts +2 -0
- package/dist-esm/test/eventgrid_examples.d.ts.map +1 -0
- package/dist-esm/test/eventgrid_examples.js +163 -0
- package/dist-esm/test/eventgrid_examples.js.map +1 -0
- package/package.json +102 -0
- package/review/arm-eventgrid.api.md +2518 -0
- package/rollup.config.js +188 -0
- package/src/eventGridManagementClient.ts +101 -0
- package/src/eventGridManagementClientContext.ts +71 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +3297 -0
- package/src/models/mappers.ts +3334 -0
- package/src/models/parameters.ts +490 -0
- package/src/operations/domainTopics.ts +452 -0
- package/src/operations/domains.ts +713 -0
- package/src/operations/eventChannels.ts +382 -0
- package/src/operations/eventSubscriptions.ts +2077 -0
- package/src/operations/extensionTopics.ts +67 -0
- package/src/operations/index.ts +24 -0
- package/src/operations/operations.ts +96 -0
- package/src/operations/partnerNamespaces.ts +729 -0
- package/src/operations/partnerRegistrations.ts +440 -0
- package/src/operations/partnerTopicEventSubscriptions.ts +699 -0
- package/src/operations/partnerTopics.ts +532 -0
- package/src/operations/privateEndpointConnections.ts +529 -0
- package/src/operations/privateLinkResources.ts +259 -0
- package/src/operations/systemTopicEventSubscriptions.ts +699 -0
- package/src/operations/systemTopics.ts +656 -0
- package/src/operations/topicTypes.ts +202 -0
- package/src/operations/topics.ts +921 -0
- package/src/operationsInterfaces/domainTopics.ts +105 -0
- package/src/operationsInterfaces/domains.ts +162 -0
- package/src/operationsInterfaces/eventChannels.ts +89 -0
- package/src/operationsInterfaces/eventSubscriptions.ts +339 -0
- package/src/operationsInterfaces/extensionTopics.ts +30 -0
- package/src/operationsInterfaces/index.ts +24 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/partnerNamespaces.ts +162 -0
- package/src/operationsInterfaces/partnerRegistrations.ts +91 -0
- package/src/operationsInterfaces/partnerTopicEventSubscriptions.ts +190 -0
- package/src/operationsInterfaces/partnerTopics.ts +114 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +137 -0
- package/src/operationsInterfaces/privateLinkResources.ts +52 -0
- package/src/operationsInterfaces/systemTopicEventSubscriptions.ts +190 -0
- package/src/operationsInterfaces/systemTopics.ts +139 -0
- package/src/operationsInterfaces/topicTypes.ts +47 -0
- package/src/operationsInterfaces/topics.ts +197 -0
- package/tsconfig.json +19 -0
- package/types/arm-eventgrid.d.ts +4299 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,2077 @@
|
|
|
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 { EventSubscriptions } 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 { EventGridManagementClientContext } from "../eventGridManagementClientContext";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
EventSubscription,
|
|
19
|
+
EventSubscriptionsListGlobalBySubscriptionNextOptionalParams,
|
|
20
|
+
EventSubscriptionsListGlobalBySubscriptionOptionalParams,
|
|
21
|
+
EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextOptionalParams,
|
|
22
|
+
EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams,
|
|
23
|
+
EventSubscriptionsListGlobalByResourceGroupNextOptionalParams,
|
|
24
|
+
EventSubscriptionsListGlobalByResourceGroupOptionalParams,
|
|
25
|
+
EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextOptionalParams,
|
|
26
|
+
EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams,
|
|
27
|
+
EventSubscriptionsListRegionalBySubscriptionNextOptionalParams,
|
|
28
|
+
EventSubscriptionsListRegionalBySubscriptionOptionalParams,
|
|
29
|
+
EventSubscriptionsListRegionalByResourceGroupNextOptionalParams,
|
|
30
|
+
EventSubscriptionsListRegionalByResourceGroupOptionalParams,
|
|
31
|
+
EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextOptionalParams,
|
|
32
|
+
EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams,
|
|
33
|
+
EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextOptionalParams,
|
|
34
|
+
EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams,
|
|
35
|
+
EventSubscriptionsListByResourceNextOptionalParams,
|
|
36
|
+
EventSubscriptionsListByResourceOptionalParams,
|
|
37
|
+
EventSubscriptionsListByDomainTopicNextOptionalParams,
|
|
38
|
+
EventSubscriptionsListByDomainTopicOptionalParams,
|
|
39
|
+
EventSubscriptionsGetOptionalParams,
|
|
40
|
+
EventSubscriptionsGetResponse,
|
|
41
|
+
EventSubscriptionsCreateOrUpdateOptionalParams,
|
|
42
|
+
EventSubscriptionsCreateOrUpdateResponse,
|
|
43
|
+
EventSubscriptionsDeleteOptionalParams,
|
|
44
|
+
EventSubscriptionUpdateParameters,
|
|
45
|
+
EventSubscriptionsUpdateOptionalParams,
|
|
46
|
+
EventSubscriptionsUpdateResponse,
|
|
47
|
+
EventSubscriptionsGetFullUrlOptionalParams,
|
|
48
|
+
EventSubscriptionsGetFullUrlResponse,
|
|
49
|
+
EventSubscriptionsListGlobalBySubscriptionResponse,
|
|
50
|
+
EventSubscriptionsListGlobalBySubscriptionForTopicTypeResponse,
|
|
51
|
+
EventSubscriptionsListGlobalByResourceGroupResponse,
|
|
52
|
+
EventSubscriptionsListGlobalByResourceGroupForTopicTypeResponse,
|
|
53
|
+
EventSubscriptionsListRegionalBySubscriptionResponse,
|
|
54
|
+
EventSubscriptionsListRegionalByResourceGroupResponse,
|
|
55
|
+
EventSubscriptionsListRegionalBySubscriptionForTopicTypeResponse,
|
|
56
|
+
EventSubscriptionsListRegionalByResourceGroupForTopicTypeResponse,
|
|
57
|
+
EventSubscriptionsListByResourceResponse,
|
|
58
|
+
EventSubscriptionsListByDomainTopicResponse,
|
|
59
|
+
EventSubscriptionsGetDeliveryAttributesOptionalParams,
|
|
60
|
+
EventSubscriptionsGetDeliveryAttributesResponse,
|
|
61
|
+
EventSubscriptionsListGlobalBySubscriptionNextResponse,
|
|
62
|
+
EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextResponse,
|
|
63
|
+
EventSubscriptionsListGlobalByResourceGroupNextResponse,
|
|
64
|
+
EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextResponse,
|
|
65
|
+
EventSubscriptionsListRegionalBySubscriptionNextResponse,
|
|
66
|
+
EventSubscriptionsListRegionalByResourceGroupNextResponse,
|
|
67
|
+
EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextResponse,
|
|
68
|
+
EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextResponse,
|
|
69
|
+
EventSubscriptionsListByResourceNextResponse,
|
|
70
|
+
EventSubscriptionsListByDomainTopicNextResponse
|
|
71
|
+
} from "../models";
|
|
72
|
+
|
|
73
|
+
/// <reference lib="esnext.asynciterable" />
|
|
74
|
+
/** Class containing EventSubscriptions operations. */
|
|
75
|
+
export class EventSubscriptionsImpl implements EventSubscriptions {
|
|
76
|
+
private readonly client: EventGridManagementClientContext;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Initialize a new instance of the class EventSubscriptions class.
|
|
80
|
+
* @param client Reference to the service client
|
|
81
|
+
*/
|
|
82
|
+
constructor(client: EventGridManagementClientContext) {
|
|
83
|
+
this.client = client;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* List all aggregated global event subscriptions under a specific Azure subscription.
|
|
88
|
+
* @param options The options parameters.
|
|
89
|
+
*/
|
|
90
|
+
public listGlobalBySubscription(
|
|
91
|
+
options?: EventSubscriptionsListGlobalBySubscriptionOptionalParams
|
|
92
|
+
): PagedAsyncIterableIterator<EventSubscription> {
|
|
93
|
+
const iter = this.listGlobalBySubscriptionPagingAll(options);
|
|
94
|
+
return {
|
|
95
|
+
next() {
|
|
96
|
+
return iter.next();
|
|
97
|
+
},
|
|
98
|
+
[Symbol.asyncIterator]() {
|
|
99
|
+
return this;
|
|
100
|
+
},
|
|
101
|
+
byPage: () => {
|
|
102
|
+
return this.listGlobalBySubscriptionPagingPage(options);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
private async *listGlobalBySubscriptionPagingPage(
|
|
108
|
+
options?: EventSubscriptionsListGlobalBySubscriptionOptionalParams
|
|
109
|
+
): AsyncIterableIterator<EventSubscription[]> {
|
|
110
|
+
let result = await this._listGlobalBySubscription(options);
|
|
111
|
+
yield result.value || [];
|
|
112
|
+
let continuationToken = result.nextLink;
|
|
113
|
+
while (continuationToken) {
|
|
114
|
+
result = await this._listGlobalBySubscriptionNext(
|
|
115
|
+
continuationToken,
|
|
116
|
+
options
|
|
117
|
+
);
|
|
118
|
+
continuationToken = result.nextLink;
|
|
119
|
+
yield result.value || [];
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
private async *listGlobalBySubscriptionPagingAll(
|
|
124
|
+
options?: EventSubscriptionsListGlobalBySubscriptionOptionalParams
|
|
125
|
+
): AsyncIterableIterator<EventSubscription> {
|
|
126
|
+
for await (const page of this.listGlobalBySubscriptionPagingPage(options)) {
|
|
127
|
+
yield* page;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* List all global event subscriptions under an Azure subscription for a topic type.
|
|
133
|
+
* @param topicTypeName Name of the topic type.
|
|
134
|
+
* @param options The options parameters.
|
|
135
|
+
*/
|
|
136
|
+
public listGlobalBySubscriptionForTopicType(
|
|
137
|
+
topicTypeName: string,
|
|
138
|
+
options?: EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams
|
|
139
|
+
): PagedAsyncIterableIterator<EventSubscription> {
|
|
140
|
+
const iter = this.listGlobalBySubscriptionForTopicTypePagingAll(
|
|
141
|
+
topicTypeName,
|
|
142
|
+
options
|
|
143
|
+
);
|
|
144
|
+
return {
|
|
145
|
+
next() {
|
|
146
|
+
return iter.next();
|
|
147
|
+
},
|
|
148
|
+
[Symbol.asyncIterator]() {
|
|
149
|
+
return this;
|
|
150
|
+
},
|
|
151
|
+
byPage: () => {
|
|
152
|
+
return this.listGlobalBySubscriptionForTopicTypePagingPage(
|
|
153
|
+
topicTypeName,
|
|
154
|
+
options
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
private async *listGlobalBySubscriptionForTopicTypePagingPage(
|
|
161
|
+
topicTypeName: string,
|
|
162
|
+
options?: EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams
|
|
163
|
+
): AsyncIterableIterator<EventSubscription[]> {
|
|
164
|
+
let result = await this._listGlobalBySubscriptionForTopicType(
|
|
165
|
+
topicTypeName,
|
|
166
|
+
options
|
|
167
|
+
);
|
|
168
|
+
yield result.value || [];
|
|
169
|
+
let continuationToken = result.nextLink;
|
|
170
|
+
while (continuationToken) {
|
|
171
|
+
result = await this._listGlobalBySubscriptionForTopicTypeNext(
|
|
172
|
+
topicTypeName,
|
|
173
|
+
continuationToken,
|
|
174
|
+
options
|
|
175
|
+
);
|
|
176
|
+
continuationToken = result.nextLink;
|
|
177
|
+
yield result.value || [];
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
private async *listGlobalBySubscriptionForTopicTypePagingAll(
|
|
182
|
+
topicTypeName: string,
|
|
183
|
+
options?: EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams
|
|
184
|
+
): AsyncIterableIterator<EventSubscription> {
|
|
185
|
+
for await (const page of this.listGlobalBySubscriptionForTopicTypePagingPage(
|
|
186
|
+
topicTypeName,
|
|
187
|
+
options
|
|
188
|
+
)) {
|
|
189
|
+
yield* page;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* List all global event subscriptions under a specific Azure subscription and resource group.
|
|
195
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
196
|
+
* @param options The options parameters.
|
|
197
|
+
*/
|
|
198
|
+
public listGlobalByResourceGroup(
|
|
199
|
+
resourceGroupName: string,
|
|
200
|
+
options?: EventSubscriptionsListGlobalByResourceGroupOptionalParams
|
|
201
|
+
): PagedAsyncIterableIterator<EventSubscription> {
|
|
202
|
+
const iter = this.listGlobalByResourceGroupPagingAll(
|
|
203
|
+
resourceGroupName,
|
|
204
|
+
options
|
|
205
|
+
);
|
|
206
|
+
return {
|
|
207
|
+
next() {
|
|
208
|
+
return iter.next();
|
|
209
|
+
},
|
|
210
|
+
[Symbol.asyncIterator]() {
|
|
211
|
+
return this;
|
|
212
|
+
},
|
|
213
|
+
byPage: () => {
|
|
214
|
+
return this.listGlobalByResourceGroupPagingPage(
|
|
215
|
+
resourceGroupName,
|
|
216
|
+
options
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
private async *listGlobalByResourceGroupPagingPage(
|
|
223
|
+
resourceGroupName: string,
|
|
224
|
+
options?: EventSubscriptionsListGlobalByResourceGroupOptionalParams
|
|
225
|
+
): AsyncIterableIterator<EventSubscription[]> {
|
|
226
|
+
let result = await this._listGlobalByResourceGroup(
|
|
227
|
+
resourceGroupName,
|
|
228
|
+
options
|
|
229
|
+
);
|
|
230
|
+
yield result.value || [];
|
|
231
|
+
let continuationToken = result.nextLink;
|
|
232
|
+
while (continuationToken) {
|
|
233
|
+
result = await this._listGlobalByResourceGroupNext(
|
|
234
|
+
resourceGroupName,
|
|
235
|
+
continuationToken,
|
|
236
|
+
options
|
|
237
|
+
);
|
|
238
|
+
continuationToken = result.nextLink;
|
|
239
|
+
yield result.value || [];
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
private async *listGlobalByResourceGroupPagingAll(
|
|
244
|
+
resourceGroupName: string,
|
|
245
|
+
options?: EventSubscriptionsListGlobalByResourceGroupOptionalParams
|
|
246
|
+
): AsyncIterableIterator<EventSubscription> {
|
|
247
|
+
for await (const page of this.listGlobalByResourceGroupPagingPage(
|
|
248
|
+
resourceGroupName,
|
|
249
|
+
options
|
|
250
|
+
)) {
|
|
251
|
+
yield* page;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* List all global event subscriptions under a resource group for a specific topic type.
|
|
257
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
258
|
+
* @param topicTypeName Name of the topic type.
|
|
259
|
+
* @param options The options parameters.
|
|
260
|
+
*/
|
|
261
|
+
public listGlobalByResourceGroupForTopicType(
|
|
262
|
+
resourceGroupName: string,
|
|
263
|
+
topicTypeName: string,
|
|
264
|
+
options?: EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams
|
|
265
|
+
): PagedAsyncIterableIterator<EventSubscription> {
|
|
266
|
+
const iter = this.listGlobalByResourceGroupForTopicTypePagingAll(
|
|
267
|
+
resourceGroupName,
|
|
268
|
+
topicTypeName,
|
|
269
|
+
options
|
|
270
|
+
);
|
|
271
|
+
return {
|
|
272
|
+
next() {
|
|
273
|
+
return iter.next();
|
|
274
|
+
},
|
|
275
|
+
[Symbol.asyncIterator]() {
|
|
276
|
+
return this;
|
|
277
|
+
},
|
|
278
|
+
byPage: () => {
|
|
279
|
+
return this.listGlobalByResourceGroupForTopicTypePagingPage(
|
|
280
|
+
resourceGroupName,
|
|
281
|
+
topicTypeName,
|
|
282
|
+
options
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
private async *listGlobalByResourceGroupForTopicTypePagingPage(
|
|
289
|
+
resourceGroupName: string,
|
|
290
|
+
topicTypeName: string,
|
|
291
|
+
options?: EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams
|
|
292
|
+
): AsyncIterableIterator<EventSubscription[]> {
|
|
293
|
+
let result = await this._listGlobalByResourceGroupForTopicType(
|
|
294
|
+
resourceGroupName,
|
|
295
|
+
topicTypeName,
|
|
296
|
+
options
|
|
297
|
+
);
|
|
298
|
+
yield result.value || [];
|
|
299
|
+
let continuationToken = result.nextLink;
|
|
300
|
+
while (continuationToken) {
|
|
301
|
+
result = await this._listGlobalByResourceGroupForTopicTypeNext(
|
|
302
|
+
resourceGroupName,
|
|
303
|
+
topicTypeName,
|
|
304
|
+
continuationToken,
|
|
305
|
+
options
|
|
306
|
+
);
|
|
307
|
+
continuationToken = result.nextLink;
|
|
308
|
+
yield result.value || [];
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
private async *listGlobalByResourceGroupForTopicTypePagingAll(
|
|
313
|
+
resourceGroupName: string,
|
|
314
|
+
topicTypeName: string,
|
|
315
|
+
options?: EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams
|
|
316
|
+
): AsyncIterableIterator<EventSubscription> {
|
|
317
|
+
for await (const page of this.listGlobalByResourceGroupForTopicTypePagingPage(
|
|
318
|
+
resourceGroupName,
|
|
319
|
+
topicTypeName,
|
|
320
|
+
options
|
|
321
|
+
)) {
|
|
322
|
+
yield* page;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* List all event subscriptions from the given location under a specific Azure subscription.
|
|
328
|
+
* @param location Name of the location.
|
|
329
|
+
* @param options The options parameters.
|
|
330
|
+
*/
|
|
331
|
+
public listRegionalBySubscription(
|
|
332
|
+
location: string,
|
|
333
|
+
options?: EventSubscriptionsListRegionalBySubscriptionOptionalParams
|
|
334
|
+
): PagedAsyncIterableIterator<EventSubscription> {
|
|
335
|
+
const iter = this.listRegionalBySubscriptionPagingAll(location, options);
|
|
336
|
+
return {
|
|
337
|
+
next() {
|
|
338
|
+
return iter.next();
|
|
339
|
+
},
|
|
340
|
+
[Symbol.asyncIterator]() {
|
|
341
|
+
return this;
|
|
342
|
+
},
|
|
343
|
+
byPage: () => {
|
|
344
|
+
return this.listRegionalBySubscriptionPagingPage(location, options);
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
private async *listRegionalBySubscriptionPagingPage(
|
|
350
|
+
location: string,
|
|
351
|
+
options?: EventSubscriptionsListRegionalBySubscriptionOptionalParams
|
|
352
|
+
): AsyncIterableIterator<EventSubscription[]> {
|
|
353
|
+
let result = await this._listRegionalBySubscription(location, options);
|
|
354
|
+
yield result.value || [];
|
|
355
|
+
let continuationToken = result.nextLink;
|
|
356
|
+
while (continuationToken) {
|
|
357
|
+
result = await this._listRegionalBySubscriptionNext(
|
|
358
|
+
location,
|
|
359
|
+
continuationToken,
|
|
360
|
+
options
|
|
361
|
+
);
|
|
362
|
+
continuationToken = result.nextLink;
|
|
363
|
+
yield result.value || [];
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
private async *listRegionalBySubscriptionPagingAll(
|
|
368
|
+
location: string,
|
|
369
|
+
options?: EventSubscriptionsListRegionalBySubscriptionOptionalParams
|
|
370
|
+
): AsyncIterableIterator<EventSubscription> {
|
|
371
|
+
for await (const page of this.listRegionalBySubscriptionPagingPage(
|
|
372
|
+
location,
|
|
373
|
+
options
|
|
374
|
+
)) {
|
|
375
|
+
yield* page;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* List all event subscriptions from the given location under a specific Azure subscription and
|
|
381
|
+
* resource group.
|
|
382
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
383
|
+
* @param location Name of the location.
|
|
384
|
+
* @param options The options parameters.
|
|
385
|
+
*/
|
|
386
|
+
public listRegionalByResourceGroup(
|
|
387
|
+
resourceGroupName: string,
|
|
388
|
+
location: string,
|
|
389
|
+
options?: EventSubscriptionsListRegionalByResourceGroupOptionalParams
|
|
390
|
+
): PagedAsyncIterableIterator<EventSubscription> {
|
|
391
|
+
const iter = this.listRegionalByResourceGroupPagingAll(
|
|
392
|
+
resourceGroupName,
|
|
393
|
+
location,
|
|
394
|
+
options
|
|
395
|
+
);
|
|
396
|
+
return {
|
|
397
|
+
next() {
|
|
398
|
+
return iter.next();
|
|
399
|
+
},
|
|
400
|
+
[Symbol.asyncIterator]() {
|
|
401
|
+
return this;
|
|
402
|
+
},
|
|
403
|
+
byPage: () => {
|
|
404
|
+
return this.listRegionalByResourceGroupPagingPage(
|
|
405
|
+
resourceGroupName,
|
|
406
|
+
location,
|
|
407
|
+
options
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
private async *listRegionalByResourceGroupPagingPage(
|
|
414
|
+
resourceGroupName: string,
|
|
415
|
+
location: string,
|
|
416
|
+
options?: EventSubscriptionsListRegionalByResourceGroupOptionalParams
|
|
417
|
+
): AsyncIterableIterator<EventSubscription[]> {
|
|
418
|
+
let result = await this._listRegionalByResourceGroup(
|
|
419
|
+
resourceGroupName,
|
|
420
|
+
location,
|
|
421
|
+
options
|
|
422
|
+
);
|
|
423
|
+
yield result.value || [];
|
|
424
|
+
let continuationToken = result.nextLink;
|
|
425
|
+
while (continuationToken) {
|
|
426
|
+
result = await this._listRegionalByResourceGroupNext(
|
|
427
|
+
resourceGroupName,
|
|
428
|
+
location,
|
|
429
|
+
continuationToken,
|
|
430
|
+
options
|
|
431
|
+
);
|
|
432
|
+
continuationToken = result.nextLink;
|
|
433
|
+
yield result.value || [];
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
private async *listRegionalByResourceGroupPagingAll(
|
|
438
|
+
resourceGroupName: string,
|
|
439
|
+
location: string,
|
|
440
|
+
options?: EventSubscriptionsListRegionalByResourceGroupOptionalParams
|
|
441
|
+
): AsyncIterableIterator<EventSubscription> {
|
|
442
|
+
for await (const page of this.listRegionalByResourceGroupPagingPage(
|
|
443
|
+
resourceGroupName,
|
|
444
|
+
location,
|
|
445
|
+
options
|
|
446
|
+
)) {
|
|
447
|
+
yield* page;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* List all event subscriptions from the given location under a specific Azure subscription and topic
|
|
453
|
+
* type.
|
|
454
|
+
* @param location Name of the location.
|
|
455
|
+
* @param topicTypeName Name of the topic type.
|
|
456
|
+
* @param options The options parameters.
|
|
457
|
+
*/
|
|
458
|
+
public listRegionalBySubscriptionForTopicType(
|
|
459
|
+
location: string,
|
|
460
|
+
topicTypeName: string,
|
|
461
|
+
options?: EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams
|
|
462
|
+
): PagedAsyncIterableIterator<EventSubscription> {
|
|
463
|
+
const iter = this.listRegionalBySubscriptionForTopicTypePagingAll(
|
|
464
|
+
location,
|
|
465
|
+
topicTypeName,
|
|
466
|
+
options
|
|
467
|
+
);
|
|
468
|
+
return {
|
|
469
|
+
next() {
|
|
470
|
+
return iter.next();
|
|
471
|
+
},
|
|
472
|
+
[Symbol.asyncIterator]() {
|
|
473
|
+
return this;
|
|
474
|
+
},
|
|
475
|
+
byPage: () => {
|
|
476
|
+
return this.listRegionalBySubscriptionForTopicTypePagingPage(
|
|
477
|
+
location,
|
|
478
|
+
topicTypeName,
|
|
479
|
+
options
|
|
480
|
+
);
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
private async *listRegionalBySubscriptionForTopicTypePagingPage(
|
|
486
|
+
location: string,
|
|
487
|
+
topicTypeName: string,
|
|
488
|
+
options?: EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams
|
|
489
|
+
): AsyncIterableIterator<EventSubscription[]> {
|
|
490
|
+
let result = await this._listRegionalBySubscriptionForTopicType(
|
|
491
|
+
location,
|
|
492
|
+
topicTypeName,
|
|
493
|
+
options
|
|
494
|
+
);
|
|
495
|
+
yield result.value || [];
|
|
496
|
+
let continuationToken = result.nextLink;
|
|
497
|
+
while (continuationToken) {
|
|
498
|
+
result = await this._listRegionalBySubscriptionForTopicTypeNext(
|
|
499
|
+
location,
|
|
500
|
+
topicTypeName,
|
|
501
|
+
continuationToken,
|
|
502
|
+
options
|
|
503
|
+
);
|
|
504
|
+
continuationToken = result.nextLink;
|
|
505
|
+
yield result.value || [];
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
private async *listRegionalBySubscriptionForTopicTypePagingAll(
|
|
510
|
+
location: string,
|
|
511
|
+
topicTypeName: string,
|
|
512
|
+
options?: EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams
|
|
513
|
+
): AsyncIterableIterator<EventSubscription> {
|
|
514
|
+
for await (const page of this.listRegionalBySubscriptionForTopicTypePagingPage(
|
|
515
|
+
location,
|
|
516
|
+
topicTypeName,
|
|
517
|
+
options
|
|
518
|
+
)) {
|
|
519
|
+
yield* page;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* List all event subscriptions from the given location under a specific Azure subscription and
|
|
525
|
+
* resource group and topic type.
|
|
526
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
527
|
+
* @param location Name of the location.
|
|
528
|
+
* @param topicTypeName Name of the topic type.
|
|
529
|
+
* @param options The options parameters.
|
|
530
|
+
*/
|
|
531
|
+
public listRegionalByResourceGroupForTopicType(
|
|
532
|
+
resourceGroupName: string,
|
|
533
|
+
location: string,
|
|
534
|
+
topicTypeName: string,
|
|
535
|
+
options?: EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams
|
|
536
|
+
): PagedAsyncIterableIterator<EventSubscription> {
|
|
537
|
+
const iter = this.listRegionalByResourceGroupForTopicTypePagingAll(
|
|
538
|
+
resourceGroupName,
|
|
539
|
+
location,
|
|
540
|
+
topicTypeName,
|
|
541
|
+
options
|
|
542
|
+
);
|
|
543
|
+
return {
|
|
544
|
+
next() {
|
|
545
|
+
return iter.next();
|
|
546
|
+
},
|
|
547
|
+
[Symbol.asyncIterator]() {
|
|
548
|
+
return this;
|
|
549
|
+
},
|
|
550
|
+
byPage: () => {
|
|
551
|
+
return this.listRegionalByResourceGroupForTopicTypePagingPage(
|
|
552
|
+
resourceGroupName,
|
|
553
|
+
location,
|
|
554
|
+
topicTypeName,
|
|
555
|
+
options
|
|
556
|
+
);
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
private async *listRegionalByResourceGroupForTopicTypePagingPage(
|
|
562
|
+
resourceGroupName: string,
|
|
563
|
+
location: string,
|
|
564
|
+
topicTypeName: string,
|
|
565
|
+
options?: EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams
|
|
566
|
+
): AsyncIterableIterator<EventSubscription[]> {
|
|
567
|
+
let result = await this._listRegionalByResourceGroupForTopicType(
|
|
568
|
+
resourceGroupName,
|
|
569
|
+
location,
|
|
570
|
+
topicTypeName,
|
|
571
|
+
options
|
|
572
|
+
);
|
|
573
|
+
yield result.value || [];
|
|
574
|
+
let continuationToken = result.nextLink;
|
|
575
|
+
while (continuationToken) {
|
|
576
|
+
result = await this._listRegionalByResourceGroupForTopicTypeNext(
|
|
577
|
+
resourceGroupName,
|
|
578
|
+
location,
|
|
579
|
+
topicTypeName,
|
|
580
|
+
continuationToken,
|
|
581
|
+
options
|
|
582
|
+
);
|
|
583
|
+
continuationToken = result.nextLink;
|
|
584
|
+
yield result.value || [];
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
private async *listRegionalByResourceGroupForTopicTypePagingAll(
|
|
589
|
+
resourceGroupName: string,
|
|
590
|
+
location: string,
|
|
591
|
+
topicTypeName: string,
|
|
592
|
+
options?: EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams
|
|
593
|
+
): AsyncIterableIterator<EventSubscription> {
|
|
594
|
+
for await (const page of this.listRegionalByResourceGroupForTopicTypePagingPage(
|
|
595
|
+
resourceGroupName,
|
|
596
|
+
location,
|
|
597
|
+
topicTypeName,
|
|
598
|
+
options
|
|
599
|
+
)) {
|
|
600
|
+
yield* page;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* List all event subscriptions that have been created for a specific topic.
|
|
606
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
607
|
+
* @param providerNamespace Namespace of the provider of the topic.
|
|
608
|
+
* @param resourceTypeName Name of the resource type.
|
|
609
|
+
* @param resourceName Name of the resource.
|
|
610
|
+
* @param options The options parameters.
|
|
611
|
+
*/
|
|
612
|
+
public listByResource(
|
|
613
|
+
resourceGroupName: string,
|
|
614
|
+
providerNamespace: string,
|
|
615
|
+
resourceTypeName: string,
|
|
616
|
+
resourceName: string,
|
|
617
|
+
options?: EventSubscriptionsListByResourceOptionalParams
|
|
618
|
+
): PagedAsyncIterableIterator<EventSubscription> {
|
|
619
|
+
const iter = this.listByResourcePagingAll(
|
|
620
|
+
resourceGroupName,
|
|
621
|
+
providerNamespace,
|
|
622
|
+
resourceTypeName,
|
|
623
|
+
resourceName,
|
|
624
|
+
options
|
|
625
|
+
);
|
|
626
|
+
return {
|
|
627
|
+
next() {
|
|
628
|
+
return iter.next();
|
|
629
|
+
},
|
|
630
|
+
[Symbol.asyncIterator]() {
|
|
631
|
+
return this;
|
|
632
|
+
},
|
|
633
|
+
byPage: () => {
|
|
634
|
+
return this.listByResourcePagingPage(
|
|
635
|
+
resourceGroupName,
|
|
636
|
+
providerNamespace,
|
|
637
|
+
resourceTypeName,
|
|
638
|
+
resourceName,
|
|
639
|
+
options
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
private async *listByResourcePagingPage(
|
|
646
|
+
resourceGroupName: string,
|
|
647
|
+
providerNamespace: string,
|
|
648
|
+
resourceTypeName: string,
|
|
649
|
+
resourceName: string,
|
|
650
|
+
options?: EventSubscriptionsListByResourceOptionalParams
|
|
651
|
+
): AsyncIterableIterator<EventSubscription[]> {
|
|
652
|
+
let result = await this._listByResource(
|
|
653
|
+
resourceGroupName,
|
|
654
|
+
providerNamespace,
|
|
655
|
+
resourceTypeName,
|
|
656
|
+
resourceName,
|
|
657
|
+
options
|
|
658
|
+
);
|
|
659
|
+
yield result.value || [];
|
|
660
|
+
let continuationToken = result.nextLink;
|
|
661
|
+
while (continuationToken) {
|
|
662
|
+
result = await this._listByResourceNext(
|
|
663
|
+
resourceGroupName,
|
|
664
|
+
providerNamespace,
|
|
665
|
+
resourceTypeName,
|
|
666
|
+
resourceName,
|
|
667
|
+
continuationToken,
|
|
668
|
+
options
|
|
669
|
+
);
|
|
670
|
+
continuationToken = result.nextLink;
|
|
671
|
+
yield result.value || [];
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
private async *listByResourcePagingAll(
|
|
676
|
+
resourceGroupName: string,
|
|
677
|
+
providerNamespace: string,
|
|
678
|
+
resourceTypeName: string,
|
|
679
|
+
resourceName: string,
|
|
680
|
+
options?: EventSubscriptionsListByResourceOptionalParams
|
|
681
|
+
): AsyncIterableIterator<EventSubscription> {
|
|
682
|
+
for await (const page of this.listByResourcePagingPage(
|
|
683
|
+
resourceGroupName,
|
|
684
|
+
providerNamespace,
|
|
685
|
+
resourceTypeName,
|
|
686
|
+
resourceName,
|
|
687
|
+
options
|
|
688
|
+
)) {
|
|
689
|
+
yield* page;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* List all event subscriptions that have been created for a specific domain topic.
|
|
695
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
696
|
+
* @param domainName Name of the top level domain.
|
|
697
|
+
* @param topicName Name of the domain topic.
|
|
698
|
+
* @param options The options parameters.
|
|
699
|
+
*/
|
|
700
|
+
public listByDomainTopic(
|
|
701
|
+
resourceGroupName: string,
|
|
702
|
+
domainName: string,
|
|
703
|
+
topicName: string,
|
|
704
|
+
options?: EventSubscriptionsListByDomainTopicOptionalParams
|
|
705
|
+
): PagedAsyncIterableIterator<EventSubscription> {
|
|
706
|
+
const iter = this.listByDomainTopicPagingAll(
|
|
707
|
+
resourceGroupName,
|
|
708
|
+
domainName,
|
|
709
|
+
topicName,
|
|
710
|
+
options
|
|
711
|
+
);
|
|
712
|
+
return {
|
|
713
|
+
next() {
|
|
714
|
+
return iter.next();
|
|
715
|
+
},
|
|
716
|
+
[Symbol.asyncIterator]() {
|
|
717
|
+
return this;
|
|
718
|
+
},
|
|
719
|
+
byPage: () => {
|
|
720
|
+
return this.listByDomainTopicPagingPage(
|
|
721
|
+
resourceGroupName,
|
|
722
|
+
domainName,
|
|
723
|
+
topicName,
|
|
724
|
+
options
|
|
725
|
+
);
|
|
726
|
+
}
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
private async *listByDomainTopicPagingPage(
|
|
731
|
+
resourceGroupName: string,
|
|
732
|
+
domainName: string,
|
|
733
|
+
topicName: string,
|
|
734
|
+
options?: EventSubscriptionsListByDomainTopicOptionalParams
|
|
735
|
+
): AsyncIterableIterator<EventSubscription[]> {
|
|
736
|
+
let result = await this._listByDomainTopic(
|
|
737
|
+
resourceGroupName,
|
|
738
|
+
domainName,
|
|
739
|
+
topicName,
|
|
740
|
+
options
|
|
741
|
+
);
|
|
742
|
+
yield result.value || [];
|
|
743
|
+
let continuationToken = result.nextLink;
|
|
744
|
+
while (continuationToken) {
|
|
745
|
+
result = await this._listByDomainTopicNext(
|
|
746
|
+
resourceGroupName,
|
|
747
|
+
domainName,
|
|
748
|
+
topicName,
|
|
749
|
+
continuationToken,
|
|
750
|
+
options
|
|
751
|
+
);
|
|
752
|
+
continuationToken = result.nextLink;
|
|
753
|
+
yield result.value || [];
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
private async *listByDomainTopicPagingAll(
|
|
758
|
+
resourceGroupName: string,
|
|
759
|
+
domainName: string,
|
|
760
|
+
topicName: string,
|
|
761
|
+
options?: EventSubscriptionsListByDomainTopicOptionalParams
|
|
762
|
+
): AsyncIterableIterator<EventSubscription> {
|
|
763
|
+
for await (const page of this.listByDomainTopicPagingPage(
|
|
764
|
+
resourceGroupName,
|
|
765
|
+
domainName,
|
|
766
|
+
topicName,
|
|
767
|
+
options
|
|
768
|
+
)) {
|
|
769
|
+
yield* page;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Get properties of an event subscription.
|
|
775
|
+
* @param scope The scope of the event subscription. The scope can be a subscription, or a resource
|
|
776
|
+
* group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
|
|
777
|
+
* For example, use '/subscriptions/{subscriptionId}/' for a subscription,
|
|
778
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
|
|
779
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
|
|
780
|
+
* for a resource, and
|
|
781
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
|
782
|
+
* for an EventGrid topic.
|
|
783
|
+
* @param eventSubscriptionName Name of the event subscription.
|
|
784
|
+
* @param options The options parameters.
|
|
785
|
+
*/
|
|
786
|
+
get(
|
|
787
|
+
scope: string,
|
|
788
|
+
eventSubscriptionName: string,
|
|
789
|
+
options?: EventSubscriptionsGetOptionalParams
|
|
790
|
+
): Promise<EventSubscriptionsGetResponse> {
|
|
791
|
+
return this.client.sendOperationRequest(
|
|
792
|
+
{ scope, eventSubscriptionName, options },
|
|
793
|
+
getOperationSpec
|
|
794
|
+
);
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* Asynchronously creates a new event subscription or updates an existing event subscription based on
|
|
799
|
+
* the specified scope.
|
|
800
|
+
* @param scope The identifier of the resource to which the event subscription needs to be created or
|
|
801
|
+
* updated. The scope can be a subscription, or a resource group, or a top level resource belonging to
|
|
802
|
+
* a resource provider namespace, or an EventGrid topic. For example, use
|
|
803
|
+
* '/subscriptions/{subscriptionId}/' for a subscription,
|
|
804
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
|
|
805
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
|
|
806
|
+
* for a resource, and
|
|
807
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
|
808
|
+
* for an EventGrid topic.
|
|
809
|
+
* @param eventSubscriptionName Name of the event subscription. Event subscription names must be
|
|
810
|
+
* between 3 and 64 characters in length and should use alphanumeric letters only.
|
|
811
|
+
* @param eventSubscriptionInfo Event subscription properties containing the destination and filter
|
|
812
|
+
* information.
|
|
813
|
+
* @param options The options parameters.
|
|
814
|
+
*/
|
|
815
|
+
async beginCreateOrUpdate(
|
|
816
|
+
scope: string,
|
|
817
|
+
eventSubscriptionName: string,
|
|
818
|
+
eventSubscriptionInfo: EventSubscription,
|
|
819
|
+
options?: EventSubscriptionsCreateOrUpdateOptionalParams
|
|
820
|
+
): Promise<
|
|
821
|
+
PollerLike<
|
|
822
|
+
PollOperationState<EventSubscriptionsCreateOrUpdateResponse>,
|
|
823
|
+
EventSubscriptionsCreateOrUpdateResponse
|
|
824
|
+
>
|
|
825
|
+
> {
|
|
826
|
+
const directSendOperation = async (
|
|
827
|
+
args: coreClient.OperationArguments,
|
|
828
|
+
spec: coreClient.OperationSpec
|
|
829
|
+
): Promise<EventSubscriptionsCreateOrUpdateResponse> => {
|
|
830
|
+
return this.client.sendOperationRequest(args, spec);
|
|
831
|
+
};
|
|
832
|
+
const sendOperation = async (
|
|
833
|
+
args: coreClient.OperationArguments,
|
|
834
|
+
spec: coreClient.OperationSpec
|
|
835
|
+
) => {
|
|
836
|
+
let currentRawResponse:
|
|
837
|
+
| coreClient.FullOperationResponse
|
|
838
|
+
| undefined = undefined;
|
|
839
|
+
const providedCallback = args.options?.onResponse;
|
|
840
|
+
const callback: coreClient.RawResponseCallback = (
|
|
841
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
842
|
+
flatResponse: unknown
|
|
843
|
+
) => {
|
|
844
|
+
currentRawResponse = rawResponse;
|
|
845
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
846
|
+
};
|
|
847
|
+
const updatedArgs = {
|
|
848
|
+
...args,
|
|
849
|
+
options: {
|
|
850
|
+
...args.options,
|
|
851
|
+
onResponse: callback
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
855
|
+
return {
|
|
856
|
+
flatResponse,
|
|
857
|
+
rawResponse: {
|
|
858
|
+
statusCode: currentRawResponse!.status,
|
|
859
|
+
body: currentRawResponse!.parsedBody,
|
|
860
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
861
|
+
}
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
|
|
865
|
+
const lro = new LroImpl(
|
|
866
|
+
sendOperation,
|
|
867
|
+
{ scope, eventSubscriptionName, eventSubscriptionInfo, options },
|
|
868
|
+
createOrUpdateOperationSpec
|
|
869
|
+
);
|
|
870
|
+
return new LroEngine(lro, {
|
|
871
|
+
resumeFrom: options?.resumeFrom,
|
|
872
|
+
intervalInMs: options?.updateIntervalInMs
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Asynchronously creates a new event subscription or updates an existing event subscription based on
|
|
878
|
+
* the specified scope.
|
|
879
|
+
* @param scope The identifier of the resource to which the event subscription needs to be created or
|
|
880
|
+
* updated. The scope can be a subscription, or a resource group, or a top level resource belonging to
|
|
881
|
+
* a resource provider namespace, or an EventGrid topic. For example, use
|
|
882
|
+
* '/subscriptions/{subscriptionId}/' for a subscription,
|
|
883
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
|
|
884
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
|
|
885
|
+
* for a resource, and
|
|
886
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
|
887
|
+
* for an EventGrid topic.
|
|
888
|
+
* @param eventSubscriptionName Name of the event subscription. Event subscription names must be
|
|
889
|
+
* between 3 and 64 characters in length and should use alphanumeric letters only.
|
|
890
|
+
* @param eventSubscriptionInfo Event subscription properties containing the destination and filter
|
|
891
|
+
* information.
|
|
892
|
+
* @param options The options parameters.
|
|
893
|
+
*/
|
|
894
|
+
async beginCreateOrUpdateAndWait(
|
|
895
|
+
scope: string,
|
|
896
|
+
eventSubscriptionName: string,
|
|
897
|
+
eventSubscriptionInfo: EventSubscription,
|
|
898
|
+
options?: EventSubscriptionsCreateOrUpdateOptionalParams
|
|
899
|
+
): Promise<EventSubscriptionsCreateOrUpdateResponse> {
|
|
900
|
+
const poller = await this.beginCreateOrUpdate(
|
|
901
|
+
scope,
|
|
902
|
+
eventSubscriptionName,
|
|
903
|
+
eventSubscriptionInfo,
|
|
904
|
+
options
|
|
905
|
+
);
|
|
906
|
+
return poller.pollUntilDone();
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* Delete an existing event subscription.
|
|
911
|
+
* @param scope The scope of the event subscription. The scope can be a subscription, or a resource
|
|
912
|
+
* group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
|
|
913
|
+
* For example, use '/subscriptions/{subscriptionId}/' for a subscription,
|
|
914
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
|
|
915
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
|
|
916
|
+
* for a resource, and
|
|
917
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
|
918
|
+
* for an EventGrid topic.
|
|
919
|
+
* @param eventSubscriptionName Name of the event subscription.
|
|
920
|
+
* @param options The options parameters.
|
|
921
|
+
*/
|
|
922
|
+
async beginDelete(
|
|
923
|
+
scope: string,
|
|
924
|
+
eventSubscriptionName: string,
|
|
925
|
+
options?: EventSubscriptionsDeleteOptionalParams
|
|
926
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
927
|
+
const directSendOperation = async (
|
|
928
|
+
args: coreClient.OperationArguments,
|
|
929
|
+
spec: coreClient.OperationSpec
|
|
930
|
+
): Promise<void> => {
|
|
931
|
+
return this.client.sendOperationRequest(args, spec);
|
|
932
|
+
};
|
|
933
|
+
const sendOperation = async (
|
|
934
|
+
args: coreClient.OperationArguments,
|
|
935
|
+
spec: coreClient.OperationSpec
|
|
936
|
+
) => {
|
|
937
|
+
let currentRawResponse:
|
|
938
|
+
| coreClient.FullOperationResponse
|
|
939
|
+
| undefined = undefined;
|
|
940
|
+
const providedCallback = args.options?.onResponse;
|
|
941
|
+
const callback: coreClient.RawResponseCallback = (
|
|
942
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
943
|
+
flatResponse: unknown
|
|
944
|
+
) => {
|
|
945
|
+
currentRawResponse = rawResponse;
|
|
946
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
947
|
+
};
|
|
948
|
+
const updatedArgs = {
|
|
949
|
+
...args,
|
|
950
|
+
options: {
|
|
951
|
+
...args.options,
|
|
952
|
+
onResponse: callback
|
|
953
|
+
}
|
|
954
|
+
};
|
|
955
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
956
|
+
return {
|
|
957
|
+
flatResponse,
|
|
958
|
+
rawResponse: {
|
|
959
|
+
statusCode: currentRawResponse!.status,
|
|
960
|
+
body: currentRawResponse!.parsedBody,
|
|
961
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
962
|
+
}
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
const lro = new LroImpl(
|
|
967
|
+
sendOperation,
|
|
968
|
+
{ scope, eventSubscriptionName, options },
|
|
969
|
+
deleteOperationSpec
|
|
970
|
+
);
|
|
971
|
+
return new LroEngine(lro, {
|
|
972
|
+
resumeFrom: options?.resumeFrom,
|
|
973
|
+
intervalInMs: options?.updateIntervalInMs
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* Delete an existing event subscription.
|
|
979
|
+
* @param scope The scope of the event subscription. The scope can be a subscription, or a resource
|
|
980
|
+
* group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
|
|
981
|
+
* For example, use '/subscriptions/{subscriptionId}/' for a subscription,
|
|
982
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
|
|
983
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
|
|
984
|
+
* for a resource, and
|
|
985
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
|
986
|
+
* for an EventGrid topic.
|
|
987
|
+
* @param eventSubscriptionName Name of the event subscription.
|
|
988
|
+
* @param options The options parameters.
|
|
989
|
+
*/
|
|
990
|
+
async beginDeleteAndWait(
|
|
991
|
+
scope: string,
|
|
992
|
+
eventSubscriptionName: string,
|
|
993
|
+
options?: EventSubscriptionsDeleteOptionalParams
|
|
994
|
+
): Promise<void> {
|
|
995
|
+
const poller = await this.beginDelete(
|
|
996
|
+
scope,
|
|
997
|
+
eventSubscriptionName,
|
|
998
|
+
options
|
|
999
|
+
);
|
|
1000
|
+
return poller.pollUntilDone();
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* Asynchronously updates an existing event subscription.
|
|
1005
|
+
* @param scope The scope of existing event subscription. The scope can be a subscription, or a
|
|
1006
|
+
* resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid
|
|
1007
|
+
* topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
|
|
1008
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
|
|
1009
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
|
|
1010
|
+
* for a resource, and
|
|
1011
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
|
1012
|
+
* for an EventGrid topic.
|
|
1013
|
+
* @param eventSubscriptionName Name of the event subscription to be updated.
|
|
1014
|
+
* @param eventSubscriptionUpdateParameters Updated event subscription information.
|
|
1015
|
+
* @param options The options parameters.
|
|
1016
|
+
*/
|
|
1017
|
+
async beginUpdate(
|
|
1018
|
+
scope: string,
|
|
1019
|
+
eventSubscriptionName: string,
|
|
1020
|
+
eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters,
|
|
1021
|
+
options?: EventSubscriptionsUpdateOptionalParams
|
|
1022
|
+
): Promise<
|
|
1023
|
+
PollerLike<
|
|
1024
|
+
PollOperationState<EventSubscriptionsUpdateResponse>,
|
|
1025
|
+
EventSubscriptionsUpdateResponse
|
|
1026
|
+
>
|
|
1027
|
+
> {
|
|
1028
|
+
const directSendOperation = async (
|
|
1029
|
+
args: coreClient.OperationArguments,
|
|
1030
|
+
spec: coreClient.OperationSpec
|
|
1031
|
+
): Promise<EventSubscriptionsUpdateResponse> => {
|
|
1032
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1033
|
+
};
|
|
1034
|
+
const sendOperation = async (
|
|
1035
|
+
args: coreClient.OperationArguments,
|
|
1036
|
+
spec: coreClient.OperationSpec
|
|
1037
|
+
) => {
|
|
1038
|
+
let currentRawResponse:
|
|
1039
|
+
| coreClient.FullOperationResponse
|
|
1040
|
+
| undefined = undefined;
|
|
1041
|
+
const providedCallback = args.options?.onResponse;
|
|
1042
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1043
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1044
|
+
flatResponse: unknown
|
|
1045
|
+
) => {
|
|
1046
|
+
currentRawResponse = rawResponse;
|
|
1047
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1048
|
+
};
|
|
1049
|
+
const updatedArgs = {
|
|
1050
|
+
...args,
|
|
1051
|
+
options: {
|
|
1052
|
+
...args.options,
|
|
1053
|
+
onResponse: callback
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
1056
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1057
|
+
return {
|
|
1058
|
+
flatResponse,
|
|
1059
|
+
rawResponse: {
|
|
1060
|
+
statusCode: currentRawResponse!.status,
|
|
1061
|
+
body: currentRawResponse!.parsedBody,
|
|
1062
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1063
|
+
}
|
|
1064
|
+
};
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1067
|
+
const lro = new LroImpl(
|
|
1068
|
+
sendOperation,
|
|
1069
|
+
{
|
|
1070
|
+
scope,
|
|
1071
|
+
eventSubscriptionName,
|
|
1072
|
+
eventSubscriptionUpdateParameters,
|
|
1073
|
+
options
|
|
1074
|
+
},
|
|
1075
|
+
updateOperationSpec
|
|
1076
|
+
);
|
|
1077
|
+
return new LroEngine(lro, {
|
|
1078
|
+
resumeFrom: options?.resumeFrom,
|
|
1079
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Asynchronously updates an existing event subscription.
|
|
1085
|
+
* @param scope The scope of existing event subscription. The scope can be a subscription, or a
|
|
1086
|
+
* resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid
|
|
1087
|
+
* topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
|
|
1088
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
|
|
1089
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
|
|
1090
|
+
* for a resource, and
|
|
1091
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
|
1092
|
+
* for an EventGrid topic.
|
|
1093
|
+
* @param eventSubscriptionName Name of the event subscription to be updated.
|
|
1094
|
+
* @param eventSubscriptionUpdateParameters Updated event subscription information.
|
|
1095
|
+
* @param options The options parameters.
|
|
1096
|
+
*/
|
|
1097
|
+
async beginUpdateAndWait(
|
|
1098
|
+
scope: string,
|
|
1099
|
+
eventSubscriptionName: string,
|
|
1100
|
+
eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters,
|
|
1101
|
+
options?: EventSubscriptionsUpdateOptionalParams
|
|
1102
|
+
): Promise<EventSubscriptionsUpdateResponse> {
|
|
1103
|
+
const poller = await this.beginUpdate(
|
|
1104
|
+
scope,
|
|
1105
|
+
eventSubscriptionName,
|
|
1106
|
+
eventSubscriptionUpdateParameters,
|
|
1107
|
+
options
|
|
1108
|
+
);
|
|
1109
|
+
return poller.pollUntilDone();
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* Get the full endpoint URL for an event subscription.
|
|
1114
|
+
* @param scope The scope of the event subscription. The scope can be a subscription, or a resource
|
|
1115
|
+
* group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
|
|
1116
|
+
* For example, use '/subscriptions/{subscriptionId}/' for a subscription,
|
|
1117
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
|
|
1118
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
|
|
1119
|
+
* for a resource, and
|
|
1120
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
|
1121
|
+
* for an EventGrid topic.
|
|
1122
|
+
* @param eventSubscriptionName Name of the event subscription.
|
|
1123
|
+
* @param options The options parameters.
|
|
1124
|
+
*/
|
|
1125
|
+
getFullUrl(
|
|
1126
|
+
scope: string,
|
|
1127
|
+
eventSubscriptionName: string,
|
|
1128
|
+
options?: EventSubscriptionsGetFullUrlOptionalParams
|
|
1129
|
+
): Promise<EventSubscriptionsGetFullUrlResponse> {
|
|
1130
|
+
return this.client.sendOperationRequest(
|
|
1131
|
+
{ scope, eventSubscriptionName, options },
|
|
1132
|
+
getFullUrlOperationSpec
|
|
1133
|
+
);
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* List all aggregated global event subscriptions under a specific Azure subscription.
|
|
1138
|
+
* @param options The options parameters.
|
|
1139
|
+
*/
|
|
1140
|
+
private _listGlobalBySubscription(
|
|
1141
|
+
options?: EventSubscriptionsListGlobalBySubscriptionOptionalParams
|
|
1142
|
+
): Promise<EventSubscriptionsListGlobalBySubscriptionResponse> {
|
|
1143
|
+
return this.client.sendOperationRequest(
|
|
1144
|
+
{ options },
|
|
1145
|
+
listGlobalBySubscriptionOperationSpec
|
|
1146
|
+
);
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* List all global event subscriptions under an Azure subscription for a topic type.
|
|
1151
|
+
* @param topicTypeName Name of the topic type.
|
|
1152
|
+
* @param options The options parameters.
|
|
1153
|
+
*/
|
|
1154
|
+
private _listGlobalBySubscriptionForTopicType(
|
|
1155
|
+
topicTypeName: string,
|
|
1156
|
+
options?: EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams
|
|
1157
|
+
): Promise<EventSubscriptionsListGlobalBySubscriptionForTopicTypeResponse> {
|
|
1158
|
+
return this.client.sendOperationRequest(
|
|
1159
|
+
{ topicTypeName, options },
|
|
1160
|
+
listGlobalBySubscriptionForTopicTypeOperationSpec
|
|
1161
|
+
);
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* List all global event subscriptions under a specific Azure subscription and resource group.
|
|
1166
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
1167
|
+
* @param options The options parameters.
|
|
1168
|
+
*/
|
|
1169
|
+
private _listGlobalByResourceGroup(
|
|
1170
|
+
resourceGroupName: string,
|
|
1171
|
+
options?: EventSubscriptionsListGlobalByResourceGroupOptionalParams
|
|
1172
|
+
): Promise<EventSubscriptionsListGlobalByResourceGroupResponse> {
|
|
1173
|
+
return this.client.sendOperationRequest(
|
|
1174
|
+
{ resourceGroupName, options },
|
|
1175
|
+
listGlobalByResourceGroupOperationSpec
|
|
1176
|
+
);
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* List all global event subscriptions under a resource group for a specific topic type.
|
|
1181
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
1182
|
+
* @param topicTypeName Name of the topic type.
|
|
1183
|
+
* @param options The options parameters.
|
|
1184
|
+
*/
|
|
1185
|
+
private _listGlobalByResourceGroupForTopicType(
|
|
1186
|
+
resourceGroupName: string,
|
|
1187
|
+
topicTypeName: string,
|
|
1188
|
+
options?: EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams
|
|
1189
|
+
): Promise<EventSubscriptionsListGlobalByResourceGroupForTopicTypeResponse> {
|
|
1190
|
+
return this.client.sendOperationRequest(
|
|
1191
|
+
{ resourceGroupName, topicTypeName, options },
|
|
1192
|
+
listGlobalByResourceGroupForTopicTypeOperationSpec
|
|
1193
|
+
);
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* List all event subscriptions from the given location under a specific Azure subscription.
|
|
1198
|
+
* @param location Name of the location.
|
|
1199
|
+
* @param options The options parameters.
|
|
1200
|
+
*/
|
|
1201
|
+
private _listRegionalBySubscription(
|
|
1202
|
+
location: string,
|
|
1203
|
+
options?: EventSubscriptionsListRegionalBySubscriptionOptionalParams
|
|
1204
|
+
): Promise<EventSubscriptionsListRegionalBySubscriptionResponse> {
|
|
1205
|
+
return this.client.sendOperationRequest(
|
|
1206
|
+
{ location, options },
|
|
1207
|
+
listRegionalBySubscriptionOperationSpec
|
|
1208
|
+
);
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* List all event subscriptions from the given location under a specific Azure subscription and
|
|
1213
|
+
* resource group.
|
|
1214
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
1215
|
+
* @param location Name of the location.
|
|
1216
|
+
* @param options The options parameters.
|
|
1217
|
+
*/
|
|
1218
|
+
private _listRegionalByResourceGroup(
|
|
1219
|
+
resourceGroupName: string,
|
|
1220
|
+
location: string,
|
|
1221
|
+
options?: EventSubscriptionsListRegionalByResourceGroupOptionalParams
|
|
1222
|
+
): Promise<EventSubscriptionsListRegionalByResourceGroupResponse> {
|
|
1223
|
+
return this.client.sendOperationRequest(
|
|
1224
|
+
{ resourceGroupName, location, options },
|
|
1225
|
+
listRegionalByResourceGroupOperationSpec
|
|
1226
|
+
);
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* List all event subscriptions from the given location under a specific Azure subscription and topic
|
|
1231
|
+
* type.
|
|
1232
|
+
* @param location Name of the location.
|
|
1233
|
+
* @param topicTypeName Name of the topic type.
|
|
1234
|
+
* @param options The options parameters.
|
|
1235
|
+
*/
|
|
1236
|
+
private _listRegionalBySubscriptionForTopicType(
|
|
1237
|
+
location: string,
|
|
1238
|
+
topicTypeName: string,
|
|
1239
|
+
options?: EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams
|
|
1240
|
+
): Promise<EventSubscriptionsListRegionalBySubscriptionForTopicTypeResponse> {
|
|
1241
|
+
return this.client.sendOperationRequest(
|
|
1242
|
+
{ location, topicTypeName, options },
|
|
1243
|
+
listRegionalBySubscriptionForTopicTypeOperationSpec
|
|
1244
|
+
);
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* List all event subscriptions from the given location under a specific Azure subscription and
|
|
1249
|
+
* resource group and topic type.
|
|
1250
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
1251
|
+
* @param location Name of the location.
|
|
1252
|
+
* @param topicTypeName Name of the topic type.
|
|
1253
|
+
* @param options The options parameters.
|
|
1254
|
+
*/
|
|
1255
|
+
private _listRegionalByResourceGroupForTopicType(
|
|
1256
|
+
resourceGroupName: string,
|
|
1257
|
+
location: string,
|
|
1258
|
+
topicTypeName: string,
|
|
1259
|
+
options?: EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams
|
|
1260
|
+
): Promise<
|
|
1261
|
+
EventSubscriptionsListRegionalByResourceGroupForTopicTypeResponse
|
|
1262
|
+
> {
|
|
1263
|
+
return this.client.sendOperationRequest(
|
|
1264
|
+
{ resourceGroupName, location, topicTypeName, options },
|
|
1265
|
+
listRegionalByResourceGroupForTopicTypeOperationSpec
|
|
1266
|
+
);
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* List all event subscriptions that have been created for a specific topic.
|
|
1271
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
1272
|
+
* @param providerNamespace Namespace of the provider of the topic.
|
|
1273
|
+
* @param resourceTypeName Name of the resource type.
|
|
1274
|
+
* @param resourceName Name of the resource.
|
|
1275
|
+
* @param options The options parameters.
|
|
1276
|
+
*/
|
|
1277
|
+
private _listByResource(
|
|
1278
|
+
resourceGroupName: string,
|
|
1279
|
+
providerNamespace: string,
|
|
1280
|
+
resourceTypeName: string,
|
|
1281
|
+
resourceName: string,
|
|
1282
|
+
options?: EventSubscriptionsListByResourceOptionalParams
|
|
1283
|
+
): Promise<EventSubscriptionsListByResourceResponse> {
|
|
1284
|
+
return this.client.sendOperationRequest(
|
|
1285
|
+
{
|
|
1286
|
+
resourceGroupName,
|
|
1287
|
+
providerNamespace,
|
|
1288
|
+
resourceTypeName,
|
|
1289
|
+
resourceName,
|
|
1290
|
+
options
|
|
1291
|
+
},
|
|
1292
|
+
listByResourceOperationSpec
|
|
1293
|
+
);
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* List all event subscriptions that have been created for a specific domain topic.
|
|
1298
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
1299
|
+
* @param domainName Name of the top level domain.
|
|
1300
|
+
* @param topicName Name of the domain topic.
|
|
1301
|
+
* @param options The options parameters.
|
|
1302
|
+
*/
|
|
1303
|
+
private _listByDomainTopic(
|
|
1304
|
+
resourceGroupName: string,
|
|
1305
|
+
domainName: string,
|
|
1306
|
+
topicName: string,
|
|
1307
|
+
options?: EventSubscriptionsListByDomainTopicOptionalParams
|
|
1308
|
+
): Promise<EventSubscriptionsListByDomainTopicResponse> {
|
|
1309
|
+
return this.client.sendOperationRequest(
|
|
1310
|
+
{ resourceGroupName, domainName, topicName, options },
|
|
1311
|
+
listByDomainTopicOperationSpec
|
|
1312
|
+
);
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* Get all delivery attributes for an event subscription.
|
|
1317
|
+
* @param scope The scope of the event subscription. The scope can be a subscription, or a resource
|
|
1318
|
+
* group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
|
|
1319
|
+
* For example, use '/subscriptions/{subscriptionId}/' for a subscription,
|
|
1320
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
|
|
1321
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
|
|
1322
|
+
* for a resource, and
|
|
1323
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
|
1324
|
+
* for an EventGrid topic.
|
|
1325
|
+
* @param eventSubscriptionName Name of the event subscription.
|
|
1326
|
+
* @param options The options parameters.
|
|
1327
|
+
*/
|
|
1328
|
+
getDeliveryAttributes(
|
|
1329
|
+
scope: string,
|
|
1330
|
+
eventSubscriptionName: string,
|
|
1331
|
+
options?: EventSubscriptionsGetDeliveryAttributesOptionalParams
|
|
1332
|
+
): Promise<EventSubscriptionsGetDeliveryAttributesResponse> {
|
|
1333
|
+
return this.client.sendOperationRequest(
|
|
1334
|
+
{ scope, eventSubscriptionName, options },
|
|
1335
|
+
getDeliveryAttributesOperationSpec
|
|
1336
|
+
);
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* ListGlobalBySubscriptionNext
|
|
1341
|
+
* @param nextLink The nextLink from the previous successful call to the ListGlobalBySubscription
|
|
1342
|
+
* method.
|
|
1343
|
+
* @param options The options parameters.
|
|
1344
|
+
*/
|
|
1345
|
+
private _listGlobalBySubscriptionNext(
|
|
1346
|
+
nextLink: string,
|
|
1347
|
+
options?: EventSubscriptionsListGlobalBySubscriptionNextOptionalParams
|
|
1348
|
+
): Promise<EventSubscriptionsListGlobalBySubscriptionNextResponse> {
|
|
1349
|
+
return this.client.sendOperationRequest(
|
|
1350
|
+
{ nextLink, options },
|
|
1351
|
+
listGlobalBySubscriptionNextOperationSpec
|
|
1352
|
+
);
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* ListGlobalBySubscriptionForTopicTypeNext
|
|
1357
|
+
* @param topicTypeName Name of the topic type.
|
|
1358
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
1359
|
+
* ListGlobalBySubscriptionForTopicType method.
|
|
1360
|
+
* @param options The options parameters.
|
|
1361
|
+
*/
|
|
1362
|
+
private _listGlobalBySubscriptionForTopicTypeNext(
|
|
1363
|
+
topicTypeName: string,
|
|
1364
|
+
nextLink: string,
|
|
1365
|
+
options?: EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextOptionalParams
|
|
1366
|
+
): Promise<
|
|
1367
|
+
EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextResponse
|
|
1368
|
+
> {
|
|
1369
|
+
return this.client.sendOperationRequest(
|
|
1370
|
+
{ topicTypeName, nextLink, options },
|
|
1371
|
+
listGlobalBySubscriptionForTopicTypeNextOperationSpec
|
|
1372
|
+
);
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* ListGlobalByResourceGroupNext
|
|
1377
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
1378
|
+
* @param nextLink The nextLink from the previous successful call to the ListGlobalByResourceGroup
|
|
1379
|
+
* method.
|
|
1380
|
+
* @param options The options parameters.
|
|
1381
|
+
*/
|
|
1382
|
+
private _listGlobalByResourceGroupNext(
|
|
1383
|
+
resourceGroupName: string,
|
|
1384
|
+
nextLink: string,
|
|
1385
|
+
options?: EventSubscriptionsListGlobalByResourceGroupNextOptionalParams
|
|
1386
|
+
): Promise<EventSubscriptionsListGlobalByResourceGroupNextResponse> {
|
|
1387
|
+
return this.client.sendOperationRequest(
|
|
1388
|
+
{ resourceGroupName, nextLink, options },
|
|
1389
|
+
listGlobalByResourceGroupNextOperationSpec
|
|
1390
|
+
);
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* ListGlobalByResourceGroupForTopicTypeNext
|
|
1395
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
1396
|
+
* @param topicTypeName Name of the topic type.
|
|
1397
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
1398
|
+
* ListGlobalByResourceGroupForTopicType method.
|
|
1399
|
+
* @param options The options parameters.
|
|
1400
|
+
*/
|
|
1401
|
+
private _listGlobalByResourceGroupForTopicTypeNext(
|
|
1402
|
+
resourceGroupName: string,
|
|
1403
|
+
topicTypeName: string,
|
|
1404
|
+
nextLink: string,
|
|
1405
|
+
options?: EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextOptionalParams
|
|
1406
|
+
): Promise<
|
|
1407
|
+
EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextResponse
|
|
1408
|
+
> {
|
|
1409
|
+
return this.client.sendOperationRequest(
|
|
1410
|
+
{ resourceGroupName, topicTypeName, nextLink, options },
|
|
1411
|
+
listGlobalByResourceGroupForTopicTypeNextOperationSpec
|
|
1412
|
+
);
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* ListRegionalBySubscriptionNext
|
|
1417
|
+
* @param location Name of the location.
|
|
1418
|
+
* @param nextLink The nextLink from the previous successful call to the ListRegionalBySubscription
|
|
1419
|
+
* method.
|
|
1420
|
+
* @param options The options parameters.
|
|
1421
|
+
*/
|
|
1422
|
+
private _listRegionalBySubscriptionNext(
|
|
1423
|
+
location: string,
|
|
1424
|
+
nextLink: string,
|
|
1425
|
+
options?: EventSubscriptionsListRegionalBySubscriptionNextOptionalParams
|
|
1426
|
+
): Promise<EventSubscriptionsListRegionalBySubscriptionNextResponse> {
|
|
1427
|
+
return this.client.sendOperationRequest(
|
|
1428
|
+
{ location, nextLink, options },
|
|
1429
|
+
listRegionalBySubscriptionNextOperationSpec
|
|
1430
|
+
);
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* ListRegionalByResourceGroupNext
|
|
1435
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
1436
|
+
* @param location Name of the location.
|
|
1437
|
+
* @param nextLink The nextLink from the previous successful call to the ListRegionalByResourceGroup
|
|
1438
|
+
* method.
|
|
1439
|
+
* @param options The options parameters.
|
|
1440
|
+
*/
|
|
1441
|
+
private _listRegionalByResourceGroupNext(
|
|
1442
|
+
resourceGroupName: string,
|
|
1443
|
+
location: string,
|
|
1444
|
+
nextLink: string,
|
|
1445
|
+
options?: EventSubscriptionsListRegionalByResourceGroupNextOptionalParams
|
|
1446
|
+
): Promise<EventSubscriptionsListRegionalByResourceGroupNextResponse> {
|
|
1447
|
+
return this.client.sendOperationRequest(
|
|
1448
|
+
{ resourceGroupName, location, nextLink, options },
|
|
1449
|
+
listRegionalByResourceGroupNextOperationSpec
|
|
1450
|
+
);
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* ListRegionalBySubscriptionForTopicTypeNext
|
|
1455
|
+
* @param location Name of the location.
|
|
1456
|
+
* @param topicTypeName Name of the topic type.
|
|
1457
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
1458
|
+
* ListRegionalBySubscriptionForTopicType method.
|
|
1459
|
+
* @param options The options parameters.
|
|
1460
|
+
*/
|
|
1461
|
+
private _listRegionalBySubscriptionForTopicTypeNext(
|
|
1462
|
+
location: string,
|
|
1463
|
+
topicTypeName: string,
|
|
1464
|
+
nextLink: string,
|
|
1465
|
+
options?: EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextOptionalParams
|
|
1466
|
+
): Promise<
|
|
1467
|
+
EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextResponse
|
|
1468
|
+
> {
|
|
1469
|
+
return this.client.sendOperationRequest(
|
|
1470
|
+
{ location, topicTypeName, nextLink, options },
|
|
1471
|
+
listRegionalBySubscriptionForTopicTypeNextOperationSpec
|
|
1472
|
+
);
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* ListRegionalByResourceGroupForTopicTypeNext
|
|
1477
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
1478
|
+
* @param location Name of the location.
|
|
1479
|
+
* @param topicTypeName Name of the topic type.
|
|
1480
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
1481
|
+
* ListRegionalByResourceGroupForTopicType method.
|
|
1482
|
+
* @param options The options parameters.
|
|
1483
|
+
*/
|
|
1484
|
+
private _listRegionalByResourceGroupForTopicTypeNext(
|
|
1485
|
+
resourceGroupName: string,
|
|
1486
|
+
location: string,
|
|
1487
|
+
topicTypeName: string,
|
|
1488
|
+
nextLink: string,
|
|
1489
|
+
options?: EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextOptionalParams
|
|
1490
|
+
): Promise<
|
|
1491
|
+
EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextResponse
|
|
1492
|
+
> {
|
|
1493
|
+
return this.client.sendOperationRequest(
|
|
1494
|
+
{ resourceGroupName, location, topicTypeName, nextLink, options },
|
|
1495
|
+
listRegionalByResourceGroupForTopicTypeNextOperationSpec
|
|
1496
|
+
);
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* ListByResourceNext
|
|
1501
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
1502
|
+
* @param providerNamespace Namespace of the provider of the topic.
|
|
1503
|
+
* @param resourceTypeName Name of the resource type.
|
|
1504
|
+
* @param resourceName Name of the resource.
|
|
1505
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResource method.
|
|
1506
|
+
* @param options The options parameters.
|
|
1507
|
+
*/
|
|
1508
|
+
private _listByResourceNext(
|
|
1509
|
+
resourceGroupName: string,
|
|
1510
|
+
providerNamespace: string,
|
|
1511
|
+
resourceTypeName: string,
|
|
1512
|
+
resourceName: string,
|
|
1513
|
+
nextLink: string,
|
|
1514
|
+
options?: EventSubscriptionsListByResourceNextOptionalParams
|
|
1515
|
+
): Promise<EventSubscriptionsListByResourceNextResponse> {
|
|
1516
|
+
return this.client.sendOperationRequest(
|
|
1517
|
+
{
|
|
1518
|
+
resourceGroupName,
|
|
1519
|
+
providerNamespace,
|
|
1520
|
+
resourceTypeName,
|
|
1521
|
+
resourceName,
|
|
1522
|
+
nextLink,
|
|
1523
|
+
options
|
|
1524
|
+
},
|
|
1525
|
+
listByResourceNextOperationSpec
|
|
1526
|
+
);
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
/**
|
|
1530
|
+
* ListByDomainTopicNext
|
|
1531
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
1532
|
+
* @param domainName Name of the top level domain.
|
|
1533
|
+
* @param topicName Name of the domain topic.
|
|
1534
|
+
* @param nextLink The nextLink from the previous successful call to the ListByDomainTopic method.
|
|
1535
|
+
* @param options The options parameters.
|
|
1536
|
+
*/
|
|
1537
|
+
private _listByDomainTopicNext(
|
|
1538
|
+
resourceGroupName: string,
|
|
1539
|
+
domainName: string,
|
|
1540
|
+
topicName: string,
|
|
1541
|
+
nextLink: string,
|
|
1542
|
+
options?: EventSubscriptionsListByDomainTopicNextOptionalParams
|
|
1543
|
+
): Promise<EventSubscriptionsListByDomainTopicNextResponse> {
|
|
1544
|
+
return this.client.sendOperationRequest(
|
|
1545
|
+
{ resourceGroupName, domainName, topicName, nextLink, options },
|
|
1546
|
+
listByDomainTopicNextOperationSpec
|
|
1547
|
+
);
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
// Operation Specifications
|
|
1551
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1552
|
+
|
|
1553
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
1554
|
+
path:
|
|
1555
|
+
"/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
|
|
1556
|
+
httpMethod: "GET",
|
|
1557
|
+
responses: {
|
|
1558
|
+
200: {
|
|
1559
|
+
bodyMapper: Mappers.EventSubscription
|
|
1560
|
+
},
|
|
1561
|
+
default: {}
|
|
1562
|
+
},
|
|
1563
|
+
queryParameters: [Parameters.apiVersion],
|
|
1564
|
+
urlParameters: [
|
|
1565
|
+
Parameters.$host,
|
|
1566
|
+
Parameters.scope,
|
|
1567
|
+
Parameters.eventSubscriptionName
|
|
1568
|
+
],
|
|
1569
|
+
headerParameters: [Parameters.accept],
|
|
1570
|
+
serializer
|
|
1571
|
+
};
|
|
1572
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
1573
|
+
path:
|
|
1574
|
+
"/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
|
|
1575
|
+
httpMethod: "PUT",
|
|
1576
|
+
responses: {
|
|
1577
|
+
200: {
|
|
1578
|
+
bodyMapper: Mappers.EventSubscription
|
|
1579
|
+
},
|
|
1580
|
+
201: {
|
|
1581
|
+
bodyMapper: Mappers.EventSubscription
|
|
1582
|
+
},
|
|
1583
|
+
202: {
|
|
1584
|
+
bodyMapper: Mappers.EventSubscription
|
|
1585
|
+
},
|
|
1586
|
+
204: {
|
|
1587
|
+
bodyMapper: Mappers.EventSubscription
|
|
1588
|
+
},
|
|
1589
|
+
default: {}
|
|
1590
|
+
},
|
|
1591
|
+
requestBody: Parameters.eventSubscriptionInfo,
|
|
1592
|
+
queryParameters: [Parameters.apiVersion],
|
|
1593
|
+
urlParameters: [
|
|
1594
|
+
Parameters.$host,
|
|
1595
|
+
Parameters.scope,
|
|
1596
|
+
Parameters.eventSubscriptionName
|
|
1597
|
+
],
|
|
1598
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1599
|
+
mediaType: "json",
|
|
1600
|
+
serializer
|
|
1601
|
+
};
|
|
1602
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
1603
|
+
path:
|
|
1604
|
+
"/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
|
|
1605
|
+
httpMethod: "DELETE",
|
|
1606
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
1607
|
+
queryParameters: [Parameters.apiVersion],
|
|
1608
|
+
urlParameters: [
|
|
1609
|
+
Parameters.$host,
|
|
1610
|
+
Parameters.scope,
|
|
1611
|
+
Parameters.eventSubscriptionName
|
|
1612
|
+
],
|
|
1613
|
+
serializer
|
|
1614
|
+
};
|
|
1615
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
1616
|
+
path:
|
|
1617
|
+
"/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
|
|
1618
|
+
httpMethod: "PATCH",
|
|
1619
|
+
responses: {
|
|
1620
|
+
200: {
|
|
1621
|
+
bodyMapper: Mappers.EventSubscription
|
|
1622
|
+
},
|
|
1623
|
+
201: {
|
|
1624
|
+
bodyMapper: Mappers.EventSubscription
|
|
1625
|
+
},
|
|
1626
|
+
202: {
|
|
1627
|
+
bodyMapper: Mappers.EventSubscription
|
|
1628
|
+
},
|
|
1629
|
+
204: {
|
|
1630
|
+
bodyMapper: Mappers.EventSubscription
|
|
1631
|
+
},
|
|
1632
|
+
default: {}
|
|
1633
|
+
},
|
|
1634
|
+
requestBody: Parameters.eventSubscriptionUpdateParameters,
|
|
1635
|
+
queryParameters: [Parameters.apiVersion],
|
|
1636
|
+
urlParameters: [
|
|
1637
|
+
Parameters.$host,
|
|
1638
|
+
Parameters.scope,
|
|
1639
|
+
Parameters.eventSubscriptionName
|
|
1640
|
+
],
|
|
1641
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1642
|
+
mediaType: "json",
|
|
1643
|
+
serializer
|
|
1644
|
+
};
|
|
1645
|
+
const getFullUrlOperationSpec: coreClient.OperationSpec = {
|
|
1646
|
+
path:
|
|
1647
|
+
"/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getFullUrl",
|
|
1648
|
+
httpMethod: "POST",
|
|
1649
|
+
responses: {
|
|
1650
|
+
200: {
|
|
1651
|
+
bodyMapper: Mappers.EventSubscriptionFullUrl
|
|
1652
|
+
},
|
|
1653
|
+
default: {}
|
|
1654
|
+
},
|
|
1655
|
+
queryParameters: [Parameters.apiVersion],
|
|
1656
|
+
urlParameters: [
|
|
1657
|
+
Parameters.$host,
|
|
1658
|
+
Parameters.scope,
|
|
1659
|
+
Parameters.eventSubscriptionName
|
|
1660
|
+
],
|
|
1661
|
+
headerParameters: [Parameters.accept],
|
|
1662
|
+
serializer
|
|
1663
|
+
};
|
|
1664
|
+
const listGlobalBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1665
|
+
path:
|
|
1666
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/eventSubscriptions",
|
|
1667
|
+
httpMethod: "GET",
|
|
1668
|
+
responses: {
|
|
1669
|
+
200: {
|
|
1670
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1671
|
+
},
|
|
1672
|
+
default: {}
|
|
1673
|
+
},
|
|
1674
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1675
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
1676
|
+
headerParameters: [Parameters.accept],
|
|
1677
|
+
serializer
|
|
1678
|
+
};
|
|
1679
|
+
const listGlobalBySubscriptionForTopicTypeOperationSpec: coreClient.OperationSpec = {
|
|
1680
|
+
path:
|
|
1681
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions",
|
|
1682
|
+
httpMethod: "GET",
|
|
1683
|
+
responses: {
|
|
1684
|
+
200: {
|
|
1685
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1686
|
+
},
|
|
1687
|
+
default: {}
|
|
1688
|
+
},
|
|
1689
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1690
|
+
urlParameters: [
|
|
1691
|
+
Parameters.$host,
|
|
1692
|
+
Parameters.subscriptionId,
|
|
1693
|
+
Parameters.topicTypeName
|
|
1694
|
+
],
|
|
1695
|
+
headerParameters: [Parameters.accept],
|
|
1696
|
+
serializer
|
|
1697
|
+
};
|
|
1698
|
+
const listGlobalByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1699
|
+
path:
|
|
1700
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/eventSubscriptions",
|
|
1701
|
+
httpMethod: "GET",
|
|
1702
|
+
responses: {
|
|
1703
|
+
200: {
|
|
1704
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1705
|
+
},
|
|
1706
|
+
default: {}
|
|
1707
|
+
},
|
|
1708
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1709
|
+
urlParameters: [
|
|
1710
|
+
Parameters.$host,
|
|
1711
|
+
Parameters.subscriptionId,
|
|
1712
|
+
Parameters.resourceGroupName
|
|
1713
|
+
],
|
|
1714
|
+
headerParameters: [Parameters.accept],
|
|
1715
|
+
serializer
|
|
1716
|
+
};
|
|
1717
|
+
const listGlobalByResourceGroupForTopicTypeOperationSpec: coreClient.OperationSpec = {
|
|
1718
|
+
path:
|
|
1719
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions",
|
|
1720
|
+
httpMethod: "GET",
|
|
1721
|
+
responses: {
|
|
1722
|
+
200: {
|
|
1723
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1724
|
+
},
|
|
1725
|
+
default: {}
|
|
1726
|
+
},
|
|
1727
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1728
|
+
urlParameters: [
|
|
1729
|
+
Parameters.$host,
|
|
1730
|
+
Parameters.subscriptionId,
|
|
1731
|
+
Parameters.resourceGroupName,
|
|
1732
|
+
Parameters.topicTypeName
|
|
1733
|
+
],
|
|
1734
|
+
headerParameters: [Parameters.accept],
|
|
1735
|
+
serializer
|
|
1736
|
+
};
|
|
1737
|
+
const listRegionalBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1738
|
+
path:
|
|
1739
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions",
|
|
1740
|
+
httpMethod: "GET",
|
|
1741
|
+
responses: {
|
|
1742
|
+
200: {
|
|
1743
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1744
|
+
},
|
|
1745
|
+
default: {}
|
|
1746
|
+
},
|
|
1747
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1748
|
+
urlParameters: [
|
|
1749
|
+
Parameters.$host,
|
|
1750
|
+
Parameters.subscriptionId,
|
|
1751
|
+
Parameters.location
|
|
1752
|
+
],
|
|
1753
|
+
headerParameters: [Parameters.accept],
|
|
1754
|
+
serializer
|
|
1755
|
+
};
|
|
1756
|
+
const listRegionalByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1757
|
+
path:
|
|
1758
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions",
|
|
1759
|
+
httpMethod: "GET",
|
|
1760
|
+
responses: {
|
|
1761
|
+
200: {
|
|
1762
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1763
|
+
},
|
|
1764
|
+
default: {}
|
|
1765
|
+
},
|
|
1766
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1767
|
+
urlParameters: [
|
|
1768
|
+
Parameters.$host,
|
|
1769
|
+
Parameters.subscriptionId,
|
|
1770
|
+
Parameters.resourceGroupName,
|
|
1771
|
+
Parameters.location
|
|
1772
|
+
],
|
|
1773
|
+
headerParameters: [Parameters.accept],
|
|
1774
|
+
serializer
|
|
1775
|
+
};
|
|
1776
|
+
const listRegionalBySubscriptionForTopicTypeOperationSpec: coreClient.OperationSpec = {
|
|
1777
|
+
path:
|
|
1778
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions",
|
|
1779
|
+
httpMethod: "GET",
|
|
1780
|
+
responses: {
|
|
1781
|
+
200: {
|
|
1782
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1783
|
+
},
|
|
1784
|
+
default: {}
|
|
1785
|
+
},
|
|
1786
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1787
|
+
urlParameters: [
|
|
1788
|
+
Parameters.$host,
|
|
1789
|
+
Parameters.subscriptionId,
|
|
1790
|
+
Parameters.topicTypeName,
|
|
1791
|
+
Parameters.location
|
|
1792
|
+
],
|
|
1793
|
+
headerParameters: [Parameters.accept],
|
|
1794
|
+
serializer
|
|
1795
|
+
};
|
|
1796
|
+
const listRegionalByResourceGroupForTopicTypeOperationSpec: coreClient.OperationSpec = {
|
|
1797
|
+
path:
|
|
1798
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions",
|
|
1799
|
+
httpMethod: "GET",
|
|
1800
|
+
responses: {
|
|
1801
|
+
200: {
|
|
1802
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1803
|
+
},
|
|
1804
|
+
default: {}
|
|
1805
|
+
},
|
|
1806
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1807
|
+
urlParameters: [
|
|
1808
|
+
Parameters.$host,
|
|
1809
|
+
Parameters.subscriptionId,
|
|
1810
|
+
Parameters.resourceGroupName,
|
|
1811
|
+
Parameters.topicTypeName,
|
|
1812
|
+
Parameters.location
|
|
1813
|
+
],
|
|
1814
|
+
headerParameters: [Parameters.accept],
|
|
1815
|
+
serializer
|
|
1816
|
+
};
|
|
1817
|
+
const listByResourceOperationSpec: coreClient.OperationSpec = {
|
|
1818
|
+
path:
|
|
1819
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions",
|
|
1820
|
+
httpMethod: "GET",
|
|
1821
|
+
responses: {
|
|
1822
|
+
200: {
|
|
1823
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1824
|
+
},
|
|
1825
|
+
default: {}
|
|
1826
|
+
},
|
|
1827
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1828
|
+
urlParameters: [
|
|
1829
|
+
Parameters.$host,
|
|
1830
|
+
Parameters.subscriptionId,
|
|
1831
|
+
Parameters.resourceGroupName,
|
|
1832
|
+
Parameters.providerNamespace,
|
|
1833
|
+
Parameters.resourceTypeName,
|
|
1834
|
+
Parameters.resourceName
|
|
1835
|
+
],
|
|
1836
|
+
headerParameters: [Parameters.accept],
|
|
1837
|
+
serializer
|
|
1838
|
+
};
|
|
1839
|
+
const listByDomainTopicOperationSpec: coreClient.OperationSpec = {
|
|
1840
|
+
path:
|
|
1841
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/providers/Microsoft.EventGrid/eventSubscriptions",
|
|
1842
|
+
httpMethod: "GET",
|
|
1843
|
+
responses: {
|
|
1844
|
+
200: {
|
|
1845
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1846
|
+
},
|
|
1847
|
+
default: {}
|
|
1848
|
+
},
|
|
1849
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1850
|
+
urlParameters: [
|
|
1851
|
+
Parameters.$host,
|
|
1852
|
+
Parameters.subscriptionId,
|
|
1853
|
+
Parameters.resourceGroupName,
|
|
1854
|
+
Parameters.domainName,
|
|
1855
|
+
Parameters.topicName
|
|
1856
|
+
],
|
|
1857
|
+
headerParameters: [Parameters.accept],
|
|
1858
|
+
serializer
|
|
1859
|
+
};
|
|
1860
|
+
const getDeliveryAttributesOperationSpec: coreClient.OperationSpec = {
|
|
1861
|
+
path:
|
|
1862
|
+
"/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes",
|
|
1863
|
+
httpMethod: "POST",
|
|
1864
|
+
responses: {
|
|
1865
|
+
200: {
|
|
1866
|
+
bodyMapper: Mappers.DeliveryAttributeListResult
|
|
1867
|
+
},
|
|
1868
|
+
default: {}
|
|
1869
|
+
},
|
|
1870
|
+
queryParameters: [Parameters.apiVersion],
|
|
1871
|
+
urlParameters: [
|
|
1872
|
+
Parameters.$host,
|
|
1873
|
+
Parameters.scope,
|
|
1874
|
+
Parameters.eventSubscriptionName
|
|
1875
|
+
],
|
|
1876
|
+
headerParameters: [Parameters.accept],
|
|
1877
|
+
serializer
|
|
1878
|
+
};
|
|
1879
|
+
const listGlobalBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
1880
|
+
path: "{nextLink}",
|
|
1881
|
+
httpMethod: "GET",
|
|
1882
|
+
responses: {
|
|
1883
|
+
200: {
|
|
1884
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1885
|
+
},
|
|
1886
|
+
default: {}
|
|
1887
|
+
},
|
|
1888
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1889
|
+
urlParameters: [
|
|
1890
|
+
Parameters.$host,
|
|
1891
|
+
Parameters.subscriptionId,
|
|
1892
|
+
Parameters.nextLink
|
|
1893
|
+
],
|
|
1894
|
+
headerParameters: [Parameters.accept],
|
|
1895
|
+
serializer
|
|
1896
|
+
};
|
|
1897
|
+
const listGlobalBySubscriptionForTopicTypeNextOperationSpec: coreClient.OperationSpec = {
|
|
1898
|
+
path: "{nextLink}",
|
|
1899
|
+
httpMethod: "GET",
|
|
1900
|
+
responses: {
|
|
1901
|
+
200: {
|
|
1902
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1903
|
+
},
|
|
1904
|
+
default: {}
|
|
1905
|
+
},
|
|
1906
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1907
|
+
urlParameters: [
|
|
1908
|
+
Parameters.$host,
|
|
1909
|
+
Parameters.subscriptionId,
|
|
1910
|
+
Parameters.nextLink,
|
|
1911
|
+
Parameters.topicTypeName
|
|
1912
|
+
],
|
|
1913
|
+
headerParameters: [Parameters.accept],
|
|
1914
|
+
serializer
|
|
1915
|
+
};
|
|
1916
|
+
const listGlobalByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1917
|
+
path: "{nextLink}",
|
|
1918
|
+
httpMethod: "GET",
|
|
1919
|
+
responses: {
|
|
1920
|
+
200: {
|
|
1921
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1922
|
+
},
|
|
1923
|
+
default: {}
|
|
1924
|
+
},
|
|
1925
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1926
|
+
urlParameters: [
|
|
1927
|
+
Parameters.$host,
|
|
1928
|
+
Parameters.subscriptionId,
|
|
1929
|
+
Parameters.resourceGroupName,
|
|
1930
|
+
Parameters.nextLink
|
|
1931
|
+
],
|
|
1932
|
+
headerParameters: [Parameters.accept],
|
|
1933
|
+
serializer
|
|
1934
|
+
};
|
|
1935
|
+
const listGlobalByResourceGroupForTopicTypeNextOperationSpec: coreClient.OperationSpec = {
|
|
1936
|
+
path: "{nextLink}",
|
|
1937
|
+
httpMethod: "GET",
|
|
1938
|
+
responses: {
|
|
1939
|
+
200: {
|
|
1940
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1941
|
+
},
|
|
1942
|
+
default: {}
|
|
1943
|
+
},
|
|
1944
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1945
|
+
urlParameters: [
|
|
1946
|
+
Parameters.$host,
|
|
1947
|
+
Parameters.subscriptionId,
|
|
1948
|
+
Parameters.resourceGroupName,
|
|
1949
|
+
Parameters.nextLink,
|
|
1950
|
+
Parameters.topicTypeName
|
|
1951
|
+
],
|
|
1952
|
+
headerParameters: [Parameters.accept],
|
|
1953
|
+
serializer
|
|
1954
|
+
};
|
|
1955
|
+
const listRegionalBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
1956
|
+
path: "{nextLink}",
|
|
1957
|
+
httpMethod: "GET",
|
|
1958
|
+
responses: {
|
|
1959
|
+
200: {
|
|
1960
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1961
|
+
},
|
|
1962
|
+
default: {}
|
|
1963
|
+
},
|
|
1964
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1965
|
+
urlParameters: [
|
|
1966
|
+
Parameters.$host,
|
|
1967
|
+
Parameters.subscriptionId,
|
|
1968
|
+
Parameters.nextLink,
|
|
1969
|
+
Parameters.location
|
|
1970
|
+
],
|
|
1971
|
+
headerParameters: [Parameters.accept],
|
|
1972
|
+
serializer
|
|
1973
|
+
};
|
|
1974
|
+
const listRegionalByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1975
|
+
path: "{nextLink}",
|
|
1976
|
+
httpMethod: "GET",
|
|
1977
|
+
responses: {
|
|
1978
|
+
200: {
|
|
1979
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
1980
|
+
},
|
|
1981
|
+
default: {}
|
|
1982
|
+
},
|
|
1983
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
1984
|
+
urlParameters: [
|
|
1985
|
+
Parameters.$host,
|
|
1986
|
+
Parameters.subscriptionId,
|
|
1987
|
+
Parameters.resourceGroupName,
|
|
1988
|
+
Parameters.nextLink,
|
|
1989
|
+
Parameters.location
|
|
1990
|
+
],
|
|
1991
|
+
headerParameters: [Parameters.accept],
|
|
1992
|
+
serializer
|
|
1993
|
+
};
|
|
1994
|
+
const listRegionalBySubscriptionForTopicTypeNextOperationSpec: coreClient.OperationSpec = {
|
|
1995
|
+
path: "{nextLink}",
|
|
1996
|
+
httpMethod: "GET",
|
|
1997
|
+
responses: {
|
|
1998
|
+
200: {
|
|
1999
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
2000
|
+
},
|
|
2001
|
+
default: {}
|
|
2002
|
+
},
|
|
2003
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
2004
|
+
urlParameters: [
|
|
2005
|
+
Parameters.$host,
|
|
2006
|
+
Parameters.subscriptionId,
|
|
2007
|
+
Parameters.nextLink,
|
|
2008
|
+
Parameters.topicTypeName,
|
|
2009
|
+
Parameters.location
|
|
2010
|
+
],
|
|
2011
|
+
headerParameters: [Parameters.accept],
|
|
2012
|
+
serializer
|
|
2013
|
+
};
|
|
2014
|
+
const listRegionalByResourceGroupForTopicTypeNextOperationSpec: coreClient.OperationSpec = {
|
|
2015
|
+
path: "{nextLink}",
|
|
2016
|
+
httpMethod: "GET",
|
|
2017
|
+
responses: {
|
|
2018
|
+
200: {
|
|
2019
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
2020
|
+
},
|
|
2021
|
+
default: {}
|
|
2022
|
+
},
|
|
2023
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
2024
|
+
urlParameters: [
|
|
2025
|
+
Parameters.$host,
|
|
2026
|
+
Parameters.subscriptionId,
|
|
2027
|
+
Parameters.resourceGroupName,
|
|
2028
|
+
Parameters.nextLink,
|
|
2029
|
+
Parameters.topicTypeName,
|
|
2030
|
+
Parameters.location
|
|
2031
|
+
],
|
|
2032
|
+
headerParameters: [Parameters.accept],
|
|
2033
|
+
serializer
|
|
2034
|
+
};
|
|
2035
|
+
const listByResourceNextOperationSpec: coreClient.OperationSpec = {
|
|
2036
|
+
path: "{nextLink}",
|
|
2037
|
+
httpMethod: "GET",
|
|
2038
|
+
responses: {
|
|
2039
|
+
200: {
|
|
2040
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
2041
|
+
},
|
|
2042
|
+
default: {}
|
|
2043
|
+
},
|
|
2044
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
2045
|
+
urlParameters: [
|
|
2046
|
+
Parameters.$host,
|
|
2047
|
+
Parameters.subscriptionId,
|
|
2048
|
+
Parameters.resourceGroupName,
|
|
2049
|
+
Parameters.nextLink,
|
|
2050
|
+
Parameters.providerNamespace,
|
|
2051
|
+
Parameters.resourceTypeName,
|
|
2052
|
+
Parameters.resourceName
|
|
2053
|
+
],
|
|
2054
|
+
headerParameters: [Parameters.accept],
|
|
2055
|
+
serializer
|
|
2056
|
+
};
|
|
2057
|
+
const listByDomainTopicNextOperationSpec: coreClient.OperationSpec = {
|
|
2058
|
+
path: "{nextLink}",
|
|
2059
|
+
httpMethod: "GET",
|
|
2060
|
+
responses: {
|
|
2061
|
+
200: {
|
|
2062
|
+
bodyMapper: Mappers.EventSubscriptionsListResult
|
|
2063
|
+
},
|
|
2064
|
+
default: {}
|
|
2065
|
+
},
|
|
2066
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
2067
|
+
urlParameters: [
|
|
2068
|
+
Parameters.$host,
|
|
2069
|
+
Parameters.subscriptionId,
|
|
2070
|
+
Parameters.resourceGroupName,
|
|
2071
|
+
Parameters.domainName,
|
|
2072
|
+
Parameters.nextLink,
|
|
2073
|
+
Parameters.topicName
|
|
2074
|
+
],
|
|
2075
|
+
headerParameters: [Parameters.accept],
|
|
2076
|
+
serializer
|
|
2077
|
+
};
|