@azure/arm-eventhub 5.3.0-alpha.20250619.1 → 5.3.0-alpha.20250729.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/dist/browser/eventHubManagementClient.js +26 -5
- package/dist/browser/eventHubManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +213 -100
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/applicationGroupOperations.js +23 -40
- package/dist/browser/operations/applicationGroupOperations.js.map +1 -1
- package/dist/browser/operations/clusters.js +78 -97
- package/dist/browser/operations/clusters.js.map +1 -1
- package/dist/browser/operations/configuration.js +1 -0
- package/dist/browser/operations/configuration.js.map +1 -1
- package/dist/browser/operations/consumerGroups.js +23 -40
- package/dist/browser/operations/consumerGroups.js.map +1 -1
- package/dist/browser/operations/disasterRecoveryConfigs.js +45 -79
- package/dist/browser/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/browser/operations/eventHubs.js +45 -79
- package/dist/browser/operations/eventHubs.js.map +1 -1
- package/dist/browser/operations/namespaces.js +103 -139
- package/dist/browser/operations/namespaces.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurationOperations.js +1 -0
- package/dist/browser/operations/networkSecurityPerimeterConfigurationOperations.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +12 -6
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +34 -46
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/schemaRegistry.js +23 -40
- package/dist/browser/operations/schemaRegistry.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/eventHubManagementClient.js +26 -5
- package/dist/commonjs/eventHubManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +213 -100
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/applicationGroupOperations.js +23 -39
- package/dist/commonjs/operations/applicationGroupOperations.js.map +1 -1
- package/dist/commonjs/operations/clusters.js +78 -96
- package/dist/commonjs/operations/clusters.js.map +1 -1
- package/dist/commonjs/operations/configuration.js +1 -0
- package/dist/commonjs/operations/configuration.js.map +1 -1
- package/dist/commonjs/operations/consumerGroups.js +23 -39
- package/dist/commonjs/operations/consumerGroups.js.map +1 -1
- package/dist/commonjs/operations/disasterRecoveryConfigs.js +45 -78
- package/dist/commonjs/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/commonjs/operations/eventHubs.js +45 -78
- package/dist/commonjs/operations/eventHubs.js.map +1 -1
- package/dist/commonjs/operations/namespaces.js +103 -138
- package/dist/commonjs/operations/namespaces.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurationOperations.js +1 -0
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurationOperations.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +12 -6
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +34 -45
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/schemaRegistry.js +23 -39
- package/dist/commonjs/operations/schemaRegistry.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/eventHubManagementClient.js +26 -5
- package/dist/esm/eventHubManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +213 -100
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/applicationGroupOperations.js +23 -40
- package/dist/esm/operations/applicationGroupOperations.js.map +1 -1
- package/dist/esm/operations/clusters.js +78 -97
- package/dist/esm/operations/clusters.js.map +1 -1
- package/dist/esm/operations/configuration.js +1 -0
- package/dist/esm/operations/configuration.js.map +1 -1
- package/dist/esm/operations/consumerGroups.js +23 -40
- package/dist/esm/operations/consumerGroups.js.map +1 -1
- package/dist/esm/operations/disasterRecoveryConfigs.js +45 -79
- package/dist/esm/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/esm/operations/eventHubs.js +45 -79
- package/dist/esm/operations/eventHubs.js.map +1 -1
- package/dist/esm/operations/namespaces.js +103 -139
- package/dist/esm/operations/namespaces.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurationOperations.js +1 -0
- package/dist/esm/operations/networkSecurityPerimeterConfigurationOperations.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +12 -6
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +34 -46
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/schemaRegistry.js +23 -40
- package/dist/esm/operations/schemaRegistry.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/eventHubManagementClient.js +26 -5
- package/dist/react-native/eventHubManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +213 -100
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/applicationGroupOperations.js +23 -40
- package/dist/react-native/operations/applicationGroupOperations.js.map +1 -1
- package/dist/react-native/operations/clusters.js +78 -97
- package/dist/react-native/operations/clusters.js.map +1 -1
- package/dist/react-native/operations/configuration.js +1 -0
- package/dist/react-native/operations/configuration.js.map +1 -1
- package/dist/react-native/operations/consumerGroups.js +23 -40
- package/dist/react-native/operations/consumerGroups.js.map +1 -1
- package/dist/react-native/operations/disasterRecoveryConfigs.js +45 -79
- package/dist/react-native/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/react-native/operations/eventHubs.js +45 -79
- package/dist/react-native/operations/eventHubs.js.map +1 -1
- package/dist/react-native/operations/namespaces.js +103 -139
- package/dist/react-native/operations/namespaces.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurationOperations.js +1 -0
- package/dist/react-native/operations/networkSecurityPerimeterConfigurationOperations.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +12 -6
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +34 -46
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/schemaRegistry.js +23 -40
- package/dist/react-native/operations/schemaRegistry.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-eventhub.api.md → arm-eventhub-node.api.md} +0 -0
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing EventHubs operations. */
|
|
15
14
|
export class EventHubsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class EventHubs class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class EventHubsImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, eventHubName, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, eventHubName, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, eventHubName, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listAuthorizationRules(resourceGroupName, namespaceName, eventHubName, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listAuthorizationRulesNext(resourceGroupName, namespaceName, eventHubName, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listAuthorizationRulesPagingAll(resourceGroupName, namespaceName, eventHubName, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, eventHubName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listAuthorizationRulesPagingAll(resourceGroupName, namespaceName, eventHubName, options) {
|
|
66
|
+
for await (const page of this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, eventHubName, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Gets all the Event Hubs in a Namespace.
|
|
@@ -100,52 +83,35 @@ export class EventHubsImpl {
|
|
|
100
83
|
return this;
|
|
101
84
|
},
|
|
102
85
|
byPage: (settings) => {
|
|
103
|
-
if (settings
|
|
86
|
+
if (settings?.maxPageSize) {
|
|
104
87
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
105
88
|
}
|
|
106
89
|
return this.listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings);
|
|
107
90
|
},
|
|
108
91
|
};
|
|
109
92
|
}
|
|
110
|
-
listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
});
|
|
93
|
+
async *listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings) {
|
|
94
|
+
let result;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._listByNamespace(resourceGroupName, namespaceName, options);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listByNamespaceNext(resourceGroupName, namespaceName, continuationToken, options);
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
setContinuationToken(page, continuationToken);
|
|
108
|
+
yield page;
|
|
109
|
+
}
|
|
129
110
|
}
|
|
130
|
-
listByNamespacePagingAll(resourceGroupName, namespaceName, options) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
for (var _d = true, _e = __asyncValues(this.listByNamespacePagingPage(resourceGroupName, namespaceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
135
|
-
_c = _f.value;
|
|
136
|
-
_d = false;
|
|
137
|
-
const page = _c;
|
|
138
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
142
|
-
finally {
|
|
143
|
-
try {
|
|
144
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
145
|
-
}
|
|
146
|
-
finally { if (e_2) throw e_2.error; }
|
|
147
|
-
}
|
|
148
|
-
});
|
|
111
|
+
async *listByNamespacePagingAll(resourceGroupName, namespaceName, options) {
|
|
112
|
+
for await (const page of this.listByNamespacePagingPage(resourceGroupName, namespaceName, options)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
149
115
|
}
|
|
150
116
|
/**
|
|
151
117
|
* Gets the authorization rules for an Event Hub.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventHubs.js","sourceRoot":"","sources":["../../../src/operations/eventHubs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AA8BtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAM,OAAO,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,sBAAsB,CAC3B,iBAAyB,EACzB,aAAqB,EACrB,YAAoB,EACpB,OAAuD;QAEvD,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,OAAO,CACR,CAAC;Q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AAU,CAAC,aAAa;QACxB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { EventHubs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { EventHubManagementClient } from \"../eventHubManagementClient.js\";\nimport {\n AuthorizationRule,\n EventHubsListAuthorizationRulesNextOptionalParams,\n EventHubsListAuthorizationRulesOptionalParams,\n EventHubsListAuthorizationRulesResponse,\n Eventhub,\n EventHubsListByNamespaceNextOptionalParams,\n EventHubsListByNamespaceOptionalParams,\n EventHubsListByNamespaceResponse,\n EventHubsCreateOrUpdateAuthorizationRuleOptionalParams,\n EventHubsCreateOrUpdateAuthorizationRuleResponse,\n EventHubsGetAuthorizationRuleOptionalParams,\n EventHubsGetAuthorizationRuleResponse,\n EventHubsDeleteAuthorizationRuleOptionalParams,\n EventHubsListKeysOptionalParams,\n EventHubsListKeysResponse,\n RegenerateAccessKeyParameters,\n EventHubsRegenerateKeysOptionalParams,\n EventHubsRegenerateKeysResponse,\n EventHubsCreateOrUpdateOptionalParams,\n EventHubsCreateOrUpdateResponse,\n EventHubsDeleteOptionalParams,\n EventHubsGetOptionalParams,\n EventHubsGetResponse,\n EventHubsListAuthorizationRulesNextResponse,\n EventHubsListByNamespaceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EventHubs operations. */\nexport class EventHubsImpl implements EventHubs {\n private readonly client: EventHubManagementClient;\n\n /**\n * Initialize a new instance of the class EventHubs class.\n * @param client Reference to the service client\n */\n constructor(client: EventHubManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the authorization rules for an Event Hub.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param options The options parameters.\n */\n public listAuthorizationRules(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n options?: EventHubsListAuthorizationRulesOptionalParams,\n ): PagedAsyncIterableIterator<AuthorizationRule> {\n const iter = this.listAuthorizationRulesPagingAll(\n resourceGroupName,\n namespaceName,\n eventHubName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listAuthorizationRulesPagingPage(\n resourceGroupName,\n namespaceName,\n eventHubName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listAuthorizationRulesPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n options?: EventHubsListAuthorizationRulesOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AuthorizationRule[]> {\n let result: EventHubsListAuthorizationRulesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAuthorizationRules(\n resourceGroupName,\n namespaceName,\n eventHubName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAuthorizationRulesNext(\n resourceGroupName,\n namespaceName,\n eventHubName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAuthorizationRulesPagingAll(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n options?: EventHubsListAuthorizationRulesOptionalParams,\n ): AsyncIterableIterator<AuthorizationRule> {\n for await (const page of this.listAuthorizationRulesPagingPage(\n resourceGroupName,\n namespaceName,\n eventHubName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the Event Hubs in a Namespace.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param options The options parameters.\n */\n public listByNamespace(\n resourceGroupName: string,\n namespaceName: string,\n options?: EventHubsListByNamespaceOptionalParams,\n ): PagedAsyncIterableIterator<Eventhub> {\n const iter = this.listByNamespacePagingAll(\n resourceGroupName,\n namespaceName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByNamespacePagingPage(\n resourceGroupName,\n namespaceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByNamespacePagingPage(\n resourceGroupName: string,\n namespaceName: string,\n options?: EventHubsListByNamespaceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Eventhub[]> {\n let result: EventHubsListByNamespaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByNamespace(\n resourceGroupName,\n namespaceName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByNamespaceNext(\n resourceGroupName,\n namespaceName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByNamespacePagingAll(\n resourceGroupName: string,\n namespaceName: string,\n options?: EventHubsListByNamespaceOptionalParams,\n ): AsyncIterableIterator<Eventhub> {\n for await (const page of this.listByNamespacePagingPage(\n resourceGroupName,\n namespaceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the authorization rules for an Event Hub.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param options The options parameters.\n */\n private _listAuthorizationRules(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n options?: EventHubsListAuthorizationRulesOptionalParams,\n ): Promise<EventHubsListAuthorizationRulesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, eventHubName, options },\n listAuthorizationRulesOperationSpec,\n );\n }\n\n /**\n * Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the\n * AuthorizationRule will take a few seconds to take effect.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param authorizationRuleName The authorization rule name.\n * @param parameters The shared access AuthorizationRule.\n * @param options The options parameters.\n */\n createOrUpdateAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n authorizationRuleName: string,\n parameters: AuthorizationRule,\n options?: EventHubsCreateOrUpdateAuthorizationRuleOptionalParams,\n ): Promise<EventHubsCreateOrUpdateAuthorizationRuleResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n eventHubName,\n authorizationRuleName,\n parameters,\n options,\n },\n createOrUpdateAuthorizationRuleOperationSpec,\n );\n }\n\n /**\n * Gets an AuthorizationRule for an Event Hub by rule name.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n getAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n authorizationRuleName: string,\n options?: EventHubsGetAuthorizationRuleOptionalParams,\n ): Promise<EventHubsGetAuthorizationRuleResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n eventHubName,\n authorizationRuleName,\n options,\n },\n getAuthorizationRuleOperationSpec,\n );\n }\n\n /**\n * Deletes an Event Hub AuthorizationRule.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n deleteAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n authorizationRuleName: string,\n options?: EventHubsDeleteAuthorizationRuleOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n eventHubName,\n authorizationRuleName,\n options,\n },\n deleteAuthorizationRuleOperationSpec,\n );\n }\n\n /**\n * Gets the ACS and SAS connection strings for the Event Hub.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n listKeys(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n authorizationRuleName: string,\n options?: EventHubsListKeysOptionalParams,\n ): Promise<EventHubsListKeysResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n eventHubName,\n authorizationRuleName,\n options,\n },\n listKeysOperationSpec,\n );\n }\n\n /**\n * Regenerates the ACS and SAS connection strings for the Event Hub.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param authorizationRuleName The authorization rule name.\n * @param parameters Parameters supplied to regenerate the AuthorizationRule Keys\n * (PrimaryKey/SecondaryKey).\n * @param options The options parameters.\n */\n regenerateKeys(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n authorizationRuleName: string,\n parameters: RegenerateAccessKeyParameters,\n options?: EventHubsRegenerateKeysOptionalParams,\n ): Promise<EventHubsRegenerateKeysResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n eventHubName,\n authorizationRuleName,\n parameters,\n options,\n },\n regenerateKeysOperationSpec,\n );\n }\n\n /**\n * Gets all the Event Hubs in a Namespace.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param options The options parameters.\n */\n private _listByNamespace(\n resourceGroupName: string,\n namespaceName: string,\n options?: EventHubsListByNamespaceOptionalParams,\n ): Promise<EventHubsListByNamespaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, options },\n listByNamespaceOperationSpec,\n );\n }\n\n /**\n * Creates or updates a new Event Hub as a nested resource within a Namespace.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param parameters Parameters supplied to create an Event Hub resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n parameters: Eventhub,\n options?: EventHubsCreateOrUpdateOptionalParams,\n ): Promise<EventHubsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, eventHubName, parameters, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes an Event Hub from the specified Namespace and resource group.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n options?: EventHubsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, eventHubName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets an Event Hubs description for the specified Event Hub.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n options?: EventHubsGetOptionalParams,\n ): Promise<EventHubsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, eventHubName, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListAuthorizationRulesNext\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method.\n * @param options The options parameters.\n */\n private _listAuthorizationRulesNext(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n nextLink: string,\n options?: EventHubsListAuthorizationRulesNextOptionalParams,\n ): Promise<EventHubsListAuthorizationRulesNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, eventHubName, nextLink, options },\n listAuthorizationRulesNextOperationSpec,\n );\n }\n\n /**\n * ListByNamespaceNext\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param nextLink The nextLink from the previous successful call to the ListByNamespace method.\n * @param options The options parameters.\n */\n private _listByNamespaceNext(\n resourceGroupName: string,\n namespaceName: string,\n nextLink: string,\n options?: EventHubsListByNamespaceNextOptionalParams,\n ): Promise<EventHubsListByNamespaceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, nextLink, options },\n listByNamespaceNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAuthorizationRulesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AuthorizationRuleListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AuthorizationRule,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.authorizationRuleName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AuthorizationRule,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.authorizationRuleName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.authorizationRuleName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/listKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessKeys,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.authorizationRuleName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst regenerateKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessKeys,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.authorizationRuleName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByNamespaceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventHubListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Eventhub,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Eventhub,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AuthorizationRuleListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.namespaceName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByNamespaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventHubListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.namespaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"eventHubs.js","sourceRoot":"","sources":["../../../src/operations/eventHubs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,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ACxB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { EventHubs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { EventHubManagementClient } from \"../eventHubManagementClient.js\";\nimport {\n AuthorizationRule,\n EventHubsListAuthorizationRulesNextOptionalParams,\n EventHubsListAuthorizationRulesOptionalParams,\n EventHubsListAuthorizationRulesResponse,\n Eventhub,\n EventHubsListByNamespaceNextOptionalParams,\n EventHubsListByNamespaceOptionalParams,\n EventHubsListByNamespaceResponse,\n EventHubsCreateOrUpdateAuthorizationRuleOptionalParams,\n EventHubsCreateOrUpdateAuthorizationRuleResponse,\n EventHubsGetAuthorizationRuleOptionalParams,\n EventHubsGetAuthorizationRuleResponse,\n EventHubsDeleteAuthorizationRuleOptionalParams,\n EventHubsListKeysOptionalParams,\n EventHubsListKeysResponse,\n RegenerateAccessKeyParameters,\n EventHubsRegenerateKeysOptionalParams,\n EventHubsRegenerateKeysResponse,\n EventHubsCreateOrUpdateOptionalParams,\n EventHubsCreateOrUpdateResponse,\n EventHubsDeleteOptionalParams,\n EventHubsGetOptionalParams,\n EventHubsGetResponse,\n EventHubsListAuthorizationRulesNextResponse,\n EventHubsListByNamespaceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EventHubs operations. */\nexport class EventHubsImpl implements EventHubs {\n private readonly client: EventHubManagementClient;\n\n /**\n * Initialize a new instance of the class EventHubs class.\n * @param client Reference to the service client\n */\n constructor(client: EventHubManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the authorization rules for an Event Hub.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param options The options parameters.\n */\n public listAuthorizationRules(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n options?: EventHubsListAuthorizationRulesOptionalParams,\n ): PagedAsyncIterableIterator<AuthorizationRule> {\n const iter = this.listAuthorizationRulesPagingAll(\n resourceGroupName,\n namespaceName,\n eventHubName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listAuthorizationRulesPagingPage(\n resourceGroupName,\n namespaceName,\n eventHubName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listAuthorizationRulesPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n options?: EventHubsListAuthorizationRulesOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AuthorizationRule[]> {\n let result: EventHubsListAuthorizationRulesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAuthorizationRules(\n resourceGroupName,\n namespaceName,\n eventHubName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAuthorizationRulesNext(\n resourceGroupName,\n namespaceName,\n eventHubName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAuthorizationRulesPagingAll(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n options?: EventHubsListAuthorizationRulesOptionalParams,\n ): AsyncIterableIterator<AuthorizationRule> {\n for await (const page of this.listAuthorizationRulesPagingPage(\n resourceGroupName,\n namespaceName,\n eventHubName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the Event Hubs in a Namespace.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param options The options parameters.\n */\n public listByNamespace(\n resourceGroupName: string,\n namespaceName: string,\n options?: EventHubsListByNamespaceOptionalParams,\n ): PagedAsyncIterableIterator<Eventhub> {\n const iter = this.listByNamespacePagingAll(\n resourceGroupName,\n namespaceName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByNamespacePagingPage(\n resourceGroupName,\n namespaceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByNamespacePagingPage(\n resourceGroupName: string,\n namespaceName: string,\n options?: EventHubsListByNamespaceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Eventhub[]> {\n let result: EventHubsListByNamespaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByNamespace(\n resourceGroupName,\n namespaceName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByNamespaceNext(\n resourceGroupName,\n namespaceName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByNamespacePagingAll(\n resourceGroupName: string,\n namespaceName: string,\n options?: EventHubsListByNamespaceOptionalParams,\n ): AsyncIterableIterator<Eventhub> {\n for await (const page of this.listByNamespacePagingPage(\n resourceGroupName,\n namespaceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the authorization rules for an Event Hub.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param options The options parameters.\n */\n private _listAuthorizationRules(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n options?: EventHubsListAuthorizationRulesOptionalParams,\n ): Promise<EventHubsListAuthorizationRulesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, eventHubName, options },\n listAuthorizationRulesOperationSpec,\n );\n }\n\n /**\n * Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the\n * AuthorizationRule will take a few seconds to take effect.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param authorizationRuleName The authorization rule name.\n * @param parameters The shared access AuthorizationRule.\n * @param options The options parameters.\n */\n createOrUpdateAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n authorizationRuleName: string,\n parameters: AuthorizationRule,\n options?: EventHubsCreateOrUpdateAuthorizationRuleOptionalParams,\n ): Promise<EventHubsCreateOrUpdateAuthorizationRuleResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n eventHubName,\n authorizationRuleName,\n parameters,\n options,\n },\n createOrUpdateAuthorizationRuleOperationSpec,\n );\n }\n\n /**\n * Gets an AuthorizationRule for an Event Hub by rule name.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n getAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n authorizationRuleName: string,\n options?: EventHubsGetAuthorizationRuleOptionalParams,\n ): Promise<EventHubsGetAuthorizationRuleResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n eventHubName,\n authorizationRuleName,\n options,\n },\n getAuthorizationRuleOperationSpec,\n );\n }\n\n /**\n * Deletes an Event Hub AuthorizationRule.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n deleteAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n authorizationRuleName: string,\n options?: EventHubsDeleteAuthorizationRuleOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n eventHubName,\n authorizationRuleName,\n options,\n },\n deleteAuthorizationRuleOperationSpec,\n );\n }\n\n /**\n * Gets the ACS and SAS connection strings for the Event Hub.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n listKeys(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n authorizationRuleName: string,\n options?: EventHubsListKeysOptionalParams,\n ): Promise<EventHubsListKeysResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n eventHubName,\n authorizationRuleName,\n options,\n },\n listKeysOperationSpec,\n );\n }\n\n /**\n * Regenerates the ACS and SAS connection strings for the Event Hub.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param authorizationRuleName The authorization rule name.\n * @param parameters Parameters supplied to regenerate the AuthorizationRule Keys\n * (PrimaryKey/SecondaryKey).\n * @param options The options parameters.\n */\n regenerateKeys(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n authorizationRuleName: string,\n parameters: RegenerateAccessKeyParameters,\n options?: EventHubsRegenerateKeysOptionalParams,\n ): Promise<EventHubsRegenerateKeysResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n eventHubName,\n authorizationRuleName,\n parameters,\n options,\n },\n regenerateKeysOperationSpec,\n );\n }\n\n /**\n * Gets all the Event Hubs in a Namespace.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param options The options parameters.\n */\n private _listByNamespace(\n resourceGroupName: string,\n namespaceName: string,\n options?: EventHubsListByNamespaceOptionalParams,\n ): Promise<EventHubsListByNamespaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, options },\n listByNamespaceOperationSpec,\n );\n }\n\n /**\n * Creates or updates a new Event Hub as a nested resource within a Namespace.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param parameters Parameters supplied to create an Event Hub resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n parameters: Eventhub,\n options?: EventHubsCreateOrUpdateOptionalParams,\n ): Promise<EventHubsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, eventHubName, parameters, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes an Event Hub from the specified Namespace and resource group.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n options?: EventHubsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, eventHubName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets an Event Hubs description for the specified Event Hub.\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n options?: EventHubsGetOptionalParams,\n ): Promise<EventHubsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, eventHubName, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListAuthorizationRulesNext\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param eventHubName The Event Hub name\n * @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method.\n * @param options The options parameters.\n */\n private _listAuthorizationRulesNext(\n resourceGroupName: string,\n namespaceName: string,\n eventHubName: string,\n nextLink: string,\n options?: EventHubsListAuthorizationRulesNextOptionalParams,\n ): Promise<EventHubsListAuthorizationRulesNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, eventHubName, nextLink, options },\n listAuthorizationRulesNextOperationSpec,\n );\n }\n\n /**\n * ListByNamespaceNext\n * @param resourceGroupName Name of the resource group within the azure subscription.\n * @param namespaceName The Namespace name\n * @param nextLink The nextLink from the previous successful call to the ListByNamespace method.\n * @param options The options parameters.\n */\n private _listByNamespaceNext(\n resourceGroupName: string,\n namespaceName: string,\n nextLink: string,\n options?: EventHubsListByNamespaceNextOptionalParams,\n ): Promise<EventHubsListByNamespaceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, nextLink, options },\n listByNamespaceNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAuthorizationRulesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AuthorizationRuleListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AuthorizationRule,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.authorizationRuleName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AuthorizationRule,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.authorizationRuleName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.authorizationRuleName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/listKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessKeys,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.authorizationRuleName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst regenerateKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessKeys,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.authorizationRuleName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByNamespaceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventHubListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Eventhub,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Eventhub,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AuthorizationRuleListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.namespaceName,\n Parameters.eventHubName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByNamespaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventHubListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.namespaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|