@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,259 @@
|
|
|
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 { PrivateLinkResources } 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
|
+
PrivateLinkResource,
|
|
17
|
+
PrivateLinkResourcesListByResourceNextOptionalParams,
|
|
18
|
+
PrivateLinkResourcesListByResourceOptionalParams,
|
|
19
|
+
PrivateLinkResourcesGetOptionalParams,
|
|
20
|
+
PrivateLinkResourcesGetResponse,
|
|
21
|
+
PrivateLinkResourcesListByResourceResponse,
|
|
22
|
+
PrivateLinkResourcesListByResourceNextResponse
|
|
23
|
+
} from "../models";
|
|
24
|
+
|
|
25
|
+
/// <reference lib="esnext.asynciterable" />
|
|
26
|
+
/** Class containing PrivateLinkResources operations. */
|
|
27
|
+
export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
28
|
+
private readonly client: EventGridManagementClientContext;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
32
|
+
* @param client Reference to the service client
|
|
33
|
+
*/
|
|
34
|
+
constructor(client: EventGridManagementClientContext) {
|
|
35
|
+
this.client = client;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* List all the private link resources under a topic, domain, or partner namespace.
|
|
40
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
41
|
+
* @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or
|
|
42
|
+
* \'partnerNamespaces\'.
|
|
43
|
+
* @param parentName The name of the parent resource (namely, either, the topic name, domain name, or
|
|
44
|
+
* partner namespace name).
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
public listByResource(
|
|
48
|
+
resourceGroupName: string,
|
|
49
|
+
parentType: string,
|
|
50
|
+
parentName: string,
|
|
51
|
+
options?: PrivateLinkResourcesListByResourceOptionalParams
|
|
52
|
+
): PagedAsyncIterableIterator<PrivateLinkResource> {
|
|
53
|
+
const iter = this.listByResourcePagingAll(
|
|
54
|
+
resourceGroupName,
|
|
55
|
+
parentType,
|
|
56
|
+
parentName,
|
|
57
|
+
options
|
|
58
|
+
);
|
|
59
|
+
return {
|
|
60
|
+
next() {
|
|
61
|
+
return iter.next();
|
|
62
|
+
},
|
|
63
|
+
[Symbol.asyncIterator]() {
|
|
64
|
+
return this;
|
|
65
|
+
},
|
|
66
|
+
byPage: () => {
|
|
67
|
+
return this.listByResourcePagingPage(
|
|
68
|
+
resourceGroupName,
|
|
69
|
+
parentType,
|
|
70
|
+
parentName,
|
|
71
|
+
options
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
private async *listByResourcePagingPage(
|
|
78
|
+
resourceGroupName: string,
|
|
79
|
+
parentType: string,
|
|
80
|
+
parentName: string,
|
|
81
|
+
options?: PrivateLinkResourcesListByResourceOptionalParams
|
|
82
|
+
): AsyncIterableIterator<PrivateLinkResource[]> {
|
|
83
|
+
let result = await this._listByResource(
|
|
84
|
+
resourceGroupName,
|
|
85
|
+
parentType,
|
|
86
|
+
parentName,
|
|
87
|
+
options
|
|
88
|
+
);
|
|
89
|
+
yield result.value || [];
|
|
90
|
+
let continuationToken = result.nextLink;
|
|
91
|
+
while (continuationToken) {
|
|
92
|
+
result = await this._listByResourceNext(
|
|
93
|
+
resourceGroupName,
|
|
94
|
+
parentType,
|
|
95
|
+
parentName,
|
|
96
|
+
continuationToken,
|
|
97
|
+
options
|
|
98
|
+
);
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
yield result.value || [];
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
private async *listByResourcePagingAll(
|
|
105
|
+
resourceGroupName: string,
|
|
106
|
+
parentType: string,
|
|
107
|
+
parentName: string,
|
|
108
|
+
options?: PrivateLinkResourcesListByResourceOptionalParams
|
|
109
|
+
): AsyncIterableIterator<PrivateLinkResource> {
|
|
110
|
+
for await (const page of this.listByResourcePagingPage(
|
|
111
|
+
resourceGroupName,
|
|
112
|
+
parentType,
|
|
113
|
+
parentName,
|
|
114
|
+
options
|
|
115
|
+
)) {
|
|
116
|
+
yield* page;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Get properties of a private link resource.
|
|
122
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
123
|
+
* @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or
|
|
124
|
+
* \'partnerNamespaces\'.
|
|
125
|
+
* @param parentName The name of the parent resource (namely, either, the topic name, domain name, or
|
|
126
|
+
* partner namespace name).
|
|
127
|
+
* @param privateLinkResourceName The name of private link resource.
|
|
128
|
+
* @param options The options parameters.
|
|
129
|
+
*/
|
|
130
|
+
get(
|
|
131
|
+
resourceGroupName: string,
|
|
132
|
+
parentType: string,
|
|
133
|
+
parentName: string,
|
|
134
|
+
privateLinkResourceName: string,
|
|
135
|
+
options?: PrivateLinkResourcesGetOptionalParams
|
|
136
|
+
): Promise<PrivateLinkResourcesGetResponse> {
|
|
137
|
+
return this.client.sendOperationRequest(
|
|
138
|
+
{
|
|
139
|
+
resourceGroupName,
|
|
140
|
+
parentType,
|
|
141
|
+
parentName,
|
|
142
|
+
privateLinkResourceName,
|
|
143
|
+
options
|
|
144
|
+
},
|
|
145
|
+
getOperationSpec
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* List all the private link resources under a topic, domain, or partner namespace.
|
|
151
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
152
|
+
* @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or
|
|
153
|
+
* \'partnerNamespaces\'.
|
|
154
|
+
* @param parentName The name of the parent resource (namely, either, the topic name, domain name, or
|
|
155
|
+
* partner namespace name).
|
|
156
|
+
* @param options The options parameters.
|
|
157
|
+
*/
|
|
158
|
+
private _listByResource(
|
|
159
|
+
resourceGroupName: string,
|
|
160
|
+
parentType: string,
|
|
161
|
+
parentName: string,
|
|
162
|
+
options?: PrivateLinkResourcesListByResourceOptionalParams
|
|
163
|
+
): Promise<PrivateLinkResourcesListByResourceResponse> {
|
|
164
|
+
return this.client.sendOperationRequest(
|
|
165
|
+
{ resourceGroupName, parentType, parentName, options },
|
|
166
|
+
listByResourceOperationSpec
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* ListByResourceNext
|
|
172
|
+
* @param resourceGroupName The name of the resource group within the user's subscription.
|
|
173
|
+
* @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or
|
|
174
|
+
* \'partnerNamespaces\'.
|
|
175
|
+
* @param parentName The name of the parent resource (namely, either, the topic name, domain name, or
|
|
176
|
+
* partner namespace name).
|
|
177
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResource method.
|
|
178
|
+
* @param options The options parameters.
|
|
179
|
+
*/
|
|
180
|
+
private _listByResourceNext(
|
|
181
|
+
resourceGroupName: string,
|
|
182
|
+
parentType: string,
|
|
183
|
+
parentName: string,
|
|
184
|
+
nextLink: string,
|
|
185
|
+
options?: PrivateLinkResourcesListByResourceNextOptionalParams
|
|
186
|
+
): Promise<PrivateLinkResourcesListByResourceNextResponse> {
|
|
187
|
+
return this.client.sendOperationRequest(
|
|
188
|
+
{ resourceGroupName, parentType, parentName, nextLink, options },
|
|
189
|
+
listByResourceNextOperationSpec
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
// Operation Specifications
|
|
194
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
195
|
+
|
|
196
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
197
|
+
path:
|
|
198
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateLinkResources/{privateLinkResourceName}",
|
|
199
|
+
httpMethod: "GET",
|
|
200
|
+
responses: {
|
|
201
|
+
200: {
|
|
202
|
+
bodyMapper: Mappers.PrivateLinkResource
|
|
203
|
+
},
|
|
204
|
+
default: {}
|
|
205
|
+
},
|
|
206
|
+
queryParameters: [Parameters.apiVersion],
|
|
207
|
+
urlParameters: [
|
|
208
|
+
Parameters.$host,
|
|
209
|
+
Parameters.subscriptionId,
|
|
210
|
+
Parameters.resourceGroupName,
|
|
211
|
+
Parameters.parentName,
|
|
212
|
+
Parameters.parentType4,
|
|
213
|
+
Parameters.privateLinkResourceName
|
|
214
|
+
],
|
|
215
|
+
headerParameters: [Parameters.accept],
|
|
216
|
+
serializer
|
|
217
|
+
};
|
|
218
|
+
const listByResourceOperationSpec: coreClient.OperationSpec = {
|
|
219
|
+
path:
|
|
220
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateLinkResources",
|
|
221
|
+
httpMethod: "GET",
|
|
222
|
+
responses: {
|
|
223
|
+
200: {
|
|
224
|
+
bodyMapper: Mappers.PrivateLinkResourcesListResult
|
|
225
|
+
},
|
|
226
|
+
default: {}
|
|
227
|
+
},
|
|
228
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
229
|
+
urlParameters: [
|
|
230
|
+
Parameters.$host,
|
|
231
|
+
Parameters.subscriptionId,
|
|
232
|
+
Parameters.resourceGroupName,
|
|
233
|
+
Parameters.parentName,
|
|
234
|
+
Parameters.parentType4
|
|
235
|
+
],
|
|
236
|
+
headerParameters: [Parameters.accept],
|
|
237
|
+
serializer
|
|
238
|
+
};
|
|
239
|
+
const listByResourceNextOperationSpec: coreClient.OperationSpec = {
|
|
240
|
+
path: "{nextLink}",
|
|
241
|
+
httpMethod: "GET",
|
|
242
|
+
responses: {
|
|
243
|
+
200: {
|
|
244
|
+
bodyMapper: Mappers.PrivateLinkResourcesListResult
|
|
245
|
+
},
|
|
246
|
+
default: {}
|
|
247
|
+
},
|
|
248
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
|
|
249
|
+
urlParameters: [
|
|
250
|
+
Parameters.$host,
|
|
251
|
+
Parameters.subscriptionId,
|
|
252
|
+
Parameters.resourceGroupName,
|
|
253
|
+
Parameters.nextLink,
|
|
254
|
+
Parameters.parentName,
|
|
255
|
+
Parameters.parentType4
|
|
256
|
+
],
|
|
257
|
+
headerParameters: [Parameters.accept],
|
|
258
|
+
serializer
|
|
259
|
+
};
|