@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,729 @@
|
|
|
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 { PartnerNamespaces } 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
|
+
PartnerNamespace,
|
|
19
|
+
PartnerNamespacesListBySubscriptionNextOptionalParams,
|
|
20
|
+
PartnerNamespacesListBySubscriptionOptionalParams,
|
|
21
|
+
PartnerNamespacesListByResourceGroupNextOptionalParams,
|
|
22
|
+
PartnerNamespacesListByResourceGroupOptionalParams,
|
|
23
|
+
PartnerNamespacesGetOptionalParams,
|
|
24
|
+
PartnerNamespacesGetResponse,
|
|
25
|
+
PartnerNamespacesCreateOrUpdateOptionalParams,
|
|
26
|
+
PartnerNamespacesCreateOrUpdateResponse,
|
|
27
|
+
PartnerNamespacesDeleteOptionalParams,
|
|
28
|
+
PartnerNamespaceUpdateParameters,
|
|
29
|
+
PartnerNamespacesUpdateOptionalParams,
|
|
30
|
+
PartnerNamespacesListBySubscriptionResponse,
|
|
31
|
+
PartnerNamespacesListByResourceGroupResponse,
|
|
32
|
+
PartnerNamespacesListSharedAccessKeysOptionalParams,
|
|
33
|
+
PartnerNamespacesListSharedAccessKeysResponse,
|
|
34
|
+
PartnerNamespaceRegenerateKeyRequest,
|
|
35
|
+
PartnerNamespacesRegenerateKeyOptionalParams,
|
|
36
|
+
PartnerNamespacesRegenerateKeyResponse,
|
|
37
|
+
PartnerNamespacesListBySubscriptionNextResponse,
|
|
38
|
+
PartnerNamespacesListByResourceGroupNextResponse
|
|
39
|
+
} from "../models";
|
|
40
|
+
|
|
41
|
+
/// <reference lib="esnext.asynciterable" />
|
|
42
|
+
/** Class containing PartnerNamespaces operations. */
|
|
43
|
+
export class PartnerNamespacesImpl implements PartnerNamespaces {
|
|
44
|
+
private readonly client: EventGridManagementClientContext;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initialize a new instance of the class PartnerNamespaces class.
|
|
48
|
+
* @param client Reference to the service client
|
|
49
|
+
*/
|
|
50
|
+
constructor(client: EventGridManagementClientContext) {
|
|
51
|
+
this.client = client;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* List all the partner namespaces under an Azure subscription.
|
|
56
|
+
* @param options The options parameters.
|
|
57
|
+
*/
|
|
58
|
+
public listBySubscription(
|
|
59
|
+
options?: PartnerNamespacesListBySubscriptionOptionalParams
|
|
60
|
+
): PagedAsyncIterableIterator<PartnerNamespace> {
|
|
61
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
62
|
+
return {
|
|
63
|
+
next() {
|
|
64
|
+
return iter.next();
|
|
65
|
+
},
|
|
66
|
+
[Symbol.asyncIterator]() {
|
|
67
|
+
return this;
|
|
68
|
+
},
|
|
69
|
+
byPage: () => {
|
|
70
|
+
return this.listBySubscriptionPagingPage(options);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private async *listBySubscriptionPagingPage(
|
|
76
|
+
options?: PartnerNamespacesListBySubscriptionOptionalParams
|
|
77
|
+
): AsyncIterableIterator<PartnerNamespace[]> {
|
|
78
|
+
let result = await this._listBySubscription(options);
|
|
79
|
+
yield result.value || [];
|
|
80
|
+
let continuationToken = result.nextLink;
|
|
81
|
+
while (continuationToken) {
|
|
82
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
83
|
+
continuationToken = result.nextLink;
|
|
84
|
+
yield result.value || [];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private async *listBySubscriptionPagingAll(
|
|
89
|
+
options?: PartnerNamespacesListBySubscriptionOptionalParams
|
|
90
|
+
): AsyncIterableIterator<PartnerNamespace> {
|
|
91
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
92
|
+
yield* page;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* List all the partner namespaces under a resource group.
|
|
98
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
99
|
+
* @param options The options parameters.
|
|
100
|
+
*/
|
|
101
|
+
public listByResourceGroup(
|
|
102
|
+
resourceGroupName: string,
|
|
103
|
+
options?: PartnerNamespacesListByResourceGroupOptionalParams
|
|
104
|
+
): PagedAsyncIterableIterator<PartnerNamespace> {
|
|
105
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
106
|
+
return {
|
|
107
|
+
next() {
|
|
108
|
+
return iter.next();
|
|
109
|
+
},
|
|
110
|
+
[Symbol.asyncIterator]() {
|
|
111
|
+
return this;
|
|
112
|
+
},
|
|
113
|
+
byPage: () => {
|
|
114
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
private async *listByResourceGroupPagingPage(
|
|
120
|
+
resourceGroupName: string,
|
|
121
|
+
options?: PartnerNamespacesListByResourceGroupOptionalParams
|
|
122
|
+
): AsyncIterableIterator<PartnerNamespace[]> {
|
|
123
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
124
|
+
yield result.value || [];
|
|
125
|
+
let continuationToken = result.nextLink;
|
|
126
|
+
while (continuationToken) {
|
|
127
|
+
result = await this._listByResourceGroupNext(
|
|
128
|
+
resourceGroupName,
|
|
129
|
+
continuationToken,
|
|
130
|
+
options
|
|
131
|
+
);
|
|
132
|
+
continuationToken = result.nextLink;
|
|
133
|
+
yield result.value || [];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
private async *listByResourceGroupPagingAll(
|
|
138
|
+
resourceGroupName: string,
|
|
139
|
+
options?: PartnerNamespacesListByResourceGroupOptionalParams
|
|
140
|
+
): AsyncIterableIterator<PartnerNamespace> {
|
|
141
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
142
|
+
resourceGroupName,
|
|
143
|
+
options
|
|
144
|
+
)) {
|
|
145
|
+
yield* page;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Get properties of a partner namespace.
|
|
151
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
152
|
+
* @param partnerNamespaceName Name of the partner namespace.
|
|
153
|
+
* @param options The options parameters.
|
|
154
|
+
*/
|
|
155
|
+
get(
|
|
156
|
+
resourceGroupName: string,
|
|
157
|
+
partnerNamespaceName: string,
|
|
158
|
+
options?: PartnerNamespacesGetOptionalParams
|
|
159
|
+
): Promise<PartnerNamespacesGetResponse> {
|
|
160
|
+
return this.client.sendOperationRequest(
|
|
161
|
+
{ resourceGroupName, partnerNamespaceName, options },
|
|
162
|
+
getOperationSpec
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Asynchronously creates a new partner namespace with the specified parameters.
|
|
168
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
169
|
+
* @param partnerNamespaceName Name of the partner namespace.
|
|
170
|
+
* @param partnerNamespaceInfo PartnerNamespace information.
|
|
171
|
+
* @param options The options parameters.
|
|
172
|
+
*/
|
|
173
|
+
async beginCreateOrUpdate(
|
|
174
|
+
resourceGroupName: string,
|
|
175
|
+
partnerNamespaceName: string,
|
|
176
|
+
partnerNamespaceInfo: PartnerNamespace,
|
|
177
|
+
options?: PartnerNamespacesCreateOrUpdateOptionalParams
|
|
178
|
+
): Promise<
|
|
179
|
+
PollerLike<
|
|
180
|
+
PollOperationState<PartnerNamespacesCreateOrUpdateResponse>,
|
|
181
|
+
PartnerNamespacesCreateOrUpdateResponse
|
|
182
|
+
>
|
|
183
|
+
> {
|
|
184
|
+
const directSendOperation = async (
|
|
185
|
+
args: coreClient.OperationArguments,
|
|
186
|
+
spec: coreClient.OperationSpec
|
|
187
|
+
): Promise<PartnerNamespacesCreateOrUpdateResponse> => {
|
|
188
|
+
return this.client.sendOperationRequest(args, spec);
|
|
189
|
+
};
|
|
190
|
+
const sendOperation = async (
|
|
191
|
+
args: coreClient.OperationArguments,
|
|
192
|
+
spec: coreClient.OperationSpec
|
|
193
|
+
) => {
|
|
194
|
+
let currentRawResponse:
|
|
195
|
+
| coreClient.FullOperationResponse
|
|
196
|
+
| undefined = undefined;
|
|
197
|
+
const providedCallback = args.options?.onResponse;
|
|
198
|
+
const callback: coreClient.RawResponseCallback = (
|
|
199
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
200
|
+
flatResponse: unknown
|
|
201
|
+
) => {
|
|
202
|
+
currentRawResponse = rawResponse;
|
|
203
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
204
|
+
};
|
|
205
|
+
const updatedArgs = {
|
|
206
|
+
...args,
|
|
207
|
+
options: {
|
|
208
|
+
...args.options,
|
|
209
|
+
onResponse: callback
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
213
|
+
return {
|
|
214
|
+
flatResponse,
|
|
215
|
+
rawResponse: {
|
|
216
|
+
statusCode: currentRawResponse!.status,
|
|
217
|
+
body: currentRawResponse!.parsedBody,
|
|
218
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
const lro = new LroImpl(
|
|
224
|
+
sendOperation,
|
|
225
|
+
{
|
|
226
|
+
resourceGroupName,
|
|
227
|
+
partnerNamespaceName,
|
|
228
|
+
partnerNamespaceInfo,
|
|
229
|
+
options
|
|
230
|
+
},
|
|
231
|
+
createOrUpdateOperationSpec
|
|
232
|
+
);
|
|
233
|
+
return new LroEngine(lro, {
|
|
234
|
+
resumeFrom: options?.resumeFrom,
|
|
235
|
+
intervalInMs: options?.updateIntervalInMs
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Asynchronously creates a new partner namespace with the specified parameters.
|
|
241
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
242
|
+
* @param partnerNamespaceName Name of the partner namespace.
|
|
243
|
+
* @param partnerNamespaceInfo PartnerNamespace information.
|
|
244
|
+
* @param options The options parameters.
|
|
245
|
+
*/
|
|
246
|
+
async beginCreateOrUpdateAndWait(
|
|
247
|
+
resourceGroupName: string,
|
|
248
|
+
partnerNamespaceName: string,
|
|
249
|
+
partnerNamespaceInfo: PartnerNamespace,
|
|
250
|
+
options?: PartnerNamespacesCreateOrUpdateOptionalParams
|
|
251
|
+
): Promise<PartnerNamespacesCreateOrUpdateResponse> {
|
|
252
|
+
const poller = await this.beginCreateOrUpdate(
|
|
253
|
+
resourceGroupName,
|
|
254
|
+
partnerNamespaceName,
|
|
255
|
+
partnerNamespaceInfo,
|
|
256
|
+
options
|
|
257
|
+
);
|
|
258
|
+
return poller.pollUntilDone();
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Delete existing partner namespace.
|
|
263
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
264
|
+
* @param partnerNamespaceName Name of the partner namespace.
|
|
265
|
+
* @param options The options parameters.
|
|
266
|
+
*/
|
|
267
|
+
async beginDelete(
|
|
268
|
+
resourceGroupName: string,
|
|
269
|
+
partnerNamespaceName: string,
|
|
270
|
+
options?: PartnerNamespacesDeleteOptionalParams
|
|
271
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
272
|
+
const directSendOperation = async (
|
|
273
|
+
args: coreClient.OperationArguments,
|
|
274
|
+
spec: coreClient.OperationSpec
|
|
275
|
+
): Promise<void> => {
|
|
276
|
+
return this.client.sendOperationRequest(args, spec);
|
|
277
|
+
};
|
|
278
|
+
const sendOperation = async (
|
|
279
|
+
args: coreClient.OperationArguments,
|
|
280
|
+
spec: coreClient.OperationSpec
|
|
281
|
+
) => {
|
|
282
|
+
let currentRawResponse:
|
|
283
|
+
| coreClient.FullOperationResponse
|
|
284
|
+
| undefined = undefined;
|
|
285
|
+
const providedCallback = args.options?.onResponse;
|
|
286
|
+
const callback: coreClient.RawResponseCallback = (
|
|
287
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
288
|
+
flatResponse: unknown
|
|
289
|
+
) => {
|
|
290
|
+
currentRawResponse = rawResponse;
|
|
291
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
292
|
+
};
|
|
293
|
+
const updatedArgs = {
|
|
294
|
+
...args,
|
|
295
|
+
options: {
|
|
296
|
+
...args.options,
|
|
297
|
+
onResponse: callback
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
301
|
+
return {
|
|
302
|
+
flatResponse,
|
|
303
|
+
rawResponse: {
|
|
304
|
+
statusCode: currentRawResponse!.status,
|
|
305
|
+
body: currentRawResponse!.parsedBody,
|
|
306
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
const lro = new LroImpl(
|
|
312
|
+
sendOperation,
|
|
313
|
+
{ resourceGroupName, partnerNamespaceName, options },
|
|
314
|
+
deleteOperationSpec
|
|
315
|
+
);
|
|
316
|
+
return new LroEngine(lro, {
|
|
317
|
+
resumeFrom: options?.resumeFrom,
|
|
318
|
+
intervalInMs: options?.updateIntervalInMs
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Delete existing partner namespace.
|
|
324
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
325
|
+
* @param partnerNamespaceName Name of the partner namespace.
|
|
326
|
+
* @param options The options parameters.
|
|
327
|
+
*/
|
|
328
|
+
async beginDeleteAndWait(
|
|
329
|
+
resourceGroupName: string,
|
|
330
|
+
partnerNamespaceName: string,
|
|
331
|
+
options?: PartnerNamespacesDeleteOptionalParams
|
|
332
|
+
): Promise<void> {
|
|
333
|
+
const poller = await this.beginDelete(
|
|
334
|
+
resourceGroupName,
|
|
335
|
+
partnerNamespaceName,
|
|
336
|
+
options
|
|
337
|
+
);
|
|
338
|
+
return poller.pollUntilDone();
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Asynchronously updates a partner namespace with the specified parameters.
|
|
343
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
344
|
+
* @param partnerNamespaceName Name of the partner namespace.
|
|
345
|
+
* @param partnerNamespaceUpdateParameters Partner namespace update information.
|
|
346
|
+
* @param options The options parameters.
|
|
347
|
+
*/
|
|
348
|
+
async beginUpdate(
|
|
349
|
+
resourceGroupName: string,
|
|
350
|
+
partnerNamespaceName: string,
|
|
351
|
+
partnerNamespaceUpdateParameters: PartnerNamespaceUpdateParameters,
|
|
352
|
+
options?: PartnerNamespacesUpdateOptionalParams
|
|
353
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
354
|
+
const directSendOperation = async (
|
|
355
|
+
args: coreClient.OperationArguments,
|
|
356
|
+
spec: coreClient.OperationSpec
|
|
357
|
+
): Promise<void> => {
|
|
358
|
+
return this.client.sendOperationRequest(args, spec);
|
|
359
|
+
};
|
|
360
|
+
const sendOperation = async (
|
|
361
|
+
args: coreClient.OperationArguments,
|
|
362
|
+
spec: coreClient.OperationSpec
|
|
363
|
+
) => {
|
|
364
|
+
let currentRawResponse:
|
|
365
|
+
| coreClient.FullOperationResponse
|
|
366
|
+
| undefined = undefined;
|
|
367
|
+
const providedCallback = args.options?.onResponse;
|
|
368
|
+
const callback: coreClient.RawResponseCallback = (
|
|
369
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
370
|
+
flatResponse: unknown
|
|
371
|
+
) => {
|
|
372
|
+
currentRawResponse = rawResponse;
|
|
373
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
374
|
+
};
|
|
375
|
+
const updatedArgs = {
|
|
376
|
+
...args,
|
|
377
|
+
options: {
|
|
378
|
+
...args.options,
|
|
379
|
+
onResponse: callback
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
383
|
+
return {
|
|
384
|
+
flatResponse,
|
|
385
|
+
rawResponse: {
|
|
386
|
+
statusCode: currentRawResponse!.status,
|
|
387
|
+
body: currentRawResponse!.parsedBody,
|
|
388
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
const lro = new LroImpl(
|
|
394
|
+
sendOperation,
|
|
395
|
+
{
|
|
396
|
+
resourceGroupName,
|
|
397
|
+
partnerNamespaceName,
|
|
398
|
+
partnerNamespaceUpdateParameters,
|
|
399
|
+
options
|
|
400
|
+
},
|
|
401
|
+
updateOperationSpec
|
|
402
|
+
);
|
|
403
|
+
return new LroEngine(lro, {
|
|
404
|
+
resumeFrom: options?.resumeFrom,
|
|
405
|
+
intervalInMs: options?.updateIntervalInMs
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Asynchronously updates a partner namespace with the specified parameters.
|
|
411
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
412
|
+
* @param partnerNamespaceName Name of the partner namespace.
|
|
413
|
+
* @param partnerNamespaceUpdateParameters Partner namespace update information.
|
|
414
|
+
* @param options The options parameters.
|
|
415
|
+
*/
|
|
416
|
+
async beginUpdateAndWait(
|
|
417
|
+
resourceGroupName: string,
|
|
418
|
+
partnerNamespaceName: string,
|
|
419
|
+
partnerNamespaceUpdateParameters: PartnerNamespaceUpdateParameters,
|
|
420
|
+
options?: PartnerNamespacesUpdateOptionalParams
|
|
421
|
+
): Promise<void> {
|
|
422
|
+
const poller = await this.beginUpdate(
|
|
423
|
+
resourceGroupName,
|
|
424
|
+
partnerNamespaceName,
|
|
425
|
+
partnerNamespaceUpdateParameters,
|
|
426
|
+
options
|
|
427
|
+
);
|
|
428
|
+
return poller.pollUntilDone();
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* List all the partner namespaces under an Azure subscription.
|
|
433
|
+
* @param options The options parameters.
|
|
434
|
+
*/
|
|
435
|
+
private _listBySubscription(
|
|
436
|
+
options?: PartnerNamespacesListBySubscriptionOptionalParams
|
|
437
|
+
): Promise<PartnerNamespacesListBySubscriptionResponse> {
|
|
438
|
+
return this.client.sendOperationRequest(
|
|
439
|
+
{ options },
|
|
440
|
+
listBySubscriptionOperationSpec
|
|
441
|
+
);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* List all the partner namespaces under a resource group.
|
|
446
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
447
|
+
* @param options The options parameters.
|
|
448
|
+
*/
|
|
449
|
+
private _listByResourceGroup(
|
|
450
|
+
resourceGroupName: string,
|
|
451
|
+
options?: PartnerNamespacesListByResourceGroupOptionalParams
|
|
452
|
+
): Promise<PartnerNamespacesListByResourceGroupResponse> {
|
|
453
|
+
return this.client.sendOperationRequest(
|
|
454
|
+
{ resourceGroupName, options },
|
|
455
|
+
listByResourceGroupOperationSpec
|
|
456
|
+
);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* List the two keys used to publish to a partner namespace.
|
|
461
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
462
|
+
* @param partnerNamespaceName Name of the partner namespace.
|
|
463
|
+
* @param options The options parameters.
|
|
464
|
+
*/
|
|
465
|
+
listSharedAccessKeys(
|
|
466
|
+
resourceGroupName: string,
|
|
467
|
+
partnerNamespaceName: string,
|
|
468
|
+
options?: PartnerNamespacesListSharedAccessKeysOptionalParams
|
|
469
|
+
): Promise<PartnerNamespacesListSharedAccessKeysResponse> {
|
|
470
|
+
return this.client.sendOperationRequest(
|
|
471
|
+
{ resourceGroupName, partnerNamespaceName, options },
|
|
472
|
+
listSharedAccessKeysOperationSpec
|
|
473
|
+
);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Regenerate a shared access key for a partner namespace.
|
|
478
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
479
|
+
* @param partnerNamespaceName Name of the partner namespace.
|
|
480
|
+
* @param regenerateKeyRequest Request body to regenerate key.
|
|
481
|
+
* @param options The options parameters.
|
|
482
|
+
*/
|
|
483
|
+
regenerateKey(
|
|
484
|
+
resourceGroupName: string,
|
|
485
|
+
partnerNamespaceName: string,
|
|
486
|
+
regenerateKeyRequest: PartnerNamespaceRegenerateKeyRequest,
|
|
487
|
+
options?: PartnerNamespacesRegenerateKeyOptionalParams
|
|
488
|
+
): Promise<PartnerNamespacesRegenerateKeyResponse> {
|
|
489
|
+
return this.client.sendOperationRequest(
|
|
490
|
+
{
|
|
491
|
+
resourceGroupName,
|
|
492
|
+
partnerNamespaceName,
|
|
493
|
+
regenerateKeyRequest,
|
|
494
|
+
options
|
|
495
|
+
},
|
|
496
|
+
regenerateKeyOperationSpec
|
|
497
|
+
);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* ListBySubscriptionNext
|
|
502
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
503
|
+
* @param options The options parameters.
|
|
504
|
+
*/
|
|
505
|
+
private _listBySubscriptionNext(
|
|
506
|
+
nextLink: string,
|
|
507
|
+
options?: PartnerNamespacesListBySubscriptionNextOptionalParams
|
|
508
|
+
): Promise<PartnerNamespacesListBySubscriptionNextResponse> {
|
|
509
|
+
return this.client.sendOperationRequest(
|
|
510
|
+
{ nextLink, options },
|
|
511
|
+
listBySubscriptionNextOperationSpec
|
|
512
|
+
);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* ListByResourceGroupNext
|
|
517
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
518
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
519
|
+
* @param options The options parameters.
|
|
520
|
+
*/
|
|
521
|
+
private _listByResourceGroupNext(
|
|
522
|
+
resourceGroupName: string,
|
|
523
|
+
nextLink: string,
|
|
524
|
+
options?: PartnerNamespacesListByResourceGroupNextOptionalParams
|
|
525
|
+
): Promise<PartnerNamespacesListByResourceGroupNextResponse> {
|
|
526
|
+
return this.client.sendOperationRequest(
|
|
527
|
+
{ resourceGroupName, nextLink, options },
|
|
528
|
+
listByResourceGroupNextOperationSpec
|
|
529
|
+
);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
// Operation Specifications
|
|
533
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
534
|
+
|
|
535
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
536
|
+
path:
|
|
537
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}",
|
|
538
|
+
httpMethod: "GET",
|
|
539
|
+
responses: {
|
|
540
|
+
200: {
|
|
541
|
+
bodyMapper: Mappers.PartnerNamespace
|
|
542
|
+
},
|
|
543
|
+
default: {}
|
|
544
|
+
},
|
|
545
|
+
queryParameters: [Parameters.apiVersion],
|
|
546
|
+
urlParameters: [
|
|
547
|
+
Parameters.$host,
|
|
548
|
+
Parameters.subscriptionId,
|
|
549
|
+
Parameters.resourceGroupName,
|
|
550
|
+
Parameters.partnerNamespaceName
|
|
551
|
+
],
|
|
552
|
+
headerParameters: [Parameters.accept],
|
|
553
|
+
serializer
|
|
554
|
+
};
|
|
555
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
556
|
+
path:
|
|
557
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}",
|
|
558
|
+
httpMethod: "PUT",
|
|
559
|
+
responses: {
|
|
560
|
+
200: {
|
|
561
|
+
bodyMapper: Mappers.PartnerNamespace
|
|
562
|
+
},
|
|
563
|
+
201: {
|
|
564
|
+
bodyMapper: Mappers.PartnerNamespace
|
|
565
|
+
},
|
|
566
|
+
202: {
|
|
567
|
+
bodyMapper: Mappers.PartnerNamespace
|
|
568
|
+
},
|
|
569
|
+
204: {
|
|
570
|
+
bodyMapper: Mappers.PartnerNamespace
|
|
571
|
+
},
|
|
572
|
+
default: {}
|
|
573
|
+
},
|
|
574
|
+
requestBody: Parameters.partnerNamespaceInfo,
|
|
575
|
+
queryParameters: [Parameters.apiVersion],
|
|
576
|
+
urlParameters: [
|
|
577
|
+
Parameters.$host,
|
|
578
|
+
Parameters.subscriptionId,
|
|
579
|
+
Parameters.resourceGroupName,
|
|
580
|
+
Parameters.partnerNamespaceName
|
|
581
|
+
],
|
|
582
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
583
|
+
mediaType: "json",
|
|
584
|
+
serializer
|
|
585
|
+
};
|
|
586
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
587
|
+
path:
|
|
588
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}",
|
|
589
|
+
httpMethod: "DELETE",
|
|
590
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
591
|
+
queryParameters: [Parameters.apiVersion],
|
|
592
|
+
urlParameters: [
|
|
593
|
+
Parameters.$host,
|
|
594
|
+
Parameters.subscriptionId,
|
|
595
|
+
Parameters.resourceGroupName,
|
|
596
|
+
Parameters.partnerNamespaceName
|
|
597
|
+
],
|
|
598
|
+
serializer
|
|
599
|
+
};
|
|
600
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
601
|
+
path:
|
|
602
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}",
|
|
603
|
+
httpMethod: "PATCH",
|
|
604
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
605
|
+
requestBody: Parameters.partnerNamespaceUpdateParameters,
|
|
606
|
+
queryParameters: [Parameters.apiVersion],
|
|
607
|
+
urlParameters: [
|
|
608
|
+
Parameters.$host,
|
|
609
|
+
Parameters.subscriptionId,
|
|
610
|
+
Parameters.resourceGroupName,
|
|
611
|
+
Parameters.partnerNamespaceName
|
|
612
|
+
],
|
|
613
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
614
|
+
mediaType: "json",
|
|
615
|
+
serializer
|
|
616
|
+
};
|
|
617
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
618
|
+
path:
|
|
619
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/partnerNamespaces",
|
|
620
|
+
httpMethod: "GET",
|
|
621
|
+
responses: {
|
|
622
|
+
200: {
|
|
623
|
+
bodyMapper: Mappers.PartnerNamespacesListResult
|
|
624
|
+
},
|
|
625
|
+
default: {}
|
|
626
|
+
},
|
|
627
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
628
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
629
|
+
headerParameters: [Parameters.accept],
|
|
630
|
+
serializer
|
|
631
|
+
};
|
|
632
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
633
|
+
path:
|
|
634
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces",
|
|
635
|
+
httpMethod: "GET",
|
|
636
|
+
responses: {
|
|
637
|
+
200: {
|
|
638
|
+
bodyMapper: Mappers.PartnerNamespacesListResult
|
|
639
|
+
},
|
|
640
|
+
default: {}
|
|
641
|
+
},
|
|
642
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
643
|
+
urlParameters: [
|
|
644
|
+
Parameters.$host,
|
|
645
|
+
Parameters.subscriptionId,
|
|
646
|
+
Parameters.resourceGroupName
|
|
647
|
+
],
|
|
648
|
+
headerParameters: [Parameters.accept],
|
|
649
|
+
serializer
|
|
650
|
+
};
|
|
651
|
+
const listSharedAccessKeysOperationSpec: coreClient.OperationSpec = {
|
|
652
|
+
path:
|
|
653
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/listKeys",
|
|
654
|
+
httpMethod: "POST",
|
|
655
|
+
responses: {
|
|
656
|
+
200: {
|
|
657
|
+
bodyMapper: Mappers.PartnerNamespaceSharedAccessKeys
|
|
658
|
+
},
|
|
659
|
+
default: {}
|
|
660
|
+
},
|
|
661
|
+
queryParameters: [Parameters.apiVersion],
|
|
662
|
+
urlParameters: [
|
|
663
|
+
Parameters.$host,
|
|
664
|
+
Parameters.subscriptionId,
|
|
665
|
+
Parameters.resourceGroupName,
|
|
666
|
+
Parameters.partnerNamespaceName
|
|
667
|
+
],
|
|
668
|
+
headerParameters: [Parameters.accept],
|
|
669
|
+
serializer
|
|
670
|
+
};
|
|
671
|
+
const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
672
|
+
path:
|
|
673
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/regenerateKey",
|
|
674
|
+
httpMethod: "POST",
|
|
675
|
+
responses: {
|
|
676
|
+
200: {
|
|
677
|
+
bodyMapper: Mappers.PartnerNamespaceSharedAccessKeys
|
|
678
|
+
},
|
|
679
|
+
default: {}
|
|
680
|
+
},
|
|
681
|
+
requestBody: Parameters.regenerateKeyRequest1,
|
|
682
|
+
queryParameters: [Parameters.apiVersion],
|
|
683
|
+
urlParameters: [
|
|
684
|
+
Parameters.$host,
|
|
685
|
+
Parameters.subscriptionId,
|
|
686
|
+
Parameters.resourceGroupName,
|
|
687
|
+
Parameters.partnerNamespaceName
|
|
688
|
+
],
|
|
689
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
690
|
+
mediaType: "json",
|
|
691
|
+
serializer
|
|
692
|
+
};
|
|
693
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
694
|
+
path: "{nextLink}",
|
|
695
|
+
httpMethod: "GET",
|
|
696
|
+
responses: {
|
|
697
|
+
200: {
|
|
698
|
+
bodyMapper: Mappers.PartnerNamespacesListResult
|
|
699
|
+
},
|
|
700
|
+
default: {}
|
|
701
|
+
},
|
|
702
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
703
|
+
urlParameters: [
|
|
704
|
+
Parameters.$host,
|
|
705
|
+
Parameters.subscriptionId,
|
|
706
|
+
Parameters.nextLink
|
|
707
|
+
],
|
|
708
|
+
headerParameters: [Parameters.accept],
|
|
709
|
+
serializer
|
|
710
|
+
};
|
|
711
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
712
|
+
path: "{nextLink}",
|
|
713
|
+
httpMethod: "GET",
|
|
714
|
+
responses: {
|
|
715
|
+
200: {
|
|
716
|
+
bodyMapper: Mappers.PartnerNamespacesListResult
|
|
717
|
+
},
|
|
718
|
+
default: {}
|
|
719
|
+
},
|
|
720
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
721
|
+
urlParameters: [
|
|
722
|
+
Parameters.$host,
|
|
723
|
+
Parameters.subscriptionId,
|
|
724
|
+
Parameters.resourceGroupName,
|
|
725
|
+
Parameters.nextLink
|
|
726
|
+
],
|
|
727
|
+
headerParameters: [Parameters.accept],
|
|
728
|
+
serializer
|
|
729
|
+
};
|