@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,139 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
SystemTopic,
|
|
13
|
+
SystemTopicsListBySubscriptionOptionalParams,
|
|
14
|
+
SystemTopicsListByResourceGroupOptionalParams,
|
|
15
|
+
SystemTopicsGetOptionalParams,
|
|
16
|
+
SystemTopicsGetResponse,
|
|
17
|
+
SystemTopicsCreateOrUpdateOptionalParams,
|
|
18
|
+
SystemTopicsCreateOrUpdateResponse,
|
|
19
|
+
SystemTopicsDeleteOptionalParams,
|
|
20
|
+
SystemTopicUpdateParameters,
|
|
21
|
+
SystemTopicsUpdateOptionalParams,
|
|
22
|
+
SystemTopicsUpdateResponse
|
|
23
|
+
} from "../models";
|
|
24
|
+
|
|
25
|
+
/// <reference lib="esnext.asynciterable" />
|
|
26
|
+
/** Interface representing a SystemTopics. */
|
|
27
|
+
export interface SystemTopics {
|
|
28
|
+
/**
|
|
29
|
+
* List all the system topics under an Azure subscription.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
listBySubscription(
|
|
33
|
+
options?: SystemTopicsListBySubscriptionOptionalParams
|
|
34
|
+
): PagedAsyncIterableIterator<SystemTopic>;
|
|
35
|
+
/**
|
|
36
|
+
* List all the system topics under a resource group.
|
|
37
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
listByResourceGroup(
|
|
41
|
+
resourceGroupName: string,
|
|
42
|
+
options?: SystemTopicsListByResourceGroupOptionalParams
|
|
43
|
+
): PagedAsyncIterableIterator<SystemTopic>;
|
|
44
|
+
/**
|
|
45
|
+
* Get properties of a system topic.
|
|
46
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
47
|
+
* @param systemTopicName Name of the system topic.
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
get(
|
|
51
|
+
resourceGroupName: string,
|
|
52
|
+
systemTopicName: string,
|
|
53
|
+
options?: SystemTopicsGetOptionalParams
|
|
54
|
+
): Promise<SystemTopicsGetResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Asynchronously creates a new system topic with the specified parameters.
|
|
57
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
58
|
+
* @param systemTopicName Name of the system topic.
|
|
59
|
+
* @param systemTopicInfo System Topic information.
|
|
60
|
+
* @param options The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
beginCreateOrUpdate(
|
|
63
|
+
resourceGroupName: string,
|
|
64
|
+
systemTopicName: string,
|
|
65
|
+
systemTopicInfo: SystemTopic,
|
|
66
|
+
options?: SystemTopicsCreateOrUpdateOptionalParams
|
|
67
|
+
): Promise<
|
|
68
|
+
PollerLike<
|
|
69
|
+
PollOperationState<SystemTopicsCreateOrUpdateResponse>,
|
|
70
|
+
SystemTopicsCreateOrUpdateResponse
|
|
71
|
+
>
|
|
72
|
+
>;
|
|
73
|
+
/**
|
|
74
|
+
* Asynchronously creates a new system topic with the specified parameters.
|
|
75
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
76
|
+
* @param systemTopicName Name of the system topic.
|
|
77
|
+
* @param systemTopicInfo System Topic information.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
beginCreateOrUpdateAndWait(
|
|
81
|
+
resourceGroupName: string,
|
|
82
|
+
systemTopicName: string,
|
|
83
|
+
systemTopicInfo: SystemTopic,
|
|
84
|
+
options?: SystemTopicsCreateOrUpdateOptionalParams
|
|
85
|
+
): Promise<SystemTopicsCreateOrUpdateResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Delete existing system topic.
|
|
88
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
89
|
+
* @param systemTopicName Name of the system topic.
|
|
90
|
+
* @param options The options parameters.
|
|
91
|
+
*/
|
|
92
|
+
beginDelete(
|
|
93
|
+
resourceGroupName: string,
|
|
94
|
+
systemTopicName: string,
|
|
95
|
+
options?: SystemTopicsDeleteOptionalParams
|
|
96
|
+
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
97
|
+
/**
|
|
98
|
+
* Delete existing system topic.
|
|
99
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
100
|
+
* @param systemTopicName Name of the system topic.
|
|
101
|
+
* @param options The options parameters.
|
|
102
|
+
*/
|
|
103
|
+
beginDeleteAndWait(
|
|
104
|
+
resourceGroupName: string,
|
|
105
|
+
systemTopicName: string,
|
|
106
|
+
options?: SystemTopicsDeleteOptionalParams
|
|
107
|
+
): Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
* Asynchronously updates a system topic with the specified parameters.
|
|
110
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
111
|
+
* @param systemTopicName Name of the system topic.
|
|
112
|
+
* @param systemTopicUpdateParameters SystemTopic update information.
|
|
113
|
+
* @param options The options parameters.
|
|
114
|
+
*/
|
|
115
|
+
beginUpdate(
|
|
116
|
+
resourceGroupName: string,
|
|
117
|
+
systemTopicName: string,
|
|
118
|
+
systemTopicUpdateParameters: SystemTopicUpdateParameters,
|
|
119
|
+
options?: SystemTopicsUpdateOptionalParams
|
|
120
|
+
): Promise<
|
|
121
|
+
PollerLike<
|
|
122
|
+
PollOperationState<SystemTopicsUpdateResponse>,
|
|
123
|
+
SystemTopicsUpdateResponse
|
|
124
|
+
>
|
|
125
|
+
>;
|
|
126
|
+
/**
|
|
127
|
+
* Asynchronously updates a system topic with the specified parameters.
|
|
128
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
129
|
+
* @param systemTopicName Name of the system topic.
|
|
130
|
+
* @param systemTopicUpdateParameters SystemTopic update information.
|
|
131
|
+
* @param options The options parameters.
|
|
132
|
+
*/
|
|
133
|
+
beginUpdateAndWait(
|
|
134
|
+
resourceGroupName: string,
|
|
135
|
+
systemTopicName: string,
|
|
136
|
+
systemTopicUpdateParameters: SystemTopicUpdateParameters,
|
|
137
|
+
options?: SystemTopicsUpdateOptionalParams
|
|
138
|
+
): Promise<SystemTopicsUpdateResponse>;
|
|
139
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 {
|
|
11
|
+
TopicTypeInfo,
|
|
12
|
+
TopicTypesListOptionalParams,
|
|
13
|
+
EventType,
|
|
14
|
+
TopicTypesListEventTypesOptionalParams,
|
|
15
|
+
TopicTypesGetOptionalParams,
|
|
16
|
+
TopicTypesGetResponse
|
|
17
|
+
} from "../models";
|
|
18
|
+
|
|
19
|
+
/// <reference lib="esnext.asynciterable" />
|
|
20
|
+
/** Interface representing a TopicTypes. */
|
|
21
|
+
export interface TopicTypes {
|
|
22
|
+
/**
|
|
23
|
+
* List all registered topic types.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(
|
|
27
|
+
options?: TopicTypesListOptionalParams
|
|
28
|
+
): PagedAsyncIterableIterator<TopicTypeInfo>;
|
|
29
|
+
/**
|
|
30
|
+
* List event types for a topic type.
|
|
31
|
+
* @param topicTypeName Name of the topic type.
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
listEventTypes(
|
|
35
|
+
topicTypeName: string,
|
|
36
|
+
options?: TopicTypesListEventTypesOptionalParams
|
|
37
|
+
): PagedAsyncIterableIterator<EventType>;
|
|
38
|
+
/**
|
|
39
|
+
* Get information about a topic type.
|
|
40
|
+
* @param topicTypeName Name of the topic type.
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
get(
|
|
44
|
+
topicTypeName: string,
|
|
45
|
+
options?: TopicTypesGetOptionalParams
|
|
46
|
+
): Promise<TopicTypesGetResponse>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
Topic,
|
|
13
|
+
TopicsListBySubscriptionOptionalParams,
|
|
14
|
+
TopicsListByResourceGroupOptionalParams,
|
|
15
|
+
EventType,
|
|
16
|
+
TopicsListEventTypesOptionalParams,
|
|
17
|
+
TopicsGetOptionalParams,
|
|
18
|
+
TopicsGetResponse,
|
|
19
|
+
TopicsCreateOrUpdateOptionalParams,
|
|
20
|
+
TopicsCreateOrUpdateResponse,
|
|
21
|
+
TopicsDeleteOptionalParams,
|
|
22
|
+
TopicUpdateParameters,
|
|
23
|
+
TopicsUpdateOptionalParams,
|
|
24
|
+
TopicsListSharedAccessKeysOptionalParams,
|
|
25
|
+
TopicsListSharedAccessKeysResponse,
|
|
26
|
+
TopicRegenerateKeyRequest,
|
|
27
|
+
TopicsRegenerateKeyOptionalParams,
|
|
28
|
+
TopicsRegenerateKeyResponse
|
|
29
|
+
} from "../models";
|
|
30
|
+
|
|
31
|
+
/// <reference lib="esnext.asynciterable" />
|
|
32
|
+
/** Interface representing a Topics. */
|
|
33
|
+
export interface Topics {
|
|
34
|
+
/**
|
|
35
|
+
* List all the topics under an Azure subscription.
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
listBySubscription(
|
|
39
|
+
options?: TopicsListBySubscriptionOptionalParams
|
|
40
|
+
): PagedAsyncIterableIterator<Topic>;
|
|
41
|
+
/**
|
|
42
|
+
* List all the topics under a resource group.
|
|
43
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
44
|
+
* @param options The options parameters.
|
|
45
|
+
*/
|
|
46
|
+
listByResourceGroup(
|
|
47
|
+
resourceGroupName: string,
|
|
48
|
+
options?: TopicsListByResourceGroupOptionalParams
|
|
49
|
+
): PagedAsyncIterableIterator<Topic>;
|
|
50
|
+
/**
|
|
51
|
+
* List event types for a topic.
|
|
52
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
53
|
+
* @param providerNamespace Namespace of the provider of the topic.
|
|
54
|
+
* @param resourceTypeName Name of the topic type.
|
|
55
|
+
* @param resourceName Name of the topic.
|
|
56
|
+
* @param options The options parameters.
|
|
57
|
+
*/
|
|
58
|
+
listEventTypes(
|
|
59
|
+
resourceGroupName: string,
|
|
60
|
+
providerNamespace: string,
|
|
61
|
+
resourceTypeName: string,
|
|
62
|
+
resourceName: string,
|
|
63
|
+
options?: TopicsListEventTypesOptionalParams
|
|
64
|
+
): PagedAsyncIterableIterator<EventType>;
|
|
65
|
+
/**
|
|
66
|
+
* Get properties of a topic.
|
|
67
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
68
|
+
* @param topicName Name of the topic.
|
|
69
|
+
* @param options The options parameters.
|
|
70
|
+
*/
|
|
71
|
+
get(
|
|
72
|
+
resourceGroupName: string,
|
|
73
|
+
topicName: string,
|
|
74
|
+
options?: TopicsGetOptionalParams
|
|
75
|
+
): Promise<TopicsGetResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* Asynchronously creates a new topic with the specified parameters.
|
|
78
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
79
|
+
* @param topicName Name of the topic.
|
|
80
|
+
* @param topicInfo Topic information.
|
|
81
|
+
* @param options The options parameters.
|
|
82
|
+
*/
|
|
83
|
+
beginCreateOrUpdate(
|
|
84
|
+
resourceGroupName: string,
|
|
85
|
+
topicName: string,
|
|
86
|
+
topicInfo: Topic,
|
|
87
|
+
options?: TopicsCreateOrUpdateOptionalParams
|
|
88
|
+
): Promise<
|
|
89
|
+
PollerLike<
|
|
90
|
+
PollOperationState<TopicsCreateOrUpdateResponse>,
|
|
91
|
+
TopicsCreateOrUpdateResponse
|
|
92
|
+
>
|
|
93
|
+
>;
|
|
94
|
+
/**
|
|
95
|
+
* Asynchronously creates a new topic with the specified parameters.
|
|
96
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
97
|
+
* @param topicName Name of the topic.
|
|
98
|
+
* @param topicInfo Topic information.
|
|
99
|
+
* @param options The options parameters.
|
|
100
|
+
*/
|
|
101
|
+
beginCreateOrUpdateAndWait(
|
|
102
|
+
resourceGroupName: string,
|
|
103
|
+
topicName: string,
|
|
104
|
+
topicInfo: Topic,
|
|
105
|
+
options?: TopicsCreateOrUpdateOptionalParams
|
|
106
|
+
): Promise<TopicsCreateOrUpdateResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* Delete existing topic.
|
|
109
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
110
|
+
* @param topicName Name of the topic.
|
|
111
|
+
* @param options The options parameters.
|
|
112
|
+
*/
|
|
113
|
+
beginDelete(
|
|
114
|
+
resourceGroupName: string,
|
|
115
|
+
topicName: string,
|
|
116
|
+
options?: TopicsDeleteOptionalParams
|
|
117
|
+
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
118
|
+
/**
|
|
119
|
+
* Delete existing topic.
|
|
120
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
121
|
+
* @param topicName Name of the topic.
|
|
122
|
+
* @param options The options parameters.
|
|
123
|
+
*/
|
|
124
|
+
beginDeleteAndWait(
|
|
125
|
+
resourceGroupName: string,
|
|
126
|
+
topicName: string,
|
|
127
|
+
options?: TopicsDeleteOptionalParams
|
|
128
|
+
): Promise<void>;
|
|
129
|
+
/**
|
|
130
|
+
* Asynchronously updates a topic with the specified parameters.
|
|
131
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
132
|
+
* @param topicName Name of the topic.
|
|
133
|
+
* @param topicUpdateParameters Topic update information.
|
|
134
|
+
* @param options The options parameters.
|
|
135
|
+
*/
|
|
136
|
+
beginUpdate(
|
|
137
|
+
resourceGroupName: string,
|
|
138
|
+
topicName: string,
|
|
139
|
+
topicUpdateParameters: TopicUpdateParameters,
|
|
140
|
+
options?: TopicsUpdateOptionalParams
|
|
141
|
+
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
142
|
+
/**
|
|
143
|
+
* Asynchronously updates a topic with the specified parameters.
|
|
144
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
145
|
+
* @param topicName Name of the topic.
|
|
146
|
+
* @param topicUpdateParameters Topic update information.
|
|
147
|
+
* @param options The options parameters.
|
|
148
|
+
*/
|
|
149
|
+
beginUpdateAndWait(
|
|
150
|
+
resourceGroupName: string,
|
|
151
|
+
topicName: string,
|
|
152
|
+
topicUpdateParameters: TopicUpdateParameters,
|
|
153
|
+
options?: TopicsUpdateOptionalParams
|
|
154
|
+
): Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* List the two keys used to publish to a topic.
|
|
157
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
158
|
+
* @param topicName Name of the topic.
|
|
159
|
+
* @param options The options parameters.
|
|
160
|
+
*/
|
|
161
|
+
listSharedAccessKeys(
|
|
162
|
+
resourceGroupName: string,
|
|
163
|
+
topicName: string,
|
|
164
|
+
options?: TopicsListSharedAccessKeysOptionalParams
|
|
165
|
+
): Promise<TopicsListSharedAccessKeysResponse>;
|
|
166
|
+
/**
|
|
167
|
+
* Regenerate a shared access key for a topic.
|
|
168
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
169
|
+
* @param topicName Name of the topic.
|
|
170
|
+
* @param regenerateKeyRequest Request body to regenerate key.
|
|
171
|
+
* @param options The options parameters.
|
|
172
|
+
*/
|
|
173
|
+
beginRegenerateKey(
|
|
174
|
+
resourceGroupName: string,
|
|
175
|
+
topicName: string,
|
|
176
|
+
regenerateKeyRequest: TopicRegenerateKeyRequest,
|
|
177
|
+
options?: TopicsRegenerateKeyOptionalParams
|
|
178
|
+
): Promise<
|
|
179
|
+
PollerLike<
|
|
180
|
+
PollOperationState<TopicsRegenerateKeyResponse>,
|
|
181
|
+
TopicsRegenerateKeyResponse
|
|
182
|
+
>
|
|
183
|
+
>;
|
|
184
|
+
/**
|
|
185
|
+
* Regenerate a shared access key for a topic.
|
|
186
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
187
|
+
* @param topicName Name of the topic.
|
|
188
|
+
* @param regenerateKeyRequest Request body to regenerate key.
|
|
189
|
+
* @param options The options parameters.
|
|
190
|
+
*/
|
|
191
|
+
beginRegenerateKeyAndWait(
|
|
192
|
+
resourceGroupName: string,
|
|
193
|
+
topicName: string,
|
|
194
|
+
regenerateKeyRequest: TopicRegenerateKeyRequest,
|
|
195
|
+
options?: TopicsRegenerateKeyOptionalParams
|
|
196
|
+
): Promise<TopicsRegenerateKeyResponse>;
|
|
197
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "es6",
|
|
4
|
+
"moduleResolution": "node",
|
|
5
|
+
"strict": true,
|
|
6
|
+
"target": "es6",
|
|
7
|
+
"sourceMap": true,
|
|
8
|
+
"declarationMap": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"allowSyntheticDefaultImports": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"lib": ["es6", "dom"],
|
|
13
|
+
"declaration": true,
|
|
14
|
+
"outDir": "./dist-esm",
|
|
15
|
+
"importHelpers": true
|
|
16
|
+
},
|
|
17
|
+
"include": ["./src/**/*.ts", "./test/**/*.ts"],
|
|
18
|
+
"exclude": ["node_modules"]
|
|
19
|
+
}
|