@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,440 @@
|
|
|
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 { PartnerRegistrations } 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 {
|
|
16
|
+
PartnerRegistration,
|
|
17
|
+
PartnerRegistrationsListBySubscriptionNextOptionalParams,
|
|
18
|
+
PartnerRegistrationsListBySubscriptionOptionalParams,
|
|
19
|
+
PartnerRegistrationsListByResourceGroupNextOptionalParams,
|
|
20
|
+
PartnerRegistrationsListByResourceGroupOptionalParams,
|
|
21
|
+
PartnerRegistrationsGetOptionalParams,
|
|
22
|
+
PartnerRegistrationsGetResponse,
|
|
23
|
+
PartnerRegistrationsCreateOrUpdateOptionalParams,
|
|
24
|
+
PartnerRegistrationsCreateOrUpdateResponse,
|
|
25
|
+
PartnerRegistrationsDeleteOptionalParams,
|
|
26
|
+
PartnerRegistrationUpdateParameters,
|
|
27
|
+
PartnerRegistrationsUpdateOptionalParams,
|
|
28
|
+
PartnerRegistrationsUpdateResponse,
|
|
29
|
+
PartnerRegistrationsListBySubscriptionResponse,
|
|
30
|
+
PartnerRegistrationsListByResourceGroupResponse,
|
|
31
|
+
PartnerRegistrationsListBySubscriptionNextResponse,
|
|
32
|
+
PartnerRegistrationsListByResourceGroupNextResponse
|
|
33
|
+
} from "../models";
|
|
34
|
+
|
|
35
|
+
/// <reference lib="esnext.asynciterable" />
|
|
36
|
+
/** Class containing PartnerRegistrations operations. */
|
|
37
|
+
export class PartnerRegistrationsImpl implements PartnerRegistrations {
|
|
38
|
+
private readonly client: EventGridManagementClientContext;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Initialize a new instance of the class PartnerRegistrations class.
|
|
42
|
+
* @param client Reference to the service client
|
|
43
|
+
*/
|
|
44
|
+
constructor(client: EventGridManagementClientContext) {
|
|
45
|
+
this.client = client;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* List all the partner registrations under an Azure subscription.
|
|
50
|
+
* @param options The options parameters.
|
|
51
|
+
*/
|
|
52
|
+
public listBySubscription(
|
|
53
|
+
options?: PartnerRegistrationsListBySubscriptionOptionalParams
|
|
54
|
+
): PagedAsyncIterableIterator<PartnerRegistration> {
|
|
55
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
56
|
+
return {
|
|
57
|
+
next() {
|
|
58
|
+
return iter.next();
|
|
59
|
+
},
|
|
60
|
+
[Symbol.asyncIterator]() {
|
|
61
|
+
return this;
|
|
62
|
+
},
|
|
63
|
+
byPage: () => {
|
|
64
|
+
return this.listBySubscriptionPagingPage(options);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
private async *listBySubscriptionPagingPage(
|
|
70
|
+
options?: PartnerRegistrationsListBySubscriptionOptionalParams
|
|
71
|
+
): AsyncIterableIterator<PartnerRegistration[]> {
|
|
72
|
+
let result = await this._listBySubscription(options);
|
|
73
|
+
yield result.value || [];
|
|
74
|
+
let continuationToken = result.nextLink;
|
|
75
|
+
while (continuationToken) {
|
|
76
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
77
|
+
continuationToken = result.nextLink;
|
|
78
|
+
yield result.value || [];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
private async *listBySubscriptionPagingAll(
|
|
83
|
+
options?: PartnerRegistrationsListBySubscriptionOptionalParams
|
|
84
|
+
): AsyncIterableIterator<PartnerRegistration> {
|
|
85
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
86
|
+
yield* page;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* List all the partner registrations under a resource group.
|
|
92
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
93
|
+
* @param options The options parameters.
|
|
94
|
+
*/
|
|
95
|
+
public listByResourceGroup(
|
|
96
|
+
resourceGroupName: string,
|
|
97
|
+
options?: PartnerRegistrationsListByResourceGroupOptionalParams
|
|
98
|
+
): PagedAsyncIterableIterator<PartnerRegistration> {
|
|
99
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
100
|
+
return {
|
|
101
|
+
next() {
|
|
102
|
+
return iter.next();
|
|
103
|
+
},
|
|
104
|
+
[Symbol.asyncIterator]() {
|
|
105
|
+
return this;
|
|
106
|
+
},
|
|
107
|
+
byPage: () => {
|
|
108
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
private async *listByResourceGroupPagingPage(
|
|
114
|
+
resourceGroupName: string,
|
|
115
|
+
options?: PartnerRegistrationsListByResourceGroupOptionalParams
|
|
116
|
+
): AsyncIterableIterator<PartnerRegistration[]> {
|
|
117
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
118
|
+
yield result.value || [];
|
|
119
|
+
let continuationToken = result.nextLink;
|
|
120
|
+
while (continuationToken) {
|
|
121
|
+
result = await this._listByResourceGroupNext(
|
|
122
|
+
resourceGroupName,
|
|
123
|
+
continuationToken,
|
|
124
|
+
options
|
|
125
|
+
);
|
|
126
|
+
continuationToken = result.nextLink;
|
|
127
|
+
yield result.value || [];
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
private async *listByResourceGroupPagingAll(
|
|
132
|
+
resourceGroupName: string,
|
|
133
|
+
options?: PartnerRegistrationsListByResourceGroupOptionalParams
|
|
134
|
+
): AsyncIterableIterator<PartnerRegistration> {
|
|
135
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
136
|
+
resourceGroupName,
|
|
137
|
+
options
|
|
138
|
+
)) {
|
|
139
|
+
yield* page;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Gets a partner registration with the specified parameters.
|
|
145
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
146
|
+
* @param partnerRegistrationName Name of the partner registration.
|
|
147
|
+
* @param options The options parameters.
|
|
148
|
+
*/
|
|
149
|
+
get(
|
|
150
|
+
resourceGroupName: string,
|
|
151
|
+
partnerRegistrationName: string,
|
|
152
|
+
options?: PartnerRegistrationsGetOptionalParams
|
|
153
|
+
): Promise<PartnerRegistrationsGetResponse> {
|
|
154
|
+
return this.client.sendOperationRequest(
|
|
155
|
+
{ resourceGroupName, partnerRegistrationName, options },
|
|
156
|
+
getOperationSpec
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Creates a new partner registration with the specified parameters.
|
|
162
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
163
|
+
* @param partnerRegistrationName Name of the partner registration.
|
|
164
|
+
* @param partnerRegistrationInfo PartnerRegistration information.
|
|
165
|
+
* @param options The options parameters.
|
|
166
|
+
*/
|
|
167
|
+
createOrUpdate(
|
|
168
|
+
resourceGroupName: string,
|
|
169
|
+
partnerRegistrationName: string,
|
|
170
|
+
partnerRegistrationInfo: PartnerRegistration,
|
|
171
|
+
options?: PartnerRegistrationsCreateOrUpdateOptionalParams
|
|
172
|
+
): Promise<PartnerRegistrationsCreateOrUpdateResponse> {
|
|
173
|
+
return this.client.sendOperationRequest(
|
|
174
|
+
{
|
|
175
|
+
resourceGroupName,
|
|
176
|
+
partnerRegistrationName,
|
|
177
|
+
partnerRegistrationInfo,
|
|
178
|
+
options
|
|
179
|
+
},
|
|
180
|
+
createOrUpdateOperationSpec
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Deletes a partner registration with the specified parameters.
|
|
186
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
187
|
+
* @param partnerRegistrationName Name of the partner registration.
|
|
188
|
+
* @param options The options parameters.
|
|
189
|
+
*/
|
|
190
|
+
delete(
|
|
191
|
+
resourceGroupName: string,
|
|
192
|
+
partnerRegistrationName: string,
|
|
193
|
+
options?: PartnerRegistrationsDeleteOptionalParams
|
|
194
|
+
): Promise<void> {
|
|
195
|
+
return this.client.sendOperationRequest(
|
|
196
|
+
{ resourceGroupName, partnerRegistrationName, options },
|
|
197
|
+
deleteOperationSpec
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Updates a partner registration with the specified parameters.
|
|
203
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
204
|
+
* @param partnerRegistrationName Name of the partner registration.
|
|
205
|
+
* @param partnerRegistrationUpdateParameters Partner registration update information.
|
|
206
|
+
* @param options The options parameters.
|
|
207
|
+
*/
|
|
208
|
+
update(
|
|
209
|
+
resourceGroupName: string,
|
|
210
|
+
partnerRegistrationName: string,
|
|
211
|
+
partnerRegistrationUpdateParameters: PartnerRegistrationUpdateParameters,
|
|
212
|
+
options?: PartnerRegistrationsUpdateOptionalParams
|
|
213
|
+
): Promise<PartnerRegistrationsUpdateResponse> {
|
|
214
|
+
return this.client.sendOperationRequest(
|
|
215
|
+
{
|
|
216
|
+
resourceGroupName,
|
|
217
|
+
partnerRegistrationName,
|
|
218
|
+
partnerRegistrationUpdateParameters,
|
|
219
|
+
options
|
|
220
|
+
},
|
|
221
|
+
updateOperationSpec
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* List all the partner registrations under an Azure subscription.
|
|
227
|
+
* @param options The options parameters.
|
|
228
|
+
*/
|
|
229
|
+
private _listBySubscription(
|
|
230
|
+
options?: PartnerRegistrationsListBySubscriptionOptionalParams
|
|
231
|
+
): Promise<PartnerRegistrationsListBySubscriptionResponse> {
|
|
232
|
+
return this.client.sendOperationRequest(
|
|
233
|
+
{ options },
|
|
234
|
+
listBySubscriptionOperationSpec
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* List all the partner registrations under a resource group.
|
|
240
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
241
|
+
* @param options The options parameters.
|
|
242
|
+
*/
|
|
243
|
+
private _listByResourceGroup(
|
|
244
|
+
resourceGroupName: string,
|
|
245
|
+
options?: PartnerRegistrationsListByResourceGroupOptionalParams
|
|
246
|
+
): Promise<PartnerRegistrationsListByResourceGroupResponse> {
|
|
247
|
+
return this.client.sendOperationRequest(
|
|
248
|
+
{ resourceGroupName, options },
|
|
249
|
+
listByResourceGroupOperationSpec
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* ListBySubscriptionNext
|
|
255
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
256
|
+
* @param options The options parameters.
|
|
257
|
+
*/
|
|
258
|
+
private _listBySubscriptionNext(
|
|
259
|
+
nextLink: string,
|
|
260
|
+
options?: PartnerRegistrationsListBySubscriptionNextOptionalParams
|
|
261
|
+
): Promise<PartnerRegistrationsListBySubscriptionNextResponse> {
|
|
262
|
+
return this.client.sendOperationRequest(
|
|
263
|
+
{ nextLink, options },
|
|
264
|
+
listBySubscriptionNextOperationSpec
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* ListByResourceGroupNext
|
|
270
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
271
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
272
|
+
* @param options The options parameters.
|
|
273
|
+
*/
|
|
274
|
+
private _listByResourceGroupNext(
|
|
275
|
+
resourceGroupName: string,
|
|
276
|
+
nextLink: string,
|
|
277
|
+
options?: PartnerRegistrationsListByResourceGroupNextOptionalParams
|
|
278
|
+
): Promise<PartnerRegistrationsListByResourceGroupNextResponse> {
|
|
279
|
+
return this.client.sendOperationRequest(
|
|
280
|
+
{ resourceGroupName, nextLink, options },
|
|
281
|
+
listByResourceGroupNextOperationSpec
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
// Operation Specifications
|
|
286
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
287
|
+
|
|
288
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
289
|
+
path:
|
|
290
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}",
|
|
291
|
+
httpMethod: "GET",
|
|
292
|
+
responses: {
|
|
293
|
+
200: {
|
|
294
|
+
bodyMapper: Mappers.PartnerRegistration
|
|
295
|
+
},
|
|
296
|
+
default: {}
|
|
297
|
+
},
|
|
298
|
+
queryParameters: [Parameters.apiVersion],
|
|
299
|
+
urlParameters: [
|
|
300
|
+
Parameters.$host,
|
|
301
|
+
Parameters.subscriptionId,
|
|
302
|
+
Parameters.resourceGroupName,
|
|
303
|
+
Parameters.partnerRegistrationName
|
|
304
|
+
],
|
|
305
|
+
headerParameters: [Parameters.accept],
|
|
306
|
+
serializer
|
|
307
|
+
};
|
|
308
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
309
|
+
path:
|
|
310
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}",
|
|
311
|
+
httpMethod: "PUT",
|
|
312
|
+
responses: {
|
|
313
|
+
200: {
|
|
314
|
+
bodyMapper: Mappers.PartnerRegistration
|
|
315
|
+
},
|
|
316
|
+
202: {
|
|
317
|
+
bodyMapper: Mappers.PartnerRegistration
|
|
318
|
+
},
|
|
319
|
+
default: {}
|
|
320
|
+
},
|
|
321
|
+
requestBody: Parameters.partnerRegistrationInfo,
|
|
322
|
+
queryParameters: [Parameters.apiVersion],
|
|
323
|
+
urlParameters: [
|
|
324
|
+
Parameters.$host,
|
|
325
|
+
Parameters.subscriptionId,
|
|
326
|
+
Parameters.resourceGroupName,
|
|
327
|
+
Parameters.partnerRegistrationName
|
|
328
|
+
],
|
|
329
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
330
|
+
mediaType: "json",
|
|
331
|
+
serializer
|
|
332
|
+
};
|
|
333
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
334
|
+
path:
|
|
335
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}",
|
|
336
|
+
httpMethod: "DELETE",
|
|
337
|
+
responses: { 200: {}, 202: {}, 204: {}, default: {} },
|
|
338
|
+
queryParameters: [Parameters.apiVersion],
|
|
339
|
+
urlParameters: [
|
|
340
|
+
Parameters.$host,
|
|
341
|
+
Parameters.subscriptionId,
|
|
342
|
+
Parameters.resourceGroupName,
|
|
343
|
+
Parameters.partnerRegistrationName
|
|
344
|
+
],
|
|
345
|
+
serializer
|
|
346
|
+
};
|
|
347
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
348
|
+
path:
|
|
349
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}",
|
|
350
|
+
httpMethod: "PATCH",
|
|
351
|
+
responses: {
|
|
352
|
+
200: {},
|
|
353
|
+
201: {
|
|
354
|
+
bodyMapper: Mappers.PartnerRegistration
|
|
355
|
+
},
|
|
356
|
+
default: {}
|
|
357
|
+
},
|
|
358
|
+
requestBody: Parameters.partnerRegistrationUpdateParameters,
|
|
359
|
+
queryParameters: [Parameters.apiVersion],
|
|
360
|
+
urlParameters: [
|
|
361
|
+
Parameters.$host,
|
|
362
|
+
Parameters.subscriptionId,
|
|
363
|
+
Parameters.resourceGroupName,
|
|
364
|
+
Parameters.partnerRegistrationName
|
|
365
|
+
],
|
|
366
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
367
|
+
mediaType: "json",
|
|
368
|
+
serializer
|
|
369
|
+
};
|
|
370
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
371
|
+
path:
|
|
372
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/partnerRegistrations",
|
|
373
|
+
httpMethod: "GET",
|
|
374
|
+
responses: {
|
|
375
|
+
200: {
|
|
376
|
+
bodyMapper: Mappers.PartnerRegistrationsListResult
|
|
377
|
+
},
|
|
378
|
+
default: {}
|
|
379
|
+
},
|
|
380
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
381
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
382
|
+
headerParameters: [Parameters.accept],
|
|
383
|
+
serializer
|
|
384
|
+
};
|
|
385
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
386
|
+
path:
|
|
387
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations",
|
|
388
|
+
httpMethod: "GET",
|
|
389
|
+
responses: {
|
|
390
|
+
200: {
|
|
391
|
+
bodyMapper: Mappers.PartnerRegistrationsListResult
|
|
392
|
+
},
|
|
393
|
+
default: {}
|
|
394
|
+
},
|
|
395
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
396
|
+
urlParameters: [
|
|
397
|
+
Parameters.$host,
|
|
398
|
+
Parameters.subscriptionId,
|
|
399
|
+
Parameters.resourceGroupName
|
|
400
|
+
],
|
|
401
|
+
headerParameters: [Parameters.accept],
|
|
402
|
+
serializer
|
|
403
|
+
};
|
|
404
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
405
|
+
path: "{nextLink}",
|
|
406
|
+
httpMethod: "GET",
|
|
407
|
+
responses: {
|
|
408
|
+
200: {
|
|
409
|
+
bodyMapper: Mappers.PartnerRegistrationsListResult
|
|
410
|
+
},
|
|
411
|
+
default: {}
|
|
412
|
+
},
|
|
413
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
414
|
+
urlParameters: [
|
|
415
|
+
Parameters.$host,
|
|
416
|
+
Parameters.subscriptionId,
|
|
417
|
+
Parameters.nextLink
|
|
418
|
+
],
|
|
419
|
+
headerParameters: [Parameters.accept],
|
|
420
|
+
serializer
|
|
421
|
+
};
|
|
422
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
423
|
+
path: "{nextLink}",
|
|
424
|
+
httpMethod: "GET",
|
|
425
|
+
responses: {
|
|
426
|
+
200: {
|
|
427
|
+
bodyMapper: Mappers.PartnerRegistrationsListResult
|
|
428
|
+
},
|
|
429
|
+
default: {}
|
|
430
|
+
},
|
|
431
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
432
|
+
urlParameters: [
|
|
433
|
+
Parameters.$host,
|
|
434
|
+
Parameters.subscriptionId,
|
|
435
|
+
Parameters.resourceGroupName,
|
|
436
|
+
Parameters.nextLink
|
|
437
|
+
],
|
|
438
|
+
headerParameters: [Parameters.accept],
|
|
439
|
+
serializer
|
|
440
|
+
};
|